Advertisement
Guest User

Untitled

a guest
May 29th, 2015
241
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 1.85 KB | None | 0 0
  1. --[[
  2.     Made by YellowTide please at least leave this in here
  3.     4/10/15
  4.     Makes fake arms welds them to the real ones. Welds the arms together and a gun hold position and then modify a new weld to create the gun hold
  5. --]]
  6.  
  7. repeat wait() until game.Players.LocalPlayer
  8. local player = game.Players.LocalPlayer
  9. repeat wait() until player.Character
  10. local character = player.Character
  11. repeat wait() until character:FindFirstChild("Torso")
  12. repeat wait() until character:FindFirstChild("Humanoid")
  13.  
  14. local humanoid = character.Humanoid
  15. local animations = game.ReplicatedStorage.Animations
  16. local mouse = player:GetMouse()
  17. local camera = game.Workspace.CurrentCamera
  18. local torso = character:FindFirstChild("Torso")
  19. local leftArm = character:WaitForChild("Left Arm")
  20. local rightArm = character:WaitForChild("Right Arm")
  21.  
  22. local anim = humanoid:LoadAnimation(animations.StableArms)
  23. anim:Play()
  24.  
  25. local larm = leftArm:Clone()
  26. larm.Parent = camera
  27. local rarm = rightArm:Clone()
  28. rarm.Parent = camera
  29.  
  30. local weld = Instance.new("Motor6D", character)
  31. weld.Part0 = larm
  32. weld.Part1 = leftArm
  33.  
  34. local weld0 = Instance.new("Motor6D", character)
  35. weld0.Part0 = rarm
  36. weld0.Part1 = rightArm
  37.  
  38. game:GetService("RunService").RenderStepped:connect(function()
  39.     torso["Right Shoulder"].C0 = CFrame.new(1.5, 0.5, 0)
  40.     torso["Right Shoulder"].C1 = CFrame.Angles(math.rad(-90), 0, 0) * CFrame.new(0, 0, 0.5) * (CFrame.new((torso.CFrame * CFrame.new(1.5, 0, 0)).p,mouse.Hit.p)  - (torso.CFrame * CFrame.new(1.5, 0, 0)).p):inverse() * (torso.CFrame - torso.CFrame.p)
  41.    
  42.     torso["Left Shoulder"].C0 = CFrame.new(-1.5, 0.5, 0)
  43.     torso["Left Shoulder"].C1 = CFrame.Angles(math.rad(-90), 0, 0) * CFrame.new(0, 0, 0.5) * (CFrame.new((torso.CFrame * CFrame.new(-1.5, 0, 0)).p,mouse.Hit.p) - (torso.CFrame * CFrame.new(-1.5, 0, 0)).p):inverse() * (torso.CFrame - torso.CFrame.p)
  44. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement