Advertisement
zephpsian

Untitled

Sep 14th, 2019
193
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.46 KB | None | 0 0
  1. local plr = game.Players.G_osty
  2.  
  3. local p = plr.Character
  4. local Torso = p:findFirstChild("Torso")
  5. local Head = p:findFirstChild("Head")
  6. local RightArm = p:findFirstChild("Right Arm")
  7. local LeftArm = p:findFirstChild("Left Arm")
  8. local RightLeg = p:findFirstChild("Right Leg")
  9. local LeftLeg = p:findFirstChild("Left Leg")
  10. local Root = p:FindFirstChild("HumanoidRootPart")
  11.  
  12. local Neck = Instance.new("Weld",Torso)
  13. Neck.Part0 = Torso
  14. Neck.Part1 = Head
  15. local RightShoulder = Instance.new("Weld", RightArm)
  16. RightShoulder.Part0 = Torso
  17. RightShoulder.Part1 = RightArm
  18. local LeftShoulder = Instance.new("Weld", LeftArm)
  19. LeftShoulder.Part0 = Torso
  20. LeftShoulder.Part1 = LeftArm
  21. local RootWeld = Instance.new("Weld",Torso)
  22. RootWeld.Part0 = Root
  23. RootWeld.Part1 = Torso
  24. local RightHip = Instance.new("Weld", Torso)
  25. RightHip.Part0 = Torso
  26. RightHip.Part1 = RightLeg
  27. local LeftHip = Instance.new("Weld", Torso)
  28. LeftHip.Part0 = Torso
  29. LeftHip.Part1 = LeftLeg
  30. Neck.C0 = CFrame.new(0,1.5,0)
  31. RightShoulder.C0 = CFrame.new(1.5,0,0)
  32. LeftShoulder.C0 = CFrame.new(-1.5,0,0)
  33. RightHip.C0 = CFrame.new(0.5,-2,0)
  34. LeftHip.C0 = CFrame.new(-0.5,-2,0)
  35.  
  36. local Sine = 0
  37.  
  38. --math.rad(4*math.cos(Sine/40)) i put this here for copying
  39.  
  40. --animation part:
  41.  
  42. function Idle()
  43. Sine = Sine + 1
  44.  
  45. Neck.C0 = Neck.C0:Lerp(CFrame.new(0,1.5,0) * CFrame.Angles(math.rad(4*math.cos(Sine/40)),0,0),1)
  46. end
  47.  
  48. game:GetService("RunService").Heartbeat:Connect(function()
  49. Idle()
  50. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement