Advertisement
MarcAndrew

Untitled

Mar 25th, 2018
150
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.84 KB | None | 0 0
  1. Player = game:GetService("Players").LocalPlayer
  2.  
  3. local rm = Instance.new("Motor", torso)
  4. rm.C0 = CFrame.new(1.5, 0.5, 0)
  5. rm.C1 = CFrame.new(0, 0.5, 0)
  6. rm.Part0 = torso
  7. rm.Part1 = ra
  8. rm.Name = 'Right Shoulder'
  9.  
  10. local lm = Instance.new("Motor", torso)
  11. lm.C0 = CFrame.new(-1.5, 0.5, 0)
  12. lm.C1 = CFrame.new(0, 0.5, 0)
  13. lm.Part0 = torso
  14. lm.Part1 = la
  15. lm.Name = 'Left Shoulder'
  16.  
  17. local rlegm = Instance.new("Motor", torso)
  18. rlegm.C0 = CFrame.new(0.5, -1, 0)
  19. rlegm.C1 = CFrame.new(0, 1, 0)
  20. rlegm.Part0 = torso
  21. rlegm.Part1 = rl
  22. local llegm = Instance.new("Motor", torso)
  23. llegm.C0 = CFrame.new(-0.5, -1, 0)
  24. llegm.C1 = CFrame.new(0, 1, 0)
  25. llegm.Part0 = torso
  26. llegm.Part1 = ll
  27.  
  28. rj.C0 = CFrame.new()
  29. rj.C1 = CFrame.new()
  30.  
  31. neck.C0 = CFrame.new(0, 1, 0)
  32. neck.C1 = CFrame.new(0, -0.5, 0)
  33.  
  34. local speed = 0.3
  35. local angle = 0
  36. local anglespeed = 1
  37. rsc0 = rm.C0
  38. lsc0 = lm.C0
  39. llc0 = llegm.C0
  40. rlc0 = rlegm.C0
  41. rootc0 = rj.C0
  42. neckc0 = neck.C0
  43. ----------------------------------------------
  44. wait()
  45. function descend(obj,class,func)
  46. for i,v in pairs(obj:GetChildren()) do
  47. if v:IsA(class) then
  48. func(v)
  49. end
  50. descend(v,class,func)
  51. end
  52. end
  53. local pls = game:GetService("Players").LocalPlayer
  54. function initiateCharacter(char)
  55. if not char then return end
  56. wait()
  57. descend(char,"BasePart",function(obj)
  58. obj.Anchored = false
  59. obj.Changed:connect(function()
  60. if obj.Anchored then
  61. obj.Anchored = false
  62. end
  63. end)
  64. end)
  65. descend(char,"Humanoid",function(obj)
  66. obj.WalkSpeed = 16
  67. obj.Changed:connect(function()
  68. if obj.WalkSpeed == 0 then
  69. obj.WalkSpeed = 16
  70. end
  71. end)
  72. end)
  73. end
  74. initiateCharacter(pls.Character)
  75. pls.CharacterAdded:connect(function(c)
  76. initiateCharacter(c)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement