Advertisement
cobblecorn

Untitled

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