Advertisement
cobblecorn

Untitled

Jun 1st, 2018
138
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.41 KB | None | 0 0
  1. --By Rufus14
  2.  
  3. Character = game.Players.LocalPlayer.Character
  4. Head = Character.Head
  5.  
  6. CV="Pink"
  7. p = game.Players.LocalPlayer
  8. char = p.Character
  9. local txt = Instance.new("BillboardGui", char)
  10. txt.Adornee = char .Head
  11. txt.Name = "_status"
  12. txt.Size = UDim2.new(2, 0, 1.2, 0)
  13. txt.StudsOffset = Vector3.new(-9, 8, 0)
  14. local text = Instance.new("TextLabel", txt)
  15. text.Size = UDim2.new(10, 0, 7, 0)
  16. text.FontSize = "Size24"
  17. text.TextScaled = true
  18. text.TextTransparency = 0
  19. text.BackgroundTransparency = 1
  20. text.TextTransparency = 0
  21. text.TextStrokeTransparency = 0
  22. text.Font = "Legacy"
  23. text.TextStrokeColor3 = Color3.new(255,20,147)
  24.  
  25. v=Instance.new("Part")
  26. v.Name = "ColorBrick"
  27. v.Parent=p.Character
  28. v.FormFactor="Symmetric"
  29. v.Anchored=true
  30. v.CanCollide=false
  31. v.BottomSurface="Smooth"
  32. v.TopSurface="Smooth"
  33. v.Size=Vector3.new(10,5,3)
  34. v.Transparency=1
  35. v.CFrame=char.Torso.CFrame
  36. v.BrickColor=BrickColor.new(CV)
  37. v.Transparency=1
  38. text.TextColor3 = Color3.new(255,20,147)
  39. v.Shape="Block"
  40. text.Text = "Shopping Kart Demon"
  41.  
  42. local s = Instance.new("Sound",char)
  43. s.Name = "BGMusic"
  44. s.SoundId = "rbxassetid://1240042165"
  45. s.Pitch = 1
  46. s.Volume = 10
  47. s.Looped = true
  48. s.archivable = false
  49. s.Parent = char.Head
  50. wait(0.1)
  51. s:play()
  52.  
  53. mouse = game.Players.LocalPlayer:GetMouse()
  54. rig = game.Players.LocalPlayer.Character.Torso
  55. game.Players.LocalPlayer.Character.Animate:destroy()
  56. print(rig["Left Hip"].C0)
  57. print(rig["Right Hip"].C0)
  58. cart = Instance.new("Part", rig)
  59. cart.CanCollide = false
  60. weld = Instance.new("Weld", cart)
  61. weld.Part0 = cart
  62. weld.Part1 = rig
  63. mesh = Instance.new("SpecialMesh", cart)
  64. mesh.MeshId = "rbxassetid://552693518"
  65. mesh.TextureId = "rbxassetid://552693524"
  66. mesh.Scale = Vector3.new(7.2,7,8)
  67. weld.C0 = weld.C0 * CFrame.new(0,1,4.2)
  68. walking = true
  69. game.Players.LocalPlayer.Character.Humanoid.WalkSpeed = 25
  70. for i = 1,20 do
  71. wait()
  72. rig["Left Shoulder"].C0 = rig["Left Shoulder"].C0 * CFrame.Angles(0,0,-0.08)
  73. rig["Right Shoulder"].C0 = rig["Right Shoulder"].C0 * CFrame.Angles(0,0,0.08)
  74. end
  75. function walk(key)
  76. key = key:lower()
  77. if key == "w" then
  78. walking = true
  79. run.Volume = 10
  80. if walking == true then
  81. wait()
  82. for i = 1,5 do
  83. rig["Left Hip"].C0 = rig["Left Hip"].C0 * CFrame.Angles(0,0,-0.2)
  84. rig["Right Hip"].C0 = rig["Right Hip"].C0 * CFrame.Angles(0,0,-0.2)
  85. end
  86. while walking == true do
  87. for i = 1,5 do
  88. wait()
  89. rig["Left Hip"].C0 = rig["Left Hip"].C0 * CFrame.Angles(0,0,0.4)
  90. rig["Right Hip"].C0 = rig["Right Hip"].C0 * CFrame.Angles(0,0,0.4)
  91. end
  92. for i = 1,5 do
  93. wait()
  94. rig["Left Hip"].C0 = rig["Left Hip"].C0 * CFrame.Angles(0,0,-0.4)
  95. rig["Right Hip"].C0 = rig["Right Hip"].C0 * CFrame.Angles(0,0,-0.4)
  96. end
  97. end
  98. end
  99. end
  100. end
  101. mouse.KeyDown:connect(walk)
  102. function notwalk(key)
  103. key = key:lower()
  104. if key == "w" then
  105. walking = false
  106. run.Volume = 0
  107. for i = 1,10 do
  108. wait()
  109. rig["Left Hip"].C0 = CFrame.new(-1, -1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  110. rig["Right Hip"].C0 = CFrame.new(1, -1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  111. end
  112. end
  113. end
  114. mouse.KeyUp:connect(notwalk)
  115. ---------------------------------
  116. walking1 = false
  117. function walk1(key)
  118. key = key:lower()
  119. if key == "d" then
  120. walking1 = true
  121. if walking1 == true then
  122. wait()
  123. run.Volume = 10
  124. for i = 1,5 do
  125. rig["Left Hip"].C0 = rig["Left Hip"].C0 * CFrame.Angles(0,0,-0.2)
  126. rig["Right Hip"].C0 = rig["Right Hip"].C0 * CFrame.Angles(0,0,-0.2)
  127. end
  128. while walking1 == true do
  129. for i = 1,5 do
  130. wait()
  131. rig["Left Hip"].C0 = rig["Left Hip"].C0 * CFrame.Angles(0,0,0.4)
  132. rig["Right Hip"].C0 = rig["Right Hip"].C0 * CFrame.Angles(0,0,0.4)
  133. end
  134. for i = 1,5 do
  135. wait()
  136. rig["Left Hip"].C0 = rig["Left Hip"].C0 * CFrame.Angles(0,0,-0.4)
  137. rig["Right Hip"].C0 = rig["Right Hip"].C0 * CFrame.Angles(0,0,-0.4)
  138. end
  139. end
  140. end
  141. end
  142. end
  143. mouse.KeyDown:connect(walk1)
  144. function notwalk1(key)
  145. key = key:lower()
  146. if key == "d" then
  147. walking1 = false
  148. run.Volume = 0
  149. for i = 1,10 do
  150. wait()
  151. rig["Left Hip"].C0 = CFrame.new(-1, -1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  152. rig["Right Hip"].C0 = CFrame.new(1, -1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  153. end
  154. end
  155. end
  156. mouse.KeyUp:connect(notwalk1)
  157. ------------------------------------------
  158. walking2 = false
  159. function walk2(key)
  160. key = key:lower()
  161. if key == "a" then
  162. walking2 = true
  163. run.Volume = 10
  164. if walking2 == true then
  165. wait()
  166. for i = 1,5 do
  167. rig["Left Hip"].C0 = rig["Left Hip"].C0 * CFrame.Angles(0,0,-0.2)
  168. rig["Right Hip"].C0 = rig["Right Hip"].C0 * CFrame.Angles(0,0,-0.2)
  169. end
  170. while walking2 == true do
  171. for i = 1,5 do
  172. wait()
  173. rig["Left Hip"].C0 = rig["Left Hip"].C0 * CFrame.Angles(0,0,0.4)
  174. rig["Right Hip"].C0 = rig["Right Hip"].C0 * CFrame.Angles(0,0,0.4)
  175. end
  176. for i = 1,5 do
  177. wait()
  178. rig["Left Hip"].C0 = rig["Left Hip"].C0 * CFrame.Angles(0,0,-0.4)
  179. rig["Right Hip"].C0 = rig["Right Hip"].C0 * CFrame.Angles(0,0,-0.4)
  180. end
  181. end
  182. end
  183. end
  184. end
  185. mouse.KeyDown:connect(walk2)
  186. function notwalk2(key)
  187. key = key:lower()
  188. if key == "a" then
  189. walking2 = false
  190. run.Volume = 0
  191. for i = 1,10 do
  192. wait()
  193. rig["Left Hip"].C0 = CFrame.new(-1, -1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  194. rig["Right Hip"].C0 = CFrame.new(1, -1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  195. end
  196. end
  197. end
  198. mouse.KeyUp:connect(notwalk2)
  199. ----------------------------------------------------
  200. walking3 = false
  201. function walk3(key)
  202. key = key:lower()
  203. if key == "s" then
  204. walking3 = true
  205. run.Volume = 10
  206. if walking3 == true then
  207. wait()
  208. for i = 1,5 do
  209. rig["Left Hip"].C0 = rig["Left Hip"].C0 * CFrame.Angles(0,0,-0.2)
  210. rig["Right Hip"].C0 = rig["Right Hip"].C0 * CFrame.Angles(0,0,-0.2)
  211. end
  212. while walking3 == true do
  213. for i = 1,5 do
  214. wait()
  215. rig["Left Hip"].C0 = rig["Left Hip"].C0 * CFrame.Angles(0,0,0.4)
  216. rig["Right Hip"].C0 = rig["Right Hip"].C0 * CFrame.Angles(0,0,0.4)
  217. end
  218. for i = 1,5 do
  219. wait()
  220. rig["Left Hip"].C0 = rig["Left Hip"].C0 * CFrame.Angles(0,0,-0.4)
  221. rig["Right Hip"].C0 = rig["Right Hip"].C0 * CFrame.Angles(0,0,-0.4)
  222. end
  223. end
  224. end
  225. end
  226. end
  227. mouse.KeyDown:connect(walk3)
  228. function notwalk3(key)
  229. key = key:lower()
  230. if key == "s" then
  231. walking3 = false
  232. run.Volume = 0
  233. for i = 1,10 do
  234. wait()
  235. rig["Left Hip"].C0 = CFrame.new(-1, -1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  236. rig["Right Hip"].C0 = CFrame.new(1, -1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  237. end
  238. end
  239. end
  240. mouse.KeyUp:connect(notwalk3)
  241. grabbing = true
  242. function grab1(cart1)
  243. if grabbing == true then
  244. local torso = cart1.Parent:findFirstChild("Torso")
  245. if torso ~= nil then
  246. local hum = cart1.Parent:findFirstChild("Humanoid")
  247. if hum ~= nil then
  248. hum.PlatformStand = true
  249. local weld1 = Instance.new("Weld", torso)
  250. weld1.Part0 = torso
  251. weld1.Part1 = cart
  252. weld1.C0 = weld1.C0 * CFrame.Angles(-8,0,1.2) * CFrame.new(0,-1.4,0)
  253. end
  254. end
  255. end
  256. end
  257. cart.Touched:connect(grab1)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement