Advertisement
MarcAndrew

Untitled

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