kaualima12

Untitled

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