Advertisement
zephpsian

Untitled

Sep 9th, 2019
141
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.05 KB | None | 0 0
  1. local plr = nil
  2. for i,v in pairs(game:GetService("Players"):GetPlayers()) do
  3. if v.Name == "G_osty" then
  4. plr = v
  5. end
  6. end
  7. local p = plr.Character
  8. local Torso = p:findFirstChild("Torso")
  9. local Head = p:findFirstChild("Head")
  10. local RightArm = p:findFirstChild("Right Arm")
  11. local LeftArm = p:findFirstChild("Left Arm")
  12. local RightLeg = p:findFirstChild("Right Leg")
  13. local LeftLeg = p:findFirstChild("Left Leg")
  14. local Root = p:FindFirstChild("HumanoidRootPart")
  15. local Neck = Instance.new("Weld",Torso)
  16. Neck.Part0 = Torso
  17. Neck.Part1 = Head
  18. local RootWeld = Instance.new("Weld",Torso)
  19. RootWeld.Part0 = Root
  20. RootWeld.Part1 = Torso
  21. Neck.C0 = CFrame.new(0,1.5,0)
  22. local Sine = 0
  23. function Example()
  24. Sine = Sine+1
  25. Neck.C0 = Neck.C0:Lerp(CFrame.new(0,1.5,0)*CFrame.Angles(math.rad(4*math.cos(Sine/20)),math.rad(0),math.rad(0)),.15)
  26. if Sine>= 999999999610 then
  27. Sine = 0
  28. end
  29. end
  30. game:GetService("RunService").Heartbeat:Connect(Example)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement