Advertisement
Filipono120

ROBLOX Move Arms & Legs [FE UPD]

Sep 1st, 2020 (edited)
6,438
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 7.59 KB | None | 0 0
  1. --[[
  2.  
  3.     MOVE ARMS (& LEGS)
  4.    
  5.      version 1.5.3
  6.      
  7.      CHANGELOG
  8.      
  9.      30/10/2020:
  10.     + This scrip had filtering enabled (i had typo lol)
  11.      21/9/2020:
  12.     + mouse.UnitRay.Direction has been changed to mouse.Hit.lookVector from better sensibility.
  13.     + Changed 30% of better sensibility.
  14.      
  15.      20/9/2020:
  16.     + Fixed an bug when you're reseting your legs.
  17.    
  18.      17/9/2020:
  19.     + Added moving legs.
  20.      
  21.      13/9/2020:
  22.     + Added teleport tool.
  23.      
  24.      12/9/2020:
  25.     + mouse.Hit.lookVector has been changed to mouse.UnitRay.Direction
  26.     + Now you can only move the head from 420º (degrees).
  27.     + Repositioned moving arms when reset tool is equipped.
  28.      
  29.      10/9/2020:
  30.     + Added moving head from special hits!
  31.     + Better sensibility with math.rad()
  32.     - Removed debris service, sorry...
  33.      
  34.      09/9/2020:  
  35.     + Repositioned moving arms and reset arms.
  36.  
  37.      07/9/2020:
  38.     + Added reset tool from the special day!
  39.     + New version update!
  40.  
  41.      04/9/2020:
  42.     + Revamped Move Arms from a special hits!
  43.     + Better Sensibility is now improved!
  44.     + Positioned arms and smoothly moving arms.
  45.      
  46.      02/9/2020:
  47.     + SENSIBILITY UPDATE / SETTINGS UPDATE
  48.      
  49.      01/9/2020:
  50.     + Initial paste release
  51. ]]
  52.  
  53. --FE Script
  54.     local NetworkAccess = coroutine.create(function()
  55.         settings().Physics.AllowSleep = false
  56.         while true do
  57.             game:GetService('RunService').RenderStepped:Wait()
  58.             for _, players in pairs(game.Players:GetChildren()) do
  59.                 if players ~= game.Players.LocalPlayer then
  60.                     players.MaximumSimulationRadius = 0.1
  61.                     players.SimulationRadius = 0
  62.                 end
  63.             end
  64.             plr.MaximumSimulationRadius = math.pow(math.huge, math.huge)
  65.             plr.SimulationRadius = math.huge * math.huge
  66.         end
  67.     end)
  68.     coroutine.resume(NetworkAccess)
  69.  
  70. -- SETTINGS
  71.  
  72. local ToolDroppable = false
  73.  
  74. local toolName = { -- Customize the tool name later...
  75.  
  76.     ["LeftArm"] = "Left Arm",
  77.     ["RightArm"] = "Right Arm",
  78.     ["Head"] = "Head",
  79.     ["LeftLeg"] = "Left Leg",
  80.     ["RightLeg"] = "Right Leg",
  81.     ["Teleport"] = "Teleporter",
  82.  
  83. }
  84.  
  85. local toolTip = { -- Customize the tool tip later...
  86.  
  87.     ["LeftArm"] = "Moves your left arm freely",
  88.     ["RightArm"] = "Moves your right arm freely",
  89.     ["LeftLeg"] = "Moves your left leg freely",
  90.     ["RightLeg"] = "Moves your right leg freely",
  91.     ["Head"] = "Moves your head freely",
  92.     ["Teleport"] = "Teleports you by clicking on the mouse",
  93.  
  94. }
  95.  
  96. local Texture = { -- Customize the texture later...
  97.  
  98.     ["LeftArm"] = "rbxassetid://415644845",
  99.     ["RightArm"] = "rbxassetid://634495580",
  100.     ["LeftLeg"] = "rbxassetid://25277847",
  101.     ["RightLeg"] = "rbxassetid://25277893",
  102.     ["Head"] = "rbxassetid://9573272",
  103.     ["Teleport"] = "rbxassetid://4799887091",
  104.  
  105. }
  106.  
  107. --SERVICES
  108.  
  109. local playerService = game:GetService("Players")
  110.  
  111. --LOCALS
  112.  
  113. local player = playerService.LocalPlayer
  114. local character = player.Character
  115. local mouse = player:GetMouse()
  116.  
  117. local canBeUsed = 0
  118.  
  119. --BODY PARTS
  120.  
  121. local BodyParts = {
  122.  
  123.     ["LeftArm"] = character["Left Arm"],
  124.     ["RightArm"] = character["Right Arm"],
  125.     ["Torso"] = character["Torso"],
  126.     ["HumanoidRootPart"] = character.HumanoidRootPart,
  127.  
  128. }
  129.  
  130. local Motor6D = {
  131.  
  132.     ["LeftShoulder"] = character.Torso["Left Shoulder"],
  133.     ["Neck"] = character.Torso.Neck,
  134.     ["RightShoulder"] = character.Torso["Right Shoulder"],
  135.     ["LeftHip"] = character.Torso["Left Hip"],
  136.     ["RightHip"] = character.Torso["Right Hip"],
  137.  
  138. }
  139.  
  140. --INSTANCES
  141.  
  142. local LArm = Instance.new("Tool", player.Backpack)
  143. LArm.Name = toolName.LeftArm
  144. LArm.ToolTip = toolTip.LeftArm
  145. LArm.RequiresHandle = false
  146. LArm.TextureId = Texture.LeftArm
  147.  
  148. local LLeg = Instance.new("Tool", player.Backpack)
  149. LLeg.Name = toolName.LeftLeg
  150. LLeg.ToolTip = toolTip.LeftLeg
  151. LLeg.RequiresHandle = false
  152. LLeg.TextureId = Texture.LeftLeg
  153.  
  154. local RLeg = Instance.new("Tool", player.Backpack)
  155. RLeg.Name = toolName.RightLeg
  156. RLeg.ToolTip = toolTip.RightLeg
  157. RLeg.RequiresHandle = false
  158. RLeg.TextureId = Texture.RightLeg
  159.  
  160. local RArm = Instance.new("Tool", player.Backpack)
  161. RArm.Name = toolName.RightArm
  162. RArm.ToolTip = toolTip.RightArm
  163. RArm.RequiresHandle = false
  164. RArm.TextureId = Texture.RightArm
  165.  
  166. local Neck = Instance.new("Tool", player.Backpack)
  167. Neck.Name = toolName.Head
  168. Neck.ToolTip = toolTip.Head
  169. Neck.RequiresHandle = false
  170. Neck.TextureId = Texture.Head
  171.  
  172. local teleTool = Instance.new("Tool", player.Backpack)
  173. teleTool.Name = toolName.Teleport
  174. teleTool.ToolTip = toolTip.Teleport
  175. teleTool.TextureId = Texture.Teleport
  176. teleTool.RequiresHandle = false
  177.  
  178. local resetTool = Instance.new("Tool", player.Backpack)
  179. resetTool.Name = "Reset"
  180. resetTool.ToolTip = "Resets your body when your arms had problems."
  181. resetTool.RequiresHandle = false
  182.  
  183.  
  184. --SETUP
  185.  
  186. if ToolDroppable then
  187.     LArm.CanBeDropped = true
  188.     RArm.CanBeDropped = true
  189. else
  190.     LArm.CanBeDropped = false
  191.     RArm.CanBeDropped = false
  192. end
  193.  
  194. LArm.Equipped:Connect(function()
  195.     canBeUsed = 1
  196.     while true do
  197.         wait()
  198.         if canBeUsed == 1 then
  199.             Motor6D.LeftShoulder.C0 = CFrame.new(-2, 0.5, 0) * CFrame.Angles(mouse.Hit.lookVector.X + mouse.Origin.lookVector.X + math.rad(0), mouse.Hit.lookVector.Y + mouse.Origin.lookVector.Y + math.rad(90), mouse.Hit.lookVector.Z + mouse.Origin.lookVector.Z + math.rad(0))
  200.         else
  201.             break
  202.         end
  203.     end
  204. end)
  205.  
  206. LLeg.Equipped:Connect(function()
  207.     canBeUsed = 1
  208.     while true do
  209.         wait()
  210.         if canBeUsed == 1 then
  211.             Motor6D.LeftHip.C0 = CFrame.new(-0.03, -1, 0) * CFrame.Angles(mouse.Hit.lookVector.X + mouse.Origin.lookVector.X + math.rad(0), mouse.Hit.lookVector.Y + mouse.Origin.lookVector.Y + math.rad(90), mouse.Hit.lookVector.Z + mouse.Origin.lookVector.Z + math.rad(0))
  212.         else
  213.             break
  214.         end
  215.     end
  216. end)
  217.  
  218. LArm.Unequipped:Connect(function()
  219.     canBeUsed = 0
  220. end)
  221.  
  222. LLeg.Unequipped:Connect(function()
  223.     canBeUsed = 0
  224. end)
  225.  
  226. RArm.Equipped:Connect(function()
  227.     canBeUsed = 1
  228.     while true do
  229.         wait()
  230.         if canBeUsed == 1 then
  231.             Motor6D.RightShoulder.C0 = CFrame.new(2, 0.5, 0) * CFrame.Angles(mouse.Hit.lookVector.X + mouse.Origin.lookVector.X + math.rad(0), mouse.Hit.lookVector.Y + mouse.Origin.lookVector.Y + math.rad(90), mouse.Hit.lookVector.Z + mouse.Origin.lookVector.Z + math.rad(0))
  232.         else
  233.             break
  234.         end
  235.     end
  236. end)
  237.  
  238. RLeg.Equipped:Connect(function()
  239.     canBeUsed = 1
  240.     while true do
  241.         wait()
  242.         if canBeUsed == 1 then
  243.             Motor6D.RightHip.C0 = CFrame.new(0.03, -1, 0) * CFrame.Angles(mouse.Hit.lookVector.X + mouse.Origin.lookVector.X + math.rad(0), mouse.Hit.lookVector.Y + mouse.Origin.lookVector.Y + math.rad(-90), mouse.Hit.lookVector.Z + mouse.Origin.lookVector.Z + math.rad(0))
  244.         else
  245.             break
  246.         end
  247.     end
  248. end)
  249.  
  250. RArm.Unequipped:Connect(function()
  251.     canBeUsed = 0
  252. end)
  253.  
  254. RLeg.Unequipped:Connect(function()
  255.     canBeUsed = 0
  256. end)
  257.  
  258. resetTool.Equipped:Connect(function()
  259.     Motor6D.RightShoulder.C0 = CFrame.new(0.993, 0.5, 0) * CFrame.Angles(math.rad(0), math.rad(90), math.rad(0))
  260.     Motor6D.LeftShoulder.C0 = CFrame.new(-0.993, 0.5, 0) * CFrame.Angles(math.rad(0), math.rad(-90), math.rad(0))
  261.     Motor6D.Neck.C1 = CFrame.new(0, -0.5, 0) * CFrame.Angles(math.rad(90), math.rad(180), math.rad(0))
  262.     Motor6D.RightHip.C0 = CFrame.new(1, -1, 0) * CFrame.Angles(math.rad(0), math.rad(90), math.rad(0))
  263.     Motor6D.LeftHip.C0 = CFrame.new(-1, -1, 0) * CFrame.Angles(math.rad(0), math.rad(-90), math.rad(0))
  264. end)
  265.  
  266. Neck.Equipped:Connect(function()
  267.     canBeUsed = 1
  268.     while true do
  269.         wait()
  270.         if canBeUsed == 1 then
  271.             Motor6D.Neck.C1 = CFrame.new(0, -0.5, 0) * CFrame.Angles(mouse.UnitRay.Direction.X + math.rad(90), mouse.UnitRay.Direction.Y + math.rad(180), mouse.UnitRay.Direction.Z + math.rad(420))
  272.         else
  273.             break
  274.         end
  275.     end
  276. end)
  277.  
  278. Neck.Unequipped:Connect(function()
  279.     canBeUsed = 0
  280. end)
  281.  
  282. teleTool.Activated:Connect(function()
  283.     character:MoveTo(Vector3.new(mouse.Hit.p.X, mouse.Hit.p.Y, mouse.Hit.p.Z))
  284. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement