Advertisement
cobblecorn

Untitled

May 31st, 2018
131
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.35 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(0,0,0)
  39. v.Shape="Block"
  40. text.Text = "Trolly Demon"
  41.  
  42. mouse = game.Players.LocalPlayer:GetMouse()
  43. rig = game.Players.LocalPlayer.Character.Torso
  44. game.Players.LocalPlayer.Character.Animate:destroy()
  45. run = Instance.new("Sound", game.Players.LocalPlayer.Character.Head)
  46. run.SoundId = "rbxassetid://1240042165"
  47. run.Volume = 10
  48. run.Looped = true
  49. run:Play()
  50. run.PlaybackSpeed = 1
  51. print(rig["Left Hip"].C0)
  52. print(rig["Right Hip"].C0)
  53. cart = Instance.new("Part", rig)
  54. cart.CanCollide = false
  55. weld = Instance.new("Weld", cart)
  56. weld.Part0 = cart
  57. weld.Part1 = rig
  58. mesh = Instance.new("SpecialMesh", cart)
  59. mesh.MeshId = "rbxassetid://552693518"
  60. mesh.TextureId = "rbxassetid://552693524"
  61. mesh.Scale = Vector3.new(7.2,7,8)
  62. weld.C0 = weld.C0 * CFrame.new(0,1,4.2)
  63. walking = true
  64. game.Players.LocalPlayer.Character.Humanoid.WalkSpeed = 25
  65. for i = 1,20 do
  66. wait()
  67. rig["Left Shoulder"].C0 = rig["Left Shoulder"].C0 * CFrame.Angles(0,0,-0.08)
  68. rig["Right Shoulder"].C0 = rig["Right Shoulder"].C0 * CFrame.Angles(0,0,0.08)
  69. end
  70. function walk(key)
  71. key = key:lower()
  72. if key == "w" then
  73. walking = true
  74. run.Volume = 10
  75. if walking == true then
  76. wait()
  77. for i = 1,5 do
  78. rig["Left Hip"].C0 = rig["Left Hip"].C0 * CFrame.Angles(0,0,-0.2)
  79. rig["Right Hip"].C0 = rig["Right Hip"].C0 * CFrame.Angles(0,0,-0.2)
  80. end
  81. while walking == true do
  82. for i = 1,5 do
  83. wait()
  84. rig["Left Hip"].C0 = rig["Left Hip"].C0 * CFrame.Angles(0,0,0.4)
  85. rig["Right Hip"].C0 = rig["Right Hip"].C0 * CFrame.Angles(0,0,0.4)
  86. end
  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. end
  93. end
  94. end
  95. end
  96. mouse.KeyDown:connect(walk)
  97. function notwalk(key)
  98. key = key:lower()
  99. if key == "w" then
  100. walking = false
  101. run.Volume = 0
  102. for i = 1,10 do
  103. wait()
  104. rig["Left Hip"].C0 = CFrame.new(-1, -1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  105. rig["Right Hip"].C0 = CFrame.new(1, -1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  106. end
  107. end
  108. end
  109. mouse.KeyUp:connect(notwalk)
  110. ---------------------------------
  111. walking1 = false
  112. function walk1(key)
  113. key = key:lower()
  114. if key == "d" then
  115. walking1 = true
  116. if walking1 == true then
  117. wait()
  118. run.Volume = 10
  119. for i = 1,5 do
  120. rig["Left Hip"].C0 = rig["Left Hip"].C0 * CFrame.Angles(0,0,-0.2)
  121. rig["Right Hip"].C0 = rig["Right Hip"].C0 * CFrame.Angles(0,0,-0.2)
  122. end
  123. while walking1 == true do
  124. for i = 1,5 do
  125. wait()
  126. rig["Left Hip"].C0 = rig["Left Hip"].C0 * CFrame.Angles(0,0,0.4)
  127. rig["Right Hip"].C0 = rig["Right Hip"].C0 * CFrame.Angles(0,0,0.4)
  128. end
  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. end
  135. end
  136. end
  137. end
  138. mouse.KeyDown:connect(walk1)
  139. function notwalk1(key)
  140. key = key:lower()
  141. if key == "d" then
  142. walking1 = false
  143. run.Volume = 0
  144. for i = 1,10 do
  145. wait()
  146. rig["Left Hip"].C0 = CFrame.new(-1, -1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  147. rig["Right Hip"].C0 = CFrame.new(1, -1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  148. end
  149. end
  150. end
  151. mouse.KeyUp:connect(notwalk1)
  152. ------------------------------------------
  153. walking2 = false
  154. function walk2(key)
  155. key = key:lower()
  156. if key == "a" then
  157. walking2 = true
  158. run.Volume = 10
  159. if walking2 == true then
  160. wait()
  161. for i = 1,5 do
  162. rig["Left Hip"].C0 = rig["Left Hip"].C0 * CFrame.Angles(0,0,-0.2)
  163. rig["Right Hip"].C0 = rig["Right Hip"].C0 * CFrame.Angles(0,0,-0.2)
  164. end
  165. while walking2 == true do
  166. for i = 1,5 do
  167. wait()
  168. rig["Left Hip"].C0 = rig["Left Hip"].C0 * CFrame.Angles(0,0,0.4)
  169. rig["Right Hip"].C0 = rig["Right Hip"].C0 * CFrame.Angles(0,0,0.4)
  170. end
  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. end
  177. end
  178. end
  179. end
  180. mouse.KeyDown:connect(walk2)
  181. function notwalk2(key)
  182. key = key:lower()
  183. if key == "a" then
  184. walking2 = false
  185. run.Volume = 0
  186. for i = 1,10 do
  187. wait()
  188. rig["Left Hip"].C0 = CFrame.new(-1, -1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  189. rig["Right Hip"].C0 = CFrame.new(1, -1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  190. end
  191. end
  192. end
  193. mouse.KeyUp:connect(notwalk2)
  194. ----------------------------------------------------
  195. walking3 = false
  196. function walk3(key)
  197. key = key:lower()
  198. if key == "s" then
  199. walking3 = true
  200. run.Volume = 10
  201. if walking3 == true then
  202. wait()
  203. for i = 1,5 do
  204. rig["Left Hip"].C0 = rig["Left Hip"].C0 * CFrame.Angles(0,0,-0.2)
  205. rig["Right Hip"].C0 = rig["Right Hip"].C0 * CFrame.Angles(0,0,-0.2)
  206. end
  207. while walking3 == true do
  208. for i = 1,5 do
  209. wait()
  210. rig["Left Hip"].C0 = rig["Left Hip"].C0 * CFrame.Angles(0,0,0.4)
  211. rig["Right Hip"].C0 = rig["Right Hip"].C0 * CFrame.Angles(0,0,0.4)
  212. end
  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. end
  219. end
  220. end
  221. end
  222. mouse.KeyDown:connect(walk3)
  223. function notwalk3(key)
  224. key = key:lower()
  225. if key == "s" then
  226. walking3 = false
  227. run.Volume = 0
  228. for i = 1,10 do
  229. wait()
  230. rig["Left Hip"].C0 = CFrame.new(-1, -1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  231. rig["Right Hip"].C0 = CFrame.new(1, -1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  232. end
  233. end
  234. end
  235. mouse.KeyUp:connect(notwalk3)
  236. grabbing = true
  237. function grab1(cart1)
  238. if grabbing == true then
  239. local torso = cart1.Parent:findFirstChild("Torso")
  240. if torso ~= nil then
  241. local hum = cart1.Parent:findFirstChild("Humanoid")
  242. if hum ~= nil then
  243. hum.PlatformStand = true
  244. local weld1 = Instance.new("Weld", torso)
  245. weld1.Part0 = torso
  246. weld1.Part1 = cart
  247. weld1.C0 = weld1.C0 * CFrame.Angles(-8,0,1.2) * CFrame.new(0,-1.4,0)
  248. end
  249. end
  250. end
  251. end
  252. cart.Touched:connect(grab1)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement