The text below is selected, press Ctrl+C to copy to your clipboard. (⌘+C on Mac) No line numbers will be copied.
Guest
Fe Vr Sword script pastebin roblox
By Fe Vr Sword on 2024-09-23 08:00 am | Syntax: LUA | Views: 11



New Script | Raw | Show/Hide line no. | Copy text to clipboard
  1. --[[---------Hats Supported---------]]--
  2. -- Galaxy Sword: https://www.roblox.com/catalog/5355685721/Galaxy-Sword
  3. -- Russo's Sword: https://www.roblox.com/catalog/5909776064/Russo-s-Sword-of-Truth
  4. -- Any Greatsword (Example): https://www.roblox.com/catalog/4506945409/Corrupt-Demonic-Greatsword
  5. --[[--------------------------------]]--
  6.  
  7. --[[---------Settings---------]]--
  8. local leftHand = false --If you're left handed and are using VR, put this to true (or if you want the sword to be held on your left hand).
  9. local autoEquip = false --(VR only setting) If this is true, instead of holding down the grip button to hold the sword, you just have to press it to equip and unequip it.
  10. --[[--------------------------]]--
  11.  
  12. --[[---------KeyBinds---------]]--
  13. -- VR: Grip Button to equip and unequip the sword
  14. -- No VR: F to equip and unequip the sword
  15. --[[--------------------------]]--
  16.  
  17.  
  18.  
  19. local character1 = game.Players.LocalPlayer.Character
  20. local sword = nil
  21. local rArm1 = character1["Right Arm"]
  22. local lArm1 = character1["Left Arm"]
  23. local rGrip1 = rArm1.RightGripAttachment
  24. local lGrip1 = lArm1.LeftGripAttachment
  25. local hrp  = character1.HumanoidRootPart
  26.  
  27. local userInputService = game:GetService("UserInputService")
  28.  
  29. hrp.Transparency = 0.5
  30.  
  31. --Replacement for the HumanoidRootPart--
  32. local hrpReplacement = hrp:Clone()
  33. hrpReplacement.Parent = character1
  34. hrpReplacement.Name = "hrpReplacement"
  35. hrpReplacement.Size = hrp.Size
  36. hrpReplacement.Transparency = 1
  37. hrpReplacement.Anchored = true
  38. hrpReplacement.Position = hrp.Position
  39. ----------------------------------------
  40.  
  41. --------------Getting what sword you are using--------------
  42. if character1:FindFirstChild("Dark Matter Sword") then
  43.     sword = character1["Dark Matter Sword"].Handle
  44. end
  45.  
  46. if character1:FindFirstChild("MeshPartAccessory") then
  47.     sword = character1.MeshPartAccessory.Handle
  48. end
  49.  
  50. if character1:FindFirstChild("Russo's Sword") then
  51.     sword = character1["Russo's Sword"].Handle
  52. end
  53. ------------------------------------------------------------
  54.  
  55. if leftHand == false and character1:FindFirstChild("Russo's Sword") then
  56.     sword.BodyBackAttachment.Orientation = Vector3.new(-0, 180, 215.002)
  57. end
  58.  
  59. if leftHand == true and not character1:FindFirstChild("Russo's Sword") then
  60.     sword.BodyBackAttachment.Orientation = Vector3.new(0, 0, -90)
  61. end
  62.  
  63. local function Hats()
  64.     --From CLOVR (Modified)------------------------------------------------
  65.     for _, Accessory in next, character1:GetChildren() do
  66.         if Accessory:IsA("Accessory") and Accessory:FindFirstChild("Handle") then
  67.             local Attachment1 = Accessory.Handle:FindFirstChildWhichIsA("Attachment")
  68.             local Attachment0 = character1:FindFirstChild(tostring(Attachment1), true)
  69.             local Orientation = Instance.new("AlignOrientation")
  70.             local Position = Instance.new("AlignPosition")
  71.             if character1.Head:FindFirstChild("AlignOrientation") and character1.Head:FindFirstChild("AlignPosition") then
  72.                 character1.Head.AlignOrientation:Destroy()
  73.                 character1.Head.AlignPosition:Destroy()
  74.             end
  75.             Orientation.Attachment0 = Attachment1
  76.             Orientation.Attachment1 = Attachment0
  77.             Orientation.RigidityEnabled = false
  78.             Orientation.ReactionTorqueEnabled = true
  79.             Orientation.MaxTorque = 20000
  80.             Orientation.Responsiveness = 40
  81.             Orientation.Parent = character1.Head
  82.             Position.Attachment0 = Attachment1
  83.             Position.Attachment1 = Attachment0
  84.             Position.RigidityEnabled = false
  85.             Position.ReactionForceEnabled = true
  86.             Position.MaxForce = 40000
  87.             Position.Responsiveness = 40
  88.             Position.Parent = character1.Head
  89.         end
  90.     end
  91.     -----------------------------------------------------------------------
  92. end
  93.  
  94.  
  95. local flinging = false
  96.  
  97. local vrService = game:GetService("VRService")
  98.  
  99. userInputService.InputBegan:Connect(function(key)
  100.     --No VR-------------------------------------------------------------------------------
  101.     if key.KeyCode == Enum.KeyCode.F and not vrService.VREnabled then
  102.         if flinging == false then
  103.             --Start Flinging
  104.             local hatGrip = sword.BodyBackAttachment
  105.            
  106.             --Orientation
  107.             if leftHand == true then
  108.                 hatGrip.Name = lGrip1.Name
  109.                 hatGrip = sword.LeftGripAttachment
  110.                 if character1:FindFirstChild("Dark Matter Sword") or character1:FindFirstChild("MeshPartAccessory") then
  111.                     hatGrip.Orientation = Vector3.new(-100, -90, 0)
  112.                 end
  113.                 if character1:FindFirstChild("Russo's Sword") then
  114.                     hatGrip.Orientation = Vector3.new(45, -90, -180)
  115.                 end
  116.             else
  117.                 hatGrip.Name = rGrip1.Name
  118.                 hatGrip = sword.RightGripAttachment
  119.                 if character1:FindFirstChild("Dark Matter Sword") or character1:FindFirstChild("MeshPartAccessory") then
  120.                     hatGrip.Orientation = Vector3.new(-100, -90, 0)
  121.                 end
  122.                 if character1:FindFirstChild("Russo's Sword") then
  123.                     hatGrip.Orientation = Vector3.new(45, -90, -180)
  124.                 end
  125.             end
  126.            
  127.             --Position
  128.             if leftHand == true then
  129.                 if character1:FindFirstChild("Dark Matter Sword") then
  130.                     hatGrip.Position = lGrip1.Position + Vector3.new(1.2, 2.4, 0)
  131.                 end
  132.                 if character1:FindFirstChild("MeshPartAccessory") then
  133.                     hatGrip.Position = lGrip1.Position + Vector3.new(1.7, 2.6, 0)
  134.                 end
  135.                 if character1:FindFirstChild("Russo's Sword") then
  136.                     hatGrip.Position = lGrip1.Position + Vector3.new(-0.1, -0.7, 0)
  137.                 end
  138.             else
  139.                 if character1:FindFirstChild("Dark Matter Sword") then
  140.                     hatGrip.Position = rGrip1.Position + Vector3.new(1.2, 2.4, 0)
  141.                 end
  142.                 if character1:FindFirstChild("MeshPartAccessory") then
  143.                     hatGrip.Position = lGrip1.Position + Vector3.new(1.7, 2.6, 0)
  144.                 end
  145.                 if character1:FindFirstChild("Russo's Sword") then
  146.                     hatGrip.Position = rGrip1.Position + Vector3.new(-0.1, -0.7, 0)
  147.                 end
  148.             end
  149.            
  150.             --Function
  151.             Hats()
  152.            
  153.             --Fling Stuff
  154.             if hrp:FindFirstChild("BodyAngularVelocity") then
  155.                 hrp.BodyAngularVelocity:Destroy()
  156.             end
  157.            
  158.             local flinger = Instance.new("BodyAngularVelocity", hrp)
  159.             flinger.MaxTorque = Vector3.new(math.huge, math.huge, math.huge)
  160.             flinger.P = 1000000000000000000000000000
  161.             flinger.AngularVelocity = Vector3.new(10000, 10000, 10000)
  162.            
  163.             flinging = true
  164.         else
  165.             --Stop Flinging
  166.             if leftHand == true then
  167.                 sword.LeftGripAttachment.Name = "BodyBackAttachment"
  168.             else
  169.                 sword.RightGripAttachment.Name = "BodyBackAttachment"
  170.             end
  171.            
  172.             local hatGrip = sword.BodyBackAttachment
  173.            
  174.             --Orientation
  175.             if leftHand == true then
  176.                 if character1:FindFirstChild("Dark Matter Sword") or character1:FindFirstChild("MeshPartAccessory") then
  177.                     hatGrip.Orientation = Vector3.new(0, 0, -90)
  178.                 end
  179.                 if character1:FindFirstChild("Russo's Sword") then
  180.                     hatGrip.Orientation = Vector3.new(-0, 180, 125.002)
  181.                 end
  182.             else
  183.                 if character1:FindFirstChild("Dark Matter Sword") or character1:FindFirstChild("MeshPartAccessory") then
  184.                     hatGrip.Orientation = Vector3.new(0, 0, 0)
  185.                 end
  186.                 if character1:FindFirstChild("Russo's Sword") then
  187.                     hatGrip.Orientation = Vector3.new(-0, 180, 215.002)
  188.                 end
  189.             end
  190.            
  191.             --Position
  192.             if character1:FindFirstChild("Dark Matter Sword") or character1:FindFirstChild("MeshPartAccessory") then
  193.                 hatGrip.Position = Vector3.new(0, 0, -0.25)
  194.             end
  195.             if character1:FindFirstChild("Russo's Sword") then
  196.                 hatGrip.Position = Vector3.new(0, 0, 0.25)
  197.             end
  198.            
  199.             Hats()
  200.            
  201.             if hrp:FindFirstChild("BodyAngularVelocity") then
  202.                 hrp.BodyAngularVelocity:Destroy()
  203.             end
  204.            
  205.             local flinger = Instance.new("BodyAngularVelocity", hrp)
  206.             flinger.MaxTorque = Vector3.new(math.huge, math.huge, math.huge)
  207.             flinger.P = 1000000000000000000000000000
  208.             flinger.AngularVelocity = Vector3.new(0, 0, 0)
  209.            
  210.             flinging = false
  211.         end
  212.     end
  213.     --------------------------------------------------------------------------------------
  214.    
  215.     --VR----------------------------------------------------------------------------------
  216.     --Right Hand
  217.     if key.KeyCode == Enum.KeyCode.ButtonR1 then
  218.         if flinging == false and autoEquip == false and leftHand == false then
  219.             --Start Flinging
  220.             sword.BodyBackAttachment.Name = rGrip1.Name
  221.            
  222.             local hatGrip = sword.RightGripAttachment
  223.            
  224.             --Orientation
  225.             if character1:FindFirstChild("Dark Matter Sword") or character1:FindFirstChild("MeshPartAccessory") then
  226.                 hatGrip.Orientation = Vector3.new(-100, -90, 0)
  227.             end
  228.             if character1:FindFirstChild("Russo's Sword") then
  229.                 hatGrip.Orientation = Vector3.new(45, -90, -180)
  230.             end            
  231.            
  232.             --Position
  233.             if character1:FindFirstChild("Dark Matter Sword") then
  234.                 hatGrip.Position = rGrip1.Position + Vector3.new(1.2, 2.4, 0)
  235.             end
  236.             if character1:FindFirstChild("MeshPartAccessory") then
  237.                 hatGrip.Position = lGrip1.Position + Vector3.new(1.7, 2.6, 0)
  238.             end
  239.             if character1:FindFirstChild("Russo's Sword") then
  240.                 hatGrip.Position = rGrip1.Position + Vector3.new(-0.1, -0.7, 0)
  241.             end
  242.            
  243.             --Function
  244.             Hats()
  245.            
  246.             --Fling Stuff
  247.             if hrp:FindFirstChild("BodyAngularVelocity") then
  248.                 hrp.BodyAngularVelocity:Destroy()
  249.             end
  250.            
  251.             local flinger = Instance.new("BodyAngularVelocity", hrp)
  252.             flinger.MaxTorque = Vector3.new(math.huge, math.huge, math.huge)
  253.             flinger.P = 1000000000000000000000000000
  254.             flinger.AngularVelocity = Vector3.new(10000, 10000, 10000)
  255.            
  256.             flinging = true
  257.         else
  258.             if flinging == false and autoEquip == true and leftHand == false then
  259.             --Start Flinging
  260.             sword.BodyBackAttachment.Name = rGrip1.Name
  261.            
  262.             local hatGrip = sword.RightGripAttachment
  263.            
  264.             --Orientation
  265.             if character1:FindFirstChild("Dark Matter Sword") or character1:FindFirstChild("MeshPartAccessory") then
  266.                 hatGrip.Orientation = Vector3.new(-100, -90, 0)
  267.             end
  268.             if character1:FindFirstChild("Russo's Sword") then
  269.                 hatGrip.Orientation = Vector3.new(45, -90, -180)
  270.             end            
  271.            
  272.             --Position
  273.             if character1:FindFirstChild("Dark Matter Sword") then
  274.                 hatGrip.Position = rGrip1.Position + Vector3.new(1.2, 2.4, 0)
  275.             end
  276.             if character1:FindFirstChild("MeshPartAccessory") then
  277.                 hatGrip.Position = lGrip1.Position + Vector3.new(1.7, 2.6, 0)
  278.             end
  279.             if character1:FindFirstChild("Russo's Sword") then
  280.                 hatGrip.Position = rGrip1.Position + Vector3.new(-0.1, -0.7, 0)
  281.             end
  282.            
  283.             --Function
  284.             Hats()
  285.            
  286.             --Fling Stuff
  287.             if hrp:FindFirstChild("BodyAngularVelocity") then
  288.                 hrp.BodyAngularVelocity:Destroy()
  289.             end
  290.            
  291.             local flinger = Instance.new("BodyAngularVelocity", hrp)
  292.             flinger.MaxTorque = Vector3.new(math.huge, math.huge, math.huge)
  293.             flinger.P = 1000000000000000000000000000
  294.             flinger.AngularVelocity = Vector3.new(10000, 10000, 10000)
  295.            
  296.             flinging = true
  297.             else
  298.                 if flinging == true and autoEquip == true and leftHand == false then
  299.                     --Stop Flinging
  300.                     sword.RightGripAttachment.Name = "BodyBackAttachment"
  301.                    
  302.                     local hatGrip = sword.BodyBackAttachment
  303.                    
  304.                     --Orientation
  305.                     if character1:FindFirstChild("Dark Matter Sword") or character1:FindFirstChild("MeshPartAccessory") then
  306.                         hatGrip.Orientation = Vector3.new(0, 0, 0)
  307.                     end
  308.                     if character1:FindFirstChild("Russo's Sword") then
  309.                         hatGrip.Orientation = Vector3.new(-0, 180, 215.002)
  310.                     end
  311.                    
  312.                     --Position
  313.                     if character1:FindFirstChild("Dark Matter Sword") or character1:FindFirstChild("MeshPartAccessory") then
  314.                         hatGrip.Position = Vector3.new(0, 0, -0.25)
  315.                     end
  316.                     if character1:FindFirstChild("Russo's Sword") then
  317.                         hatGrip.Position = Vector3.new(0, 0, 0.25)
  318.                     end
  319.                    
  320.                     --Function
  321.                     Hats()
  322.                    
  323.                     --Fling Stuff
  324.                     if hrp:FindFirstChild("BodyAngularVelocity") then
  325.                         hrp.BodyAngularVelocity:Destroy()
  326.                     end
  327.                    
  328.                     local flinger = Instance.new("BodyAngularVelocity", hrp)
  329.                     flinger.MaxTorque = Vector3.new(math.huge, math.huge, math.huge)
  330.                     flinger.P = 1000000000000000000000000000
  331.                     flinger.AngularVelocity = Vector3.new(0, 0, 0)
  332.                    
  333.                     flinging = false
  334.                 end
  335.             end
  336.         end
  337.     end
  338.    
  339.     --Left Hand
  340.     if key.KeyCode == Enum.KeyCode.ButtonL1 then
  341.         if flinging == false and autoEquip == false and leftHand == true then
  342.             --Start Flinging
  343.             sword.BodyBackAttachment.Name = lGrip1.Name
  344.            
  345.             local hatGrip = sword.LeftGripAttachment
  346.            
  347.             --Orientation
  348.             if character1:FindFirstChild("Dark Matter Sword") or character1:FindFirstChild("MeshPartAccessory") then
  349.                 hatGrip.Orientation = Vector3.new(-100, -90, 0)
  350.             end
  351.             if character1:FindFirstChild("Russo's Sword") then
  352.                 hatGrip.Orientation = Vector3.new(45, -90, -180)
  353.             end
  354.            
  355.             --Position
  356.             if character1:FindFirstChild("Dark Matter Sword") then
  357.                 hatGrip.Position = lGrip1.Position + Vector3.new(1.2, 2.4, 0)
  358.             end
  359.             if character1:FindFirstChild("MeshPartAccessory") then
  360.                 hatGrip.Position = lGrip1.Position + Vector3.new(1.7, 2.6, 0)
  361.             end
  362.             if character1:FindFirstChild("Russo's Sword") then
  363.                 hatGrip.Position = lGrip1.Position + Vector3.new(-0.1, -0.7, 0)
  364.             end
  365.            
  366.             --Function
  367.             Hats()
  368.            
  369.             --FLing Stuff
  370.             if hrp:FindFirstChild("BodyAngularVelocity") then
  371.                 hrp.BodyAngularVelocity:Destroy()
  372.             end
  373.            
  374.             local flinger = Instance.new("BodyAngularVelocity", hrp)
  375.             flinger.MaxTorque = Vector3.new(math.huge, math.huge, math.huge)
  376.             flinger.P = 1000000000000000000000000000
  377.             flinger.AngularVelocity = Vector3.new(10000, 10000, 10000)
  378.            
  379.             flinging = true
  380.         else
  381.             if flinging == false and autoEquip == true and leftHand == true then
  382.             --Start Flinging
  383.             sword.BodyBackAttachment.Name = lGrip1.Name
  384.            
  385.             local hatGrip = sword.LeftGripAttachment
  386.            
  387.             --Orientation
  388.             if character1:FindFirstChild("Dark Matter Sword") or character1:FindFirstChild("MeshPartAccessory") then
  389.                 hatGrip.Orientation = Vector3.new(-100, -90, 0)
  390.             end
  391.             if character1:FindFirstChild("Russo's Sword") then
  392.                 hatGrip.Orientation = Vector3.new(45, -90, -180)
  393.             end
  394.            
  395.             --Position
  396.             if character1:FindFirstChild("Dark Matter Sword") then
  397.                 hatGrip.Position = lGrip1.Position + Vector3.new(1.2, 2.4, 0)
  398.             end
  399.             if character1:FindFirstChild("MeshPartAccessory") then
  400.                 hatGrip.Position = lGrip1.Position + Vector3.new(1.7, 2.6, 0)
  401.             end
  402.             if character1:FindFirstChild("Russo's Sword") then
  403.                 hatGrip.Position = lGrip1.Position + Vector3.new(-0.1, -0.7, 0)
  404.             end
  405.            
  406.             --Function
  407.             Hats()
  408.            
  409.             --FLing Stuff
  410.             if hrp:FindFirstChild("BodyAngularVelocity") then
  411.                 hrp.BodyAngularVelocity:Destroy()
  412.             end
  413.            
  414.             local flinger = Instance.new("BodyAngularVelocity", hrp)
  415.             flinger.MaxTorque = Vector3.new(math.huge, math.huge, math.huge)
  416.             flinger.P = 1000000000000000000000000000
  417.             flinger.AngularVelocity = Vector3.new(10000, 10000, 10000)
  418.            
  419.             flinging = true
  420.             else
  421.                 if flinging == true and autoEquip == true and leftHand == true then
  422.                     --Stop Flinging
  423.                     sword.LeftGripAttachment.Name = "BodyBackAttachment"
  424.                    
  425.                     local hatGrip = sword.BodyBackAttachment
  426.                    
  427.                     --Orientation
  428.                     if character1:FindFirstChild("Dark Matter Sword") or character1:FindFirstChild("MeshPartAccessory") then
  429.                         hatGrip.Orientation = Vector3.new(0, 0, -90)
  430.                     end
  431.                     if character1:FindFirstChild("Russo's Sword") then
  432.                         hatGrip.Orientation = Vector3.new(-0, 180, 125.002)
  433.                     end
  434.                    
  435.                     --Position
  436.                     if character1:FindFirstChild("Dark Matter Sword") or character1:FindFirstChild("MeshPartAccessory") then
  437.                         hatGrip.Position = Vector3.new(0, 0, -0.25)
  438.                     end
  439.                     if character1:FindFirstChild("Russo's Sword") then
  440.                         hatGrip.Position = Vector3.new(0, 0, 0.25)
  441.                     end
  442.                    
  443.                     --Function
  444.                     Hats()
  445.                    
  446.                     --Fling Stuff
  447.                     if hrp:FindFirstChild("BodyAngularVelocity") then
  448.                         hrp.BodyAngularVelocity:Destroy()
  449.                     end
  450.                    
  451.                     local flinger = Instance.new("BodyAngularVelocity", hrp)
  452.                     flinger.MaxTorque = Vector3.new(math.huge, math.huge, math.huge)
  453.                     flinger.P = 1000000000000000000000000000
  454.                     flinger.AngularVelocity = Vector3.new(0, 0, 0)
  455.                    
  456.                     flinging = false
  457.                 end
  458.             end
  459.         end
  460.     end
  461.     --------------------------------------------------------------------------------------
  462. end)
  463.  
  464. userInputService.InputEnded:Connect(function(key)
  465.     --VR----------------------------------------------------------------------------------
  466.     --Right Hand
  467.     if key.KeyCode == Enum.KeyCode.ButtonR1 then
  468.         if flinging == true and autoEquip == false and leftHand == false then
  469.             --Stop Flinging
  470.             sword.RightGripAttachment.Name = "BodyBackAttachment"
  471.            
  472.             local hatGrip = sword.BodyBackAttachment
  473.            
  474.             --Orientation
  475.             if character1:FindFirstChild("Dark Matter Sword") or character1:FindFirstChild("MeshPartAccessory") then
  476.                 hatGrip.Orientation = Vector3.new(0, 0, 0)
  477.             end
  478.             if character1:FindFirstChild("Russo's Sword") then
  479.                 hatGrip.Orientation = Vector3.new(-0, 180, 215.002)
  480.             end
  481.            
  482.             --Position
  483.             if character1:FindFirstChild("Dark Matter Sword") or character1:FindFirstChild("MeshPartAccessory") then
  484.                 hatGrip.Position = Vector3.new(0, 0, -0.25)
  485.             end
  486.             if character1:FindFirstChild("Russo's Sword") then
  487.                 hatGrip.Position = Vector3.new(0, 0, 0.25)
  488.             end
  489.            
  490.             --Function
  491.             Hats()
  492.            
  493.             --Fling Stuff
  494.             if hrp:FindFirstChild("BodyAngularVelocity") then
  495.                 hrp.BodyAngularVelocity:Destroy()
  496.             end
  497.            
  498.             local flinger = Instance.new("BodyAngularVelocity", hrp)
  499.             flinger.MaxTorque = Vector3.new(math.huge, math.huge, math.huge)
  500.             flinger.P = 1000000000000000000000000000
  501.             flinger.AngularVelocity = Vector3.new(0, 0, 0)
  502.            
  503.             flinging = false
  504.         end
  505.     end
  506.    
  507.     --Left Hand
  508.     if key.KeyCode == Enum.KeyCode.ButtonL1 then
  509.         if flinging == true and autoEquip == false and leftHand == true then
  510.             --Stop Flinging
  511.             sword.LeftGripAttachment.Name = "BodyBackAttachment"
  512.            
  513.             local hatGrip = sword.BodyBackAttachment
  514.            
  515.             --Orientation
  516.             if character1:FindFirstChild("Dark Matter Sword") or character1:FindFirstChild("MeshPartAccessory") then
  517.                 hatGrip.Orientation = Vector3.new(0, 0, -90)
  518.             end
  519.             if character1:FindFirstChild("Russo's Sword") then
  520.                 hatGrip.Orientation = Vector3.new(-0, 180, 125.002)
  521.             end
  522.            
  523.             --Position
  524.             if character1:FindFirstChild("Dark Matter Sword") or character1:FindFirstChild("MeshPartAccessory") then
  525.                 hatGrip.Position = Vector3.new(0, 0, -0.25)
  526.             end
  527.             if character1:FindFirstChild("Russo's Sword") then
  528.                 hatGrip.Position = Vector3.new(0, 0, 0.25)
  529.             end
  530.            
  531.             --Function
  532.             Hats()
  533.            
  534.             --Fling Stuff
  535.             if hrp:FindFirstChild("BodyAngularVelocity") then
  536.                 hrp.BodyAngularVelocity:Destroy()
  537.             end
  538.            
  539.             local flinger = Instance.new("BodyAngularVelocity", hrp)
  540.             flinger.MaxTorque = Vector3.new(math.huge, math.huge, math.huge)
  541.             flinger.P = 1000000000000000000000000000
  542.             flinger.AngularVelocity = Vector3.new(0, 0, 0)
  543.            
  544.             flinging = false
  545.         end
  546.     end
  547.     --------------------------------------------------------------------------------------
  548. end)
  549.  
  550. --Netword Bypass (Given to me by a friend)------------------------------------------------
  551. spawn(function()
  552.     while true do
  553.         game:GetService("RunService").Heartbeat:Wait();
  554.         settings().Physics.AllowSleep = false;
  555.         game:GetService("Players").LocalPlayer.MaximumSimulationRadius = math.huge;
  556.         setsimulationradius(math.huge);
  557.     end
  558. end)
  559. ------------------------------------------------------------------------------------------
  560.  
  561. -- CLOVR - FE FULL-BODY VR SCRIPT
  562.  
  563. -- April 21st Update - TOOL HOLDING ADDED
  564.  
  565. -- | made by 0866 and Abacaxl
  566. -- | tysm unverified
  567.  
  568. --RagDollEnabled is set to true, DON'T set it to false or CLOVR won't work. Feel free to change the other settings though. -Abacaxl
  569.  
  570. --|| Settings:
  571. local StudsOffset = 0 -- Character height (negative if you're too high)
  572. local Smoothness = .5 -- Character interpolation (0.1 - 1 = smooth - rigid)
  573. local AnchorCharacter = true -- Prevent physics from causing inconsistencies
  574. local HideCharacter = false -- Hide character on a platform
  575. local NoCollision = true -- Disable player collision
  576. local ChatEnabled = true -- See chat on your left hand in-game
  577. local ChatLocalRange = 75 -- Local chat range
  578. local ViewportEnabled = true -- View nearby players in a frame
  579. local ViewportRange = 30 -- Maximum distance players are updated
  580. local RagdollEnabled = true -- Use your character instead of hats (NetworkOwner vulnerability)
  581. local RagdollHeadMovement = true -- Move your head separately from your body (+9 second wait)
  582. local AutoRun = false -- Run script on respawn
  583. local AutoRespawn = true -- Kill your real body when your virtual body dies
  584. local WearAllAccessories = true -- Use all leftover hats for the head
  585. local AccurateHandPosition = true -- Move your Roblox hands according to your real hands
  586. local AccessorySettings = {
  587.     LeftArm = "",
  588.     RightArm = "",
  589.     LeftLeg = "",
  590.     RightLeg = "",
  591.     Torso = "",
  592.     Head = true,
  593.     BlockArms = true,
  594.     BlockLegs = true,
  595.     BlockTorso = true,
  596.     LimbOffset = CFrame.Angles(math.rad(90), 0, 0)
  597. }
  598. local FootPlacementSettings = {
  599.     RightOffset = Vector3.new(.5, 0, 0),
  600.     LeftOffset = Vector3.new(-.5, 0, 0)
  601. }
  602. --|| Script:
  603. local Script = nil
  604. Script = function()
  605.     --[[
  606.  Variables
  607. --]]
  608.     local Players = game:GetService("Players")
  609.     local Client = Players.LocalPlayer
  610.     local Character = Client.Character or Client.CharacterAdded:Wait()
  611.     local WeldBase = Character:WaitForChild("hrpReplacement")
  612.     local ArmBase = Character:FindFirstChild("RightHand") or Character:FindFirstChild("Right Arm") or WeldBase
  613.     local Backpack = Client:WaitForChild("Backpack")
  614.     local Mouse = Client:GetMouse()
  615.     local Camera = workspace.CurrentCamera
  616.     local VRService = game:GetService("VRService")
  617.     local VRReady = VRService.VREnabled
  618.     local UserInputService = game:GetService("UserInputService")
  619.     local RunService = game:GetService("RunService")
  620.     local HttpService = game:GetService("HttpService")
  621.     local StarterGui = game:GetService("StarterGui")
  622.     local HeadAccessories = {}
  623.     local UsedAccessories = {}
  624.     local Pointer = false
  625.     local Point1 = false
  626.     local Point2 = false
  627.     local VirtualRig = game:GetObjects("rbxassetid://4468539481")[1]
  628.     local VirtualBody = game:GetObjects("rbxassetid://4464983829")[1]
  629.     local Anchor = Instance.new("Part")
  630.     Anchor.Anchored = true
  631.     Anchor.Transparency = 1
  632.     Anchor.CanCollide = false
  633.     Anchor.Parent = workspace
  634.     if RagdollEnabled then
  635.         print("RagdollEnabled, thank you for using CLOVR!")
  636.         local NetworkAccess =
  637.             coroutine.create(
  638.             function()
  639.                 settings().Physics.AllowSleep = false
  640.                 while true do
  641.                     game:GetService("RunService").RenderStepped:Wait()
  642.                     for _, Players in next, game:GetService("Players"):GetChildren() do
  643.                         if Players ~= game:GetService("Players").LocalPlayer then
  644.                             Players.MaximumSimulationRadius = 0.1
  645.                             Players.SimulationRadius = 0
  646.                         end
  647.                     end
  648.                     game:GetService("Players").LocalPlayer.MaximumSimulationRadius = math.pow(math.huge, math.huge)
  649.                     game:GetService("Players").LocalPlayer.SimulationRadius = math.huge * math.huge
  650.                 end
  651.             end
  652.         )
  653.         coroutine.resume(NetworkAccess)
  654.     end
  655.     StarterGui:SetCore("VRLaserPointerMode", 3)
  656.     --[[
  657.  Character Protection
  658. --]]
  659.     local CharacterCFrame = WeldBase.CFrame
  660.     if not RagdollEnabled then
  661.         Character.Humanoid.AnimationPlayed:Connect(
  662.             function(Animation)
  663.                 Animation:Stop()
  664.             end
  665.         )
  666.         for _, Track in next, Character.Humanoid:GetPlayingAnimationTracks() do
  667.             Track:Stop()
  668.         end
  669.         if HideCharacter then
  670.             local Platform = Instance.new("Part")
  671.             Platform.Anchored = true
  672.             Platform.Size = Vector3.new(100, 5, 100)
  673.             Platform.CFrame = CFrame.new(0, 10000, 0)
  674.             Platform.Transparency = 1
  675.             Platform.Parent = workspace
  676.             Character:MoveTo(Platform.Position + Vector3.new(0, 5, 0))
  677.             wait(.5)
  678.         end
  679.         if AnchorCharacter then
  680.             for _, Part in pairs(Character:GetChildren()) do
  681.                 if Part:IsA("BasePart") then
  682.                     Part.Anchored = true
  683.                 end
  684.             end
  685.         end
  686.     end
  687.     --[[
  688.  Functions
  689. --]]
  690.     function Tween(Object, Style, Direction, Time, Goal)
  691.         local tweenInfo = TweenInfo.new(Time, Enum.EasingStyle[Style], Enum.EasingDirection[Direction])
  692.         local tween = game:GetService("TweenService"):Create(Object, tweenInfo, Goal)
  693.         tween.Completed:Connect(
  694.             function()
  695.                 tween:Destroy()
  696.             end
  697.         )
  698.         tween:Play()
  699.         return tween
  700.     end
  701.     local function GetMotorForLimb(Limb)
  702.         for _, Motor in next, Character:GetDescendants() do
  703.             if Motor:IsA("Motor6D") and Motor.Part1 == Limb then
  704.                 return Motor
  705.             end
  706.         end
  707.     end
  708.     local function CreateAlignment(Limb, Part0)
  709.         local Attachment0 = Instance.new("Attachment", Part0 or Anchor)
  710.         local Attachment1 = Instance.new("Attachment", Limb)
  711.         local Orientation = Instance.new("AlignOrientation")
  712.         local Position = Instance.new("AlignPosition")
  713.         Orientation.Attachment0 = Attachment1
  714.         Orientation.Attachment1 = Attachment0
  715.         Orientation.RigidityEnabled = false
  716.         Orientation.MaxTorque = 20000
  717.         Orientation.Responsiveness = 40
  718.         Orientation.Parent = Character.hrpReplacement
  719.         Position.Attachment0 = Attachment1
  720.         Position.Attachment1 = Attachment0
  721.         Position.RigidityEnabled = false
  722.         Position.MaxForce = 40000
  723.         Position.Responsiveness = 40
  724.         Position.Parent = Character.hrpReplacement
  725.         Limb.Massless = false
  726.         local Motor = GetMotorForLimb(Limb)
  727.         if Motor then
  728.             Motor:Destroy()
  729.         end
  730.         return function(CF, Local)
  731.             if Local then
  732.                 Attachment0.CFrame = CF
  733.             else
  734.                 Attachment0.WorldCFrame = CF
  735.             end
  736.         end
  737.     end
  738.     local function GetExtraTool()
  739.         for _, Tool in next, Character:GetChildren() do
  740.             if Tool:IsA("Tool") and not Tool.Name:match("LIMB_TOOL") then
  741.                 return Tool
  742.             end
  743.         end
  744.     end
  745.     local function GetGripForHandle(Handle)
  746.         for _, Weld in next, Character:GetDescendants() do
  747.             if Weld:IsA("Weld") and (Weld.Part0 == Handle or Weld.Part1 == Handle) then
  748.                 return Weld
  749.             end
  750.         end
  751.         wait(.2)
  752.         for _, Weld in next, Character:GetDescendants() do
  753.             if Weld:IsA("Weld") and (Weld.Part0 == Handle or Weld.Part1 == Handle) then
  754.                 return Weld
  755.             end
  756.         end
  757.     end
  758.     local function CreateRightGrip(Handle)
  759.         local RightGrip = Instance.new("Weld")
  760.         RightGrip.Name = "RightGrip"
  761.         RightGrip.Part1 = Handle
  762.         RightGrip.Part0 = WeldBase
  763.         RightGrip.Parent = WeldBase
  764.         return RightGrip
  765.     end
  766.     local function CreateAccessory(Accessory, DeleteMeshes)
  767.         if not Accessory then
  768.             return
  769.         end
  770.         local HatAttachment = Accessory.Handle:FindFirstChildWhichIsA("Attachment")
  771.         local HeadAttachment = VirtualRig:FindFirstChild(HatAttachment.Name, true)
  772.         local BasePart = HeadAttachment.Parent
  773.         local HatAtt = HatAttachment.CFrame
  774.         local HeadAtt = HeadAttachment.CFrame
  775.         if DeleteMeshes then
  776.             if Accessory.Handle:FindFirstChild("Mesh") then
  777.                 Accessory.Handle.Mesh:Destroy()
  778.             end
  779.         end
  780.         wait()
  781.         local Handle = Accessory:WaitForChild("Handle")
  782.         if Handle:FindFirstChildWhichIsA("Weld", true) then
  783.             Handle:FindFirstChildWhichIsA("Weld", true):Destroy()
  784.             Handle:BreakJoints()
  785.         else
  786.             Handle:BreakJoints()
  787.         end
  788.         Handle.Massless = true
  789.         Handle.Transparency = 0.5
  790.         UsedAccessories[Accessory] = true
  791.         local RightGrip = CreateRightGrip(Handle)
  792.         wait()
  793.         for _, Object in pairs(Handle:GetDescendants()) do
  794.             if not Object:IsA("BasePart") then
  795.                 pcall(
  796.                     function()
  797.                         Object.Transparency = 1
  798.                     end
  799.                 )
  800.                 pcall(
  801.                     function()
  802.                         Object.Enabled = false
  803.                     end
  804.                 )
  805.             end
  806.         end
  807.         return Handle, RightGrip, HatAtt, HeadAtt, BasePart
  808.     end
  809.     local function GetHeadAccessories()
  810.         for _, Accessory in next, Character:GetChildren() do
  811.             if Accessory:IsA("Accessory") and not UsedAccessories[Accessory] then
  812.                 local Handle, RightGrip, HatAtt, HeadAtt, BasePart = CreateAccessory(Accessory)
  813.                 table.insert(HeadAccessories, {Handle, RightGrip, HatAtt, HeadAtt, BasePart})
  814.                 do
  815.                     Handle.Transparency = 0
  816.                 end
  817.                 if not WearAllAccessories then
  818.                     break
  819.                 end
  820.             end
  821.         end
  822.     end
  823.     --[[
  824.  VR Replication Setup
  825. --]]
  826.     if not RagdollEnabled then
  827.         LeftHandle, LeftHandGrip =
  828.             CreateAccessory(Character:FindFirstChild(AccessorySettings.LeftArm), AccessorySettings.BlockArms)
  829.         RightHandle, RightHandGrip =
  830.             CreateAccessory(Character:FindFirstChild(AccessorySettings.RightArm), AccessorySettings.BlockArms)
  831.         LeftHipHandle, LeftLegGrip =
  832.             CreateAccessory(Character:FindFirstChild(AccessorySettings.LeftLeg), AccessorySettings.BlockLegs)
  833.         RightHipHandle, RightLegGrip =
  834.             CreateAccessory(Character:FindFirstChild(AccessorySettings.RightLeg), AccessorySettings.BlockLegs)
  835.         TorsoHandle, TorsoGrip =
  836.             CreateAccessory(Character:FindFirstChild(AccessorySettings.Torso), AccessorySettings.BlockTorso)
  837.         GetHeadAccessories()
  838.     elseif RagdollEnabled then
  839.         if RagdollHeadMovement then
  840.             Permadeath()
  841.             MoveHead = CreateAlignment(Character["Head"])
  842.         end
  843.         MoveRightArm = CreateAlignment(Character["Right Arm"])
  844.         MoveLeftArm = CreateAlignment(Character["Left Arm"])
  845.         MoveRightLeg = CreateAlignment(Character["Right Leg"])
  846.         MoveLeftLeg = CreateAlignment(Character["Left Leg"])
  847.         MoveTorso = CreateAlignment(Character["Torso"])
  848.         MoveRoot = CreateAlignment(Character.hrpReplacement)
  849.         if RagdollHeadMovement then
  850.             for _, Accessory in next, Character:GetChildren() do
  851.                 if Accessory:IsA("Accessory") and Accessory:FindFirstChild("Handle") then
  852.                     local Attachment1 = Accessory.Handle:FindFirstChildWhichIsA("Attachment")
  853.                     local Attachment0 = Character:FindFirstChild(tostring(Attachment1), true)
  854.                     local Orientation = Instance.new("AlignOrientation")
  855.                     local Position = Instance.new("AlignPosition")
  856.                     print(Attachment1, Attachment0, Accessory)
  857.                     Orientation.Attachment0 = Attachment1
  858.                     Orientation.Attachment1 = Attachment0
  859.                     Orientation.RigidityEnabled = false
  860.                     Orientation.ReactionTorqueEnabled = true
  861.                     Orientation.MaxTorque = 20000
  862.                     Orientation.Responsiveness = 40
  863.                     Orientation.Parent = Character.Head
  864.                     Position.Attachment0 = Attachment1
  865.                     Position.Attachment1 = Attachment0
  866.                     Position.RigidityEnabled = false
  867.                     Position.ReactionForceEnabled = true
  868.                     Position.MaxForce = 40000
  869.                     Position.Responsiveness = 40
  870.                     Position.Parent = Character.Head
  871.                 end
  872.             end
  873.         end
  874.     end
  875.     --[[
  876.  Movement
  877. --]]
  878.     VirtualRig.Name = "VirtualRig"
  879.     VirtualRig.RightFoot.BodyPosition.Position = CharacterCFrame.p
  880.     VirtualRig.LeftFoot.BodyPosition.Position = CharacterCFrame.p
  881.     VirtualRig.Parent = workspace
  882.     VirtualRig:SetPrimaryPartCFrame(CharacterCFrame)
  883.     VirtualRig.Humanoid.Health = 0
  884.     VirtualRig:BreakJoints()
  885.     --
  886.     VirtualBody.Parent = workspace
  887.     VirtualBody.Name = "VirtualBody"
  888.     VirtualBody.Humanoid.WalkSpeed = 8
  889.     VirtualBody.Humanoid.CameraOffset = Vector3.new(0, StudsOffset, 0)
  890.     VirtualBody:SetPrimaryPartCFrame(CharacterCFrame)
  891.     VirtualBody.Humanoid.Died:Connect(
  892.         function()
  893.             print("Virtual death")
  894.             if AutoRespawn then
  895.                 Character:BreakJoints()
  896.                 if RagdollHeadMovement and RagdollEnabled then
  897.                     Network:Unclaim()
  898.                     Respawn()
  899.                 end
  900.             end
  901.         end
  902.     )
  903.     --
  904.     Camera.CameraSubject = VirtualBody.Humanoid
  905.     Character.Humanoid.WalkSpeed = 0
  906.     Character.Humanoid.JumpPower = 1
  907.     for _, Part in next, VirtualBody:GetChildren() do
  908.         if Part:IsA("BasePart") then
  909.             Part.Transparency = 1
  910.         end
  911.     end
  912.     for _, Part in next, VirtualRig:GetChildren() do
  913.         if Part:IsA("BasePart") then
  914.             Part.Transparency = 1
  915.         end
  916.     end
  917.     if not VRReady then
  918.         VirtualRig.RightUpperArm.ShoulderConstraint.RigidityEnabled = true
  919.         VirtualRig.LeftUpperArm.ShoulderConstraint.RigidityEnabled = true
  920.     end
  921.     local OnMoving =
  922.         RunService.Stepped:Connect(
  923.         function()
  924.             local Direction = Character.Humanoid.MoveDirection
  925.             local Start = VirtualBody.HumanoidRootPart.Position
  926.             local Point = Start + Direction * 6
  927.             VirtualBody.Humanoid:MoveTo(Point)
  928.         end
  929.     )
  930.     Character.Humanoid.Jumping:Connect(
  931.         function()
  932.             VirtualBody.Humanoid.Jump = true
  933.         end
  934.     )
  935.     UserInputService.JumpRequest:Connect(
  936.         function()
  937.             VirtualBody.Humanoid.Jump = true
  938.         end
  939.     )
  940.     --[[
  941.  VR Replication
  942. --]]
  943.     if RagdollEnabled then
  944.         for _, Part in pairs(Character:GetDescendants()) do
  945.             if Part:IsA("BasePart") and Part.Name == "Handle" and Part.Parent:IsA("Accessory") then
  946.                 Part.LocalTransparencyModifier = 0
  947.             elseif Part:IsA("BasePart") and Part.Transparency < 0 xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed xss=removed> 0 then
  948.             MaxDist = .5
  949.         else
  950.             MaxDist = 1
  951.         end
  952.         local PastThreshold = (Foot.Position - Target.Position).Magnitude > MaxDist
  953.         local PastTick = tick() - FootUpdateDebounce >= 2
  954.         if PastThreshold or PastTick then
  955.             FootUpdateDebounce = tick()
  956.         end
  957.         return PastThreshold or PastTick
  958.     end
  959.     local function FootYield()
  960.         local RightFooting = VirtualRig.RightFoot.BodyPosition
  961.         local LeftFooting = VirtualRig.LeftFoot.BodyPosition
  962.         local LowerTorso = VirtualRig.LowerTorso
  963.         local Yield = tick()
  964.         repeat
  965.             RunService.Stepped:Wait()
  966.             if
  967.                 (LowerTorso.Position - RightFooting.Position).Y > 4 or
  968.                     (LowerTorso.Position - LeftFooting.Position).Y > 4 or
  969.                     ((LowerTorso.Position - RightFooting.Position) * Vector3.new(1, 0, 1)).Magnitude > 4 or
  970.                     ((LowerTorso.Position - LeftFooting.Position) * Vector3.new(1, 0, 1)).Magnitude > 4
  971.              then
  972.                 break
  973.             end
  974.         until tick() - Yield >= .17
  975.     end
  976.     local function UpdateFooting()
  977.         if not VirtualRig:FindFirstChild("LowerTorso") then
  978.             wait()
  979.             return
  980.         end
  981.         local Floor, FloorPosition, FloorNormal, Dist = FloorRay(VirtualRig.LowerTorso, 3)
  982.         Dist = math.clamp(Dist, 0, 5)
  983.         local FootTarget =
  984.             VirtualRig.LowerTorso.CFrame * CFrame.new(FootPlacementSettings.RightOffset) - Vector3.new(0, Dist, 0) +
  985.             Character.Humanoid.MoveDirection * (VirtualBody.Humanoid.WalkSpeed / 8) * 2
  986.         if FootReady(VirtualRig.RightFoot, FootTarget) then
  987.             VirtualRig.RightFoot.BodyPosition.Position = FootTarget.p
  988.             VirtualRig.RightFoot.BodyGyro.CFrame = Flatten(VirtualRig.LowerTorso.CFrame)
  989.         end
  990.         FootYield()
  991.         local FootTarget =
  992.             VirtualRig.LowerTorso.CFrame * CFrame.new(FootPlacementSettings.LeftOffset) - Vector3.new(0, Dist, 0) +
  993.             Character.Humanoid.MoveDirection * (VirtualBody.Humanoid.WalkSpeed / 8) * 2
  994.         if FootReady(VirtualRig.LeftFoot, FootTarget) then
  995.             VirtualRig.LeftFoot.BodyPosition.Position = FootTarget.p
  996.             VirtualRig.LeftFoot.BodyGyro.CFrame = Flatten(VirtualRig.LowerTorso.CFrame)
  997.         end
  998.     end
  999.     local function UpdateTorsoPosition()
  1000.         if not RagdollEnabled then
  1001.             if TorsoHandle then
  1002.                 local Positioning = VirtualRig.UpperTorso.CFrame
  1003.                 if not TorsoGrip or not TorsoGrip.Parent then
  1004.                     TorsoGrip = CreateRightGrip(TorsoHandle)
  1005.                 end
  1006.                 local Parent = TorsoGrip.Parent
  1007.                 TorsoGrip.C1 = CFrame.new()
  1008.                 TorsoGrip.C0 =
  1009.                     TorsoGrip.C0:Lerp(
  1010.                     WeldBase.CFrame:ToObjectSpace(Positioning * CFrame.new(0, -0.25, 0) * AccessorySettings.LimbOffset),
  1011.                     Smoothness
  1012.                 )
  1013.                 TorsoGrip.Parent = nil
  1014.                 TorsoGrip.Parent = Parent
  1015.             end
  1016.         else
  1017.             local Positioning = VirtualRig.UpperTorso.CFrame
  1018.             MoveTorso(Positioning * CFrame.new(0, -0.25, 0))
  1019.             MoveRoot(Positioning * CFrame.new(0, -0.25, 0))
  1020.         end
  1021.     end
  1022.     local function UpdateLegPosition()
  1023.         if not RagdollEnabled then
  1024.             if RightHipHandle then
  1025.                 local Positioning =
  1026.                     VirtualRig.RightLowerLeg.CFrame:Lerp(VirtualRig.RightFoot.CFrame, 0.5) + Vector3.new(0, 0.5, 0)
  1027.                 if not RightHipHandle or not RightHipHandle.Parent then
  1028.                     RightLegGrip = CreateRightGrip(RightHipHandle)
  1029.                 end
  1030.                 local Parent = RightLegGrip.Parent
  1031.                 RightLegGrip.C1 = CFrame.new()
  1032.                 RightLegGrip.C0 =
  1033.                     RightLegGrip.C0:Lerp(
  1034.                     WeldBase.CFrame:ToObjectSpace(Positioning * AccessorySettings.LimbOffset),
  1035.                     Smoothness
  1036.                 )
  1037.                 RightLegGrip.Parent = nil
  1038.                 RightLegGrip.Parent = Parent
  1039.             end
  1040.             if LeftHipHandle then
  1041.                 local Positioning =
  1042.                     VirtualRig.LeftLowerLeg.CFrame:Lerp(VirtualRig.LeftFoot.CFrame, 0.5) + Vector3.new(0, 0.5, 0)
  1043.                 if not LeftLegGrip or not LeftLegGrip.Parent then
  1044.                     LeftLegGrip = CreateRightGrip(LeftHipHandle)
  1045.                 end
  1046.                 local Parent = LeftLegGrip.Parent
  1047.                 LeftLegGrip.C1 = CFrame.new()
  1048.                 LeftLegGrip.C0 =
  1049.                     LeftLegGrip.C0:Lerp(
  1050.                     WeldBase.CFrame:ToObjectSpace(Positioning * AccessorySettings.LimbOffset),
  1051.                     Smoothness
  1052.                 )
  1053.                 LeftLegGrip.Parent = nil
  1054.                 LeftLegGrip.Parent = Parent
  1055.             end
  1056.         else
  1057.             do
  1058.                 local Positioning =
  1059.                     VirtualRig.RightLowerLeg.CFrame:Lerp(VirtualRig.RightFoot.CFrame, 0.5) *
  1060.                     CFrame.Angles(0, math.rad(180), 0) +
  1061.                     Vector3.new(0, 0.5, 0)
  1062.                 MoveRightLeg(Positioning)
  1063.             end
  1064.             do
  1065.                 local Positioning =
  1066.                     VirtualRig.LeftLowerLeg.CFrame:Lerp(VirtualRig.LeftFoot.CFrame, 0.5) *
  1067.                     CFrame.Angles(0, math.rad(180), 0) +
  1068.                     Vector3.new(0, 0.5, 0)
  1069.                 MoveLeftLeg(Positioning)
  1070.             end
  1071.         end
  1072.     end
  1073.     warn("VRReady is", VRReady)
  1074.     local function OnUserCFrameChanged(UserCFrame, Positioning, IgnoreTorso)
  1075.         local Positioning = Camera.CFrame * Positioning
  1076.         if not IgnoreTorso then
  1077.             UpdateTorsoPosition()
  1078.             UpdateLegPosition()
  1079.         end
  1080.         if not RagdollEnabled then
  1081.             if UserCFrame == Enum.UserCFrame.Head and AccessorySettings.Head then
  1082.                 for _, Table in next, HeadAccessories do
  1083.                     local Handle, RightGrip, HatAtt, HeadAtt, BasePart = unpack(Table)
  1084.                     local LocalPositioning = Positioning
  1085.                     if not RightGrip or not RightGrip.Parent then
  1086.                         RightGrip = CreateRightGrip(Handle)
  1087.                         Table[2] = RightGrip
  1088.                     end
  1089.                     local Parent = RightGrip.Parent
  1090.                     if BasePart then
  1091.                         LocalPositioning = BasePart.CFrame * HeadAtt
  1092.                     end
  1093.                     RightGrip.C1 = HatAtt
  1094.                     RightGrip.C0 = RightGrip.C0:Lerp(WeldBase.CFrame:ToObjectSpace(LocalPositioning), Smoothness)
  1095.                     RightGrip.Parent = nil
  1096.                     RightGrip.Parent = Parent
  1097.                 end
  1098.             elseif RightHandle and UserCFrame == Enum.UserCFrame.RightHand and AccessorySettings.RightArm then
  1099.                 local HandPosition = Positioning
  1100.                 local LocalPositioning = Positioning
  1101.                 if not RightHandGrip or not RightHandGrip.Parent then
  1102.                     RightHandGrip = CreateRightGrip(RightHandle)
  1103.                 end
  1104.                 if AccurateHandPosition then
  1105.                     HandPosition = HandPosition * CFrame.new(0, 0, 1)
  1106.                 end
  1107.                 if not VRReady then
  1108.                     local HeadRotation = Camera.CFrame - Camera.CFrame.p
  1109.                     HandPosition =
  1110.                         VirtualRig.RightUpperArm.CFrame:Lerp(VirtualRig.RightLowerArm.CFrame, 0.5) *
  1111.                         AccessorySettings.LimbOffset
  1112.                     --LocalPositioning = (HeadRotation + (HandPosition * CFrame.new(0, 0, 1)).p) * CFrame.Angles(math.rad(-45), 0, 0)
  1113.                     LocalPositioning = HandPosition * CFrame.new(0, 0, 1) * CFrame.Angles(math.rad(-180), 0, 0)
  1114.                     if Point2 then
  1115.                         VirtualRig.RightUpperArm.Aim.MaxTorque = Vector3.new(math.huge, math.huge, math.huge)
  1116.                         VirtualRig.RightUpperArm.Aim.CFrame = Camera.CFrame * AccessorySettings.LimbOffset
  1117.                     elseif VirtualRig.RightUpperArm.Aim.MaxTorque ~= Vector3.new(0, 0, 0) then
  1118.                         VirtualRig.RightUpperArm.Aim.MaxTorque = Vector3.new(0, 0, 0)
  1119.                     end
  1120.                 elseif AccurateHandPosition then
  1121.                     LocalPositioning = HandPosition
  1122.                 end
  1123.                 local Parent = RightHandGrip.Parent
  1124.                 RightHandGrip.C1 = CFrame.new()
  1125.                 RightHandGrip.C0 = RightHandGrip.C0:Lerp(WeldBase.CFrame:ToObjectSpace(HandPosition), Smoothness)
  1126.                 RightHandGrip.Parent = nil
  1127.                 RightHandGrip.Parent = Parent
  1128.                 --
  1129.                 local EquippedTool = GetExtraTool()
  1130.                 if EquippedTool and EquippedTool:FindFirstChild("Handle") then
  1131.                     local EquippedGrip = GetGripForHandle(EquippedTool.Handle)
  1132.                     local Parent = EquippedGrip.Parent
  1133.                     local ArmBaseCFrame = ArmBase.CFrame
  1134.                     if ArmBase.Name == "Right Arm" then
  1135.                         ArmBaseCFrame = ArmBaseCFrame
  1136.                     end
  1137.                     EquippedGrip.C1 = EquippedTool.Grip
  1138.                     EquippedGrip.C0 = EquippedGrip.C0:Lerp(ArmBaseCFrame:ToObjectSpace(LocalPositioning), Smoothness)
  1139.                     EquippedGrip.Parent = nil
  1140.                     EquippedGrip.Parent = Parent
  1141.                 end
  1142.             elseif LeftHandle and UserCFrame == Enum.UserCFrame.LeftHand and AccessorySettings.LeftArm then
  1143.                 local HandPosition = Positioning
  1144.                 if not LeftHandGrip or not LeftHandGrip.Parent then
  1145.                     LeftHandGrip = CreateRightGrip(LeftHandle)
  1146.                 end
  1147.                 if AccurateHandPosition then
  1148.                     HandPosition = HandPosition * CFrame.new(0, 0, 1)
  1149.                 end
  1150.                 if not VRReady then
  1151.                     HandPosition =
  1152.                         VirtualRig.LeftUpperArm.CFrame:Lerp(VirtualRig.LeftLowerArm.CFrame, 0.5) *
  1153.                         AccessorySettings.LimbOffset
  1154.                     --warn("Setting HandPosition to hands")
  1155.                     if Point1 then
  1156.                         VirtualRig.LeftUpperArm.Aim.MaxTorque = Vector3.new(math.huge, math.huge, math.huge)
  1157.                         VirtualRig.LeftUpperArm.Aim.CFrame = Camera.CFrame * AccessorySettings.LimbOffset
  1158.                     elseif VirtualRig.LeftUpperArm.Aim.MaxTorque ~= Vector3.new(0, 0, 0) then
  1159.                         VirtualRig.LeftUpperArm.Aim.MaxTorque = Vector3.new(0, 0, 0)
  1160.                     end
  1161.                 end
  1162.                 local Parent = LeftHandGrip.Parent
  1163.                 LeftHandGrip.C1 = CFrame.new()
  1164.                 LeftHandGrip.C0 = LeftHandGrip.C0:Lerp(WeldBase.CFrame:ToObjectSpace(HandPosition), Smoothness)
  1165.                 LeftHandGrip.Parent = nil
  1166.                 LeftHandGrip.Parent = Parent
  1167.             end
  1168.         end
  1169.         if RagdollEnabled then
  1170.             if UserCFrame == Enum.UserCFrame.Head and RagdollHeadMovement then
  1171.                 MoveHead(Positioning)
  1172.             elseif UserCFrame == Enum.UserCFrame.RightHand then
  1173.                 local Positioning = Positioning
  1174.                 if not VRReady then
  1175.                     Positioning = VirtualRig.RightUpperArm.CFrame:Lerp(VirtualRig.RightLowerArm.CFrame, 0.5)
  1176.                 elseif AccurateHandPosition then
  1177.                     Positioning = Positioning * CFrame.new(0, 0, 1)
  1178.                 end
  1179.                 if VRReady then
  1180.                     Positioning = Positioning * AccessorySettings.LimbOffset
  1181.                 end
  1182.                 MoveRightArm(Positioning)
  1183.                 if Point2 then
  1184.                     VirtualRig.RightUpperArm.Aim.MaxTorque = Vector3.new(math.huge, math.huge, math.huge)
  1185.                     VirtualRig.RightUpperArm.Aim.CFrame = Camera.CFrame * AccessorySettings.LimbOffset
  1186.                 elseif VirtualRig.RightUpperArm.Aim.MaxTorque ~= Vector3.new(0, 0, 0) then
  1187.                     VirtualRig.RightUpperArm.Aim.MaxTorque = Vector3.new(0, 0, 0)
  1188.                 end
  1189.             elseif UserCFrame == Enum.UserCFrame.LeftHand then
  1190.                 local Positioning = Positioning
  1191.                 if not VRReady then
  1192.                     Positioning = VirtualRig.LeftUpperArm.CFrame:Lerp(VirtualRig.LeftLowerArm.CFrame, 0.5)
  1193.                 elseif AccurateHandPosition then
  1194.                     Positioning = Positioning * CFrame.new(0, 0, 1)
  1195.                 end
  1196.                 if VRReady then
  1197.                     Positioning = Positioning * AccessorySettings.LimbOffset
  1198.                 end
  1199.                 MoveLeftArm(Positioning)
  1200.                 if Point1 then
  1201.                     VirtualRig.LeftUpperArm.Aim.MaxTorque = Vector3.new(math.huge, math.huge, math.huge)
  1202.                     VirtualRig.LeftUpperArm.Aim.CFrame = Camera.CFrame * AccessorySettings.LimbOffset
  1203.                 elseif VirtualRig.LeftUpperArm.Aim.MaxTorque ~= Vector3.new(0, 0, 0) then
  1204.                     VirtualRig.LeftUpperArm.Aim.MaxTorque = Vector3.new(0, 0, 0)
  1205.                 end
  1206.             end
  1207.         end
  1208.         if UserCFrame == Enum.UserCFrame.Head then
  1209.             VirtualRig.Head.CFrame = Positioning
  1210.         elseif UserCFrame == Enum.UserCFrame.RightHand and VRReady then
  1211.             VirtualRig.RightHand.CFrame = Positioning
  1212.         elseif UserCFrame == Enum.UserCFrame.LeftHand and VRReady then
  1213.             VirtualRig.LeftHand.CFrame = Positioning
  1214.         end
  1215.         if not VRReady and VirtualRig.LeftHand.Anchored then
  1216.             VirtualRig.RightHand.Anchored = false
  1217.             VirtualRig.LeftHand.Anchored = false
  1218.         elseif VRReady and not VirtualRig.LeftHand.Anchored then
  1219.             VirtualRig.RightHand.Anchored = true
  1220.             VirtualRig.LeftHand.Anchored = true
  1221.         end
  1222.     end
  1223.     local CFrameChanged = VRService.UserCFrameChanged:Connect(OnUserCFrameChanged)
  1224.     local OnStepped =
  1225.         RunService.Stepped:Connect(
  1226.         function()
  1227.             for _, Part in pairs(VirtualRig:GetChildren()) do
  1228.                 if Part:IsA("BasePart") then
  1229.                     Part.CanCollide = false
  1230.                 end
  1231.             end
  1232.             if RagdollEnabled then
  1233.                 for _, Part in pairs(Character:GetChildren()) do
  1234.                     if Part:IsA("BasePart") then
  1235.                         Part.CanCollide = false
  1236.                     end
  1237.                 end
  1238.             end
  1239.             if NoCollision then
  1240.                 for _, Player in pairs(Players:GetPlayers()) do
  1241.                     if Player ~= Client and Player.Character then
  1242.                         local Descendants = Player.Character:GetDescendants()
  1243.                         for i = 1, #Descendants do
  1244.                             local Part = Descendants[i]
  1245.                             if Part:IsA("BasePart") then
  1246.                                 Part.CanCollide = false
  1247.                                 Part.Velocity = Vector3.new()
  1248.                                 Part.RotVelocity = Vector3.new()
  1249.                             end
  1250.                         end
  1251.                     end
  1252.                 end
  1253.             end
  1254.         end
  1255.     )
  1256.     local OnRenderStepped =
  1257.         RunService.Stepped:Connect(
  1258.         function()
  1259.             Camera.CameraSubject = VirtualBody.Humanoid
  1260.             if RagdollEnabled then
  1261.                 Character.hrpReplacement.CFrame = VirtualRig.UpperTorso.CFrame
  1262.                 Character.hrpReplacement.Velocity = Vector3.new(0, 0, 0)
  1263.             end
  1264.             if not VRReady then
  1265.                 OnUserCFrameChanged(Enum.UserCFrame.Head, CFrame.new(0, 0, 0))
  1266.                 OnUserCFrameChanged(Enum.UserCFrame.RightHand, CFrame.new(0, 0, 0), true)
  1267.                 OnUserCFrameChanged(Enum.UserCFrame.LeftHand, CFrame.new(0, 0, 0), true)
  1268.             end
  1269.         end
  1270.     )
  1271.     spawn(
  1272.         function()
  1273.             while Character and Character.Parent do
  1274.                 FootYield()
  1275.                 UpdateFooting()
  1276.             end
  1277.         end
  1278.     )
  1279.     --[[
  1280.  Non-VR Support + VR Mechanics
  1281. --]]
  1282.     local OnInput =
  1283.         UserInputService.InputBegan:Connect(
  1284.         function(Input, Processed)
  1285.             if not Processed then
  1286.                 if Input.KeyCode == Enum.KeyCode.LeftControl or Input.KeyCode == Enum.KeyCode.ButtonL2 then
  1287.                     Tween(
  1288.                         VirtualBody.Humanoid,
  1289.                         "Elastic",
  1290.                         "Out",
  1291.                         1,
  1292.                         {
  1293.                             CameraOffset = Vector3.new(0, StudsOffset - 1.5, 0)
  1294.                         }
  1295.                     )
  1296.                 end
  1297.                 if Input.KeyCode == Enum.KeyCode.X then
  1298.                     if RagdollEnabled and RagdollHeadMovement then
  1299.                         Network:Unclaim()
  1300.                         Respawn()
  1301.                     end
  1302.                 end
  1303.                 if Input.KeyCode == Enum.KeyCode.C then
  1304.                     VirtualBody:MoveTo(Mouse.Hit.p)
  1305.                     VirtualRig:MoveTo(Mouse.Hit.p)
  1306.                 end
  1307.             end
  1308.             if Input.KeyCode == Enum.KeyCode.LeftShift or Input.KeyCode == Enum.KeyCode.ButtonR2 then
  1309.                 Tween(
  1310.                     VirtualBody.Humanoid,
  1311.                     "Sine",
  1312.                     "Out",
  1313.                     1,
  1314.                     {
  1315.                         WalkSpeed = 16
  1316.                     }
  1317.                 )
  1318.             end
  1319.             if not VRReady and Input.UserInputType == Enum.UserInputType.MouseButton1 then
  1320.                 Point1 = true
  1321.             end
  1322.             if not VRReady and Input.UserInputType == Enum.UserInputType.MouseButton2 then
  1323.                 Point2 = true
  1324.             end
  1325.             if VRReady and Input.KeyCode == Enum.KeyCode.ButtonY then
  1326.                 Character:BreakJoints()
  1327.                 if RagdollEnabled and RagdollHeadMovement then
  1328.                     Network:Unclaim()
  1329.                     Respawn()
  1330.                 end
  1331.             end
  1332.         end
  1333.     )
  1334.     local OnInputEnded =
  1335.         UserInputService.InputEnded:Connect(
  1336.         function(Input, Processed)
  1337.             if not Processed then
  1338.                 if Input.KeyCode == Enum.KeyCode.LeftControl or Input.KeyCode == Enum.KeyCode.ButtonL2 then
  1339.                     Tween(
  1340.                         VirtualBody.Humanoid,
  1341.                         "Elastic",
  1342.                         "Out",
  1343.                         1,
  1344.                         {
  1345.                             CameraOffset = Vector3.new(0, StudsOffset, 0)
  1346.                         }
  1347.                     )
  1348.                 end
  1349.             end
  1350.             if Input.KeyCode == Enum.KeyCode.LeftShift or Input.KeyCode == Enum.KeyCode.ButtonR2 then
  1351.                 Tween(
  1352.                     VirtualBody.Humanoid,
  1353.                     "Sine",
  1354.                     "Out",
  1355.                     1,
  1356.                     {
  1357.                         WalkSpeed = 8
  1358.                     }
  1359.                 )
  1360.             end
  1361.             if not VRReady and Input.UserInputType == Enum.UserInputType.MouseButton1 then
  1362.                 Point1 = false
  1363.             end
  1364.             if not VRReady and Input.UserInputType == Enum.UserInputType.MouseButton2 then
  1365.                 Point2 = false
  1366.             end
  1367.         end
  1368.     )
  1369.     --[[
  1370.  Proper Cleanup
  1371. --]]
  1372.     local OnReset
  1373.     OnReset =
  1374.         Client.CharacterAdded:Connect(
  1375.         function()
  1376.             OnReset:Disconnect()
  1377.             CFrameChanged:Disconnect()
  1378.             OnStepped:Disconnect()
  1379.             OnRenderStepped:Disconnect()
  1380.             OnMoving:Disconnect()
  1381.             OnInput:Disconnect()
  1382.             OnInputEnded:Disconnect()
  1383.             VirtualRig:Destroy()
  1384.             VirtualBody:Destroy()
  1385.             if RagdollEnabled then
  1386.                 Network:Unclaim()
  1387.             end
  1388.             if AutoRun then
  1389.                 delay(
  1390.                     2,
  1391.                     function()
  1392.                         Script()
  1393.                     end
  1394.                 )
  1395.             end
  1396.         end
  1397.     )
  1398.     if ChatEnabled then
  1399.         spawn(ChatHUDFunc)
  1400.     end
  1401.     if ViewportEnabled then
  1402.         spawn(ViewHUDFunc)
  1403.     end
  1404.     do
  1405.         --[[
  1406.  Functions
  1407.  --]]
  1408.         local Players = game:GetService("Players")
  1409.         local Client = Players.LocalPlayer
  1410.         local VRService = game:GetService("VRService")
  1411.         local VRReady = VRService.VREnabled
  1412.         local UserInputService = game:GetService("UserInputService")
  1413.         local RunService = game:GetService("RunService")
  1414.         local Camera = workspace.CurrentCamera
  1415.         --[[
  1416.  Code
  1417.  --]]
  1418.         if VRReady then
  1419.             local Pointer = game:GetObjects("rbxassetid://4476173280")[1]
  1420.             Pointer.Parent = workspace
  1421.             Pointer.Beam.Enabled = false
  1422.             Pointer.Target.ParticleEmitter.Enabled = false
  1423.             local RenderStepped =
  1424.                 RunService.RenderStepped:Connect(
  1425.                 function()
  1426.                     if Pointer.Beam.Enabled then
  1427.                         local RightHand = Camera.CFrame * VRService:GetUserCFrame(Enum.UserCFrame.RightHand)
  1428.                         local Target = RightHand * CFrame.new(0, 0, -10)
  1429.                         local Line = Ray.new(RightHand.p, (Target.p - RightHand.p).Unit * 128)
  1430.                         local Part, Position =
  1431.                             workspace:FindPartOnRayWithIgnoreList(Line, {VirtualRig, VirtualBody, Character, Pointer})
  1432.                         local Distance = (Position - RightHand.p).Magnitude
  1433.                         Pointer.Target.Position = Vector3.new(0, 0, -Distance)
  1434.                         Pointer.CFrame = RightHand
  1435.                     end
  1436.                 end
  1437.             )
  1438.             local Input =
  1439.                 UserInputService.InputBegan:Connect(
  1440.                 function(Input)
  1441.                     if Input.KeyCode == Enum.KeyCode.ButtonB then
  1442.                         Pointer.Beam.Enabled = not Pointer.Beam.Enabled
  1443.                         Pointer.Target.ParticleEmitter.Enabled = not Pointer.Target.ParticleEmitter.Enabled
  1444.                     end
  1445.                 end
  1446.             )
  1447.             --
  1448.             local CharacterAdded
  1449.             CharacterAdded =
  1450.                 Client.CharacterAdded:Connect(
  1451.                 function()
  1452.                     RenderStepped:Disconnect()
  1453.                     Input:Disconnect()
  1454.                     CharacterAdded:Disconnect()
  1455.                     Pointer:Destroy()
  1456.                     Pointer = nil
  1457.                 end
  1458.             )
  1459.         else
  1460.             return
  1461.         end
  1462.     end
  1463. end
  1464. Permadeath = function()
  1465.     local ch = game.Players.LocalPlayer.Character
  1466.     local prt = Instance.new("Model", workspace)
  1467.     local z1 = Instance.new("Part", prt)
  1468.     z1.Name = "Torso"
  1469.     z1.CanCollide = false
  1470.     z1.Anchored = true
  1471.     local z2 = Instance.new("Part", prt)
  1472.     z2.Name = "Head"
  1473.     z2.Anchored = true
  1474.     z2.CanCollide = false
  1475.     local z3 = Instance.new("Humanoid", prt)
  1476.     z3.Name = "Humanoid"
  1477.     z1.Position = Vector3.new(0, 9999, 0)
  1478.     z2.Position = Vector3.new(0, 9991, 0)
  1479.     game.Players.LocalPlayer.Character = prt
  1480.     wait(5)
  1481.     warn("50%")
  1482.     game.Players.LocalPlayer.Character = ch
  1483.     wait(6)
  1484.     warn("100%")
  1485. end
  1486. Respawn = function()
  1487.     local ch = game.Players.LocalPlayer.Character
  1488.     local prt = Instance.new("Model", workspace)
  1489.     local z1 = Instance.new("Part", prt)
  1490.     z1.Name = "Torso"
  1491.     z1.CanCollide = false
  1492.     z1.Anchored = true
  1493.     local z2 = Instance.new("Part", prt)
  1494.     z2.Name = "Head"
  1495.     z2.Anchored = true
  1496.     z2.CanCollide = false
  1497.     local z3 = Instance.new("Humanoid", prt)
  1498.     z3.Name = "Humanoid"
  1499.     z1.Position = Vector3.new(0, 9999, 0)
  1500.     z2.Position = Vector3.new(0, 9991, 0)
  1501.     game.Players.LocalPlayer.Character = prt
  1502.     wait(5)
  1503.     game.Players.LocalPlayer.Character = ch
  1504. end
  1505. ChatHUDFunc = function()
  1506.     --[[
  1507.  Variables
  1508.  --]]
  1509.     local UserInputService = game:GetService("UserInputService")
  1510.     local RunService = game:GetService("RunService")
  1511.     local VRService = game:GetService("VRService")
  1512.     local VRReady = VRService.VREnabled
  1513.     local Players = game:GetService("Players")
  1514.     local Client = Players.LocalPlayer
  1515.     local ChatHUD = game:GetObjects("rbxassetid://4476067885")[1]
  1516.     local GlobalFrame = ChatHUD.GlobalFrame
  1517.     local Template = GlobalFrame.Template
  1518.     local LocalFrame = ChatHUD.LocalFrame
  1519.     local Global = ChatHUD.Global
  1520.     local Local = ChatHUD.Local
  1521.     local Camera = workspace.CurrentCamera
  1522.     Template.Parent = nil
  1523.     ChatHUD.Parent = game:GetService("CoreGui")
  1524.     --[[
  1525.  Code
  1526.  --]]
  1527.     local Highlight = Global.Frame.BackgroundColor3
  1528.     local Deselected = Local.Frame.BackgroundColor3
  1529.     local OpenGlobalTab = function()
  1530.         Global.Frame.BackgroundColor3 = Highlight
  1531.         Local.Frame.BackgroundColor3 = Deselected
  1532.         Global.Font = Enum.Font.SourceSansBold
  1533.         Local.Font = Enum.Font.SourceSans
  1534.         GlobalFrame.Visible = true
  1535.         LocalFrame.Visible = false
  1536.     end
  1537.     local OpenLocalTab = function()
  1538.         Global.Frame.BackgroundColor3 = Deselected
  1539.         Local.Frame.BackgroundColor3 = Highlight
  1540.         Global.Font = Enum.Font.SourceSans
  1541.         Local.Font = Enum.Font.SourceSansBold
  1542.         GlobalFrame.Visible = false
  1543.         LocalFrame.Visible = true
  1544.     end
  1545.     Global.MouseButton1Down:Connect(OpenGlobalTab)
  1546.     Local.MouseButton1Down:Connect(OpenLocalTab)
  1547.     Global.MouseButton1Click:Connect(OpenGlobalTab)
  1548.     Local.MouseButton1Click:Connect(OpenLocalTab)
  1549.     OpenLocalTab()
  1550.     --
  1551.     local function GetPlayerDistance(Sender)
  1552.         if Sender.Character and Sender.Character:FindFirstChild("Head") then
  1553.             return math.floor((Sender.Character.Head.Position - Camera:GetRenderCFrame().p).Magnitude + 0.5)
  1554.         end
  1555.     end
  1556.     local function NewGlobal(Message, Sender, Color)
  1557.         local Frame = Template:Clone()
  1558.         Frame.Text = ("[%s]: %s"):format(Sender.Name, Message)
  1559.         Frame.User.Text = ("[%s]:"):format(Sender.Name)
  1560.         Frame.User.TextColor3 = Color
  1561.         Frame.BackgroundColor3 = Color
  1562.         Frame.Parent = GlobalFrame
  1563.         delay(
  1564.             60,
  1565.             function()
  1566.                 Frame:Destroy()
  1567.             end
  1568.         )
  1569.     end
  1570.     local function NewLocal(Message, Sender, Color, Dist)
  1571.         local Frame = Template:Clone()
  1572.         Frame.Text = ("(%s) [%s]: %s"):format(tostring(Dist), Sender.Name, Message)
  1573.         Frame.User.Text = ("(%s) [%s]:"):format(tostring(Dist), Sender.Name)
  1574.         Frame.User.TextColor3 = Color
  1575.         Frame.BackgroundColor3 = Color
  1576.         Frame.Parent = LocalFrame
  1577.         delay(
  1578.             60,
  1579.             function()
  1580.                 Frame:Destroy()
  1581.             end
  1582.         )
  1583.     end
  1584.     local function OnNewChat(Message, Sender, Color)
  1585.         if not ChatHUD or not ChatHUD.Parent then
  1586.             return
  1587.         end
  1588.         NewGlobal(Message, Sender, Color)
  1589.         local Distance = GetPlayerDistance(Sender)
  1590.         if Distance and Distance <= ChatLocalRange then
  1591.             NewLocal(Message, Sender, Color, Distance)
  1592.         end
  1593.     end
  1594.     local function OnPlayerAdded(Player)
  1595.         if not ChatHUD or not ChatHUD.Parent then
  1596.             return
  1597.         end
  1598.         local Color = BrickColor.Random().Color
  1599.         Player.Chatted:Connect(
  1600.             function(Message)
  1601.                 OnNewChat(Message, Player, Color)
  1602.             end
  1603.         )
  1604.     end
  1605.     Players.PlayerAdded:Connect(OnPlayerAdded)
  1606.     for _, Player in pairs(Players:GetPlayers()) do
  1607.         OnPlayerAdded(Player)
  1608.     end
  1609.     --
  1610.     local ChatPart = ChatHUD.Part
  1611.     ChatHUD.Adornee = ChatPart
  1612.     if VRReady then
  1613.         ChatHUD.Parent = game:GetService("CoreGui")
  1614.         ChatHUD.Enabled = true
  1615.         ChatHUD.AlwaysOnTop = true
  1616.         local OnInput =
  1617.             UserInputService.InputBegan:Connect(
  1618.             function(Input, Processed)
  1619.                 if not Processed then
  1620.                     if Input.KeyCode == Enum.KeyCode.ButtonX then
  1621.                         ChatHUD.Enabled = not ChatHUD.Enabled
  1622.                     end
  1623.                 end
  1624.             end
  1625.         )
  1626.         local RenderStepped =
  1627.             RunService.RenderStepped:Connect(
  1628.             function()
  1629.                 local LeftHand = VRService:GetUserCFrame(Enum.UserCFrame.LeftHand)
  1630.                 ChatPart.CFrame = Camera.CFrame * LeftHand
  1631.             end
  1632.         )
  1633.         local CharacterAdded
  1634.         CharacterAdded =
  1635.             Client.CharacterAdded:Connect(
  1636.             function()
  1637.                 OnInput:Disconnect()
  1638.                 RenderStepped:Disconnect()
  1639.                 CharacterAdded:Disconnect()
  1640.                 ChatHUD:Destroy()
  1641.                 ChatHUD = nil
  1642.             end
  1643.         )
  1644.     end
  1645.     wait(9e9)
  1646. end
  1647. ViewHUDFunc = function()
  1648.     --[[
  1649.  Variables
  1650.  --]]
  1651.     local ViewportRange = ViewportRange or 32
  1652.     local UserInputService = game:GetService("UserInputService")
  1653.     local RunService = game:GetService("RunService")
  1654.     local VRService = game:GetService("VRService")
  1655.     local VRReady = VRService.VREnabled
  1656.     local Players = game:GetService("Players")
  1657.     local Client = Players.LocalPlayer
  1658.     local Mouse = Client:GetMouse()
  1659.     local Camera = workspace.CurrentCamera
  1660.     local CameraPort = Camera.CFrame
  1661.     local ViewHUD = script:FindFirstChild("ViewHUD") or game:GetObjects("rbxassetid://4480405425")[1]
  1662.     local Viewport = ViewHUD.Viewport
  1663.     local Viewcam = Instance.new("Camera")
  1664.     local ViewPart = ViewHUD.Part
  1665.     ViewHUD.Parent = game:GetService("CoreGui")
  1666.     Viewcam.Parent = Viewport
  1667.     Viewcam.CameraType = Enum.CameraType.Scriptable
  1668.     Viewport.CurrentCamera = Viewcam
  1669.     Viewport.BackgroundTransparency = 1
  1670.     --[[
  1671.  Code
  1672.  --]]
  1673.     local function Clone(Character)
  1674.         local Arc = Character.Archivable
  1675.         local Clone
  1676.         Character.Archivable = true
  1677.         Clone = Character:Clone()
  1678.         Character.Archivable = Arc
  1679.         return Clone
  1680.     end
  1681.     local function GetPart(Name, Parent, Descendants)
  1682.         for i = 1, #Descendants do
  1683.             local Part = Descendants[i]
  1684.             if Part.Name == Name and Part.Parent.Name == Parent then
  1685.                 return Part
  1686.             end
  1687.         end
  1688.     end
  1689.     local function OnPlayerAdded(Player)
  1690.         if not ViewHUD or not ViewHUD.Parent then
  1691.             return
  1692.         end
  1693.         local function CharacterAdded(Character)
  1694.             if not ViewHUD or not ViewHUD.Parent then
  1695.                 return
  1696.             end
  1697.             Character:WaitForChild("Head")
  1698.             Character:WaitForChild("Humanoid")
  1699.             wait(3)
  1700.             local FakeChar = Clone(Character)
  1701.             local Root = FakeChar:FindFirstChild("HumanoidRootPart") or FakeChar:FindFirstChild("Head")
  1702.             local RenderConnection
  1703.             local Descendants = FakeChar:GetDescendants()
  1704.             local RealDescendants = Character:GetDescendants()
  1705.             local Correspondents = {}
  1706.             FakeChar.Humanoid.DisplayDistanceType = "None"
  1707.             for i = 1, #Descendants do
  1708.                 local Part = Descendants[i]
  1709.                 local Real = Part:IsA("BasePart") and GetPart(Part.Name, Part.Parent.Name, RealDescendants)
  1710.                 if Part:IsA("BasePart") and Real then
  1711.                     Part.Anchored = true
  1712.                     Part:BreakJoints()
  1713.                     if Part.Parent:IsA("Accessory") then
  1714.                         Part.Transparency = 0
  1715.                     end
  1716.                     table.insert(Correspondents, {Part, Real})
  1717.                 end
  1718.             end
  1719.             RenderConnection =
  1720.                 RunService.RenderStepped:Connect(
  1721.                 function()
  1722.                     if not Character or not Character.Parent then
  1723.                         RenderConnection:Disconnect()
  1724.                         FakeChar:Destroy()
  1725.                         return
  1726.                     end
  1727.                     if
  1728.                         (Root and (Root.Position - Camera.CFrame.p).Magnitude <= ViewportRange) or Player == Client or
  1729.                             not Root
  1730.                      then
  1731.                         for i = 1, #Correspondents do
  1732.                             local Part, Real = unpack(Correspondents[i])
  1733.                             if Part and Real and Part.Parent and Real.Parent then
  1734.                                 Part.CFrame = Real.CFrame
  1735.                             elseif Part.Parent and not Real.Parent then
  1736.                                 Part:Destroy()
  1737.                             end
  1738.                         end
  1739.                     end
  1740.                 end
  1741.             )
  1742.             FakeChar.Parent = Viewcam
  1743.         end
  1744.         Player.CharacterAdded:Connect(CharacterAdded)
  1745.         if Player.Character then
  1746.             spawn(
  1747.                 function()
  1748.                     CharacterAdded(Player.Character)
  1749.                 end
  1750.             )
  1751.         end
  1752.     end
  1753.     local PlayerAdded = Players.PlayerAdded:Connect(OnPlayerAdded)
  1754.     for _, Player in pairs(Players:GetPlayers()) do
  1755.         OnPlayerAdded(Player)
  1756.     end
  1757.     ViewPart.Size = Vector3.new()
  1758.     if VRReady then
  1759.         Viewport.Position = UDim2.new(.62, 0, .89, 0)
  1760.         Viewport.Size = UDim2.new(.3, 0, .3, 0)
  1761.         Viewport.AnchorPoint = Vector2.new(.5, 1)
  1762.     else
  1763.         Viewport.Size = UDim2.new(0.3, 0, 0.3, 0)
  1764.     end
  1765.     local RenderStepped =
  1766.         RunService.RenderStepped:Connect(
  1767.         function()
  1768.             local Render = Camera.CFrame
  1769.             local Scale = Camera.ViewportSize
  1770.             if VRReady then
  1771.                 Render = Render * VRService:GetUserCFrame(Enum.UserCFrame.Head)
  1772.             end
  1773.             CameraPort = CFrame.new(Render.p + Vector3.new(5, 2, 0), Render.p)
  1774.             Viewport.Camera.CFrame = CameraPort
  1775.             ViewPart.CFrame = Render * CFrame.new(0, 0, -16)
  1776.             ViewHUD.Size = UDim2.new(0, Scale.X - 6, 0, Scale.Y - 6)
  1777.         end
  1778.     )
  1779.     --
  1780.     local CharacterAdded
  1781.     CharacterAdded =
  1782.         Client.CharacterAdded:Connect(
  1783.         function()
  1784.             RenderStepped:Disconnect()
  1785.             CharacterAdded:Disconnect()
  1786.             PlayerAdded:Disconnect()
  1787.             ViewHUD:Destroy()
  1788.             ViewHUD = nil
  1789.         end
  1790.     )
  1791.    
  1792.     ------------------------Part of modification------------------------
  1793.     ----------------This is from FE Sniper by x0rs#4411----------------
  1794.     local bp = Instance.new("BodyPosition", hrp)
  1795.     bp.Position = hrp.Position
  1796.     bp.D = 9999999
  1797.     bp.P = 999999999999999
  1798.     bp.MaxForce = Vector3.new(math.huge, math.huge, math.huge)
  1799.     local flinger = Instance.new("BodyAngularVelocity", hrp)
  1800.     flinger.MaxTorque = Vector3.new(math.huge, math.huge, math.huge)
  1801.     flinger.P = 1000000000000000000000000000
  1802.     flinger.AngularVelocity = Vector3.new(0, 0, 0)
  1803.     -------------------------------------------------------------------
  1804.    
  1805.     --hrpReplacement.Anchored = false
  1806.    
  1807.     while true do
  1808.         bp.Position = sword.Position
  1809.         wait()
  1810.     end
  1811.     -------------------------------------------------------------------
  1812.    
  1813.     wait(9e9)
  1814. end
  1815. Script()
  1816. wait(2)
  1817. local Players = game:GetService("Players")
  1818. local lp = Players.LocalPlayer
  1819. local character = lp.Character
  1820. local A0LL = Instance.new("Attachment", character["Left Leg"])
  1821. A0LL.Position = Vector3.new(0, 1, 0)
  1822. local A1LL = Instance.new("Attachment", character["Torso"])
  1823. A1LL.Position = Vector3.new(-0.5, -1, 0)
  1824. local socket1 = Instance.new("BallSocketConstraint", character["Left Leg"])
  1825. socket1.Attachment0 = A0LL
  1826. socket1.Attachment1 = A1LL
  1827. local A0RL = Instance.new("Attachment", character["Right Leg"])
  1828. A0RL.Position = Vector3.new(0, 1, 0)
  1829. local A1RL = Instance.new("Attachment", character["Torso"])
  1830. A1RL.Position = Vector3.new(0.5, -1, 0)
  1831. local socket2 = Instance.new("BallSocketConstraint", character["Right Leg"])
  1832. socket2.Attachment0 = A0RL
  1833. socket2.Attachment1 = A1RL
  1834. local A0H = Instance.new("Attachment", character["Head"])
  1835. A0H.Position = Vector3.new(0, -0.5, 0)
  1836. local A1H = Instance.new("Attachment", character["Torso"])
  1837. A1H.Position = Vector3.new(0, 1, 0)
  1838. local socket5 = Instance.new("BallSocketConstraint", character["Head"])
  1839. socket5.Attachment0 = A0H
  1840. socket5.Attachment1 = A1H
  1841. loadstring(game:HttpGet("https://ghostbin.co/paste/krmyf/raw", true))()
  1842. -----------------------------------------------------------
  1843. wait(9e9)



  • Recent Roblox Scripts