Wweroblox12121212

Untitled

Feb 25th, 2018
667
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.32 KB | None | 0 0
  1. --By Rufus14
  2. mouse = game.Players.LocalPlayer:GetMouse()
  3. rig = game.Players.LocalPlayer.Character.Torso
  4. game.Players.LocalPlayer.Character.Animate:destroy()
  5. run = Instance.new("Sound", game.Players.LocalPlayer.Character.Head)
  6. run.SoundId = "rbxassetid://142665235"
  7. run.Volume = 0
  8. run.Looped = true
  9. run:Play()
  10. run.PlaybackSpeed = 1.2
  11. print(rig["Left Hip"].C0)
  12. print(rig["Right Hip"].C0)
  13. cart = Instance.new("Part", rig)
  14. cart.CanCollide = false
  15. weld = Instance.new("Weld", cart)
  16. weld.Part0 = cart
  17. weld.Part1 = rig
  18. mesh = Instance.new("SpecialMesh", cart)
  19. mesh.MeshId = "rbxassetid://552693518"
  20. mesh.TextureId = "rbxassetid://552693524"
  21. mesh.Scale = Vector3.new(7.2,7,8)
  22. weld.C0 = weld.C0 * CFrame.new(0,1,4.2)
  23. walking = true
  24. game.Players.LocalPlayer.Character.Humanoid.WalkSpeed = 25
  25. for i = 1,20 do
  26. wait()
  27. rig["Left Shoulder"].C0 = rig["Left Shoulder"].C0 * CFrame.Angles(0,0,-0.08)
  28. rig["Right Shoulder"].C0 = rig["Right Shoulder"].C0 * CFrame.Angles(0,0,0.08)
  29. end
  30. function walk(key)
  31. key = key:lower()
  32. if key == "w" then
  33. walking = true
  34. run.Volume = 10
  35. if walking == true then
  36. wait()
  37. for i = 1,5 do
  38. rig["Left Hip"].C0 = rig["Left Hip"].C0 * CFrame.Angles(0,0,-0.2)
  39. rig["Right Hip"].C0 = rig["Right Hip"].C0 * CFrame.Angles(0,0,-0.2)
  40. end
  41. while walking == true do
  42. for i = 1,5 do
  43. wait()
  44. rig["Left Hip"].C0 = rig["Left Hip"].C0 * CFrame.Angles(0,0,0.4)
  45. rig["Right Hip"].C0 = rig["Right Hip"].C0 * CFrame.Angles(0,0,0.4)
  46. end
  47. for i = 1,5 do
  48. wait()
  49. rig["Left Hip"].C0 = rig["Left Hip"].C0 * CFrame.Angles(0,0,-0.4)
  50. rig["Right Hip"].C0 = rig["Right Hip"].C0 * CFrame.Angles(0,0,-0.4)
  51. end
  52. end
  53. end
  54. end
  55. end
  56. mouse.KeyDown:connect(walk)
  57. function notwalk(key)
  58. key = key:lower()
  59. if key == "w" then
  60. walking = false
  61. run.Volume = 0
  62. for i = 1,10 do
  63. wait()
  64. rig["Left Hip"].C0 = CFrame.new(-1, -1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  65. rig["Right Hip"].C0 = CFrame.new(1, -1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  66. end
  67. end
  68. end
  69. mouse.KeyUp:connect(notwalk)
  70. ---------------------------------
  71. walking1 = false
  72. function walk1(key)
  73. key = key:lower()
  74. if key == "d" then
  75. walking1 = true
  76. if walking1 == true then
  77. wait()
  78. run.Volume = 10
  79. for i = 1,5 do
  80. rig["Left Hip"].C0 = rig["Left Hip"].C0 * CFrame.Angles(0,0,-0.2)
  81. rig["Right Hip"].C0 = rig["Right Hip"].C0 * CFrame.Angles(0,0,-0.2)
  82. end
  83. while walking1 == true do
  84. for i = 1,5 do
  85. wait()
  86. rig["Left Hip"].C0 = rig["Left Hip"].C0 * CFrame.Angles(0,0,0.4)
  87. rig["Right Hip"].C0 = rig["Right Hip"].C0 * CFrame.Angles(0,0,0.4)
  88. end
  89. for i = 1,5 do
  90. wait()
  91. rig["Left Hip"].C0 = rig["Left Hip"].C0 * CFrame.Angles(0,0,-0.4)
  92. rig["Right Hip"].C0 = rig["Right Hip"].C0 * CFrame.Angles(0,0,-0.4)
  93. end
  94. end
  95. end
  96. end
  97. end
  98. mouse.KeyDown:connect(walk1)
  99. function notwalk1(key)
  100. key = key:lower()
  101. if key == "d" then
  102. walking1 = false
  103. run.Volume = 0
  104. for i = 1,10 do
  105. wait()
  106. rig["Left Hip"].C0 = CFrame.new(-1, -1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  107. rig["Right Hip"].C0 = CFrame.new(1, -1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  108. end
  109. end
  110. end
  111. mouse.KeyUp:connect(notwalk1)
  112. ------------------------------------------
  113. walking2 = false
  114. function walk2(key)
  115. key = key:lower()
  116. if key == "a" then
  117. walking2 = true
  118. run.Volume = 10
  119. if walking2 == true then
  120. wait()
  121. for i = 1,5 do
  122. rig["Left Hip"].C0 = rig["Left Hip"].C0 * CFrame.Angles(0,0,-0.2)
  123. rig["Right Hip"].C0 = rig["Right Hip"].C0 * CFrame.Angles(0,0,-0.2)
  124. end
  125. while walking2 == true do
  126. for i = 1,5 do
  127. wait()
  128. rig["Left Hip"].C0 = rig["Left Hip"].C0 * CFrame.Angles(0,0,0.4)
  129. rig["Right Hip"].C0 = rig["Right Hip"].C0 * CFrame.Angles(0,0,0.4)
  130. end
  131. for i = 1,5 do
  132. wait()
  133. rig["Left Hip"].C0 = rig["Left Hip"].C0 * CFrame.Angles(0,0,-0.4)
  134. rig["Right Hip"].C0 = rig["Right Hip"].C0 * CFrame.Angles(0,0,-0.4)
  135. end
  136. end
  137. end
  138. end
  139. end
  140. mouse.KeyDown:connect(walk2)
  141. function notwalk2(key)
  142. key = key:lower()
  143. if key == "a" then
  144. walking2 = false
  145. run.Volume = 0
  146. for i = 1,10 do
  147. wait()
  148. rig["Left Hip"].C0 = CFrame.new(-1, -1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  149. rig["Right Hip"].C0 = CFrame.new(1, -1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  150. end
  151. end
  152. end
  153. mouse.KeyUp:connect(notwalk2)
  154. ----------------------------------------------------
  155. walking3 = false
  156. function walk3(key)
  157. key = key:lower()
  158. if key == "s" then
  159. walking3 = true
  160. run.Volume = 10
  161. if walking3 == true then
  162. wait()
  163. for i = 1,5 do
  164. rig["Left Hip"].C0 = rig["Left Hip"].C0 * CFrame.Angles(0,0,-0.2)
  165. rig["Right Hip"].C0 = rig["Right Hip"].C0 * CFrame.Angles(0,0,-0.2)
  166. end
  167. while walking3 == true do
  168. for i = 1,5 do
  169. wait()
  170. rig["Left Hip"].C0 = rig["Left Hip"].C0 * CFrame.Angles(0,0,0.4)
  171. rig["Right Hip"].C0 = rig["Right Hip"].C0 * CFrame.Angles(0,0,0.4)
  172. end
  173. for i = 1,5 do
  174. wait()
  175. rig["Left Hip"].C0 = rig["Left Hip"].C0 * CFrame.Angles(0,0,-0.4)
  176. rig["Right Hip"].C0 = rig["Right Hip"].C0 * CFrame.Angles(0,0,-0.4)
  177. end
  178. end
  179. end
  180. end
  181. end
  182. mouse.KeyDown:connect(walk3)
  183. function notwalk3(key)
  184. key = key:lower()
  185. if key == "s" then
  186. walking3 = false
  187. run.Volume = 0
  188. for i = 1,10 do
  189. wait()
  190. rig["Left Hip"].C0 = CFrame.new(-1, -1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  191. rig["Right Hip"].C0 = CFrame.new(1, -1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  192. end
  193. end
  194. end
  195. mouse.KeyUp:connect(notwalk3)
  196. grabbing = true
  197. function grab1(cart1)
  198. if grabbing == true then
  199. local torso = cart1.Parent:findFirstChild("Torso")
  200. if torso ~= nil then
  201. local hum = cart1.Parent:findFirstChild("Humanoid")
  202. if hum ~= nil then
  203. hum.PlatformStand = true
  204. local weld1 = Instance.new("Weld", torso)
  205. weld1.Part0 = torso
  206. weld1.Part1 = cart
  207. weld1.C0 = weld1.C0 * CFrame.Angles(-8,0,1.2) * CFrame.new(0,-1.4,0)
  208. end
  209. end
  210. end
  211. end
  212. cart.Touched:connect(grab1)
Add Comment
Please, Sign In to add comment