Advertisement
Derek227

Choclate stuff edit

Mar 26th, 2017
152
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 8.43 KB | None | 0 0
  1. --i leik chocolates (Rufus14 rly likes)
  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. ---------
  12. chocolaterain = Instance.new("Sound", game.Players.LocalPlayer.Character.Head)
  13. chocolaterain.SoundId = "rbxassetid://362485838"
  14. chocolaterain.Volume = 13
  15. chocolaterain.TimePosition = 10.1
  16. chocolate1 = Instance.new("Sound", game.Players.LocalPlayer.Character.Head)
  17. chocolate1.SoundId = "rbxassetid://681504763"
  18. chocolate1.Volume = 50
  19. chocolate1.TimePosition = 13
  20. walking = true
  21. game.Players.LocalPlayer.Character.Humanoid.WalkSpeed = 26
  22. for i = 1,5 do
  23. wait()
  24. rig.Neck.C0 = rig.Neck.C0 * CFrame.Angles(0.02,0,0)
  25. end
  26. function walk(key)
  27. key = key:lower()
  28. if key == "w" then
  29. walking = true
  30. run.Volume = 10
  31. if walking == true then
  32. wait()
  33. for i = 1,5 do
  34. rig["Left Hip"].C0 = rig["Left Hip"].C0 * CFrame.Angles(0,0,-0.2)
  35. rig["Right Hip"].C0 = rig["Right Hip"].C0 * CFrame.Angles(0,0,-0.2)
  36. end
  37. while walking == true do
  38. for i = 1,5 do
  39. wait()
  40. rig["Left Hip"].C0 = rig["Left Hip"].C0 * CFrame.Angles(0,0,0.4)
  41. rig["Right Hip"].C0 = rig["Right Hip"].C0 * CFrame.Angles(0,0,0.4)
  42. end
  43. for i = 1,5 do
  44. wait()
  45. rig["Left Hip"].C0 = rig["Left Hip"].C0 * CFrame.Angles(0,0,-0.4)
  46. rig["Right Hip"].C0 = rig["Right Hip"].C0 * CFrame.Angles(0,0,-0.4)
  47. end
  48. end
  49. end
  50. end
  51. end
  52. mouse.KeyDown:connect(walk)
  53. function notwalk(key)
  54. key = key:lower()
  55. if key == "w" then
  56. walking = false
  57. run.Volume = 0
  58. for i = 1,10 do
  59. wait()
  60. rig["Left Hip"].C0 = CFrame.new(-1, -1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  61. rig["Right Hip"].C0 = CFrame.new(1, -1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  62. end
  63. end
  64. end
  65. mouse.KeyUp:connect(notwalk)
  66. ---------------------------------
  67. walking1 = false
  68. function walk1(key)
  69. key = key:lower()
  70. if key == "d" then
  71. walking1 = true
  72. if walking1 == true then
  73. wait()
  74. run.Volume = 10
  75. for i = 1,5 do
  76. rig["Left Hip"].C0 = rig["Left Hip"].C0 * CFrame.Angles(0,0,-0.2)
  77. rig["Right Hip"].C0 = rig["Right Hip"].C0 * CFrame.Angles(0,0,-0.2)
  78. end
  79. while walking1 == true do
  80. for i = 1,5 do
  81. wait()
  82. rig["Left Hip"].C0 = rig["Left Hip"].C0 * CFrame.Angles(0,0,0.4)
  83. rig["Right Hip"].C0 = rig["Right Hip"].C0 * CFrame.Angles(0,0,0.4)
  84. end
  85. for i = 1,5 do
  86. wait()
  87. rig["Left Hip"].C0 = rig["Left Hip"].C0 * CFrame.Angles(0,0,-0.4)
  88. rig["Right Hip"].C0 = rig["Right Hip"].C0 * CFrame.Angles(0,0,-0.4)
  89. end
  90. end
  91. end
  92. end
  93. end
  94. mouse.KeyDown:connect(walk1)
  95. function notwalk1(key)
  96. key = key:lower()
  97. if key == "d" then
  98. walking1 = false
  99. run.Volume = 0
  100. for i = 1,10 do
  101. wait()
  102. rig["Left Hip"].C0 = CFrame.new(-1, -1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  103. rig["Right Hip"].C0 = CFrame.new(1, -1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  104. end
  105. end
  106. end
  107. mouse.KeyUp:connect(notwalk1)
  108. ------------------------------------------
  109. walking2 = false
  110. function walk2(key)
  111. key = key:lower()
  112. if key == "a" then
  113. walking2 = true
  114. run.Volume = 10
  115. if walking2 == true then
  116. wait()
  117. for i = 1,5 do
  118. rig["Left Hip"].C0 = rig["Left Hip"].C0 * CFrame.Angles(0,0,-0.2)
  119. rig["Right Hip"].C0 = rig["Right Hip"].C0 * CFrame.Angles(0,0,-0.2)
  120. end
  121. while walking2 == true do
  122. for i = 1,5 do
  123. wait()
  124. rig["Left Hip"].C0 = rig["Left Hip"].C0 * CFrame.Angles(0,0,0.4)
  125. rig["Right Hip"].C0 = rig["Right Hip"].C0 * CFrame.Angles(0,0,0.4)
  126. end
  127. for i = 1,5 do
  128. wait()
  129. rig["Left Hip"].C0 = rig["Left Hip"].C0 * CFrame.Angles(0,0,-0.4)
  130. rig["Right Hip"].C0 = rig["Right Hip"].C0 * CFrame.Angles(0,0,-0.4)
  131. end
  132. end
  133. end
  134. end
  135. end
  136. mouse.KeyDown:connect(walk2)
  137. function notwalk2(key)
  138. key = key:lower()
  139. if key == "a" then
  140. walking2 = false
  141. run.Volume = 0
  142. for i = 1,10 do
  143. wait()
  144. rig["Left Hip"].C0 = CFrame.new(-1, -1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  145. rig["Right Hip"].C0 = CFrame.new(1, -1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  146. end
  147. end
  148. end
  149. mouse.KeyUp:connect(notwalk2)
  150. ----------------------------------------------------
  151. walking3 = false
  152. function walk3(key)
  153. key = key:lower()
  154. if key == "s" then
  155. walking3 = true
  156. run.Volume = 10
  157. if walking3 == true then
  158. wait()
  159. for i = 1,5 do
  160. rig["Left Hip"].C0 = rig["Left Hip"].C0 * CFrame.Angles(0,0,-0.2)
  161. rig["Right Hip"].C0 = rig["Right Hip"].C0 * CFrame.Angles(0,0,-0.2)
  162. end
  163. while walking3 == true do
  164. for i = 1,5 do
  165. wait()
  166. rig["Left Hip"].C0 = rig["Left Hip"].C0 * CFrame.Angles(0,0,0.4)
  167. rig["Right Hip"].C0 = rig["Right Hip"].C0 * CFrame.Angles(0,0,0.4)
  168. end
  169. for i = 1,5 do
  170. wait()
  171. rig["Left Hip"].C0 = rig["Left Hip"].C0 * CFrame.Angles(0,0,-0.4)
  172. rig["Right Hip"].C0 = rig["Right Hip"].C0 * CFrame.Angles(0,0,-0.4)
  173. end
  174. end
  175. end
  176. end
  177. end
  178. mouse.KeyDown:connect(walk3)
  179. function notwalk3(key)
  180. key = key:lower()
  181. if key == "s" then
  182. walking3 = false
  183. run.Volume = 0
  184. for i = 1,10 do
  185. wait()
  186. rig["Left Hip"].C0 = CFrame.new(-1, -1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  187. rig["Right Hip"].C0 = CFrame.new(1, -1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  188. end
  189. end
  190. end
  191. mouse.KeyUp:connect(notwalk3)
  192. attacking1 = false
  193. function attack1(key)
  194. key = key:lower()
  195. if key == "q" then
  196. if not attacking1 and not attacking2 then
  197. attacking1 = true
  198. chocolaterain.TimePosition = 10.4
  199. game.Players.LocalPlayer.Character.Humanoid.MaxHealth = 999999
  200. game.Players.LocalPlayer.Character.Humanoid.Health = 999999
  201. for i = 1,10 do
  202. wait()
  203. rig.Neck.C0 = rig.Neck.C0 * CFrame.Angles(-0.03,0,0)
  204. rig["Left Shoulder"].C0 = rig["Left Shoulder"].C0 * CFrame.Angles(0,0,-0.29)
  205. end
  206. chocolaterain:Play()
  207. for i = 1,45 do
  208. wait(0.05)
  209. local choc = Instance.new("Part", workspace)
  210. choc.Position = rig.Position
  211. choc.CanCollide = false
  212. choc.BrickColor = BrickColor.new("Burnt Sienna")
  213. choc.Position = choc.Position + Vector3.new(math.random(-25,25),35,math.random(-25,25))
  214. choc.Size = choc.Size + Vector3.new(5,1.5,10)
  215. local hit = false
  216. local function rip(ch)
  217. if not hit then
  218. hit = true
  219. local humanoid = ch.Parent:FindFirstChild("Humanoid")
  220. humanoid.Health = humanoid.Health - math.random(10,20)
  221. wait(0.05)
  222. hit = false
  223. end
  224. end
  225. choc.Touched:connect(rip)
  226. end
  227. chocolaterain:Stop()
  228. for i = 1,10 do
  229. wait()
  230. rig.Neck.C0 = rig.Neck.C0 * CFrame.Angles(0.03,0,0)
  231. rig["Left Shoulder"].C0 = rig["Left Shoulder"].C0 * CFrame.Angles(0,0,0.29)
  232. end
  233. game.Players.LocalPlayer.Character.Humanoid.MaxHealth = 100
  234. game.Players.LocalPlayer.Character.Humanoid.Health = 100
  235. attacking1 = false
  236. end
  237. end
  238. end
  239. mouse.KeyDown:connect(attack1)
  240. attacking2 = false
  241. function CHOCOLATEoneon(key)
  242. key = key:lower()
  243. if not attacking2 and not attacking1 then
  244. attacking2 = true
  245. if key == "e" then
  246. chocolate1.TimePosition = 13
  247. chocolate1:Play()
  248. local chocoo = Instance.new("Part", rig)
  249. chocoo.CanCollide = false
  250. chocoo.Size = Vector3.new(2.5,0.5,5)
  251. chocoo.Position = chocoo.Position + Vector3.new(0,20,0)
  252. chocoo.BrickColor = BrickColor.new("Cocoa")
  253. local weld = Instance.new("Weld", chocoo)
  254. weld.Part0 = chocoo
  255. weld.Part1 = game.Players.LocalPlayer.Character["Right Arm"]
  256. weld.C0 = weld.C0 * CFrame.new(0,1.2,1.6) * CFrame.Angles(-0.08,4.8,0)
  257. for i = 1,10 do
  258. wait()
  259. rig.Neck.C0 = rig.Neck.C0 * CFrame.Angles(-0.03,0,0)
  260. rig["Right Shoulder"].C0 = rig["Right Shoulder"].C0 * CFrame.Angles(0,-0.02,0.32)
  261. rig["Left Shoulder"].C0 = rig["Left Shoulder"].C0 * CFrame.Angles(0,0.02,-0.32)
  262. end
  263. wait(2.8)
  264. for i = 1,175 do
  265. wait()
  266. rig.Neck.C0 = rig.Neck.C0 * CFrame.Angles(math.random(-5,5),math.random(-5,5),math.random(-5,5))
  267. end
  268. chocolate1:Stop()
  269. local BOOM = Instance.new("Explosion", chocoo)
  270. BOOM.BlastRadius = 60
  271. BOOM.BlastPressure = 120000
  272. BOOM.Position = chocoo.Position
  273. end
  274. attacking2 = false
  275. end
  276. end
  277. mouse.KeyDown:connect(CHOCOLATEoneon)
  278. --Yep. this is unfinished
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement