G_uy

Untitled

Jan 10th, 2017
145
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 125.89 KB | None | 0 0
  1. -- Asriel Script
  2. -- By Gaster <3
  3. -- Added Flight
  4.  
  5.  
  6.  
  7. dot = false
  8. des = false
  9. local ChatService = game:GetService("Chat")
  10. local player = game.Players.LocalPlayer
  11. char = player.Character
  12. hum = char.Humanoid
  13. torso = hum.Torso
  14. m=player:GetMouse()
  15. bb = Instance.new("BillboardGui",player.Character.Head)
  16. bb.Enabled = true
  17. bb.AlwaysOnTop = true
  18. bb.Size = UDim2.new(0,200,0,50)
  19. bb.StudsOffset = Vector3.new(0,1,0)
  20. gui=Instance.new("TextBox",bb)
  21. gui.Text = "* "
  22. gui.Size = UDim2.new(0,133,0,45)
  23. gui.Position=UDim2.new(0,57,0,-40)
  24. gui.TextColor3 = Color3.new(255,255,255)
  25. gui.BackgroundColor3=Color3.new(0,0,0)
  26. gui.TextWrapped = true
  27. gui.TextScaled = true
  28. gui.TextXAlignment = "Left"
  29. gui.TextYAlignment = "Top"
  30. gui.Visible = false
  31. gui.BorderColor3 = Color3.new(0,0,0)
  32.  
  33. gui1=Instance.new("TextButton",bb)
  34. gui1.Position=UDim2.new(0,5,0,-43)
  35. gui1.Size = UDim2.new(0,190,0,51)
  36.  
  37. gui1.TextColor3 = Color3.new(255,255,255)
  38. gui1.BackgroundColor3=Color3.new(255,255,255)
  39.  
  40. gui1.Visible = false
  41. img = Instance.new("ImageLabel",bb)
  42. img.Size = UDim2.new(0,46,0,47)
  43. img.Position = UDim2.new(0,10,0,-41)
  44. img.Image = "rbxassetid://419852216"
  45. img.BorderColor3 = Color3.new(0,0,0)
  46. img.Visible = false
  47. asd = Instance.new("Sound",player.Character.Torso)
  48. asd.SoundId = "http://www.roblox.com/asset/?id = 419874833"
  49.  
  50. asd1 = Instance.new("Sound",player.Character.Torso)
  51. asd1.SoundId = "http://www.roblox.com/asset/?id = 419874833"
  52. EpicText = Instance.new("Sound",player.Character.Torso)
  53. EpicText.SoundId = "http://www.roblox.com/asset/?id = 454824301"
  54.  
  55. asd2 = Instance.new("Sound",player.Character.Torso)
  56. asd2.SoundId = "http://www.roblox.com/asset/?id = 441352248"
  57. asd2.Looped = true
  58. asd3 = Instance.new("Sound",player.Character.Torso)
  59. asd3.SoundId = "http://www.roblox.com/asset/?id = 440709051"
  60. asd3.Looped = true
  61. asd4 = Instance.new("Sound",player.Character.Torso)
  62. asd4.SoundId = "http://www.roblox.com/asset/?id = 304222305"
  63. asd4.Looped = false
  64. asd5 = Instance.new("Sound",player.Character.Torso)
  65. asd5.SoundId = "http://www.roblox.com/asset/?id = 428665016"
  66. asd5.Looped = true
  67. dunkd = Instance.new("Sound",player.Character.Torso)
  68. dunkd.SoundId = "http://www.roblox.com/asset/?id = 318502757"
  69. dunkd.Looped = false
  70. function play(play)
  71. asd:Play()
  72. asd1:Play()
  73. end
  74. ----------------------------------------------------
  75. hed.face.Texture = "rbxassetid://420478610"
  76. char["Body Colors"].HeadColor = BrickColor.new("Institutional white")
  77. char["Body Colors"].TorsoColor = BrickColor.new("Institutional white")
  78. char["Body Colors"].LeftArmColor = BrickColor.new("Institutional white")
  79. char["Body Colors"].RightArmColor = BrickColor.new("Institutional white")
  80. char["Body Colors"].LeftLegColor = BrickColor.new("Institutional white")
  81. char["Body Colors"].RightLegColor = BrickColor.new("Institutional white")
  82. ----------------------------------------------------
  83. local m = Instance.new("Model")
  84. m.Name = "Hair"
  85. p1 = Instance.new("Part", m)
  86. p1.BrickColor = BrickColor.new("Institutional white")
  87. p1.FormFactor = Enum.FormFactor.Symmetric
  88. p1.Size = Vector3.new(1, 1, 1)
  89. p1.CFrame = CFrame.new(12.5095692, 22.9280014, 28.5988674, -1.79592973e-007, -0.978694081, 0.205298647, -1.48348063e-008, -0.205299929, -0.978699148, 0.999994814, 2.38417414e-007, -2.98021181e-008)
  90. p1.CanCollide = false
  91. p1.Locked = true
  92. p1.BottomSurface = Enum.SurfaceType.Smooth
  93. p1.TopSurface = Enum.SurfaceType.Smooth
  94. b1 = Instance.new("SpecialMesh", p1)
  95. b1.MeshId = "http://www.roblox.com/asset/?id=12212520"
  96. b1.TextureId = ""
  97. b1.MeshType = Enum.MeshType.FileMesh
  98. b1.Name = "Mesh"
  99. b1.VertexColor = Vector3.new(0, 0, 0)
  100. b1.Scale = Vector3.new(1, 1.60000002, 1.29999995)
  101. p2 = Instance.new("Part", m)
  102. p2.BrickColor = BrickColor.new("Pastel brown")
  103. p2.Transparency = 1
  104. p2.Name = "Head"
  105. p2.FormFactor = Enum.FormFactor.Symmetric
  106. p2.Size = Vector3.new(2, 1, 1)
  107. p2.CFrame = CFrame.new(13.299921, 22.8300076, 28.5998688, -1.19988712e-007, 8.94068393e-008, -0.999995589, -1.48348125e-008, 1, -8.94068108e-008, 0.999995589, -1.48348231e-008, 2.39197504e-007)
  108. p2.CanCollide = false
  109. p2.Locked = true
  110. p2.TopSurface = Enum.SurfaceType.Smooth
  111. b2 = Instance.new("SpecialMesh", p2)
  112. b2.MeshType = Enum.MeshType.Head
  113. b2.Name = "Mesh"
  114. b2.Scale = Vector3.new(1.25, 1.25, 1.25)
  115. p3 = Instance.new("Part", m)
  116. p3.BrickColor = BrickColor.new("Institutional white")
  117. p3.FormFactor = Enum.FormFactor.Symmetric
  118. p3.Size = Vector3.new(2, 2, 2)
  119. p3.CFrame = CFrame.new(13.2999649, 23.4000015, 28.5999584, -1.19728938e-007, 5.96046092e-008, -0.999997199, -9.88988447e-009, 1, -5.96045844e-008, 0.999997199, -9.88988802e-009, 1.19728938e-007)
  120. p3.CanCollide = false
  121. p3.Locked = true
  122. p3.BottomSurface = Enum.SurfaceType.Smooth
  123. p3.TopSurface = Enum.SurfaceType.Smooth
  124. b3 = Instance.new("SpecialMesh", p3)
  125. b3.MeshId = "http://www.roblox.com/asset/?id=16627529"
  126. b3.TextureId = ""
  127. b3.MeshType = Enum.MeshType.FileMesh
  128. b3.Name = "Mesh"
  129. b3.VertexColor = Vector3.new(0, 0, 0)
  130. b3.Scale = Vector3.new(1.04999995, 1.04999995, 1.04999995)
  131. p4 = Instance.new("Part", m)
  132. p4.BrickColor = BrickColor.new("Institutional white")
  133. p4.FormFactor = Enum.FormFactor.Symmetric
  134. p4.Size = Vector3.new(1, 1, 1)
  135. p4.CFrame = CFrame.new(13.220191, 23.5300064, 28.5998363, -2.39457108e-007, 1.19209027e-007, -0.99999398, -1.97797441e-008, 1, -1.19208977e-007, 0.99999398, -1.97797512e-008, 2.39457108e-007)
  136. p4.CanCollide = false
  137. p4.Locked = true
  138. p4.BottomSurface = Enum.SurfaceType.Smooth
  139. p4.TopSurface = Enum.SurfaceType.Smooth
  140. b4 = Instance.new("SpecialMesh", p4)
  141. b4.MeshId = "http://www.roblox.com/asset/?id=19326912"
  142. b4.TextureId = ""
  143. b4.MeshType = Enum.MeshType.FileMesh
  144. b4.Name = "Mesh"
  145. b4.VertexColor = Vector3.new(0, 0, 0)
  146. p5 = Instance.new("Part", m)
  147. p5.BrickColor = BrickColor.new("Institutional white")
  148. p5.FormFactor = Enum.FormFactor.Symmetric
  149. p5.Size = Vector3.new(1, 1, 1)
  150. p5.CFrame = CFrame.new(13.299963, 23.1500015, 28.5999584, -4.78911147e-007, 2.384173e-007, -0.999987543, -3.95593887e-008, 1, -2.38417186e-007, 0.999987543, -3.95594029e-008, 4.78911147e-007)
  151. p5.CanCollide = false
  152. p5.Locked = true
  153. p5.BottomSurface = Enum.SurfaceType.Smooth
  154. p5.TopSurface = Enum.SurfaceType.Smooth
  155. b5 = Instance.new("SpecialMesh", p5)
  156. b5.MeshId = "http://www.roblox.com/asset/?id=45916884"
  157. b5.TextureId = ""
  158. b5.MeshType = Enum.MeshType.FileMesh
  159. b5.Name = "Mesh"
  160. b5.VertexColor = Vector3.new(0, 0, 0)
  161. b5.Scale = Vector3.new(1, 0.899999976, 1)
  162. p6 = Instance.new("Part", m)
  163. p6.BrickColor = BrickColor.new("Institutional white")
  164. p6.FormFactor = Enum.FormFactor.Symmetric
  165. p6.Size = Vector3.new(1, 1, 1)
  166. p6.CFrame = CFrame.new(13.1003246, 23.2700119, 28.5500946, -9.57822294e-007, 4.76831474e-007, -0.999987543, -7.91193955e-008, 1, -2.84217094e-014, 0.999987543, -4.04650001e-015, 5.68434189e-014)
  167. p6.CanCollide = false
  168. p6.Locked = true
  169. p6.BottomSurface = Enum.SurfaceType.Smooth
  170. p6.TopSurface = Enum.SurfaceType.Smooth
  171. b6 = Instance.new("SpecialMesh", p6)
  172. b6.MeshId = "http://www.roblox.com/asset/?id=62246019"
  173. b6.TextureId = ""
  174. b6.MeshType = Enum.MeshType.FileMesh
  175. b6.Name = "Mesh"
  176. b6.VertexColor = Vector3.new(0, 0, 0)
  177. p7 = Instance.new("Part", m)
  178. p7.BrickColor = BrickColor.new("Institutional white")
  179. p7.FormFactor = Enum.FormFactor.Symmetric
  180. p7.Size = Vector3.new(1, 1, 1)
  181. p7.CFrame = CFrame.new(13.1008148, 23.0000076, 28.4990215, -9.57822294e-007, 4.76831502e-007, -0.999987543, -7.91194026e-008, 1, 3.5914197e-019, 0.999987543, 3.05883884e-015, 5.68434189e-014)
  182. p7.CanCollide = false
  183. p7.Locked = true
  184. p7.BottomSurface = Enum.SurfaceType.Smooth
  185. p7.TopSurface = Enum.SurfaceType.Smooth
  186. b7 = Instance.new("SpecialMesh", p7)
  187. b7.MeshId = "http://www.roblox.com/asset/?id=76056263"
  188. b7.TextureId = ""
  189. b7.MeshType = Enum.MeshType.FileMesh
  190. b7.Name = "Mesh"
  191. b7.VertexColor = Vector3.new(0, 0, 0)
  192. p8 = Instance.new("Part", m)
  193. p8.BrickColor = BrickColor.new("Institutional white")
  194. p8.FormFactor = Enum.FormFactor.Symmetric
  195. p8.Size = Vector3.new(1, 1, 1)
  196. p8.CFrame = CFrame.new(12.3756638, 22.3460064, 28.5989819, -9.57822294e-007, -0.80510509, 0.593111277, -7.91194026e-008, -0.593119025, -0.805114806, 0.999987543, -1.28919533e-014, 2.06653508e-014)
  197. p8.CanCollide = false
  198. p8.Locked = true
  199. p8.BottomSurface = Enum.SurfaceType.Smooth
  200. p8.TopSurface = Enum.SurfaceType.Smooth
  201. b8 = Instance.new("SpecialMesh", p8)
  202. b8.MeshId = "http://www.roblox.com/asset/?id=12212520"
  203. b8.TextureId = ""
  204. b8.MeshType = Enum.MeshType.FileMesh
  205. b8.Name = "Mesh"
  206. b8.VertexColor = Vector3.new(0, 0, 0)
  207. b8.Scale = Vector3.new(1, 1.60000002, 1.29999995)
  208. p9 = Instance.new("Part", m)
  209. p9.BrickColor = BrickColor.new("Institutional white")
  210. p9.FormFactor = Enum.FormFactor.Symmetric
  211. p9.Size = Vector3.new(2, 1, 2)
  212. p9.CFrame = CFrame.new(13.2349396, 23.2430096, 28.5993462, -9.57822294e-007, -0.0995007455, -0.995025039, -7.91194097e-008, 0.995037317, -0.0995024443, 0.999987543, -5.41274382e-016, -2.16294996e-014)
  213. p9.CanCollide = false
  214. p9.Locked = true
  215. p9.BottomSurface = Enum.SurfaceType.Smooth
  216. p9.TopSurface = Enum.SurfaceType.Smooth
  217. b9 = Instance.new("SpecialMesh", p9)
  218. b9.MeshId = "http://www.roblox.com/asset/?id=12259089"
  219. b9.TextureId = ""
  220. b9.MeshType = Enum.MeshType.FileMesh
  221. b9.Name = "Mesh"
  222. b9.VertexColor = Vector3.new(0, 0, 0)
  223. b9.Scale = Vector3.new(1.01999998, 1.04999995, 1.04999995)
  224. p10 = Instance.new("Part", m)
  225. p10.BrickColor = BrickColor.new("Institutional white")
  226. p10.FormFactor = Enum.FormFactor.Symmetric
  227. p10.Size = Vector3.new(1, 1, 1)
  228. p10.CFrame = CFrame.new(12.9792271, 23.7430058, 28.6003838, -9.57822294e-007, -0.68356514, -0.729872584, -7.91194097e-008, 0.729881346, -0.683573902, 0.999987543, -1.35710662e-014, -1.68509463e-014)
  229. p10.CanCollide = false
  230. p10.Locked = true
  231. p10.BottomSurface = Enum.SurfaceType.Smooth
  232. p10.TopSurface = Enum.SurfaceType.Smooth
  233. b10 = Instance.new("SpecialMesh", p10)
  234. b10.MeshId = "http://www.roblox.com/asset/?id=12212520"
  235. b10.TextureId = ""
  236. b10.MeshType = Enum.MeshType.FileMesh
  237. b10.Name = "Mesh"
  238. b10.VertexColor = Vector3.new(0, 0, 0)
  239. b10.Scale = Vector3.new(1, 1.60000002, 1.29999995)
  240. p11 = Instance.new("Part", m)
  241. p11.BrickColor = BrickColor.new("Institutional white")
  242. p11.FormFactor = Enum.FormFactor.Symmetric
  243. p11.Size = Vector3.new(1, 1, 1)
  244. p11.CFrame = CFrame.new(12.8353081, 23.4680061, 28.5991058, -9.57822294e-007, -0.989463568, -0.144696504, -7.91194026e-008, 0.144697905, -0.989475906, 0.999987543, -2.11154641e-014, -4.7186215e-015)
  245. p11.CanCollide = false
  246. p11.Locked = true
  247. p11.BottomSurface = Enum.SurfaceType.Smooth
  248. p11.TopSurface = Enum.SurfaceType.Smooth
  249. b11 = Instance.new("SpecialMesh", p11)
  250. b11.MeshId = "http://www.roblox.com/asset/?id=12212520"
  251. b11.TextureId = ""
  252. b11.MeshType = Enum.MeshType.FileMesh
  253. b11.Name = "Mesh"
  254. b11.VertexColor = Vector3.new(0, 0, 0)
  255. b11.Scale = Vector3.new(1, 1.60000002, 1.29999995)
  256. w1 = Instance.new("Weld", p1)
  257. w1.Name = "Head_Weld"
  258. w1.Part0 = p1
  259. w1.C0 = CFrame.new(-28.5990181, 16.950285, 19.8713875, 0, 0, 0.999999583, -0.97869873, -0.205299839, 5.96046448e-008, 0.20529972, -0.978699148, -7.4505806e-009)
  260. w1.Part1 = p2
  261. w1.C1 = CFrame.new(-28.5999966, -22.8300076, 13.2999811, 5.96046448e-008, 0, 0.999999642, 0, 1, 0, -0.999999642, 0, 5.96046448e-008)
  262. w2 = Instance.new("Weld", p2)
  263. w2.Name = "Weld"
  264. w2.Part0 = p2
  265. w2.C0 = CFrame.new(-28.5999527, -22.8300056, 13.2999592, -2.5997493e-010, -4.94494357e-009, 0.999998808, 2.98023224e-008, 1, -4.94494712e-009, -0.999998808, -2.98023224e-008, 1.19469163e-007)
  266. w2.Part1 = p3
  267. w2.C1 = CFrame.new(-28.5999947, -23.3999996, 13.2999821, 0, 0, 0.999999583, 0, 1, 0, -0.999999583, 0, 0)
  268. w3 = Instance.new("Weld", p3)
  269. w3.Name = "Weld"
  270. w3.Part0 = p3
  271. w3.C0 = CFrame.new(-28.5999012, -23.3999996, 13.2999363, -1.19728938e-007, -9.88988447e-009, 0.999997199, 5.96046092e-008, 1, -9.88988802e-009, -0.999997199, -5.96045844e-008, 1.19728938e-007)
  272. w3.Part1 = p4
  273. w3.C1 = CFrame.new(-28.5998726, -23.5300045, 13.2202082, 0, 0, 0.999999583, 0, 1, 0, -0.999999583, 0, 0)
  274. w4 = Instance.new("Weld", p4)
  275. w4.Name = "Weld"
  276. w4.Part0 = p4
  277. w4.C0 = CFrame.new(-28.5996857, -23.5300064, 13.2201195, -2.39457108e-007, -1.97797441e-008, 0.99999398, 1.19209027e-007, 1, -1.97797512e-008, -0.99999398, -1.19208977e-007, 2.39457108e-007)
  278. w4.Part1 = p5
  279. w4.C1 = CFrame.new(-28.5999947, -23.1499996, 13.2999821, 0, 0, 0.999999583, 0, 1, 0, -0.999999583, 0, 0)
  280. w5 = Instance.new("Weld", p5)
  281. w5.Name = "Weld"
  282. w5.Part0 = p5
  283. w5.C0 = CFrame.new(-28.5996189, -23.1500015, 13.2998009, -4.78911147e-007, -3.95593887e-008, 0.999987543, 2.384173e-007, 1, -3.95594029e-008, -0.999987543, -2.38417186e-007, 4.78911147e-007)
  284. w5.Part1 = p6
  285. w5.C1 = CFrame.new(-28.5501289, -23.27001, 13.1003361, 0, 0, 0.999999583, 0, 1, 0, -0.999999583, 0, 0)
  286. w6 = Instance.new("Weld", p6)
  287. w6.Name = "Weld"
  288. w6.Part0 = p6
  289. w6.C0 = CFrame.new(-28.5497494, -23.2700157, 13.100173, -9.57822294e-007, -7.91193955e-008, 0.999987543, 4.76831474e-007, 1, -4.04650001e-015, -0.999987543, -2.84217094e-014, 5.68434189e-014)
  290. w6.Part1 = p7
  291. w6.C1 = CFrame.new(-28.4990501, -23.0000057, 13.1008282, 0, 0, 0.999999881, 0, 1, 0, -0.999999881, 0, 0)
  292. w7 = Instance.new("Weld", p7)
  293. w7.Name = "Weld"
  294. w7.Part0 = p7
  295. w7.C0 = CFrame.new(-28.4986763, -23.0000114, 13.1006632, -9.57822294e-007, -7.91194026e-008, 0.999987543, 4.76831502e-007, 1, 3.05883884e-015, -0.999987543, 3.5914197e-019, 5.68434189e-014)
  296. w7.Part1 = p8
  297. w7.C1 = CFrame.new(-28.5990181, 23.2175999, 10.6510067, 0, 0, 0.999999583, -0.805118203, -0.59311378, -5.96046448e-008, 0.593113363, -0.80511874, 0)
  298. w8 = Instance.new("Weld", p8)
  299. w8.Name = "Weld"
  300. w8.Part0 = p8
  301. w8.C0 = CFrame.new(-28.5986366, 23.2175598, 10.6509457, -9.57822294e-007, -7.91194026e-008, 0.999987543, -0.80510509, -0.593119025, -1.28919533e-014, 0.593111277, -0.805114806, 2.06653508e-014)
  302. w8.Part1 = p9
  303. w8.C1 = CFrame.new(-28.5993843, -21.8107243, 15.4820604, 0, 0, 0.999999583, -0.0995036662, 0.995037258, 0, -0.995036721, -0.0995037258, 0)
  304. w9 = Instance.new("Weld", p9)
  305. w9.Name = "Weld"
  306. w9.Part0 = p9
  307. w9.C0 = CFrame.new(-28.598999, -21.8107738, 15.4818439, -9.57822294e-007, -7.91194097e-008, 0.999987543, -0.0995007455, 0.995037317, -5.41274382e-016, -0.995025039, -0.0995024443, -2.16294996e-014)
  308. w9.Part1 = p10
  309. w9.C1 = CFrame.new(-28.6004219, -8.45714283, 25.703455, 0, 0, 0.999999583, -0.683578134, 0.729877055, 2.98023224e-008, -0.729876637, -0.683578491, 8.94069672e-008)
  310. w10 = Instance.new("Weld", p10)
  311. w10.Name = "Weld"
  312. w10.Part0 = p10
  313. w10.C0 = CFrame.new(-28.6000366, -8.4574213, 25.703289, -9.57822294e-007, -7.91194097e-008, 0.999987543, -0.68356514, 0.729881346, -1.35710662e-014, -0.729872584, -0.683573902, -1.68509463e-014)
  314. w10.Part1 = p11
  315. w10.C1 = CFrame.new(-28.5991402, 9.30450344, 25.0782566, 0, 0, 0.999999583, -0.989475787, 0.144696504, 8.94069672e-008, -0.144696444, -0.989476025, 7.4505806e-009)
  316. m.Parent = char
  317. m:MakeJoints()
  318. ----------------------------------------------------
  319. shirt = Instance.new("Shirt", char)
  320. shirt.Name = "Shirt"
  321. pants = Instance.new("Pants", char)
  322. pants.Name = "Pants"
  323. char.Shirt.ShirtTemplate = "http://www.roblox.com/asset/?id=591699571"
  324. char.Pants.PantsTemplate = "http://www.roblox.com/asset/?id=472786495"
  325. ----------------------------------------------------
  326. eye = Instance.new("Part",player.Character)
  327. eye.BrickColor = BrickColor.new("Black")
  328. eye.Material = "Neon"
  329. eye.FormFactor = 3
  330. eye.Shape = "Ball"
  331. eye.Size = Vector3.new(0.37,0.37,0.1)
  332. weld = Instance.new("Weld",eye)
  333. weld.Part0 = eye
  334. weld.Part1 = player.Character.Head
  335. weld.C0 = CFrame.new(0.1,-0.2,0.45)
  336. eye.Transparency = 1
  337. -- listen for their chatting
  338. player.Chatted:connect(function(message)
  339. a = string.len(message)
  340. gui.Text = "* "
  341. gui.Visible = true
  342. gui1.Visible = true
  343. des = false
  344. img.Visible = true
  345. print(a)
  346. if dot == false then
  347. for i = 1,string.len(message) do wait(0.07)
  348. gui.Text =gui.Text..message:sub(i,i)
  349.  
  350. play()
  351. end
  352. end
  353.  
  354. des = true
  355. end)
  356. m.KeyDown:connect(function(k)
  357. if k == "l" then
  358. asd2:Play()
  359.  
  360.  
  361. end
  362. end)
  363. m.KeyDown:connect(function(k)
  364. if k == "k" then
  365.  
  366. asd3:Play()
  367. end
  368. end)
  369. m.KeyDown:connect(function(k)
  370. if k == "j" then
  371. asd4:Play()
  372. end
  373. end)
  374. m.KeyDown:connect(function(k)
  375. if k == "p" then
  376.  
  377. asd5:Play()
  378. end
  379. end)
  380. m.KeyDown:connect(function(k)
  381. if k == "z" then
  382. asd1 = Instance.new("Sound",player.Character.Torso)
  383. asd1.SoundId = "http://www.roblox.com/asset/?id = 454824301"
  384.  
  385. img.Image = "rbxassetid://460973235"
  386. asd2:Play()
  387.  
  388. EpicText:Play()
  389. EpicText:Play()
  390. end
  391. end)
  392.  
  393. m.KeyDown:connect(function(k)
  394. if k == "n" then
  395. img.Image = "rbxassetid://419852168"
  396. end
  397. end)
  398. m.KeyDown:connect(function(k)
  399. if k == "b" then
  400. img.Image = "rbxassetid://419852186"
  401. end
  402. end)
  403. m.KeyDown:connect(function(k)
  404. if k == "m" then
  405. img.Image = "rbxassetid://419852203"
  406. end
  407. end)
  408. m.KeyDown:connect(function(k)
  409. if k == "h" then
  410. img.Image = "rbxassetid://419852243"
  411. end
  412. end)
  413. m.KeyDown:connect(function(k)
  414. if k == "x" then
  415. if des == true then
  416. gui.Visible = false
  417. gui.Text = "! "
  418. gui1.Visible = false
  419. img.Visible = false
  420. end
  421. end
  422. end)
  423. m.KeyDown:connect(function(k)
  424. if k == ";" then
  425. asd3:Stop()
  426. asd2:Stop()
  427. asd4:Stop()
  428. dunkd:Stop()
  429. eye.Transparency = 1
  430. asd5:Stop()
  431. end
  432. end)
  433. m.KeyDown:connect(function(k)
  434. if k == "y" then
  435. img.Image = "rbxassetid://419852216"
  436. end
  437. end)
  438. -- my god...
  439. -- Suck_HiyaThere moves to arizona
  440.  
  441. pls=game:GetService'Players';
  442. rs=game:GetService'RunService';
  443. uinps=game:GetService'UserInputService';
  444. lp=pls.LocalPlayer;
  445. mouse=lp:GetMouse();
  446. c=lp.Character;
  447. rayModel=Instance.new('Model',c);
  448. human=c.Humanoid;
  449. Cone=nil;
  450. human.MaxHealth=1000000;
  451. wait();
  452. human.Health=1000000;
  453. c.Health:Destroy();
  454. Debounces={
  455. FPS=0;
  456. isAttacking=false;
  457. isMoving=false;
  458. isSprinting=false;
  459. Debounce=false;
  460. isTyping=false;
  461. isJumping=false;
  462. isFlash=false;
  463. };
  464. numLerp=function(start,goal,alpha)
  465. return(((goal-start)*alpha)+start);
  466. end;
  467. CFrameZero=function()
  468. return CFrame.new(Vector3.new());
  469. end;
  470. local function a()
  471. local t=tick();
  472. local l=t%1*3;
  473. local t=.5*math.pi*(l%1);
  474. if l<1 then
  475. return Color3.new(1,1-math.cos(t),1-math.sin(t));
  476. elseif l<2 then
  477. return Color3.new(1-math.sin(t),1,1-math.cos(t));
  478. else
  479. return Color3.new(1-math.cos(t),1-math.sin(t),1);
  480. end;
  481. end;
  482. rad=function(value)
  483. return math.rad(value);
  484. end;
  485. CFAngles=function(Vector)
  486. return CFrame.Angles(rad(Vector.x),rad(Vector.y),rad(Vector.z));
  487. end;
  488. AnimStat={
  489. lerpSpeed=.2;
  490. lerpSpeed2=.35;
  491. lerpTween=0;
  492. };
  493. Joints={
  494. c.HumanoidRootPart.RootJoint;
  495. c.Torso.Neck;
  496. c.Torso['Left Shoulder'];
  497. c.Torso['Right Shoulder'];
  498. c.Torso['Left Hip'];
  499. c.Torso['Right Hip'];
  500. };
  501. prepareCharacter=function()
  502. music=Instance.new('Sound',c.HumanoidRootPart);
  503. music.SoundId='rbxassetid://306154368';
  504. music.Looped=true;
  505. music.Volume=.6;
  506. music2=Instance.new('Sound',c);
  507. music2.SoundId='rbxassetid://320842828';
  508. music2.Looped=true;
  509. music2.Volume=1;
  510. music3=Instance.new('Sound',c.HumanoidRootPart);
  511. music3.SoundId='rbxassetid://304222305';
  512. music3.Looped=true;
  513. music3.Volume=1;
  514. music4=Instance.new('Sound',c.HumanoidRootPart);
  515. music4.SoundId='rbxassetid://428665016';
  516. music4.Looped=true;
  517. music4.Volume=1;
  518. music5=Instance.new('Sound',c.HumanoidRootPart);
  519. music5.SoundId='rbxassetid://318502757';
  520. music5.Looped=true;
  521. music5.Volume=1;
  522. human.WalkSpeed=0;
  523. human.JumpPower=0;
  524. end;
  525. triWave=function(x)
  526. local pi2=math.pi/2;
  527. return math.abs((x/pi2)%4-2)-1;
  528. end;
  529. setLerp=function(speed)
  530. AnimStat.lerpSpeed=speed;
  531. end;
  532. setTween=function(tween)
  533. AnimStat.lerpTween=tween;
  534. end;
  535. playSound=function(id,part,vol,pitch)
  536. local vol=vol or 1;
  537. local pitch=pitch or 1;
  538. local x=Instance.new('Sound',part);
  539. x.Volume=vol;
  540. x.Pitch=pitch;
  541. x.SoundId='rbxassetid://'..id;
  542. spawn(function()
  543. wait();
  544. x:Play();
  545. wait(x.TimeLength+.2);
  546. x:Destroy();
  547. end);
  548. end;
  549. lerpBoom=function()
  550. if Cone then
  551. Cone.CFrame=CFrame.new(c.HumanoidRootPart.CFrame.p,c.HumanoidRootPart.CFrame.p+c.HumanoidRootPart.Velocity)*CFrame.Angles(-math.pi/2,0,0);
  552. cMesh.Scale=Vector3.new(20,20+c.HumanoidRootPart.Velocity.magnitude/10,20);
  553. Cone.Transparency=1-c.HumanoidRootPart.Velocity.magnitude/1000;
  554. else
  555. Cone=Instance.new('Part',c);
  556. Cone.Anchored=true;
  557. Cone.CanCollide=false;
  558. Cone.Transparency=math.random(50,70)/100;
  559. Cone.Size=Vector3.new(1,1,1);
  560. Cone.CFrame=CFrame.new(c.HumanoidRootPart.CFrame.p,c.HumanoidRootPart.CFrame.p+c.HumanoidRootPart.Velocity)*CFrame.Angles(-math.pi/2,0,0);
  561. cMesh=Instance.new('SpecialMesh',Cone);
  562. cMesh.MeshId='rbxassetid://1033714';
  563. cMesh.Scale=Vector3.new(20,50,20);
  564. end;
  565. end;
  566. noBoom=function()
  567. if Cone then local x=Cone Cone=nil;
  568. for i=1,20 do
  569. wait();
  570. x.Mesh.Scale=x.Mesh.Scale+Vector3.new(-.5,1,-.5);
  571. x.Transparency=x.Transparency+1/30;
  572. end;
  573. end;
  574. end;
  575. gasterBlast=function(tCFrame,aimPos,charge)
  576. local aimTarget;
  577. if aimPos then
  578. aimTarget=CFrame.new(tCFrame,aimPos);
  579. else
  580. aimTarget=tCFrame;
  581. end;
  582. local gast=Instance.new('Part',c);
  583. gast.Size=Vector3.new(12,.2,12);
  584. gast.CanCollide=false;
  585. gast.Anchored=true;
  586. gast.Transparency=1;
  587. if charge then
  588. playSound(400523331,gast,math.random(90,110)/100);
  589. end;
  590. wait();
  591. for i=1,2 do
  592. local decal=Instance.new('Decal',gast);
  593. decal.Texture='rbxassetid://401564454';
  594. if i==1 then
  595. decal.Face=Enum.NormalId.Top;
  596. else
  597. decal.Face=Enum.NormalId.Bottom;
  598. end;
  599. end;
  600. gast.CFrame=CFrame.new(aimTarget.p-Vector3.new(math.sin(tick()*10)*10,20,math.cos(tick()*10)*10));
  601. spawn(function()
  602. local tarCFrame=gast.CFrame;
  603. local isLooping=true;
  604. spawn(function()
  605. while rs.RenderStepped:wait()and isLooping do
  606. gast.CFrame=gast.CFrame:lerp(tarCFrame,.6/(Debounces.FPS/60));
  607. end;
  608. end);
  609. for i=1,30 do
  610. wait();
  611. tarCFrame=gast.CFrame:lerp(aimTarget,.24);
  612. end;
  613. playSound(340722848,gast,math.random(90,110)/100);
  614. isLooping=false;
  615. wait(.08);
  616. local ray=Ray.new(aimTarget.p,aimTarget.lookVector.unit*999);
  617. local _,pos=workspace:FindPartOnRay(ray,c);
  618. local dis=(aimTarget.p-pos).magnitude;
  619. local rayCFrame=CFrame.new(gast.CFrame.p+(pos-gast.CFrame.p).unit*(dis/2+200),gast.CFrame.p+(pos-gast.CFrame.p).unit*dis*2)*CFrame.Angles(0,math.pi/2,0);
  620. local rayPart=Instance.new('Part',rayModel);
  621. rayPart.Material='Neon';
  622. rayPart.FormFactor='Custom';
  623. rayPart.Anchored=true;
  624. rayPart.CanCollide=false;
  625. rayPart.Color=a();
  626. rayPart.Shape='Cylinder';
  627. rayPart.Size=Vector3.new(dis+400,8,8);
  628. rayPart.CFrame=rayCFrame;
  629. gast:Destroy();
  630. end);
  631. end;
  632. largegasterBlast=function(tCFrame,aimPos)
  633. local aimTarget;
  634. if aimPos then
  635. aimTarget=CFrame.new(tCFrame,aimPos);
  636. else
  637. aimTarget=tCFrame;
  638. end;
  639. local gast=Instance.new('Part',c);
  640. gast.Size=Vector3.new(25,.2,25);
  641. gast.CanCollide=false;
  642. gast.Anchored=true;
  643. gast.Transparency=1;
  644. playSound(400523331,gast,math.random(85,97)/100);
  645. wait();
  646. for i=1,2 do
  647. local decal=Instance.new('Decal',gast);
  648. decal.Texture='rbxassetid://401564690';
  649. if i==1 then
  650. decal.Face=Enum.NormalId.Top;
  651. else
  652. decal.Face=Enum.NormalId.Bottom;
  653. end;
  654. end;
  655. gast.CFrame=CFrame.new(aimTarget.p-Vector3.new(math.sin(tick()*10)*10,20,math.cos(tick()*10)*10));
  656. spawn(function()
  657. local tarCFrame=gast.CFrame;
  658. local isLooping=true;
  659. spawn(function()
  660. while rs.RenderStepped:wait()and isLooping do
  661. gast.CFrame=gast.CFrame:lerp(tarCFrame,.6/(Debounces.FPS/60));
  662. end;
  663. end);
  664. for i=1,40 do
  665. wait();
  666. tarCFrame=gast.CFrame:lerp(aimTarget,.18);
  667. end;
  668. playSound(340722848,gast,math.random(80,95)/100);
  669. isLooping=false;
  670. wait(.08);
  671. local ray=Ray.new(aimTarget.p,aimTarget.lookVector.unit*999);
  672. local _,pos=workspace:FindPartOnRay(ray,c);
  673. local dis=(aimTarget.p-pos).magnitude;
  674. local rayCFrame=CFrame.new(gast.CFrame.p+(pos-gast.CFrame.p).unit*(dis/2+200),gast.CFrame.p+(pos-gast.CFrame.p).unit*dis*2)*CFrame.Angles(0,math.pi/2,0);
  675. local rayPart=Instance.new('Part',rayModel);
  676. rayPart.Material='Neon';
  677. rayPart.FormFactor='Custom';
  678. rayPart.Anchored=true;
  679. rayPart.CanCollide=false;
  680. rayPart.Shape='Cylinder';
  681. rayPart.Size=Vector3.new(dis+400,17,17);
  682. rayPart.CFrame=rayCFrame;
  683. gast:Destroy();
  684. end);
  685. end;
  686.  
  687. if Debounces.isAttacking==false and Debounces.isMoving==false and Debounces.Debounce==false and Debounces.isJumping==false then
  688. setLerp(.8);
  689. elseif Debounces.isAttacking==false and Debounces.isMoving==true and Debounces.Debounce==false and Debounces.isSprinting==true and Debounces.isJumping==false then
  690. sine=tick()*28;
  691. human.WalkSpeed=400;
  692. lerpBoom();
  693. setLerp(.65);
  694. end;
  695. human.Changed:connect(function(prop)
  696. if prop=='MoveDirection'then
  697. if human.MoveDirection.magnitude>.02 then
  698. Debounces.isMoving=true;
  699. else
  700. Debounces.isMoving=false;
  701. end;
  702. end;
  703. end);
  704. uinps.InputBegan:connect(function(InputObj)
  705. if InputObj.KeyCode==Enum.KeyCode.Slash then
  706. local finishEvent=nil;
  707. Debounces.isTyping=true
  708. finishEvent=uinps.InputBegan:connect(function(InputObj)
  709. if InputObj.KeyCode==Enum.KeyCode.Return or InputObj.UserInputType==Enum.UserInputType.MouseButton1 then
  710. Debounces.isTyping=false;
  711. finishEvent:disconnect();
  712. end;
  713. end);
  714. end;
  715. end);
  716. mouse.KeyDown:connect(function(key)
  717. if key=='0'then
  718. Debounces.isSprinting=true;
  719. playSound(160248522,c.Torso);
  720. for i=1,3 do
  721. spawn(function()
  722. local e=Instance.new('Part',c);
  723. e.Size=Vector3.new(1,1,1);
  724. e.Material='Neon';
  725. e.Color=a();
  726. e.Anchored=true;
  727. e.CFrame=c.HumanoidRootPart.CFrame*CFrame.Angles(0,0,-math.pi/2);
  728. e.CanCollide=false;
  729. local rm=Instance.new('SpecialMesh',e);
  730. rm.MeshType='FileMesh';
  731. rm.MeshId='rbxassetid://3270017';
  732. rm.Scale=Vector3.new(3.2,3.2,10);
  733. for x=1,30 do
  734. wait();
  735. rm.Scale=rm.Scale:lerp(Vector3.new(i*30,i*30,(4-i)*450),.1);
  736. e.Transparency=x/30+.5;
  737. end;
  738. end);
  739. end;
  740. c.HumanoidRootPart.Velocity=c.HumanoidRootPart.CFrame.lookVector*200;
  741. end;
  742. end);
  743. mouse.KeyUp:connect(function(key)
  744. if key=='0'then
  745. Debounces.isSprinting=false;
  746. end;
  747. end);
  748. mouse.KeyDown:connect(function(key)
  749. if key=='v'then
  750. playSound(201858087,c.Torso,math.random(90,120)/100);
  751. local oldPos=c.HumanoidRootPart.CFrame.p;
  752. local mHit=mouse.Hit.p;
  753. for i=1,2 do
  754. spawn(function()
  755. local pos
  756. if i==1 then pos=oldPos else pos=mHit end
  757. local p=Instance.new('Part',workspace);
  758. p.Anchored=true;
  759. p.CanCollide=false;
  760. p.Color=a();
  761. p.FormFactor='Custom';
  762. p.CFrame=CFrame.new(pos+Vector3.new(0,500,0));
  763. p.Transparency=.4;
  764. p.Size=Vector3.new(20,1000,20);
  765. for i=1,20 do
  766. wait();
  767. p.Transparency=.4+(i/10)*.6;
  768. p.Size=Vector3.new(20-i*1.5,1000,20-i*1.5);
  769. p.CFrame=CFrame.new(pos+Vector3.new(0,500,0));
  770. end;
  771. p:Destroy();
  772. end);
  773. end;
  774. if Debounces.isMoving then
  775. c.HumanoidRootPart.CFrame=CFrame.new(mouse.Hit.p+Vector3.new(0,4,0),Vector3.new(c.HumanoidRootPart.Velocity.x,mouse.Hit.p.y+4,c.HumanoidRootPart.Velocity.z));
  776. else
  777. c.HumanoidRootPart.CFrame=CFrame.new(mouse.Hit.p+Vector3.new(0,4,0),Vector3.new(oldPos.x,mouse.Hit.p.y+4,oldPos.z));
  778. end;
  779. end;
  780. end);
  781. mouse.KeyDown:connect(function(key)
  782. if key=='r'then
  783. local pointTarget=mouse.Hit.p;
  784. for i=1,20 do
  785. wait();
  786. gasterBlast(CFrame.new(pointTarget+Vector3.new(math.sin(tick()*10)*20,5+math.abs(math.sin(tick()*5)*10),math.cos(tick()*10)*20),pointTarget));
  787. end;
  788. wait();
  789. largegasterBlast(CFrame.new(pointTarget+Vector3.new(0,35,0),pointTarget));
  790. end;
  791. end);
  792. mouse.KeyDown:connect(function(key)
  793. if key=='k'then
  794. if music.isPlaying then music:Stop();else music:Play();end;
  795. end;
  796. end);
  797. mouse.KeyDown:connect(function(key)
  798. if key=='j'then
  799. if music2.isPlaying then music2:Stop();else music2:Play();end;
  800. end;
  801. end);
  802. mouse.KeyDown:connect(function(key)
  803. if key=='l'then
  804. if music3.isPlaying then music3:Stop();else music3:Play();end;
  805. end;
  806. end);
  807. mouse.KeyDown:connect(function(key)
  808. if key=='p'then
  809. if music4.isPlaying then music4:Stop();else music4:Play();end;
  810. end;
  811. end);
  812. mouse.KeyDown:connect(function(key)
  813. if key=='o'then
  814. if music5.isPlaying then music4:Stop();else music5:Play();end;
  815. end;
  816. end);
  817. mouse.KeyDown:connect(function(key)
  818. if key=='e'then
  819. gasterBlast(c.Torso.CFrame.p+Vector3.new(math.sin(tick()*10)*10,12,math.cos(tick()*10)*10),mouse.Hit.p,true);
  820. end;
  821. end);
  822. mouse.KeyDown:connect(function(key)
  823. if key=='c'then
  824. largegasterBlast(c.Torso.CFrame.p+Vector3.new(math.sin(tick()*10)*10,12,math.cos(tick()*10)*10),mouse.Hit.p);
  825. end;
  826. end);
  827. mouse.KeyDown:connect(function(key)
  828. if key=='q'then
  829. for i=1,5 do
  830. wait();
  831. gasterBlast(c.Torso.CFrame.p+Vector3.new(math.sin(tick()*10)*10,12,math.cos(tick()*10)*10),mouse.Hit.p);
  832. end;
  833. largegasterBlast(c.Torso.CFrame.p+Vector3.new(0,25,0),mouse.Hit.p);
  834. end;
  835. end);
  836. mouse.KeyDown:connect(function(key)
  837. if key=='t'then
  838. local pointTarget=mouse.Hit.p;
  839. for i=1,20 do
  840. gasterBlast(pointTarget+Vector3.new(math.sin(math.deg((360/40)*i))*(20-i),5+i,math.cos(math.deg((360/40)*i))*(20-i)),pointTarget);
  841. end;
  842. wait(.2);
  843. for i=1,10 do
  844. largegasterBlast(pointTarget+Vector3.new(math.sin(math.deg((360/20)*i))*25,20,math.cos(math.deg((360/20)*i))*25),pointTarget);
  845. end;
  846. end;
  847. end);
  848. human.StateChanged:connect(function(os,ns)
  849. if c.HumanoidRootPart.Velocity.Y<.1 and Debounces.isJumping==true and ns==Enum.HumanoidStateType.Landed then
  850. Debounces.isJumping=false;
  851. end;
  852. end);
  853. rs.RenderStepped:connect(function()
  854. Debounces.FPS=1/rs.RenderStepped:wait();
  855. if Debounces.FPS<30 then
  856. Debounces.FPS=30;
  857. end;
  858. if Debounces.isSprinting then
  859. lerpBoom();
  860. else
  861. noBoom();
  862. end;
  863. for _,v in pairs(rayModel:children())do
  864. v.Transparency=v.Transparency+.06/(Debounces.FPS/60);
  865. if v.Transparency>.99 then v:Destroy();return;end;
  866. v.CanCollide=true;
  867. local tParts=v:GetTouchingParts();
  868. v.CanCollide=false;
  869. local vCFrame=v.CFrame;
  870. v.Size=v.Size+Vector3.new(0,1,1)/(Debounces.FPS/60);
  871. v.CFrame=vCFrame;
  872. for _,x in pairs(tParts)do
  873. if x and x.Parent and x.Parent:FindFirstChild'Humanoid'and x.Parent.Humanoid:isA'Humanoid'and x.Parent~=c then
  874. x.Parent.Humanoid:TakeDamage(1000000,2000000);
  875. end;
  876. end;
  877. end;
  878. local FPSLerp=AnimStat.lerpSpeed/(Debounces.FPS/60);
  879. end);
  880.  
  881. local verlet = {}
  882. verlet.step_time = 1 / 50
  883. verlet.gravity = Vector3.new(0, -10, 0)
  884.  
  885. local char = game.Players.LocalPlayer.Character
  886. local torso = char:WaitForChild("Torso")
  887. local parts = {}
  888. local render = game:GetService("RunService").RenderStepped
  889.  
  890. wait(2)
  891.  
  892. local point = {}
  893. local link = {}
  894. local rope = {}
  895.  
  896. local function ccw(A,B,C)
  897. return (C.y-A.y) * (B.x-A.x) > (B.y-A.y) * (C.x-A.x)
  898. end
  899.  
  900. local function intersect(A,B,C,D)
  901. return ccw(A,C,D) ~= ccw(B,C,D) and ccw(A,B,C) ~= ccw(A,B,D)
  902. end
  903.  
  904. local function vec2(v)
  905. return Vector2.new(v.x, v.z)
  906. end
  907.  
  908. function point:step()
  909. if not self.fixed then
  910. local derivative = (self.position - self.last_position) * 0.95
  911. self.last_position = self.position
  912. self.position = self.position + derivative + (self.velocity * verlet.step_time ^ 2)
  913. --[[local torsoP = torso.CFrame * CFrame.new(-1, 0, 0.5)
  914. local torsoE = torso.CFrame * CFrame.new(1, 0, 0.5)
  915. local pointE = self.position + torso.CFrame.lookVector * 100
  916. local doIntersect = intersect(vec2(torsoP.p), vec2(torsoE.p), vec2(self.position), vec2(pointE))
  917. if not doIntersect then
  918. self.postition = self.position - torso.CFrame.lookVector * 10
  919. end]]
  920. end
  921. end
  922.  
  923. function link:step()
  924. for i = 1, 1 do
  925. local distance = self.point1.position - self.point2.position
  926. local magnitude = distance.magnitude
  927. local differance = (self.length - magnitude) / magnitude
  928. local translation = ((self.point1.fixed or self.point2.fixed) and 1 or 0.6) * distance * differance
  929. if not self.point1.fixed then
  930. self.point1.position = self.point1.position + translation
  931. end
  932. if not self.point2.fixed then
  933. self.point2.position = self.point2.position - translation
  934. end
  935. end
  936. end
  937.  
  938. function verlet.new(class, a, b, c)
  939. if class == "Point" then
  940. local new = {}
  941. setmetatable(new, {__index = point})
  942. new.class = class
  943. new.position = a or Vector3.new()
  944. new.last_position = new.position
  945. new.velocity = verlet.gravity
  946. new.fixed = false
  947. return new
  948. elseif class == "Link" then
  949. local new = {}
  950. setmetatable(new, {__index = link})
  951. new.class = class
  952. new.point1 = a
  953. new.point2 = b
  954. new.length = c or (a.position - b.position).magnitude
  955. return new
  956. elseif class == "Rope" then
  957. local new = {}
  958. setmetatable(new, {__index = link})
  959. new.class = class
  960. new.start_point = a
  961. new.finish_point = b
  962. new.points = {}
  963. new.links = {}
  964. local inc = (b - a) / 10
  965. for i = 0, 10 do
  966. table.insert(new.points, verlet.new("Point", a + (i * inc)))
  967. end
  968. for i = 2, #new.points do
  969. table.insert(new.links, verlet.new("Link", new.points[i - 1], new.points[i]))
  970. end
  971. return new
  972. end
  973. end
  974.  
  975. local tris = {}
  976. local triParts = {}
  977.  
  978. local function GetDiscoColor(hue)
  979. local section = hue % 1 * 3
  980. local secondary = 0.5 * math.pi * (section % 1)
  981. if section < 1 then
  982. return Color3.new(0, 0, 0)
  983. elseif section < 2 then
  984. return Color3.new(0, 0, 0)
  985. else
  986. return Color3.new(0, 0, 0)
  987. end
  988. end
  989.  
  990. local function setupPart(part)
  991. part.Anchored = true
  992. part.FormFactor = 3
  993. part.CanCollide = false
  994. part.TopSurface = 10
  995. part.BottomSurface = 10
  996. part.LeftSurface = 10
  997. part.RightSurface = 10
  998. part.FrontSurface = 10
  999. part.BackSurface = 10
  1000. part.Material = "Neon"
  1001. local m = Instance.new("SpecialMesh", part)
  1002. m.MeshType = "Wedge"
  1003. m.Scale = Vector3.new(0.2, 1, 1)
  1004. return part
  1005. end
  1006.  
  1007. local function CFrameFromTopBack(at, top, back)
  1008. local right = top:Cross(back)
  1009. return CFrame.new(at.x, at.y, at.z, right.x, top.x, back.x, right.y, top.y, back.y, right.z, top.z, back.z)
  1010. end
  1011.  
  1012. local function drawTri(parent, a, b, c)
  1013. local this = {}
  1014. local mPart1 = table.remove(triParts, 1) or setupPart(Instance.new("Part"))
  1015. local mPart2 = table.remove(triParts, 1) or setupPart(Instance.new("Part"))
  1016. function this:Set(a, b, c)
  1017. local ab, bc, ca = b-a, c-b, a-c
  1018. local abm, bcm, cam = ab.magnitude, bc.magnitude, ca.magnitude
  1019. local edg1 = math.abs(0.5 + ca:Dot(ab)/(abm*abm))
  1020. local edg2 = math.abs(0.5 + ab:Dot(bc)/(bcm*bcm))
  1021. local edg3 = math.abs(0.5 + bc:Dot(ca)/(cam*cam))
  1022. if edg1 < edg2 then
  1023. if edg1 >= edg3 then
  1024. a, b, c = c, a, b
  1025. ab, bc, ca = ca, ab, bc
  1026. abm = cam
  1027. end
  1028. else
  1029. if edg2 < edg3 then
  1030. a, b, c = b, c, a
  1031. ab, bc, ca = bc, ca, ab
  1032. abm = bcm
  1033. else
  1034. a, b, c = c, a, b
  1035. ab, bc, ca = ca, ab, bc
  1036. abm = cam
  1037. end
  1038. end
  1039.  
  1040. local len1 = -ca:Dot(ab)/abm
  1041. local len2 = abm - len1
  1042. local width = (ca + ab.unit*len1).magnitude
  1043.  
  1044. local maincf = CFrameFromTopBack(a, ab:Cross(bc).unit, -ab.unit)
  1045.  
  1046. if len1 > 0.2 then
  1047. mPart1.Parent = parent
  1048. mPart1.Size = Vector3.new(0.2, width, len1)
  1049. mPart1.CFrame = maincf*CFrame.Angles(math.pi,0,math.pi/2)*CFrame.new(0,width/2,len1/2)
  1050. else
  1051. mPart1.Parent = nil
  1052. end
  1053.  
  1054. if len2 > 0.2 then
  1055. mPart2.Parent = parent
  1056. mPart2.Size = Vector3.new(0.2, width, len2)
  1057. mPart2.CFrame = maincf*CFrame.Angles(math.pi,math.pi,-math.pi/2)*CFrame.new(0,width/2,-len1 - len2/2)
  1058. else
  1059. mPart2.Parent = nil
  1060. end
  1061. end
  1062. function this:SetProperty(prop, value)
  1063. mPart1[prop] = value
  1064. mPart2[prop] = value
  1065. end
  1066. this:Set(a, b, c)
  1067. function this:Destroy()
  1068. mPart1:Destroy()
  1069. mPart2:Destroy()
  1070. end
  1071. this.p1 = mPart1
  1072. this.p2 = mPart2
  1073. this.p1.BrickColor = BrickColor.new(GetDiscoColor(math.noise(0.5, 0.5, this.p1.CFrame.Y * 0.5 + time())))
  1074. this.p2.BrickColor = BrickColor.new(GetDiscoColor(math.noise(0.5, 0.5, this.p2.CFrame.Y * 0.5 + time())))
  1075. return this
  1076. end
  1077.  
  1078. function verlet.draw(object, id)
  1079. if object.class == "Point" then
  1080. local part = parts[id]
  1081. part.BrickColor = BrickColor.new(107, 0, 107)
  1082. part.Transparency = 0
  1083. part.formFactor = 3
  1084. part.Anchored = true
  1085. part.CanCollide = false
  1086. part.TopSurface = 0
  1087. part.BottomSurface = 0
  1088. part.Size = Vector3.new(0.35, 0.35, 0.35)
  1089. part.Material = "Neon"
  1090. part.CFrame = CFrame.new(object.position)
  1091. part.Parent = torso
  1092. return part
  1093. elseif object.class == "Link" then
  1094. local part = parts[id]
  1095. local dist = (object.point1.position - object.point2.position).magnitude
  1096. part.Size = Vector3.new(0.2, 0.2, dist)
  1097. part.CFrame = CFrame.new(object.point1.position, object.point2.position) * CFrame.new(0, 0, dist * -0.5)
  1098. part.Parent = torso
  1099. return part
  1100. end
  1101. end
  1102.  
  1103. function verlet.clear()
  1104. for _, v in pairs(workspace:GetChildren()) do
  1105. if v.Name == "Part" then
  1106. v:Destroy()
  1107. end
  1108. end
  1109. end
  1110.  
  1111. local points = {}
  1112. local links = {}
  1113.  
  1114. for x = 0, 2 do
  1115. points[x] = {}
  1116. for y = 0, 3 do
  1117. points[x][y] = verlet.new("Point", torso.Position + Vector3.new(x * 0.8 - 2, 2 - y * 0.8, 5 + y * 0.4))
  1118. points[x][y].fixed = y == 0
  1119. end
  1120. end
  1121.  
  1122. for x = 1, 2 do
  1123. for y = 0, 3 do
  1124. links[#links + 1] = verlet.new("Link", points[x][y], points[x - 1][y], 1 + y * 0.08)
  1125. end
  1126. end
  1127.  
  1128. for x = 0, 2 do
  1129. for y = 1, 3 do
  1130. links[#links + 1] = verlet.new("Link", points[x][y], points[x][y - 1], 1.2 + y * 0.03)
  1131. end
  1132. end
  1133.  
  1134. render:connect(function()
  1135. for x = 0, 2 do
  1136. for y = 0, 3 do
  1137. if y == 0 then
  1138. points[x][y].position = (torso.CFrame * CFrame.new(x * 1 - 1, 1, 0.5)).p
  1139. else
  1140. points[x][y]:step()
  1141. end
  1142. end
  1143. end
  1144. for i = 1, #links do
  1145. links[i]:step()
  1146. end
  1147. for i = 1, #tris do
  1148. triParts[#triParts + 1] = tris[i].p1
  1149. triParts[#triParts + 1] = tris[i].p2
  1150. end
  1151. tris = {}
  1152. for x = 1, 2 do
  1153. for y = 1, 3 do
  1154. tris[#tris + 1] = drawTri(torso, points[x - 1][y - 1].position, points[x - 1][y].position, points[x][y - 1].position)
  1155. tris[#tris + 1] = drawTri(torso, points[x][y].position, points[x - 1][y].position, points[x][y - 1].position)
  1156. end
  1157. end
  1158. end)
  1159.  
  1160.  
  1161.  
  1162.  
  1163.  
  1164. wait(0.016666666666667)
  1165. Player = game:GetService("Players").LocalPlayer
  1166. Character = Player.Character
  1167. PlayerGui = Player.PlayerGui
  1168. Backpack = Player.Backpack
  1169. Torso = Character.Torso
  1170. Head = Character.Head
  1171. Humanoid = Character.Humanoid
  1172. LeftArm = Character["Left Arm"]
  1173. LeftLeg = Character["Left Leg"]
  1174. RightArm = Character["Right Arm"]
  1175. RightLeg = Character["Right Leg"]
  1176. LS = Torso["Left Shoulder"]
  1177. LH = Torso["Left Hip"]
  1178. RS = Torso["Right Shoulder"]
  1179. RH = Torso["Right Hip"]
  1180. Face = Head.face
  1181. Neck = Torso.Neck
  1182. it = Instance.new
  1183. attacktype = 1
  1184. vt = Vector3.new
  1185. cf = CFrame.new
  1186. euler = CFrame.fromEulerAnglesXYZ
  1187. angles = CFrame.Angles
  1188. cloaked = false
  1189. necko = cf(0, 1, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0)
  1190. necko2 = cf(0, -0.5, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0)
  1191. LHC0 = cf(-1, -1, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  1192. LHC1 = cf(-0.5, 1, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  1193. RHC0 = cf(1, -1, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  1194. RHC1 = cf(0.5, 1, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  1195. RootPart = Character.HumanoidRootPart
  1196. RootJoint = RootPart.RootJoint
  1197. RootCF = euler(-1.57, 0, 3.14)
  1198. attack = false
  1199. attackdebounce = false
  1200. deb = false
  1201. equipped = false
  1202. hand = false
  1203. MMouse = nil
  1204. combo = 0
  1205. mana = 100
  1206. trispeed = 0.2
  1207. attackmode = "none"
  1208. local idle = 0
  1209. local Anim = "Idle"
  1210. local gun = false
  1211. local shoot = false
  1212. player = nil
  1213. mana = 100
  1214. mouse = Player:GetMouse()
  1215. RSH = nil
  1216. RW = Instance.new("Weld")
  1217. LW = Instance.new("Weld")
  1218. RW.Name = "Right Shoulder"
  1219. LW.Name = "Left Shoulder"
  1220. LH = Torso["Left Hip"]
  1221. RH = Torso["Right Hip"]
  1222. TorsoColor = Torso.BrickColor
  1223. NoOutline = function(Part)
  1224. Part.TopSurface = 10
  1225. end
  1226.  
  1227. player = Player
  1228. ch = Character
  1229. RSH = ch.Torso["Right Shoulder"]
  1230. LSH = ch.Torso["Left Shoulder"]
  1231. RSH.Parent = player.Character.Torso
  1232. LSH.Parent = player.Character.Torso
  1233. RW.Name = "Right Shoulder"
  1234. RW.Part0 = ch.Torso
  1235. RW.C0 = cf(1.5, 0.5, 0)
  1236. RW.C1 = cf(0, 0.5, 0)
  1237. RW.Part1 = ch["Right Arm"]
  1238. RW.Parent = nil
  1239. LW.Name = "Left Shoulder"
  1240. LW.Part0 = ch.Torso
  1241. LW.C0 = cf(-1.5, 0.5, 0)
  1242. LW.C1 = cf(0, 0.5, 0)
  1243. LW.Part1 = ch["Left Arm"]
  1244. LW.Parent = nil
  1245. Player = game:GetService("Players").LocalPlayer
  1246. Character = Player.Character
  1247. Mouse = Player:GetMouse()
  1248. m = Instance.new("Model", Character)
  1249. local Player = game.Players.localPlayer
  1250. local Character = Player.Character
  1251. local Humanoid = Character.Humanoid
  1252. local mouse = Player:GetMouse()
  1253. local LeftArm = Character["Left Arm"]
  1254. local RightArm = Character["Right Arm"]
  1255. local LeftLeg = Character["Left Leg"]
  1256. local RightLeg = Character["Right Leg"]
  1257. local Head = Character.Head
  1258. local Torso = Character.Torso
  1259. local cam = game.Workspace.CurrentCamera
  1260. local RootPart = Character.HumanoidRootPart
  1261. local equipped = false
  1262. local attack = false
  1263. local Anim = "Idle"
  1264. local idle = 0
  1265. local sprint = false
  1266. local battlestance = false
  1267. local attacktype = 1
  1268. local state = "none"
  1269. local torsovelocity = RootPart.Velocity * Vector3.new(1, 0, 1).magnitude
  1270. local velocity = RootPart.Velocity.y
  1271. local sine = 0
  1272. local change = 1
  1273. local on = false
  1274. local grabbed = false
  1275. local skill1 = false
  1276. local skill2 = false
  1277. local skill3 = false
  1278. local skill4 = false
  1279. local cooldown1 = 0
  1280. local cooldown2 = 0
  1281. local cooldown3 = 0
  1282. local cooldown4 = 0
  1283. local co1 = 0
  1284. local co2 = 0
  1285. local co3 = 0
  1286. local co4 = 0
  1287. local inputserv = game:GetService("UserInputService")
  1288. local typing = false
  1289. local crit = false
  1290. local critchance = 2
  1291. local critdamageaddmin = 3
  1292. local critdamageaddmax = 7
  1293. local maxstamina = 100
  1294. local stamina = 0
  1295. local skill1stam = 0
  1296. local skill2stam = 0
  1297. local skill3stam = 0
  1298. local skill4stam = 0
  1299. local recovermana = 3
  1300. local mindamage = 5
  1301. local maxdamage = 10
  1302. local cf = CFrame.new
  1303. local mr = math.rad
  1304. local angles = CFrame.Angles
  1305. local ud = UDim2.new
  1306. local c3 = Color3.new
  1307. local skillcolorscheme = c3(1, 1, 1)
  1308. local defensevalue = 1
  1309. local speedvalue = 1
  1310. local damagevalue = 1
  1311. local cf = CFrame.new
  1312. local mr = math.rad
  1313. local angles = CFrame.Angles
  1314. local ud = UDim2.new
  1315. local c3 = Color3.new
  1316. local skillcolorscheme = c3(1, 1, 1)
  1317. local scrn = Instance.new("ScreenGui", Player.PlayerGui)
  1318. makeframe = function(par, trans, pos, size, color)
  1319. local frame = Instance.new("Frame", par)
  1320. frame.BackgroundTransparency = trans
  1321. frame.BorderSizePixel = 0
  1322. frame.Position = pos
  1323. frame.Size = size
  1324. frame.BackgroundColor3 = color
  1325. return frame
  1326. end
  1327.  
  1328. makelabel = function(par, text)
  1329. local label = Instance.new("TextLabel", par)
  1330. label.BackgroundTransparency = 1
  1331. label.Size = ud(1, 0, 1, 0)
  1332. label.Position = ud(0, 0, 0, 0)
  1333. label.TextColor3 = c3(255, 255, 255)
  1334. label.TextStrokeTransparency = 0
  1335. label.FontSize = Enum.FontSize.Size32
  1336. label.Font = Enum.Font.SourceSansBold
  1337. label.BorderSizePixel = 0
  1338. label.TextScaled = true
  1339. label.Text = text
  1340. end
  1341.  
  1342. local stats = Instance.new("Folder", Character)
  1343. stats.Name = "Stats"
  1344. local block = Instance.new("BoolValue", stats)
  1345. block.Name = "Block"
  1346. block.Value = false
  1347. local stun = Instance.new("BoolValue", stats)
  1348. stun.Name = "Stun"
  1349. stun.Value = false
  1350. local defense = Instance.new("NumberValue", stats)
  1351. defense.Name = "Defence"
  1352. defense.Value = defensevalue
  1353. local speed = Instance.new("NumberValue", stats)
  1354. speed.Name = "Speed"
  1355. speed.Value = speedvalue
  1356. local damagea = Instance.new("NumberValue", stats)
  1357. damagea.Name = "Damage"
  1358. damagea.Value = damagevalue
  1359. framesk1 = makeframe(scrn, 0.5, ud(0.13, 0, 0.56, 0), ud(0.08, 0, 0.06, 0), c3(1, 1, 0.5))
  1360. bar1 = makeframe(framesk1, 0.5, ud(0, 0, 0, 0), ud(1, 0, 1, 0), c3(1, 1, 0.5))
  1361. ammolabel = Instance.new("TextLabel", framesk1)
  1362. ammolabel.BackgroundTransparency = 1
  1363. ammolabel.Size = ud(1, 0, 1, 0)
  1364. ammolabel.Position = ud(0, 0, 0, 0)
  1365. ammolabel.TextColor3 = c3(255, 255, 255)
  1366. ammolabel.TextStrokeTransparency = 0
  1367. ammolabel.FontSize = Enum.FontSize.Size8
  1368. ammolabel.Font = Enum.Font.SourceSans
  1369. ammolabel.BorderSizePixel = 0
  1370. ammolabel.TextScaled = true
  1371. ammolabel.Text = "Speed [" .. speed.Value .. "]"
  1372. framesk2 = makeframe(scrn, 0.5, ud(0.13, 0, 0.63, 0), ud(0.08, 0, 0.06, 0), c3(1, 0.5, 1))
  1373. bar2 = makeframe(framesk2, 0.5, ud(0, 0, 0, 0), ud(1, 0, 1, 0), c3(0.5, 0.25, 0.25))
  1374. ammolabel2 = Instance.new("TextLabel", framesk2)
  1375. ammolabel2.BackgroundTransparency = 1
  1376. ammolabel2.Size = ud(1, 0, 1, 0)
  1377. ammolabel2.Position = ud(0, 0, 0, 0)
  1378. ammolabel2.TextColor3 = c3(255, 255, 255)
  1379. ammolabel2.TextStrokeTransparency = 0
  1380. ammolabel2.FontSize = Enum.FontSize.Size8
  1381. ammolabel2.Font = Enum.Font.SourceSans
  1382. ammolabel2.BorderSizePixel = 0
  1383. ammolabel2.TextScaled = true
  1384. ammolabel2.Text = "Damage [" .. damagea.Value .. "]"
  1385. framesk3 = makeframe(scrn, 0.5, ud(0.13, 0, 0.7, 0), ud(0.08, 0, 0.06, 0), c3(1, 0.5, 1))
  1386. bar3 = makeframe(framesk3, 0.5, ud(0, 0, 0, 0), ud(1, 0, 1, 0), c3(0.25, 0.25, 0.5))
  1387. ammolabel3 = Instance.new("TextLabel", framesk3)
  1388. ammolabel3.BackgroundTransparency = 1
  1389. ammolabel3.Size = ud(1, 0, 1, 0)
  1390. ammolabel3.Position = ud(0, 0, 0, 0)
  1391. ammolabel3.TextColor3 = c3(255, 255, 255)
  1392. ammolabel3.TextStrokeTransparency = 0
  1393. ammolabel3.FontSize = Enum.FontSize.Size8
  1394. ammolabel3.Font = Enum.Font.SourceSans
  1395. ammolabel3.BorderSizePixel = 0
  1396. ammolabel3.TextScaled = true
  1397. ammolabel3.Text = "Defense [" .. defense.Value .. "]"
  1398. animate = Character:findFirstChild("Animate")
  1399. animate.Disabled = false
  1400. CustomColor = BrickColor.new("Cool yellow")
  1401. Colorpart1 = Torso.BrickColor.r
  1402. Colorpart2 = Torso.BrickColor.g
  1403. Colorpart3 = Torso.BrickColor.b
  1404. local weldBetween = function(a, b)
  1405. local weldd = Instance.new("ManualWeld")
  1406. weldd.Part0 = a
  1407. weldd.Part1 = b
  1408. weldd.C0 = CFrame.new()
  1409. weldd.C1 = b.CFrame:inverse() * a.CFrame
  1410. weldd.Parent = a
  1411. return weldd
  1412. end
  1413.  
  1414. swait = function(num)
  1415. if num == 0 or num == nil then
  1416. game:service("RunService").Stepped:wait(0)
  1417. else
  1418. for i = 0, num do
  1419. game:service("RunService").Stepped:wait(0)
  1420. end
  1421. end
  1422. end
  1423.  
  1424. nooutline = function(part)
  1425. part.TopSurface = 10
  1426. end
  1427.  
  1428. part = function(formfactor, parent, material, reflectance, transparency, brickcolor, name, size)
  1429. local fp = it("Part")
  1430. fp.formFactor = formfactor
  1431. fp.Parent = parent
  1432. fp.Reflectance = reflectance
  1433. fp.Transparency = transparency
  1434. fp.CanCollide = false
  1435. fp.Locked = true
  1436. fp.BrickColor = BrickColor.new(tostring(brickcolor))
  1437. fp.Name = name
  1438. fp.Size = size
  1439. fp.Position = Character.Torso.Position
  1440. nooutline(fp)
  1441. fp.Material = material
  1442. fp:BreakJoints()
  1443. return fp
  1444. end
  1445.  
  1446. mesh = function(Mesh, part, meshtype, meshid, offset, scale)
  1447. local mesh = it(Mesh)
  1448. mesh.Parent = part
  1449. if Mesh == "SpecialMesh" then
  1450. mesh.MeshType = meshtype
  1451. mesh.MeshId = meshid
  1452. end
  1453. mesh.Offset = offset
  1454. mesh.Scale = scale
  1455. return mesh
  1456. end
  1457.  
  1458. weld = function(parent, part0, part1, c0, c1)
  1459. local weld = it("Weld")
  1460. weld.Parent = parent
  1461. weld.Part0 = part0
  1462. weld.Part1 = part1
  1463. weld.C0 = c0
  1464. weld.C1 = c1
  1465. return weld
  1466. end
  1467.  
  1468. fat = Instance.new("BindableEvent", script)
  1469. fat.Name = "Heartbeat"
  1470. script:WaitForChild("Heartbeat")
  1471. frame = 0.033333333333333
  1472. tf = 0
  1473. allowframeloss = false
  1474. tossremainder = false
  1475. lastframe = tick()
  1476. script.Heartbeat:Fire()
  1477. game:GetService("RunService").Heartbeat:connect(function(s, p)
  1478. tf = tf + s
  1479. if frame <= tf then
  1480. if allowframeloss then
  1481. script.Heartbeat:Fire()
  1482. lastframe = tick()
  1483. else
  1484. for i = 1, math.floor(tf / frame) do
  1485. script.Heartbeat:Fire()
  1486. end
  1487. lastframe = tick()
  1488. end
  1489. if tossremainder then
  1490. tf = 0
  1491. else
  1492. tf = tf - frame * math.floor(tf / frame)
  1493. end
  1494. end
  1495. end
  1496. )
  1497. if script.Parent.className ~= "HopperBin" then
  1498. Tool = Instance.new("HopperBin")
  1499. Tool.Parent = Backpack
  1500. Tool.Name = "Flying"
  1501. script.Parent = Tool
  1502. end
  1503. Bin = script.Parent
  1504. so = function(id, par, vol, pit)
  1505. coroutine.resume(coroutine.create(function()
  1506. local sou = Instance.new("Sound", par or workspace)
  1507. sou.Volume = vol
  1508. sou.Pitch = pit or 1
  1509. sou.SoundId = id
  1510. swait()
  1511. sou:play()
  1512. game:GetService("Debris"):AddItem(sou, 6)
  1513. end
  1514. ))
  1515. end
  1516.  
  1517. local CFrameFromTopBack = function(at, top, back)
  1518. local right = top:Cross(back)
  1519. return CFrame.new(at.x, at.y, at.z, right.x, top.x, back.x, right.y, top.y, back.y, right.z, top.z, back.z)
  1520. end
  1521.  
  1522. Triangle = function(a, b, c)
  1523. local edg1 = c - a:Dot(b - a.unit)
  1524. local edg2 = a - b:Dot(c - b.unit)
  1525. local edg3 = b - c:Dot(a - c.unit)
  1526. if edg1 <= b - a.magnitude and edg1 >= 0 then
  1527. a = a
  1528. else
  1529. -- DECOMPILER ERROR at PC35: Overwrote pending register: R1 in 'AssignReg'
  1530.  
  1531. if edg2 <= c - b.magnitude and edg2 >= 0 then
  1532. a = b
  1533. else
  1534. -- DECOMPILER ERROR at PC46: Overwrote pending register: R2 in 'AssignReg'
  1535.  
  1536. -- DECOMPILER ERROR at PC47: Overwrote pending register: R1 in 'AssignReg'
  1537.  
  1538. if edg3 <= a - c.magnitude and edg3 >= 0 then
  1539. a = c
  1540. else
  1541. assert(false, "unreachable")
  1542. end
  1543. end
  1544. end
  1545. local len1 = c - a:Dot(b - a.unit)
  1546. local len2 = b - a.magnitude - len1
  1547. local width = a + b - a.unit * len1 - c.magnitude
  1548. local maincf = CFrameFromTopBack(a, b - a:Cross(c - b).unit, -b - a.unit)
  1549. local list = {}
  1550. local TrailColor = "Dark grey"
  1551. if len1 > 0.01 then
  1552. local w1 = Instance.new("WedgePart", m)
  1553. game:GetService("Debris"):AddItem(w1, 5)
  1554. w1.Material = "SmoothPlastic"
  1555. w1.FormFactor = "Custom"
  1556. w1.BrickColor = BrickColor.new(TrailColor)
  1557. w1.Transparency = 0
  1558. w1.Reflectance = 0
  1559. w1.Material = "SmoothPlastic"
  1560. w1.CanCollide = false
  1561. NoOutline(w1)
  1562. local sz = Vector3.new(0.2, width, len1)
  1563. w1.Size = sz
  1564. local sp = Instance.new("SpecialMesh", w1)
  1565. sp.MeshType = "Wedge"
  1566. sp.Scale = Vector3.new(0, 1, 1) * sz / w1.Size
  1567. w1:BreakJoints()
  1568. w1.Anchored = true
  1569. w1.Parent = workspace
  1570. w1.Transparency = 0.7
  1571. table.insert(Effects, {w1, "Disappear", 0.01})
  1572. w1.CFrame = maincf * CFrame.Angles(math.pi, 0, math.pi / 2) * CFrame.new(0, width / 2, len1 / 2)
  1573. table.insert(list, w1)
  1574. end
  1575. do
  1576. if len2 > 0.01 then
  1577. local w2 = Instance.new("WedgePart", m)
  1578. game:GetService("Debris"):AddItem(w2, 5)
  1579. w2.Material = "SmoothPlastic"
  1580. w2.FormFactor = "Custom"
  1581. w2.BrickColor = BrickColor.new(TrailColor)
  1582. w2.Transparency = 0
  1583. w2.Reflectance = 0
  1584. w2.Material = "SmoothPlastic"
  1585. w2.CanCollide = false
  1586. NoOutline(w2)
  1587. local sz = Vector3.new(0.2, width, len2)
  1588. w2.Size = sz
  1589. local sp = Instance.new("SpecialMesh", w2)
  1590. sp.MeshType = "Wedge"
  1591. sp.Scale = Vector3.new(0, 1, 1) * sz / w2.Size
  1592. w2:BreakJoints()
  1593. w2.Anchored = true
  1594. w2.Parent = workspace
  1595. w2.Transparency = 0.7
  1596. table.insert(Effects, {w2, "Disappear", 0.01})
  1597. w2.CFrame = maincf * CFrame.Angles(math.pi, math.pi, -math.pi / 2) * CFrame.new(0, width / 2, -len1 - len2 / 2)
  1598. table.insert(list, w2)
  1599. end
  1600. do
  1601. return unpack(list)
  1602. end
  1603. end
  1604. end
  1605.  
  1606. rayCast = function(Pos, Dir, Max, Ignore)
  1607. return game:service("Workspace"):FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore)
  1608. end
  1609.  
  1610. function clerp(a,b,t)
  1611. local qa = {QuaternionFromCFrame(a)}
  1612. local qb = {QuaternionFromCFrame(b)}
  1613. local ax, ay, az = a.x, a.y, a.z
  1614. local bx, by, bz = b.x, b.y, b.z
  1615. local _t = 1-t
  1616. return QuaternionToCFrame(_t*ax + t*bx, _t*ay + t*by, _t*az + t*bz,QuaternionSlerp(qa, qb, t))
  1617. end
  1618.  
  1619. function QuaternionFromCFrame(cf)
  1620. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  1621. local trace = m00 + m11 + m22
  1622. if trace > 0 then
  1623. local s = math.sqrt(1 + trace)
  1624. local recip = 0.5/s
  1625. return (m21-m12)*recip, (m02-m20)*recip, (m10-m01)*recip, s*0.5
  1626. else
  1627. local i = 0
  1628. if m11 > m00 then
  1629. i = 1
  1630. end
  1631. if m22 > (i == 0 and m00 or m11) then
  1632. i = 2
  1633. end
  1634. if i == 0 then
  1635. local s = math.sqrt(m00-m11-m22+1)
  1636. local recip = 0.5/s
  1637. return 0.5*s, (m10+m01)*recip, (m20+m02)*recip, (m21-m12)*recip
  1638. elseif i == 1 then
  1639. local s = math.sqrt(m11-m22-m00+1)
  1640. local recip = 0.5/s
  1641. return (m01+m10)*recip, 0.5*s, (m21+m12)*recip, (m02-m20)*recip
  1642. elseif i == 2 then
  1643. local s = math.sqrt(m22-m00-m11+1)
  1644. local recip = 0.5/s return (m02+m20)*recip, (m12+m21)*recip, 0.5*s, (m10-m01)*recip
  1645. end
  1646. end
  1647. end
  1648.  
  1649. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  1650. local xs, ys, zs = x + x, y + y, z + z
  1651. local wx, wy, wz = w*xs, w*ys, w*zs
  1652. local xx = x*xs
  1653. local xy = x*ys
  1654. local xz = x*zs
  1655. local yy = y*ys
  1656. local yz = y*zs
  1657. local zz = z*zs
  1658. return CFrame.new(px, py, pz,1-(yy+zz), xy - wz, xz + wy,xy + wz, 1-(xx+zz), yz - wx, xz - wy, yz + wx, 1-(xx+yy))
  1659. end
  1660.  
  1661. function QuaternionSlerp(a, b, t)
  1662. local cosTheta = a[1]*b[1] + a[2]*b[2] + a[3]*b[3] + a[4]*b[4]
  1663. local startInterp, finishInterp;
  1664. if cosTheta >= 0.0001 then
  1665. if (1 - cosTheta) > 0.0001 then
  1666. local theta = math.acos(cosTheta)
  1667. local invSinTheta = 1/math.sin(theta)
  1668. startInterp = math.sin((1-t)*theta)*invSinTheta
  1669. finishInterp = math.sin(t*theta)*invSinTheta
  1670. else
  1671. startInterp = 1-t
  1672. finishInterp = t
  1673. end
  1674. else
  1675. if (1+cosTheta) > 0.0001 then
  1676. local theta = math.acos(-cosTheta)
  1677. local invSinTheta = 1/math.sin(theta)
  1678. startInterp = math.sin((t-1)*theta)*invSinTheta
  1679. finishInterp = math.sin(t*theta)*invSinTheta
  1680. else
  1681. startInterp = t-1
  1682. finishInterp = t
  1683. end
  1684. end
  1685. return a[1]*startInterp + b[1]*finishInterp, a[2]*startInterp + b[2]*finishInterp, a[3]*startInterp + b[3]*finishInterp, a[4]*startInterp + b[4]*finishInterp
  1686. end
  1687. rayCast = function(Pos, Dir, Max, Ignore)
  1688. return game:service("Workspace"):FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore)
  1689. end
  1690.  
  1691. makegui = function(cframe, text)
  1692. local a = math.random(-10, 10) / 100
  1693. local c = Instance.new("Part")
  1694. c.Transparency = 1
  1695. Instance.new("BodyGyro").Parent = c
  1696. c.Parent = workspace
  1697. c.CFrame = CFrame.new(cframe.p + Vector3.new(0, 1.5, 0))
  1698. local f = Instance.new("BodyPosition")
  1699. f.P = 2000
  1700. f.D = 100
  1701. f.maxForce = Vector3.new(math.huge, math.huge, math.huge)
  1702. f.position = c.Position + Vector3.new(0, 3, 0)
  1703. f.Parent = c
  1704. game:GetService("Debris"):AddItem(c, 6.5)
  1705. c.CanCollide = false
  1706. c.Parent = workspace
  1707. c.CanCollide = false
  1708. local bg = Instance.new("BillboardGui", c)
  1709. bg.Adornee = c
  1710. bg.Size = UDim2.new(1, 0, 1, 0)
  1711. bg.StudsOffset = Vector3.new(0, 0, 0)
  1712. bg.AlwaysOnTop = false
  1713. local tl = Instance.new("TextLabel", bg)
  1714. tl.BackgroundTransparency = 1
  1715. tl.Size = UDim2.new(1, 0, 1, 0)
  1716. tl.Text = text
  1717. tl.Font = "SourceSansBold"
  1718. tl.FontSize = "Size42"
  1719. if crit == true then
  1720. tl.TextColor3 = Color3.new(0.70588235294118, 0, 0)
  1721. else
  1722. tl.TextColor3 = Color3.new(255, 0.70588235294118, 0.2)
  1723. end
  1724. tl.TextStrokeTransparency = 0
  1725. tl.TextScaled = true
  1726. tl.TextWrapped = true
  1727. coroutine.wrap(function()
  1728. wait(2)
  1729. for i = 1, 10 do
  1730. fat.Event:wait()
  1731. c.Transparency = 1
  1732. tl.TextTransparency = tl.TextTransparency + 0.1
  1733. end
  1734. end
  1735. )()
  1736. end
  1737.  
  1738. Damagefunc = function(hit, minim, maxim, knockback, Type, Property, Delay, KnockbackType, decreaseblock)
  1739. if hit.Parent == nil then
  1740. return
  1741. end
  1742. h = hit.Parent:FindFirstChild("Humanoid")
  1743. for _,v in pairs(hit.Parent:children()) do
  1744. if v:IsA("Humanoid") then
  1745. h = v
  1746. end
  1747. end
  1748. if hit.Parent.Parent:FindFirstChild("Torso") ~= nil then
  1749. h = hit.Parent.Parent:FindFirstChild("Humanoid")
  1750. end
  1751. if hit.Parent.className == "Hat" then
  1752. hit = hit.Parent.Parent:findFirstChild("Head")
  1753. end
  1754. if h ~= nil and hit.Parent.Name ~= Character.Name and hit.Parent:FindFirstChild("Torso") ~= nil then
  1755. if hit.Parent:findFirstChild("DebounceHit") ~= nil and hit.Parent.DebounceHit.Value == true then
  1756. return
  1757. end
  1758. blocked = false
  1759. block = hit.Parent:findFirstChild("Block")
  1760. if block ~= nil then
  1761. print(block.className)
  1762. if block.className == "NumberValue" and block.Value > 0 then
  1763. blocked = true
  1764. if decreaseblock == nil then
  1765. block.Value = block.Value - 1
  1766. end
  1767. end
  1768. if block.className == "IntValue" and block.Value > 0 then
  1769. blocked = true
  1770. if decreaseblock ~= nil then
  1771. block.Value = block.Value - 1
  1772. end
  1773. end
  1774. end
  1775. if blocked == false then
  1776. local D = math.random(minim, maxim) * damagea.Value
  1777. if h.Parent:FindFirstChild("Stats") then
  1778. D = D / h.Parent:FindFirstChild("Stats").Defence.Value
  1779. else
  1780. end
  1781. if not h.Parent:FindFirstChild("Stats") then
  1782. do
  1783. h.Health = h.Health - D
  1784. makegui(hit.Parent.Head.CFrame, tostring(math.floor(D + 0.5)))
  1785. local D = math.random(minim, maxim) * damagea.Value
  1786. if h.Parent:FindFirstChild("Stats") then
  1787. D = D / h.Parent:FindFirstChild("Stats").Defence.Value
  1788. else
  1789. end
  1790. if not h.Parent:FindFirstChild("Stats") then
  1791. do
  1792. h.Health = h.Health - D / 2
  1793. makegui(hit.Parent.Head.CFrame, tostring(math.floor(D + 0.5)))
  1794. if Type == "Knockdown" then
  1795. humanoid = hit.Parent.Humanoid
  1796. humanoid.PlatformStand = true
  1797. coroutine.resume(coroutine.create(function(Humanoid)
  1798. fat.Event:wait()
  1799. Humanoid.PlatformStand = false
  1800. end
  1801. ), humanoid)
  1802. local angle = hit.Position - (Property.Position + Vector3.new(0, 0, 0)).unit
  1803. local bodvol = Instance.new("BodyVelocity")
  1804. bodvol.velocity = angle * knockback
  1805. bodvol.P = 5000
  1806. bodvol.maxForce = Vector3.new(8000, 8000, 8000)
  1807. bodvol.Parent = hit
  1808. rl = Instance.new("BodyAngularVelocity")
  1809. rl.P = 3000
  1810. rl.maxTorque = Vector3.new(500000, 500000, 500000) * 50000000000000
  1811. rl.angularvelocity = Vector3.new(math.random(-10, 10), math.random(-10, 10), math.random(-10, 10))
  1812. rl.Parent = hit
  1813. game:GetService("Debris"):AddItem(bodvol, 0.5)
  1814. game:GetService("Debris"):AddItem(rl, 0.5)
  1815. else
  1816. do
  1817. if Type == "Normal" then
  1818. so("http://roblox.com/asset/?id=392592460", hit, 1, math.random(80, 120) / 100)
  1819. vp = Instance.new("BodyVelocity")
  1820. vp.P = 500
  1821. vp.maxForce = Vector3.new(math.huge, 0, math.huge)
  1822. if KnockbackType == 1 then
  1823. vp.velocity = Property.CFrame.lookVector * knockback + Property.Velocity / 1.05
  1824. else
  1825. if KnockbackType == 2 then
  1826. vp.velocity = Property.CFrame.lookVector * knockback
  1827. end
  1828. end
  1829. if knockback > 0 then
  1830. vp.Parent = hit.Parent.Torso
  1831. end
  1832. game:GetService("Debris"):AddItem(vp, 0.5)
  1833. else
  1834. if Type == "MovementDebuff" then
  1835. coroutine.resume(coroutine.create(function()
  1836. hit.Parent.Humanoid.WalkSpeed = hit.Parent.Humanoid.WalkSpeed - 0.2
  1837. speed.Value = speed.Value + 0.2
  1838. Humanoid.WalkSpeed = 16 * speed.Value
  1839. wait(1)
  1840. hit.Parent.Humanoid.WalkSpeed = hit.Parent.Humanoid.WalkSpeed + 0.2
  1841. speed.Value = speed.Value - 0.2
  1842. Humanoid.WalkSpeed = 16 * speed.Value
  1843. end
  1844. ))
  1845. vp = Instance.new("BodyVelocity")
  1846. vp.P = 500
  1847. vp.maxForce = Vector3.new(math.huge, 0, math.huge)
  1848. if KnockbackType == 1 then
  1849. vp.velocity = Property.CFrame.lookVector * knockback + Property.Velocity / 1.05
  1850. else
  1851. if KnockbackType == 2 then
  1852. vp.velocity = Property.CFrame.lookVector * knockback
  1853. end
  1854. end
  1855. if knockback > 0 then
  1856. vp.Parent = hit.Parent.Torso
  1857. end
  1858. game:GetService("Debris"):AddItem(vp, 0.5)
  1859. else
  1860. if Type == "CurseAura" then
  1861. coroutine.resume(coroutine.create(function()
  1862. savethewalkspeed = hit.Parent.Humanoid.WalkSpeed
  1863. hit.Parent.Humanoid.WalkSpeed = 0
  1864. wait(0.25)
  1865. hit.Parent.Humanoid.WalkSpeed = savethewalkspeed
  1866. end
  1867. ))
  1868. vp = Instance.new("BodyVelocity")
  1869. vp.P = 500
  1870. vp.maxForce = Vector3.new(math.huge, 0, math.huge)
  1871. if KnockbackType == 1 then
  1872. vp.velocity = Property.CFrame.lookVector * knockback + Property.Velocity / 1.05
  1873. else
  1874. if KnockbackType == 2 then
  1875. vp.velocity = Property.CFrame.lookVector * knockback
  1876. end
  1877. end
  1878. if knockback > 0 then
  1879. vp.Parent = hit.Parent.Torso
  1880. end
  1881. game:GetService("Debris"):AddItem(vp, 0.5)
  1882. else
  1883. if Type == "SlashLifeSteal2" then
  1884. so("http://www.roblox.com/asset/?id=344936315", hit, 1, math.random(100, 200) / 100)
  1885. Humanoid.Health = Humanoid.Health + math.random(2, 3) / 2.5
  1886. vp = Instance.new("BodyVelocity")
  1887. vp.P = 500
  1888. vp.maxForce = Vector3.new(math.huge, 0, math.huge)
  1889. if KnockbackType == 1 then
  1890. vp.velocity = Property.CFrame.lookVector * knockback + Property.Velocity / 1.05
  1891. else
  1892. if KnockbackType == 2 then
  1893. vp.velocity = Property.CFrame.lookVector * knockback
  1894. end
  1895. end
  1896. if knockback > 0 then
  1897. vp.Parent = hit.Parent.Torso
  1898. end
  1899. game:GetService("Debris"):AddItem(vp, 0.5)
  1900. else
  1901. if Type == "BlackHoleDamage" then
  1902. Humanoid.Health = Humanoid.Health + math.random(2, 4) / 5
  1903. floatingvelocity = Instance.new("BodyVelocity")
  1904. floatingvelocity.Parent = hit.Parent.Torso
  1905. floatingvelocity.Velocity = Vector3.new(0, math.random(2.5, 5), 0)
  1906. game:GetService("Debris"):AddItem(floatingvelocity, 1)
  1907. else
  1908. if Type == "BlackHoleDamage2" then
  1909. vp = Instance.new("BodyVelocity")
  1910. vp.P = 500
  1911. vp.maxForce = Vector3.new(math.huge, 0, math.huge)
  1912. if KnockbackType == 1 then
  1913. vp.velocity = Property.CFrame.lookVector * knockback + Property.Velocity / 1.05
  1914. else
  1915. if KnockbackType == 2 then
  1916. vp.velocity = Property.CFrame.lookVector * knockback
  1917. end
  1918. end
  1919. if knockback > 0 then
  1920. vp.Parent = hit.Parent.Torso
  1921. end
  1922. game:GetService("Debris"):AddItem(vp, 0.5)
  1923. else
  1924. if Type == "Up" then
  1925. local bodyVelocity = Instance.new("BodyVelocity")
  1926. bodyVelocity.velocity = vt(0, 60, 0)
  1927. bodyVelocity.P = 5000
  1928. bodyVelocity.maxForce = Vector3.new(8000, 8000, 8000)
  1929. bodyVelocity.Parent = hit
  1930. game:GetService("Debris"):AddItem(bodyVelocity, 1)
  1931. rl = Instance.new("BodyAngularVelocity")
  1932. rl.P = 3000
  1933. rl.maxTorque = Vector3.new(500000, 500000, 500000) * 50000000000000
  1934. rl.angularvelocity = Vector3.new(math.random(-30, 30), math.random(-30, 30), math.random(-30, 30))
  1935. rl.Parent = hit
  1936. game:GetService("Debris"):AddItem(rl, 0.5)
  1937. else
  1938. do
  1939. if Type == "Snare" then
  1940. wait()
  1941. bp = Instance.new("BodyPosition")
  1942. bp.P = 2000
  1943. bp.D = 100
  1944. bp.maxForce = Vector3.new(math.huge, math.huge, math.huge)
  1945. bp.position = hit.Parent.Torso.Position
  1946. bp.Parent = hit.Parent.Torso
  1947. game:GetService("Debris"):AddItem(bp, 1)
  1948. else
  1949. if Type == "Target" then
  1950. so("http://www.roblox.com/asset/?id=199144144", hit, 1, math.random(150, 200) / 100)
  1951. vp = Instance.new("BodyVelocity")
  1952. vp.P = 500
  1953. vp.maxForce = Vector3.new(math.huge, 0, math.huge)
  1954. if KnockbackType == 1 then
  1955. vp.velocity = Property.CFrame.lookVector * knockback + Property.Velocity / 1.05
  1956. else
  1957. if KnockbackType == 2 then
  1958. vp.velocity = Property.CFrame.lookVector * knockback
  1959. end
  1960. end
  1961. if knockback > 0 then
  1962. vp.Parent = hit.Parent.Torso
  1963. end
  1964. game:GetService("Debris"):AddItem(vp, 0.5)
  1965. end
  1966. end
  1967. debounce = Instance.new("BoolValue")
  1968. debounce.Name = "DebounceHit"
  1969. debounce.Parent = hit.Parent
  1970. debounce.Value = true
  1971. game:GetService("Debris"):AddItem(debounce, Delay)
  1972. c = Instance.new("ObjectValue")
  1973. c.Name = "creator"
  1974. c.Value = Player
  1975. c.Parent = h
  1976. game:GetService("Debris"):AddItem(c, 0.5)
  1977. CRIT = false
  1978. hitDeb = true
  1979. AttackPos = 6
  1980. end
  1981. end
  1982. end
  1983. end
  1984. end
  1985. end
  1986. end
  1987. end
  1988. end
  1989. end
  1990. end
  1991. end
  1992. end
  1993. end
  1994. end
  1995. end
  1996. end
  1997.  
  1998. MagniDamage = function(Part, magni, mindam, maxdam, knock, Type)
  1999. for _,c in pairs(workspace:children()) do
  2000. local hum = c:findFirstChild("Humanoid")
  2001. if hum ~= nil then
  2002. local head = c:findFirstChild("Torso")
  2003. if head ~= nil then
  2004. local targ = head.Position - Part.Position
  2005. local mag = targ.magnitude
  2006. if mag <= magni and c.Name ~= Player.Name then
  2007. Damagefunc(head, mindam, maxdam, knock, Type, RootPart, 0.2, 1, 3, 1)
  2008. end
  2009. end
  2010. end
  2011. end
  2012. end
  2013.  
  2014. Lightning = function(p0, p1, tym, ofs, brickcolor, th, tra, last)
  2015. local magz = p0 - p1.magnitude
  2016. local curpos = p0
  2017. local trz = {-ofs, ofs}
  2018. for i = 1, tym do
  2019. local li = Instance.new("Part", workspace)
  2020. do
  2021. li.TopSurface = 0
  2022. li.BottomSurface = 0
  2023. li.Anchored = true
  2024. li.Transparency = tra or 0.4
  2025. li.BrickColor = brickcolor
  2026. li.formFactor = "Custom"
  2027. li.CanCollide = false
  2028. li.Size = Vector3.new(th, th, magz / tym)
  2029. local ofz = Vector3.new(trz[math.random(1, 2)], trz[math.random(1, 2)], trz[math.random(1, 2)])
  2030. local trolpos = CFrame.new(curpos, p1) * CFrame.new(0, 0, magz / tym).p + ofz
  2031. if tym == i then
  2032. local magz2 = curpos - p1.magnitude
  2033. li.Size = Vector3.new(th, th, magz2)
  2034. li.CFrame = CFrame.new(curpos, p1) * CFrame.new(0, 0, -magz2 / 2)
  2035. else
  2036. do
  2037. do
  2038. li.CFrame = CFrame.new(curpos, trolpos) * CFrame.new(0, 0, magz / tym / 2)
  2039. curpos = li.CFrame * CFrame.new(0, 0, magz / tym / 2).p
  2040. game.Debris:AddItem(li, last)
  2041. coroutine.resume(coroutine.create(function()
  2042. while li.Transparency ~= 1 do
  2043. for i = 0, 1, last do
  2044. fat.Event:wait()
  2045. li.Transparency = li.Transparency + 0.1 / last
  2046. end
  2047. end
  2048. end
  2049. ))
  2050. end
  2051. -- DECOMPILER ERROR at PC134: LeaveBlock: unexpected jumping out IF_ELSE_STMT
  2052.  
  2053. -- DECOMPILER ERROR at PC134: LeaveBlock: unexpected jumping out IF_STMT
  2054.  
  2055. -- DECOMPILER ERROR at PC134: LeaveBlock: unexpected jumping out DO_STMT
  2056.  
  2057. end
  2058. end
  2059. end
  2060. end
  2061. end
  2062.  
  2063. RainbowLightning = function(p0, p1, tym, ofs, th, tra, last)
  2064. local rainbowcolor = BrickColor.new(0)
  2065. local magz = p0 - p1.magnitude
  2066. local curpos = p0
  2067. local trz = {-ofs, ofs}
  2068. for i = 1, tym do
  2069. local li = Instance.new("Part", workspace)
  2070. do
  2071. li.TopSurface = 0
  2072. li.BottomSurface = 0
  2073. li.Anchored = true
  2074. li.Transparency = tra or 0.4
  2075. li.BrickColor = rainbowcolor
  2076. li.Material = "Neon"
  2077. li.formFactor = "Custom"
  2078. li.CanCollide = false
  2079. li.Size = Vector3.new(th, th, magz / tym)
  2080. local ofz = Vector3.new(trz[math.random(1, 2)], trz[math.random(1, 2)], trz[math.random(1, 2)])
  2081. local trolpos = CFrame.new(curpos, p1) * CFrame.new(0, 0, magz / tym).p + ofz
  2082. if tym == i then
  2083. local magz2 = curpos - p1.magnitude
  2084. li.Size = Vector3.new(th, th, magz2)
  2085. li.CFrame = CFrame.new(curpos, p1) * CFrame.new(-1.57, 0, -magz2 / 2)
  2086. else
  2087. do
  2088. do
  2089. li.CFrame = CFrame.new(curpos, trolpos) * CFrame.new(-1.57, 0, magz / tym / 2)
  2090. curpos = li.CFrame * CFrame.new(0, 0, magz / tym / 2).p
  2091. game.Debris:AddItem(li, last)
  2092. coroutine.resume(coroutine.create(function()
  2093. while li.Parent ~= nil do
  2094. wait()
  2095. rainbowcolor = BrickColor.new(23)
  2096. wait()
  2097. rainbowcolor = BrickColor.new(107)
  2098. wait()
  2099. rainbowcolor = BrickColor.new(37)
  2100. wait()
  2101. rainbowcolor = BrickColor.new(119)
  2102. wait()
  2103. rainbowcolor = BrickColor.new(24)
  2104. wait()
  2105. rainbowcolor = BrickColor.new(106)
  2106. wait()
  2107. rainbowcolor = BrickColor.new(21)
  2108. wait()
  2109. rainbowcolor = BrickColor.new(104)
  2110. end
  2111. end
  2112. ))
  2113. coroutine.resume(coroutine.create(function()
  2114. while li.Transparency ~= 1 do
  2115. for i = 0, 1, last do
  2116. fat.Event:wait()
  2117. li.Transparency = li.Transparency + 0.1 / last
  2118. li.BrickColor = rainbowcolor
  2119. end
  2120. end
  2121. do
  2122. li.Parent = nil
  2123. end
  2124. end
  2125. ))
  2126. end
  2127. -- DECOMPILER ERROR at PC149: LeaveBlock: unexpected jumping out IF_ELSE_STMT
  2128.  
  2129. -- DECOMPILER ERROR at PC149: LeaveBlock: unexpected jumping out IF_STMT
  2130.  
  2131. -- DECOMPILER ERROR at PC149: LeaveBlock: unexpected jumping out DO_STMT
  2132.  
  2133. end
  2134. end
  2135. end
  2136. end
  2137. end
  2138.  
  2139. JumpEffect = function(brickcolor, cframe, x1, y1, z1, x2, y2, z2, delay)
  2140. local prt = part(3, workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", vt(0.5, 0.5, 0.5))
  2141. prt.Anchored = true
  2142. prt.CanCollide = false
  2143. prt.CFrame = cframe * angles(math.rad(90), 0, 0)
  2144. local msh = mesh("SpecialMesh", prt, "FileMesh", "http://www.roblox.com/asset/?id=3270017", vt(0, 0, 0), vt(x1, y1, z1))
  2145. game:GetService("Debris"):AddItem(prt, 10)
  2146. coroutine.resume(coroutine.create(function(Part, Mesh)
  2147. for i = 0, 1, delay do
  2148. fat.Event:wait()
  2149. Part.CFrame = Part.CFrame
  2150. Part.Transparency = i
  2151. Mesh.Scale = Mesh.Scale + vt(x2, y2, z2)
  2152. end
  2153. Part:Destroy()
  2154. end
  2155. ), prt, msh)
  2156. end
  2157.  
  2158. Shockwave2 = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  2159. local prt = part(3, workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", vt(0.5, 0.5, 0.5))
  2160. prt.Anchored = true
  2161. prt.CFrame = cframe
  2162. local msh = mesh("SpecialMesh", prt, "FileMesh", "http://www.roblox.com/asset/?id=20329976", vt(0, 0, 0), vt(x1, y1, z1))
  2163. game:GetService("Debris"):AddItem(prt, 4)
  2164. coroutine.resume(coroutine.create(function(Part, Mesh)
  2165. for i = 0, 1, delay do
  2166. fat.Event:wait()
  2167. Part.CFrame = Part.CFrame
  2168. Part.Transparency = i
  2169. Mesh.Scale = Mesh.Scale + vt(x3, y3, z3)
  2170. end
  2171. Part:Destroy()
  2172. end
  2173. ), prt, msh)
  2174. end
  2175.  
  2176. OrbEffect = function(brickcolor, cframe, x1, y1, z1, x2, y2, z2, delay)
  2177. local prt = part(3, workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", vt(0.5, 0.5, 0.5))
  2178. prt.Anchored = true
  2179. prt.CanCollide = false
  2180. prt.CFrame = cframe * angles(math.rad(math.random(-90, 90)), math.rad(math.random(-90, 90)), math.rad(math.random(-90, 90)))
  2181. local msh = mesh("SpecialMesh", prt, "FileMesh", "http://www.roblox.com/asset/?id=3270017", vt(0, 0, 0), vt(x1, y1, z1))
  2182. game:GetService("Debris"):AddItem(prt, 10)
  2183. coroutine.resume(coroutine.create(function(Part, Mesh)
  2184. for i = 0, 1, delay do
  2185. fat.Event:wait()
  2186. Part.CFrame = Part.CFrame
  2187. Part.Transparency = i
  2188. Mesh.Scale = Mesh.Scale + vt(x2, y2, z2)
  2189. end
  2190. Part:Destroy()
  2191. end
  2192. ), prt, msh)
  2193. end
  2194.  
  2195. BlockShockwave = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  2196. local prt = part(3, workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", vt(0.5, 0.5, 0.5))
  2197. prt.Anchored = true
  2198. prt.CFrame = cframe * angles(math.rad(math.random(-90, 90)), math.rad(math.random(-90, 90)), math.rad(math.random(-90, 90)))
  2199. local msh = mesh("BlockMesh", prt, "", "", vt(0, 0, 0), vt(x1, y1, z1))
  2200. game:GetService("Debris"):AddItem(prt, 10)
  2201. coroutine.resume(coroutine.create(function(Part, Mesh)
  2202. for i = 0, 1, delay do
  2203. fat.Event:wait()
  2204. Part.CFrame = Part.CFrame * angles(math.rad(math.random(-90, 90)), math.rad(math.random(-90, 90)), math.rad(math.random(-90, 90)))
  2205. Part.Transparency = i
  2206. Mesh.Scale = Mesh.Scale + vt(x3, y3, z3)
  2207. end
  2208. Part:Destroy()
  2209. end
  2210. ), prt, msh)
  2211. end
  2212.  
  2213. RainbowBlockShockwave = function(cframe, x1, y1, z1, x3, y3, z3, delay)
  2214. local rainbowcolor = BrickColor.new(0)
  2215. local prt = part(3, workspace, "SmoothPlastic", 0, 0, rainbowcolor, "Effect", vt(0.5, 0.5, 0.5))
  2216. prt.Anchored = true
  2217. prt.CFrame = cframe * angles(math.rad(math.random(-90, 90)), math.rad(math.random(-90, 90)), math.rad(math.random(-90, 90)))
  2218. prt.Material = "Neon"
  2219. local msh = mesh("BlockMesh", prt, "", "", vt(0, 0, 0), vt(x1, y1, z1))
  2220. game:GetService("Debris"):AddItem(prt, 5)
  2221. coroutine.resume(coroutine.create(function()
  2222. while prt.Parent ~= nil do
  2223. wait()
  2224. rainbowcolor = BrickColor.new(23)
  2225. wait()
  2226. rainbowcolor = BrickColor.new(107)
  2227. wait()
  2228. rainbowcolor = BrickColor.new(37)
  2229. wait()
  2230. rainbowcolor = BrickColor.new(119)
  2231. wait()
  2232. rainbowcolor = BrickColor.new(24)
  2233. wait()
  2234. rainbowcolor = BrickColor.new(106)
  2235. wait()
  2236. rainbowcolor = BrickColor.new(21)
  2237. wait()
  2238. rainbowcolor = BrickColor.new(104)
  2239. end
  2240. end
  2241. ))
  2242. coroutine.resume(coroutine.create(function(Part, Mesh)
  2243. for i = 0, 1, delay do
  2244. fat.Event:wait()
  2245. Part.CFrame = Part.CFrame * angles(math.rad(math.random(-90, 90)), math.rad(math.random(-90, 90)), math.rad(math.random(-90, 90)))
  2246. Part.Transparency = i
  2247. Part.BrickColor = rainbowcolor
  2248. Mesh.Scale = Mesh.Scale + vt(x3, y3, z3)
  2249. end
  2250. Part:Destroy()
  2251. end
  2252. ), prt, msh)
  2253. end
  2254.  
  2255. RainbowCylinderShockwave = function(cframe, x1, y1, z1, x3, y3, z3, delay)
  2256. local rainbowcolor = BrickColor.new(0)
  2257. local prt = part(3, workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", vt(0.5, 0.5, 0.5))
  2258. prt.Anchored = true
  2259. prt.CFrame = cframe
  2260. prt.Material = "Neon"
  2261. local msh = mesh("CylinderMesh", prt, "", "", vt(0, 0, 0), vt(x1, y1, z1))
  2262. game:GetService("Debris"):AddItem(prt, 5)
  2263. coroutine.resume(coroutine.create(function()
  2264. while prt.Parent ~= nil do
  2265. wait()
  2266. rainbowcolor = BrickColor.new(23)
  2267. wait()
  2268. rainbowcolor = BrickColor.new(107)
  2269. wait()
  2270. rainbowcolor = BrickColor.new(37)
  2271. wait()
  2272. rainbowcolor = BrickColor.new(119)
  2273. wait()
  2274. rainbowcolor = BrickColor.new(24)
  2275. wait()
  2276. rainbowcolor = BrickColor.new(106)
  2277. wait()
  2278. rainbowcolor = BrickColor.new(21)
  2279. wait()
  2280. rainbowcolor = BrickColor.new(104)
  2281. end
  2282. end
  2283. ))
  2284. coroutine.resume(coroutine.create(function(Part, Mesh)
  2285. for i = 0, 1, delay do
  2286. fat.Event:wait()
  2287. Part.BrickColor = rainbowcolor
  2288. Part.Transparency = i
  2289. Mesh.Scale = Mesh.Scale + vt(x3, y3, z3)
  2290. end
  2291. Part:Destroy()
  2292. end
  2293. ), prt, msh)
  2294. end
  2295.  
  2296. RainbowOrbEffect = function(cframe, x1, y1, z1, x2, y2, z2, delay)
  2297. local rainbowcolor = BrickColor.new(0)
  2298. local prt = part(3, workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", vt(0.5, 0.5, 0.5))
  2299. prt.Anchored = true
  2300. prt.CanCollide = false
  2301. prt.CFrame = cframe * angles(math.rad(math.random(-90, 90)), math.rad(math.random(-90, 90)), math.rad(math.random(-90, 90)))
  2302. local msh = mesh("SpecialMesh", prt, "FileMesh", "http://www.roblox.com/asset/?id=3270017", vt(0, 0, 0), vt(x1, y1, z1))
  2303. game:GetService("Debris"):AddItem(prt, 5)
  2304. coroutine.resume(coroutine.create(function()
  2305. while prt.Parent ~= nil do
  2306. wait()
  2307. rainbowcolor = BrickColor.new(23)
  2308. wait()
  2309. rainbowcolor = BrickColor.new(107)
  2310. wait()
  2311. rainbowcolor = BrickColor.new(37)
  2312. wait()
  2313. rainbowcolor = BrickColor.new(119)
  2314. wait()
  2315. rainbowcolor = BrickColor.new(24)
  2316. wait()
  2317. rainbowcolor = BrickColor.new(106)
  2318. wait()
  2319. rainbowcolor = BrickColor.new(21)
  2320. wait()
  2321. rainbowcolor = BrickColor.new(104)
  2322. end
  2323. end
  2324. ))
  2325. coroutine.resume(coroutine.create(function(Part, Mesh)
  2326. for i = 0, 1, delay do
  2327. fat.Event:wait()
  2328. Part.CFrame = Part.CFrame
  2329. Part.BrickColor = rainbowcolor
  2330. Part.Transparency = i
  2331. Mesh.Scale = Mesh.Scale + vt(x2, y2, z2)
  2332. end
  2333. Part:Destroy()
  2334. end
  2335. ), prt, msh)
  2336. end
  2337.  
  2338. RainbowStar = function(cframe, x1, y1, z1, x2, y2, z2, delay)
  2339. local rainbowcolor = BrickColor.new(23)
  2340. local prt = part(3, workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", vt(0.5, 0.5, 0.5))
  2341. prt.Anchored = true
  2342. prt.CanCollide = false
  2343. prt.CFrame = cframe
  2344. local msh = mesh("SpecialMesh", prt, "FileMesh", "http://www.roblox.com/asset/?id=120647846", vt(0, 0, 0), vt(x1, y1, z1))
  2345. game:GetService("Debris"):AddItem(prt, 5)
  2346. coroutine.resume(coroutine.create(function()
  2347. while prt.Parent ~= nil do
  2348. wait()
  2349. rainbowcolor = BrickColor.new(23)
  2350. wait()
  2351. rainbowcolor = BrickColor.new(107)
  2352. wait()
  2353. rainbowcolor = BrickColor.new(37)
  2354. wait()
  2355. rainbowcolor = BrickColor.new(119)
  2356. wait()
  2357. rainbowcolor = BrickColor.new(24)
  2358. wait()
  2359. rainbowcolor = BrickColor.new(106)
  2360. wait()
  2361. rainbowcolor = BrickColor.new(21)
  2362. wait()
  2363. rainbowcolor = BrickColor.new(104)
  2364. end
  2365. end
  2366. ))
  2367. coroutine.resume(coroutine.create(function(Part, Mesh)
  2368. for i = 0, 1, delay do
  2369. fat.Event:wait()
  2370. Part.CFrame = Part.CFrame
  2371. Part.BrickColor = rainbowcolor
  2372. Part.Transparency = i
  2373. Mesh.Scale = Mesh.Scale + vt(x2, y2, z2)
  2374. end
  2375. Part:Destroy()
  2376. end
  2377. ), prt, msh)
  2378. end
  2379.  
  2380. RainbowSphereShockwave = function(cframe, x1, y1, z1, x3, y3, z3, delay)
  2381. local rainbowcolor = BrickColor.new(0)
  2382. local prt = part(3, workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", vt(0.5, 0.5, 0.5))
  2383. prt.Anchored = true
  2384. prt.CFrame = cframe
  2385. prt.Material = "Neon"
  2386. local msh = mesh("SpecialMesh", prt, "Sphere", "", vt(0, 0, 0), vt(x1, y1, z1))
  2387. game:GetService("Debris"):AddItem(prt, 5)
  2388. coroutine.resume(coroutine.create(function()
  2389. while prt.Parent ~= nil do
  2390. wait()
  2391. rainbowcolor = BrickColor.new(23)
  2392. wait()
  2393. rainbowcolor = BrickColor.new(107)
  2394. wait()
  2395. rainbowcolor = BrickColor.new(37)
  2396. wait()
  2397. rainbowcolor = BrickColor.new(119)
  2398. wait()
  2399. rainbowcolor = BrickColor.new(24)
  2400. wait()
  2401. rainbowcolor = BrickColor.new(106)
  2402. wait()
  2403. rainbowcolor = BrickColor.new(21)
  2404. wait()
  2405. rainbowcolor = BrickColor.new(104)
  2406. end
  2407. end
  2408. ))
  2409. coroutine.resume(coroutine.create(function(Part, Mesh)
  2410. for i = 0, 1, delay do
  2411. fat.Event:wait()
  2412. Part.BrickColor = rainbowcolor
  2413. Part.Transparency = i
  2414. Mesh.Scale = Mesh.Scale + vt(x3, y3, z3)
  2415. end
  2416. Part:Destroy()
  2417. end
  2418. ), prt, msh)
  2419. end
  2420.  
  2421. CylinderShockwave = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  2422. local prt = part(3, workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", vt(0.5, 0.5, 0.5))
  2423. prt.Anchored = true
  2424. prt.CFrame = cframe
  2425. local msh = mesh("CylinderMesh", prt, "", "", vt(0, 0, 0), vt(x1, y1, z1))
  2426. game:GetService("Debris"):AddItem(prt, 10)
  2427. coroutine.resume(coroutine.create(function(Part, Mesh)
  2428. for i = 0, 1, delay do
  2429. fat.Event:wait()
  2430. Part.Transparency = i
  2431. Mesh.Scale = Mesh.Scale + vt(x3, y3, z3)
  2432. end
  2433. Part:Destroy()
  2434. end
  2435. ), prt, msh)
  2436. end
  2437.  
  2438. Laser = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  2439. local prt = part(3, workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", vt(0.5, 0.5, 0.5))
  2440. prt.Anchored = true
  2441. prt.CFrame = cframe
  2442. prt.Material = "Neon"
  2443. local msh = mesh("CylinderMesh", prt, "", "", vt(0, 0, 0), vt(x1, y1, z1))
  2444. game:GetService("Debris"):AddItem(prt, 10)
  2445. coroutine.resume(coroutine.create(function(Part, Mesh)
  2446. for i = 0, 1, delay do
  2447. fat.Event:wait()
  2448. Part.Transparency = i
  2449. Mesh.Scale = Mesh.Scale + vt(x3, y3, z3)
  2450. end
  2451. Part:Destroy()
  2452. end
  2453. ), prt, msh)
  2454. end
  2455.  
  2456. Laser2 = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  2457. local prt = part(3, workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", vt(0.5, 0.5, 0.5))
  2458. prt.Anchored = true
  2459. prt.CFrame = cframe
  2460. prt.Material = "Neon"
  2461. local msh = mesh("SpecialMesh", prt, "Sphere", "", vt(0, 0, 0), vt(x1, y1, z1))
  2462. game:GetService("Debris"):AddItem(prt, 10)
  2463. coroutine.resume(coroutine.create(function(Part, Mesh)
  2464. for i = 0, 1, delay do
  2465. fat.Event:wait()
  2466. Part.Transparency = i
  2467. Mesh.Scale = Mesh.Scale + vt(x3, y3, z3)
  2468. end
  2469. Part:Destroy()
  2470. end
  2471. ), prt, msh)
  2472. end
  2473.  
  2474. Laser3 = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  2475. local prt = part(3, workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", vt(0.5, 0.5, 0.5))
  2476. prt.Anchored = true
  2477. prt.CFrame = cframe
  2478. prt.Material = "Neon"
  2479. local msh = mesh("BlockMesh", prt, "", "", vt(0, 0, 0), vt(x1, y1, z1))
  2480. game:GetService("Debris"):AddItem(prt, 10)
  2481. coroutine.resume(coroutine.create(function(Part, Mesh)
  2482. for i = 0, 1, delay do
  2483. fat.Event:wait()
  2484. Part.Transparency = i
  2485. Mesh.Scale = Mesh.Scale + vt(x3, y3, z3)
  2486. end
  2487. Part:Destroy()
  2488. end
  2489. ), prt, msh)
  2490. end
  2491.  
  2492. SphereShockwave = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  2493. local prt = part(3, workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", vt(0.5, 0.5, 0.5))
  2494. prt.Anchored = true
  2495. prt.CFrame = cframe
  2496. local msh = mesh("SpecialMesh", prt, "Sphere", "", vt(0, 0, 0), vt(x1, y1, z1))
  2497. game:GetService("Debris"):AddItem(prt, 10)
  2498. coroutine.resume(coroutine.create(function(Part, Mesh)
  2499. for i = 0, 1, delay do
  2500. fat.Event:wait()
  2501. Part.Transparency = i
  2502. Mesh.Scale = Mesh.Scale + vt(x3, y3, z3)
  2503. end
  2504. Part:Destroy()
  2505. end
  2506. ), prt, msh)
  2507. end
  2508.  
  2509. SphereShockwave2 = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  2510. local prt = part(3, workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", vt(0.5, 0.5, 0.5))
  2511. prt.Anchored = true
  2512. prt.CFrame = cframe * angles(math.rad(math.random(-90, 90)), math.rad(math.random(-90, 90)), math.rad(math.random(-90, 90)))
  2513. local msh = mesh("SpecialMesh", prt, "Sphere", "", vt(0, 0, 0), vt(x1, y1, z1))
  2514. game:GetService("Debris"):AddItem(prt, 10)
  2515. coroutine.resume(coroutine.create(function(Part, Mesh)
  2516. for i = 0, 1, delay do
  2517. fat.Event:wait()
  2518. Part.Transparency = i
  2519. Mesh.Scale = Mesh.Scale + vt(x3, y3, z3)
  2520. end
  2521. Part:Destroy()
  2522. end
  2523. ), prt, msh)
  2524. end
  2525.  
  2526. Shockwave = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  2527. local prt = part(3, workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", vt(0.5, 0.5, 0.5))
  2528. prt.Anchored = true
  2529. prt.CFrame = cframe
  2530. local msh = mesh("SpecialMesh", prt, "Sphere", "", vt(0, 0, 0), vt(x1, y1, z1))
  2531. game:GetService("Debris"):AddItem(prt, 10)
  2532. coroutine.resume(coroutine.create(function(Part, Mesh)
  2533. for i = 0, 1, delay do
  2534. fat.Event:wait()
  2535. Part.CFrame = Part.CFrame
  2536. Part.Transparency = i
  2537. Mesh.Scale = Mesh.Scale + vt(x3, y3, z3)
  2538. end
  2539. Part:Destroy()
  2540. end
  2541. ), prt, msh)
  2542. end
  2543.  
  2544. leftlegangle = 0
  2545. leftlegcframe = 0
  2546. leftlegcframe2 = 0
  2547. leftlegcframe3 = 0
  2548. rightlegangle = 0
  2549. rightlegcframe = 0
  2550. rightlegcframe2 = 0
  2551. rightlegcframe3 = 0
  2552. leftarmangle = 0
  2553. rightarmangle = 0
  2554. rightlegangle2 = 0
  2555. leftlegangle2 = 0
  2556. MMouse = mouse
  2557. canidle = true
  2558. canwalk = true
  2559. holdz = false
  2560. zshooting = false
  2561. gyroenabled = false
  2562. ShotTarget = RootPart
  2563. runningsound = Head.Running
  2564. local robloxidleanimation = Instance.new("Animation", Torso)
  2565. robloxidleanimation.Name = "robloxidleanimation"
  2566. robloxidleanimation.AnimationId = "http://www.roblox.com/asset/?id=180435571"
  2567. local floatingaura = Instance.new("Sound", Torso)
  2568. floatingaura.SoundId = "http://www.roblox.com/asset/?id=343063967"
  2569. floatingaura.Volume = 0.25
  2570. floatingaura.Pitch = 0.75
  2571. floatingaura.Looped = true
  2572. gyro = Instance.new("BodyGyro")
  2573. gyro.Parent = nil
  2574. gyro.P = 10000000
  2575. gyro.D = 1000
  2576. gyro.MaxTorque = Vector3.new(0, 10000000, 0)
  2577. Clone = function()
  2578. for _,v in pairs(Torso.Parent:children()) do
  2579. if v.className == "Part" and v.Name ~= "HumanoidRootPart" then
  2580. local rainbowcolor = BrickColor.new(0)
  2581. do
  2582. n = v:clone()
  2583. n:BreakJoints()
  2584. n.archivable = true
  2585. n.Anchored = true
  2586. n.CanCollide = false
  2587. n.TopSurface = "SmoothNoOutlines"
  2588. n.BottomSurface = "SmoothNoOutlines"
  2589. n.LeftSurface = "SmoothNoOutlines"
  2590. n.RightSurface = "SmoothNoOutlines"
  2591. n.FrontSurface = "SmoothNoOutlines"
  2592. n.BackSurface = "SmoothNoOutlines"
  2593. n.Name = "Trail"
  2594. n.BrickColor = rainbowcolor
  2595. n.Parent = workspace
  2596. n.CFrame = v.CFrame
  2597. for _,v in pairs(n:children()) do
  2598. if v.Name == "face" then
  2599. v:Destroy()
  2600. end
  2601. end
  2602. game:GetService("Debris"):AddItem(n, 2)
  2603. coroutine.resume(coroutine.create(function()
  2604. while n.Parent ~= nil do
  2605. wait()
  2606. rainbowcolor = BrickColor.new(23)
  2607. wait()
  2608. rainbowcolor = BrickColor.new(107)
  2609. wait()
  2610. rainbowcolor = BrickColor.new(37)
  2611. wait()
  2612. rainbowcolor = BrickColor.new(119)
  2613. wait()
  2614. rainbowcolor = BrickColor.new(24)
  2615. wait()
  2616. rainbowcolor = BrickColor.new(106)
  2617. wait()
  2618. rainbowcolor = BrickColor.new(21)
  2619. wait()
  2620. rainbowcolor = BrickColor.new(104)
  2621. end
  2622. end
  2623. ))
  2624. coroutine.resume(coroutine.create(function(ne)
  2625. for i = 1, 80 do
  2626. ne:BreakJoints()
  2627. ne.Transparency = i / 80
  2628. ne.BrickColor = rainbowcolor
  2629. fat.Event:wait()
  2630. end
  2631. ne.Parent = nil
  2632. end
  2633. ), n)
  2634. end
  2635. end
  2636. end
  2637. end
  2638.  
  2639. equipanim = function()
  2640. attack = true
  2641. so("http://roblox.com/asset/?id=367850772", Torso, 1, 0.75)
  2642. speed.Value = speed.Value - 0.4
  2643. Humanoid.WalkSpeed = 16 * speed.Value
  2644. runningsound.Volume = 0
  2645. for i = 0, 1, 0.12 do
  2646. fat.Event:wait()
  2647. Humanoid.CameraOffset = Vector3.new(0, 0 + 3 * i, 0)
  2648. RainbowBlockShockwave(LeftLeg.CFrame * cf(0, -1, 0), 2, 2, 2, 0.01, 0.01, 0.01, 0.1)
  2649. RainbowBlockShockwave(RightLeg.CFrame * cf(0, -1, 0), 2, 2, 2, 0.01, 0.01, 0.01, 0.1)
  2650. RainbowBlockShockwave(LeftArm.CFrame * cf(0, -1, 0), 1.5, 1.5, 1.5, 0.5, 0.5, 0.5, 0.1)
  2651. RainbowBlockShockwave(RightArm.CFrame * cf(0, -1, 0), 1.5, 1.5, 1.5, 0.5, 0.5, 0.5, 0.1)
  2652. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 3) * angles(math.rad(0), math.rad(0), math.rad(0 - 360 * i)), 0.3)
  2653. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(-20), math.rad(0), math.rad(0)), 0.3)
  2654. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(135), math.rad(0), math.rad(45)), 0.3)
  2655. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(135), math.rad(0), math.rad(-45)), 0.3)
  2656. RH.C0 = clerp(RH.C0, cf(1, -1, 0) * angles(math.rad(-20), math.rad(90), math.rad(0)) * angles(math.rad(-10), math.rad(0), math.rad(0)), 0.3)
  2657. LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * angles(math.rad(-20), math.rad(-90), math.rad(0)) * angles(math.rad(-10), math.rad(0), math.rad(0)), 0.3)
  2658. end
  2659. Humanoid.CameraOffset = Vector3.new(0, 3, 0)
  2660. for i = 0, 1, 0.12 do
  2661. fat.Event:wait()
  2662. RainbowBlockShockwave(LeftLeg.CFrame * cf(0, -1, 0), 2, 2, 2, 0.01, 0.01, 0.01, 0.1)
  2663. RainbowBlockShockwave(RightLeg.CFrame * cf(0, -1, 0), 2, 2, 2, 0.01, 0.01, 0.01, 0.1)
  2664. RainbowBlockShockwave(LeftArm.CFrame * cf(0, -1, 0), 1.5, 1.5, 1.5, 0.5, 0.5, 0.5, 0.1)
  2665. RainbowBlockShockwave(RightArm.CFrame * cf(0, -1, 0), 1.5, 1.5, 1.5, 0.5, 0.5, 0.5, 0.1)
  2666. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 3) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  2667. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(-20), math.rad(0), math.rad(0)), 0.3)
  2668. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(135 - 45 * i), math.rad(0), math.rad(45)), 0.3)
  2669. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(135 - 45 * i), math.rad(0), math.rad(-45)), 0.3)
  2670. RH.C0 = clerp(RH.C0, cf(1, -1, 0) * angles(math.rad(-20), math.rad(90), math.rad(0)) * angles(math.rad(-10), math.rad(0), math.rad(0)), 0.3)
  2671. LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * angles(math.rad(-20), math.rad(-90), math.rad(0)) * angles(math.rad(-10), math.rad(0), math.rad(0)), 0.3)
  2672. end
  2673. for i = 0, 1, 0.18 do
  2674. fat.Event:wait()
  2675. RainbowBlockShockwave(LeftLeg.CFrame * cf(0, -1, 0), 2, 2, 2, 0.01, 0.01, 0.01, 0.1)
  2676. RainbowBlockShockwave(RightLeg.CFrame * cf(0, -1, 0), 2, 2, 2, 0.01, 0.01, 0.01, 0.1)
  2677. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 3) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  2678. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(10), math.rad(0), math.rad(0)), 0.3)
  2679. RW.C0 = clerp(RW.C0, CFrame.new(1, 0.5, -0.5) * angles(math.rad(90), math.rad(0), math.rad(-45)), 0.3)
  2680. LW.C0 = clerp(LW.C0, CFrame.new(-1, 0.5, -0.5) * angles(math.rad(90), math.rad(0), math.rad(45)), 0.3)
  2681. RH.C0 = clerp(RH.C0, cf(1, -1, 0) * angles(math.rad(-20), math.rad(90), math.rad(0)) * angles(math.rad(-10), math.rad(0), math.rad(0)), 0.3)
  2682. LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * angles(math.rad(-20), math.rad(-90), math.rad(0)) * angles(math.rad(-10), math.rad(0), math.rad(0)), 0.3)
  2683. end
  2684. so("http://roblox.com/asset/?id=340722848", Torso, 0.5, 2)
  2685. so("http://roblox.com/asset/?id=367850840", Torso, 0.75, 1.75)
  2686. RainbowBlockShockwave(LeftArm.CFrame * cf(0, -1, 0), 1.5, 1.5, 1.5, 1, 1, 1, 0.05)
  2687. RainbowBlockShockwave(RightArm.CFrame * cf(0, -1, 0), 1.5, 1.5, 1.5, 1, 1, 1, 0.05)
  2688. for i = 0, 1, 0.06 do
  2689. fat.Event:wait()
  2690. RainbowBlockShockwave(LeftLeg.CFrame * cf(0, -1, 0), 2, 2, 2, 0.01, 0.01, 0.01, 0.1)
  2691. RainbowBlockShockwave(RightLeg.CFrame * cf(0, -1, 0), 2, 2, 2, 0.01, 0.01, 0.01, 0.1)
  2692. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 3) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  2693. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(10), math.rad(0), math.rad(0)), 0.3)
  2694. RW.C0 = clerp(RW.C0, CFrame.new(1, 0.5, -0.5) * angles(math.rad(90), math.rad(0), math.rad(-45)), 0.3)
  2695. LW.C0 = clerp(LW.C0, CFrame.new(-1, 0.5, -0.5) * angles(math.rad(90), math.rad(0), math.rad(45)), 0.3)
  2696. RH.C0 = clerp(RH.C0, cf(1, -1, 0) * angles(math.rad(-20), math.rad(90), math.rad(0)) * angles(math.rad(-10), math.rad(0), math.rad(0)), 0.3)
  2697. LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * angles(math.rad(-20), math.rad(-90), math.rad(0)) * angles(math.rad(-10), math.rad(0), math.rad(0)), 0.3)
  2698. end
  2699. speed.Value = speed.Value + 0.3
  2700. Humanoid.WalkSpeed = 16 * speed.Value
  2701. floatingaura:Play()
  2702. attack = false
  2703. end
  2704.  
  2705. unequipanim = function()
  2706. attack = true
  2707. gyro.Parent = nil
  2708. gyroenabled = false
  2709. so("http://roblox.com/asset/?id=367850772", Torso, 0.75, 1.25)
  2710. speed.Value = speed.Value - 0.3
  2711. Humanoid.WalkSpeed = 16 * speed.Value
  2712. for i = 0, 1, 0.08 do
  2713. fat.Event:wait()
  2714. RainbowBlockShockwave(LeftLeg.CFrame * cf(0, -1, 0), 2, 2, 2, 0.01, 0.01, 0.01, 0.1)
  2715. RainbowBlockShockwave(RightLeg.CFrame * cf(0, -1, 0), 2, 2, 2, 0.01, 0.01, 0.01, 0.1)
  2716. RainbowBlockShockwave(LeftArm.CFrame * cf(0, -1, 0), 1.5, 1.5, 1.5, 0.5, 0.5, 0.5, 0.1)
  2717. RainbowBlockShockwave(RightArm.CFrame * cf(0, -1, 0), 1.5, 1.5, 1.5, 0.5, 0.5, 0.5, 0.1)
  2718. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 3) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  2719. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(20), math.rad(0), math.rad(0)), 0.3)
  2720. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(20), math.rad(0), math.rad(90)), 0.3)
  2721. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(20), math.rad(0), math.rad(-90)), 0.3)
  2722. RH.C0 = clerp(RH.C0, cf(1, -1, 0) * angles(math.rad(-20), math.rad(90), math.rad(0)) * angles(math.rad(-10), math.rad(0), math.rad(0)), 0.3)
  2723. LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * angles(math.rad(-20), math.rad(-90), math.rad(0)) * angles(math.rad(-10), math.rad(0), math.rad(0)), 0.3)
  2724. end
  2725. so("http://roblox.com/asset/?id=367850840", Torso, 0.75, 0.75)
  2726. for i = 0, 1, 0.06 do
  2727. fat.Event:wait()
  2728. Humanoid.CameraOffset = Vector3.new(0, 3 - 3 * i, 0)
  2729. RainbowBlockShockwave(LeftLeg.CFrame * cf(0, -1, 0), 2, 2, 2, 0.01, 0.01, 0.01, 0.1)
  2730. RainbowBlockShockwave(RightLeg.CFrame * cf(0, -1, 0), 2, 2, 2, 0.01, 0.01, 0.01, 0.1)
  2731. RainbowBlockShockwave(LeftArm.CFrame * cf(0, -1, 0), 1.5, 1.5, 1.5, 0.5, 0.5, 0.5, 0.1)
  2732. RainbowBlockShockwave(RightArm.CFrame * cf(0, -1, 0), 1.5, 1.5, 1.5, 0.5, 0.5, 0.5, 0.1)
  2733. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 3 - 3 * i) * angles(math.rad(0), math.rad(0), math.rad(0 + 360 * i)), 0.3)
  2734. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(20), math.rad(0), math.rad(0)), 0.3)
  2735. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(20), math.rad(0), math.rad(90 - 70 * i)), 0.3)
  2736. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(20), math.rad(0), math.rad(-90 + 70 * i)), 0.3)
  2737. RH.C0 = clerp(RH.C0, cf(1, -1, 0) * angles(math.rad(-20), math.rad(90), math.rad(0)) * angles(math.rad(-10), math.rad(0), math.rad(0)), 0.3)
  2738. LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * angles(math.rad(-20), math.rad(-90), math.rad(0)) * angles(math.rad(-10), math.rad(0), math.rad(0)), 0.3)
  2739. end
  2740. floatingaura:Stop()
  2741. Humanoid.CameraOffset = Vector3.new(0, 0, 0)
  2742. for i = 0, 1, 0.06 do
  2743. fat.Event:wait()
  2744. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  2745. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  2746. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  2747. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  2748. RH.C0 = clerp(RH.C0, cf(1, -1, 0) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  2749. LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  2750. end
  2751. runningsound.Volume = 0.5
  2752. speed.Value = speed.Value + 0.4
  2753. Humanoid.WalkSpeed = 16 * speed.Value
  2754. attack = false
  2755. end
  2756.  
  2757. attackone = function()
  2758. attack = true
  2759. so("http://roblox.com/asset/?id=367850840", Torso, 0.75, 1)
  2760. for i = 0, 1, 0.2 do
  2761. fat.Event:wait()
  2762. RainbowBlockShockwave(RightArm.CFrame * cf(0, -1, 0), 3, 3, 3, 0.01, 0.01, 0.01, 0.075)
  2763. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 3) * angles(math.rad(0), math.rad(0), math.rad(60)), 0.3)
  2764. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(10), math.rad(0), math.rad(-60)), 0.3)
  2765. RW.C0 = clerp(RW.C0, CFrame.new(1, 0.5, -0.5) * angles(math.rad(135), math.rad(0), math.rad(-45)), 0.3)
  2766. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-20), math.rad(0), math.rad(-20)), 0.3)
  2767. RH.C0 = clerp(RH.C0, cf(1, -1, 0) * angles(math.rad(-5), math.rad(90), math.rad(0)) * angles(math.rad(-5), math.rad(0), math.rad(0)), 0.3)
  2768. LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * angles(math.rad(-5), math.rad(-90), math.rad(0)) * angles(math.rad(-5), math.rad(0), math.rad(0)), 0.3)
  2769. end
  2770. so("http://roblox.com/asset/?id=340722848", Torso, 0.75, 1.75)
  2771. RainbowBlockShockwave(RightArm.CFrame * cf(0, -1, 0), 5, 5, 5, 0.05, 0.05, 0.05, 0.05)
  2772. local startingrefpart = part(3, workspace, "SmoothPlastic", 0, 1, BrickColor.new("Really black"), "Effect", vt())
  2773. startingrefpart.Anchored = true
  2774. startingrefpart.CFrame = RootPart.CFrame * cf(0, 3, -15)
  2775. game:GetService("Debris"):AddItem(startingrefpart, 3)
  2776. RainbowBlockShockwave(cf(startingrefpart.Position), 2, 2, 2, 2, 2, 2, 0.05)
  2777. MagniDamage(startingrefpart, 20, 10, 15, 10, "Normal")
  2778. for i = 1, math.random(2, 4) do
  2779. RainbowOrbEffect(cf(startingrefpart.Position), 2, 2, 2, 2, 2, 2, 0.04)
  2780. end
  2781. for i = 0, 1, 0.2 do
  2782. fat.Event:wait()
  2783. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 3) * angles(math.rad(0), math.rad(0), math.rad(-30)), 0.3)
  2784. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(10), math.rad(0), math.rad(30)), 0.3)
  2785. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(15), math.rad(0), math.rad(45)), 0.3)
  2786. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(20), math.rad(0), math.rad(-10)), 0.3)
  2787. RH.C0 = clerp(RH.C0, cf(1, -1, 0) * angles(math.rad(-5), math.rad(90), math.rad(0)) * angles(math.rad(-5), math.rad(0), math.rad(0)), 0.3)
  2788. LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * angles(math.rad(-5), math.rad(-90), math.rad(0)) * angles(math.rad(-5), math.rad(0), math.rad(0)), 0.3)
  2789. end
  2790. attack = false
  2791. end
  2792.  
  2793. attacktwo = function()
  2794. attack = true
  2795. so("http://roblox.com/asset/?id=367850840", Torso, 0.75, 1.25)
  2796. for i = 0, 1, 0.2 do
  2797. fat.Event:wait()
  2798. RainbowBlockShockwave(LeftArm.CFrame * cf(0, -1, 0), 3, 3, 3, 0.01, 0.01, 0.01, 0.075)
  2799. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 3) * angles(math.rad(0), math.rad(0), math.rad(-60)), 0.3)
  2800. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(10), math.rad(0), math.rad(60)), 0.3)
  2801. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(-20), math.rad(0), math.rad(20)), 0.3)
  2802. LW.C0 = clerp(LW.C0, CFrame.new(-1, 0.5, -0.5) * angles(math.rad(135), math.rad(0), math.rad(45)), 0.3)
  2803. RH.C0 = clerp(RH.C0, cf(1, -1, 0) * angles(math.rad(-5), math.rad(90), math.rad(0)) * angles(math.rad(-5), math.rad(0), math.rad(0)), 0.3)
  2804. LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * angles(math.rad(-5), math.rad(-90), math.rad(0)) * angles(math.rad(-5), math.rad(0), math.rad(0)), 0.3)
  2805. end
  2806. so("http://roblox.com/asset/?id=340722848", Torso, 0.75, 1.5)
  2807. RainbowBlockShockwave(LeftArm.CFrame * cf(0, -1, 0), 5, 5, 5, 0.05, 0.05, 0.05, 0.05)
  2808. local startingrefpart = part(3, workspace, "SmoothPlastic", 0, 1, BrickColor.new("Really black"), "Effect", vt())
  2809. startingrefpart.Anchored = true
  2810. startingrefpart.CFrame = RootPart.CFrame * cf(0, 3, -15)
  2811. game:GetService("Debris"):AddItem(startingrefpart, 3)
  2812. RainbowBlockShockwave(cf(startingrefpart.Position), 2, 2, 2, 2, 2, 2, 0.05)
  2813. MagniDamage(startingrefpart, 20, 10, 15, 10, "Normal")
  2814. for i = 1, math.random(2, 4) do
  2815. RainbowOrbEffect(cf(startingrefpart.Position), 2, 2, 2, 2, 2, 2, 0.04)
  2816. end
  2817. for i = 0, 1, 0.2 do
  2818. fat.Event:wait()
  2819. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 3) * angles(math.rad(0), math.rad(0), math.rad(30)), 0.3)
  2820. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(10), math.rad(0), math.rad(-30)), 0.3)
  2821. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(20), math.rad(0), math.rad(-10)), 0.3)
  2822. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(15), math.rad(0), math.rad(-45)), 0.3)
  2823. RH.C0 = clerp(RH.C0, cf(1, -1, 0) * angles(math.rad(-5), math.rad(90), math.rad(0)) * angles(math.rad(-5), math.rad(0), math.rad(0)), 0.3)
  2824. LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * angles(math.rad(-5), math.rad(-90), math.rad(0)) * angles(math.rad(-5), math.rad(0), math.rad(0)), 0.3)
  2825. end
  2826. attack = false
  2827. end
  2828.  
  2829. attackthree = function()
  2830. attack = true
  2831. so("http://roblox.com/asset/?id=367850840", Torso, 0.75, 0.75)
  2832. for i = 0, 1, 0.2 do
  2833. fat.Event:wait()
  2834. RainbowBlockShockwave(RightArm.CFrame * cf(0, -1, 0), 3, 3, 3, 0.01, 0.01, 0.01, 0.075)
  2835. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 3) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  2836. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(10), math.rad(0), math.rad(0)), 0.3)
  2837. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(30), math.rad(0), math.rad(15)), 0.3)
  2838. LW.C0 = clerp(LW.C0, CFrame.new(-1.25, 0.5, 0.25) * angles(math.rad(-45), math.rad(0), math.rad(45)), 0.3)
  2839. RH.C0 = clerp(RH.C0, cf(1, -1, 0) * angles(math.rad(-5), math.rad(90), math.rad(0)) * angles(math.rad(-5), math.rad(0), math.rad(0)), 0.3)
  2840. LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * angles(math.rad(-5), math.rad(-90), math.rad(0)) * angles(math.rad(-5), math.rad(0), math.rad(0)), 0.3)
  2841. end
  2842. for i = 0, 1, 0.2 do
  2843. fat.Event:wait()
  2844. RainbowBlockShockwave(RightArm.CFrame * cf(0, -1, 0), 3, 3, 3, 0.01, 0.01, 0.01, 0.075)
  2845. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 3) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  2846. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(-10), math.rad(0), math.rad(0)), 0.3)
  2847. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(165), math.rad(0), math.rad(5)), 0.3)
  2848. LW.C0 = clerp(LW.C0, CFrame.new(-1.25, 0.5, 0.25) * angles(math.rad(-45), math.rad(0), math.rad(45)), 0.3)
  2849. RH.C0 = clerp(RH.C0, cf(1, -1, 0) * angles(math.rad(-5), math.rad(90), math.rad(0)) * angles(math.rad(-5), math.rad(0), math.rad(0)), 0.3)
  2850. LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * angles(math.rad(-5), math.rad(-90), math.rad(0)) * angles(math.rad(-5), math.rad(0), math.rad(0)), 0.3)
  2851. end
  2852. for i = 1, 2 do
  2853. RainbowBlockShockwave(RightArm.CFrame * cf(0, -1, 0), 3, 3, 3, 0.01, 0.01, 0.01, 0.075)
  2854. local startingrefpart = part(3, workspace, "SmoothPlastic", 0, 1, BrickColor.new("Really black"), "Effect", vt())
  2855. startingrefpart.Anchored = true
  2856. startingrefpart.CFrame = RootPart.CFrame * cf(math.random(-10, 10), 400, -20 + math.random(-10, 10))
  2857. game:GetService("Debris"):AddItem(startingrefpart, 3)
  2858. local hit, pos = rayCast(startingrefpart.Position, CFrame.new(startingrefpart.Position, startingrefpart.Position - Vector3.new(0, 1, 0)).lookVector, 500, Character)
  2859. if hit ~= nil then
  2860. floor = true
  2861. refpart = part(3, workspace, "SmoothPlastic", 0, 1, BrickColor.new("Really black"), "Effect", vt())
  2862. refpart.Anchored = true
  2863. refpart.CFrame = cf(pos)
  2864. game:GetService("Debris"):AddItem(refpart, 3)
  2865. MagniDamage(refpart, 10, 10, 15, 0, "Normal")
  2866. so("http://roblox.com/asset/?id=367932544", refpart, 0.5, 1)
  2867. RainbowCylinderShockwave(cf(refpart.Position), 0.1, 0.01, 0.1, 3, 0.01, 3, 0.05)
  2868. for i = 1, math.random(5, 10) do
  2869. RainbowLightning(startingrefpart.Position, refpart.Position, 5, math.random(5, 10), 0.5, 0.5, 2)
  2870. end
  2871. end
  2872. do
  2873. for i = 0, 1, 0.08 do
  2874. fat.Event:wait()
  2875. local lv = RootPart.CFrame:pointToObjectSpace(RootPart.Velocity + RootPart.Position)
  2876. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 3) * angles(math.rad(-lv.z / 1), math.rad(-lv.x / 1), math.rad(0)), 0.3)
  2877. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(-10), math.rad(0), math.rad(0)), 0.3)
  2878. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(165), math.rad(0), math.rad(5)), 0.3)
  2879. LW.C0 = clerp(LW.C0, CFrame.new(-1.25, 0.5, 0.25) * angles(math.rad(-45), math.rad(0), math.rad(45)), 0.3)
  2880. RH.C0 = clerp(RH.C0, cf(1, -1, 0) * angles(math.rad(-5), math.rad(90), math.rad(0)) * angles(math.rad(-5), math.rad(0), math.rad(0)), 0.3)
  2881. LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * angles(math.rad(-5), math.rad(-90), math.rad(0)) * angles(math.rad(-5), math.rad(0), math.rad(0)), 0.3)
  2882. end
  2883. -- DECOMPILER ERROR at PC846: LeaveBlock: unexpected jumping out DO_STMT
  2884.  
  2885. end
  2886. end
  2887. attack = false
  2888. end
  2889.  
  2890. ChangeMode = function()
  2891. attack = true
  2892. so("http://roblox.com/asset/?id=367850772", Torso, 0.75, math.random(80, 120) / 100)
  2893. for i = 0, 1, 0.06 do
  2894. fat.Event:wait()
  2895. RainbowBlockShockwave(LeftArm.CFrame * cf(0, -1, 0), 3, 3, 3, 0.01, 0.01, 0.01, 0.075)
  2896. RainbowBlockShockwave(RightArm.CFrame * cf(0, -1, 0), 3, 3, 3, 0.01, 0.01, 0.01, 0.075)
  2897. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 3) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  2898. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(10), math.rad(0), math.rad(0)), 0.3)
  2899. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(15), math.rad(0), math.rad(75)), 0.3)
  2900. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(15), math.rad(0), math.rad(-75)), 0.3)
  2901. RH.C0 = clerp(RH.C0, cf(1, -1, 0) * angles(math.rad(-5), math.rad(90), math.rad(0)) * angles(math.rad(-5), math.rad(0), math.rad(0)), 0.3)
  2902. LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * angles(math.rad(-5), math.rad(-90), math.rad(0)) * angles(math.rad(-5), math.rad(0), math.rad(0)), 0.3)
  2903. end
  2904. attack = false
  2905. end
  2906.  
  2907. canlaser = true
  2908. canrainstar = true
  2909. LaserShot = function()
  2910. canlaser = false
  2911. local theactualstartingrefpart = part(3, workspace, "SmoothPlastic", 0, 1, BrickColor.new("Really black"), "Effect", vt())
  2912. theactualstartingrefpart.Anchored = true
  2913. theactualstartingrefpart.CFrame = RootPart.CFrame * cf(0, 1000, 0)
  2914. game:GetService("Debris"):AddItem(theactualstartingrefpart, 0.1)
  2915. local spread = Vector3.new(math.random(-10, 10), 0, math.random(-10, 10))
  2916. local MainPos = theactualstartingrefpart.Position
  2917. local MainPos2 = MMouse.Hit.p + spread
  2918. local MouseLook = cf((MainPos + MainPos2) / 2, MainPos2)
  2919. local hit, pos = rayCast(MainPos, MouseLook.lookVector, 10000, ShotTarget.Parent)
  2920. if hit ~= nil then
  2921. local actualstartingrefpart = part(3, workspace, "SmoothPlastic", 0, 1, BrickColor.new("Really black"), "Effect", vt())
  2922. actualstartingrefpart.Anchored = true
  2923. actualstartingrefpart.CFrame = cf(pos)
  2924. game:GetService("Debris"):AddItem(actualstartingrefpart, 0.1)
  2925. local startingrefpart = part(3, workspace, "SmoothPlastic", 0, 1, BrickColor.new("Really black"), "Effect", vt())
  2926. startingrefpart.Anchored = true
  2927. startingrefpart.CFrame = actualstartingrefpart.CFrame * cf(0, 400, 0)
  2928. game:GetService("Debris"):AddItem(startingrefpart, 0.1)
  2929. local hit, pos = rayCast(startingrefpart.Position, CFrame.new(startingrefpart.Position, startingrefpart.Position - Vector3.new(0, 1, 0)).lookVector, 500, Character)
  2930. if hit ~= nil then
  2931. floor = true
  2932. refpart = part(3, workspace, "SmoothPlastic", 0, 1, BrickColor.new("Really black"), "Effect", vt())
  2933. refpart.Anchored = true
  2934. refpart.CFrame = cf(pos)
  2935. game:GetService("Debris"):AddItem(refpart, 0.1)
  2936. MagniDamage(refpart, 10, 20, 30, 0, "Normal")
  2937. so("http://roblox.com/asset/?id=367932544", refpart, 0.5, math.random(80, 120) / 100)
  2938. RainbowCylinderShockwave(cf(refpart.Position), 18, 0.01, 18, 1, 0.01, 1, 0.05)
  2939. RainbowLightning(startingrefpart.Position, refpart.Position, 5, math.random(5, 10), 6, 0.5, 10)
  2940. end
  2941. end
  2942. do
  2943. wait(0.25)
  2944. canlaser = true
  2945. end
  2946. end
  2947.  
  2948. starcount = 0
  2949. StarRain = function()
  2950. canrainstar = false
  2951. starcount = math.random(1, 8)
  2952. if starcount == 1 or starcount == 2 or starcount == 3 or starcount == 4 or starcount == 5 or starcount == 6 or starcount == 7 then
  2953. startingrefpart = part(3, workspace, "SmoothPlastic", 0, 1, BrickColor.new("Really black"), "Effect", vt())
  2954. startingrefpart.Anchored = true
  2955. startingrefpart.CFrame = RootPart.CFrame * cf(math.random(-20, 20), math.random(30, 40), math.random(-20, 20))
  2956. game:GetService("Debris"):AddItem(startingrefpart, 2)
  2957. so("http://roblox.com/asset/?id=367850840", startingrefpart, 0.75, math.random(75, 125) / 100)
  2958. local spread = Vector3.new(math.random(-2, 2), math.random(-2, 2), math.random(-2, 2))
  2959. do
  2960. local MainPos = startingrefpart.Position
  2961. local MainPos2 = MMouse.Hit.p + spread
  2962. local MouseLook = cf((MainPos + MainPos2) / 2, MainPos2)
  2963. local speed = 0.01
  2964. local num = 300
  2965. local rotation = 0
  2966. coroutine.resume(coroutine.create(function()
  2967. repeat
  2968. swait(1)
  2969. local hit, pos = rayCast(MainPos, MouseLook.lookVector, speed, ShotTarget.Parent)
  2970. local mag = MainPos - pos.magnitude
  2971. RainbowStar(CFrame.new((MainPos + pos) / 2, pos) * angles(1.57, math.rad(-90), math.rad(rotation)), 10, 10, 10, 0.01, 0.01, 0.01, 0.125)
  2972. MainPos = MainPos + MouseLook.lookVector * speed
  2973. num = num - 1
  2974. rotation = rotation - 5
  2975. coroutine.resume(coroutine.create(function()
  2976. wait(0.25)
  2977. speed = 2
  2978. end
  2979. ))
  2980. if hit ~= nil then
  2981. num = 0
  2982. refpart = part(3, workspace, "SmoothPlastic", 0, 1, BrickColor.new("Really black"), "Effect", vt())
  2983. refpart.Anchored = true
  2984. refpart.CFrame = cf(pos)
  2985. game:GetService("Debris"):AddItem(refpart, 2)
  2986. RainbowSphereShockwave(cf(refpart.Position), 50, 50, 50, 0.1, 0.1, 0.1, 0.075)
  2987. MagniDamage(refpart, 15, 20, 30, 0, "Normal")
  2988. so("http://roblox.com/asset/?id=367850772", refpart, 1, math.random(100, 150) / 100)
  2989. so("http://roblox.com/asset/?id=340722848", refpart, 0.5, math.random(100, 150) / 100)
  2990. end
  2991. if num <= 0 then
  2992. refpart = part(3, workspace, "SmoothPlastic", 0, 1, BrickColor.new("Really black"), "Effect", vt())
  2993. refpart.Anchored = true
  2994. refpart.CFrame = cf(pos)
  2995. game:GetService("Debris"):AddItem(refpart, 2)
  2996. RainbowSphereShockwave(cf(refpart.Position), 50, 50, 50, 0.1, 0.1, 0.1, 0.075)
  2997. MagniDamage(refpart, 15, 20, 30, 0, "Normal")
  2998. so("http://roblox.com/asset/?id=367850772", refpart, 1, math.random(100, 150) / 100)
  2999. so("http://roblox.com/asset/?id=340722848", refpart, 0.5, math.random(100, 150) / 100)
  3000. end
  3001. until num <= 0
  3002. end
  3003. ))
  3004. end
  3005. else
  3006. do
  3007. if starcount == 8 then
  3008. startingrefpart = part(3, workspace, "SmoothPlastic", 0, 1, BrickColor.new("Really black"), "Effect", vt())
  3009. startingrefpart.Anchored = true
  3010. startingrefpart.CFrame = RootPart.CFrame * cf(math.random(-20, 20), math.random(30, 40), math.random(-20, 20))
  3011. game:GetService("Debris"):AddItem(startingrefpart, 2)
  3012. so("http://roblox.com/asset/?id=367850840", startingrefpart, 0.75, math.random(45, 55) / 100)
  3013. local spread = Vector3.new(math.random(-2, 2), math.random(-2, 2), math.random(-2, 2))
  3014. local MainPos = startingrefpart.Position
  3015. local MainPos2 = MMouse.Hit.p + spread
  3016. local MouseLook = cf((MainPos + MainPos2) / 2, MainPos2)
  3017. local speed = 0.01
  3018. local num = 300
  3019. local rotation = 0
  3020. coroutine.resume(coroutine.create(function()
  3021. repeat
  3022. swait(1)
  3023. local hit, pos = rayCast(MainPos, MouseLook.lookVector, speed, ShotTarget.Parent)
  3024. local mag = MainPos - pos.magnitude
  3025. RainbowStar(CFrame.new((MainPos + pos) / 2, pos) * angles(1.57, math.rad(-90), math.rad(rotation)), 20, 20, 20, 0.01, 0.01, 0.01, 0.125)
  3026. MainPos = MainPos + MouseLook.lookVector * speed
  3027. num = num - 1
  3028. rotation = rotation - 5
  3029. coroutine.resume(coroutine.create(function()
  3030. wait(0.25)
  3031. speed = 1
  3032. end
  3033. ))
  3034. if hit ~= nil then
  3035. num = 0
  3036. refpart = part(3, workspace, "SmoothPlastic", 0, 1, BrickColor.new("Really black"), "Effect", vt())
  3037. refpart.Anchored = true
  3038. refpart.CFrame = cf(pos)
  3039. game:GetService("Debris"):AddItem(refpart, 2)
  3040. RainbowSphereShockwave(cf(refpart.Position), 100, 100, 100, 0.1, 0.1, 0.1, 0.075)
  3041. MagniDamage(refpart, 27.5, 40, 60, 0, "Normal")
  3042. so("http://roblox.com/asset/?id=367850772", refpart, 1, math.random(50, 100) / 100)
  3043. so("http://roblox.com/asset/?id=340722848", refpart, 0.5, math.random(50, 100) / 100)
  3044. end
  3045. if num <= 0 then
  3046. refpart = part(3, workspace, "SmoothPlastic", 0, 1, BrickColor.new("Really black"), "Effect", vt())
  3047. refpart.Anchored = true
  3048. refpart.CFrame = cf(pos)
  3049. game:GetService("Debris"):AddItem(refpart, 2)
  3050. RainbowSphereShockwave(cf(refpart.Position), 100, 100, 100, 0.1, 0.1, 0.1, 0.075)
  3051. MagniDamage(refpart, 27.5, 40, 60, 0, "Normal")
  3052. so("http://roblox.com/asset/?id=367850772", refpart, 1, math.random(50, 100) / 100)
  3053. so("http://roblox.com/asset/?id=340722848", refpart, 0.5, math.random(50, 100) / 100)
  3054. end
  3055. until num <= 0
  3056. end
  3057. ))
  3058. end
  3059. do
  3060. wait(math.random(80, 140) / 100)
  3061. canrainstar = true
  3062. end
  3063. end
  3064. end
  3065. end
  3066.  
  3067. LasersandStars = function()
  3068. holdz = true
  3069. attack = true
  3070. so("http://roblox.com/asset/?id=367850772", Torso, 0.75, math.random(80, 120) / 100)
  3071. speed.Value = speed.Value - 0.5
  3072. Humanoid.WalkSpeed = 16 * speed.Value
  3073. for i = 0, 1, 0.06 do
  3074. fat.Event:wait()
  3075. RainbowBlockShockwave(LeftArm.CFrame * cf(0, -1, 0), 3, 3, 3, 0.01, 0.01, 0.01, 0.075)
  3076. RainbowBlockShockwave(RightArm.CFrame * cf(0, -1, 0), 3, 3, 3, 0.01, 0.01, 0.01, 0.075)
  3077. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 5) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  3078. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(10), math.rad(0), math.rad(0)), 0.3)
  3079. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(75)), 0.3)
  3080. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(-75)), 0.3)
  3081. RH.C0 = clerp(RH.C0, cf(1, -1, 0) * angles(math.rad(-5), math.rad(90), math.rad(0)) * angles(math.rad(-5), math.rad(0), math.rad(0)), 0.3)
  3082. LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * angles(math.rad(-5), math.rad(-90), math.rad(0)) * angles(math.rad(-5), math.rad(0), math.rad(0)), 0.3)
  3083. end
  3084. do
  3085. while holdz == true do
  3086. for i = 0, 1, 0.5 do
  3087. fat.Event:wait()
  3088. local lv = RootPart.CFrame:pointToObjectSpace(RootPart.Velocity + RootPart.Position)
  3089. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 5) * angles(math.rad(-lv.z / 1), math.rad(-lv.x / 1), math.rad(0)), 0.3)
  3090. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(10), math.rad(0), math.rad(0)), 0.3)
  3091. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(75)), 0.3)
  3092. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(-75)), 0.3)
  3093. RH.C0 = clerp(RH.C0, cf(1, -1, 0) * angles(math.rad(-5), math.rad(90), math.rad(0)) * angles(math.rad(-5), math.rad(0), math.rad(0)), 0.3)
  3094. LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * angles(math.rad(-5), math.rad(-90), math.rad(0)) * angles(math.rad(-5), math.rad(0), math.rad(0)), 0.3)
  3095. end
  3096. if holdz == false then
  3097. speed.Value = speed.Value + 0.5
  3098. Humanoid.WalkSpeed = 16 * speed.Value
  3099. break
  3100. end
  3101. end
  3102. attack = false
  3103. end
  3104. end
  3105.  
  3106. Teleport = function()
  3107. refpart = part(3, workspace, "SmoothPlastic", 0, 1, BrickColor.new("Really black"), "Effect", vt())
  3108. refpart.Anchored = true
  3109. refpart.CFrame = Torso.CFrame
  3110. game:GetService("Debris"):AddItem(refpart, 1)
  3111. so("http://roblox.com/asset/?id=367932544", refpart, 0.5, 0.75)
  3112. RainbowBlockShockwave(refpart.CFrame, 2, 2, 2, 2, 2, 2, 0.1)
  3113. Character:MoveTo(MMouse.Hit.p)
  3114. wait()
  3115. so("http://roblox.com/asset/?id=367932544", Torso, 0.5, 1.25)
  3116. RainbowBlockShockwave(Torso.CFrame, 2, 2, 2, 2, 2, 2, 0.1)
  3117. end
  3118.  
  3119. hold = false
  3120. holdx = false
  3121. laserhold = false
  3122. ob1d = function(mouse)
  3123. if attack == false and equipped == true and gyroenabled == true then
  3124. if attack == false and attacktype == 1 then
  3125. attacktype = 2
  3126. attackone()
  3127. else
  3128. if attack == false and attacktype == 2 then
  3129. attacktype = 3
  3130. attacktwo()
  3131. else
  3132. if attack == false and attacktype == 3 then
  3133. attacktype = 1
  3134. attackthree()
  3135. end
  3136. end
  3137. end
  3138. end
  3139. if holdz == true and equipped == true and gyroenabled == true and canlaser == true then
  3140. laserhold = true
  3141. while laserhold == true do
  3142. LaserShot()
  3143. end
  3144. end
  3145. end
  3146.  
  3147. ob1u = function(mouse)
  3148. if laserhold == true then
  3149. laserhold = false
  3150. end
  3151. end
  3152.  
  3153. k = function(k)
  3154. if k == "f" and attack == false then
  3155. if equipped == false then
  3156. equipped = true
  3157. RSH.Parent = nil
  3158. LSH.Parent = nil
  3159. RW.Parent = ch.Torso
  3160. LW.Parent = ch.Torso
  3161. animate.Disabled = true
  3162. local idleanimation = Humanoid:LoadAnimation(Torso.robloxidleanimation)
  3163. idleanimation:Play()
  3164. equipanim()
  3165. coroutine.resume(coroutine.create(function()
  3166. while equipped == true do
  3167. wait(0.1)
  3168. RainbowBlockShockwave(LeftLeg.CFrame * cf(0, -1, 0), 2, 2, 2, 0.1, 0.1, 0.1, 0.1)
  3169. RainbowBlockShockwave(RightLeg.CFrame * cf(0, -1, 0), 2, 2, 2, 0.1, 0.1, 0.1, 0.1)
  3170. end
  3171. end
  3172. ))
  3173. else
  3174. do
  3175. if equipped == true then
  3176. equipped = false
  3177. unequipanim()
  3178. swait(0)
  3179. animate.Disabled = false
  3180. RW.Parent = nil
  3181. LW.Parent = nil
  3182. RSH.Parent = player.Character.Torso
  3183. LSH.Parent = player.Character.Torso
  3184. end
  3185. if k == "e" and attack == false and equipped == true then
  3186. if gyro.Parent == RootPart then
  3187. ChangeMode()
  3188. gyro.Parent = nil
  3189. gyroenabled = false
  3190. else
  3191. if gyro.Parent == nil then
  3192. ChangeMode()
  3193. gyro.Parent = RootPart
  3194. gyroenabled = true
  3195. coroutine.resume(coroutine.create(function()
  3196. while gyroenabled == true do
  3197. wait(0.1)
  3198. RainbowBlockShockwave(LeftArm.CFrame * cf(0, -1, 0), 2, 2, 2, 0.1, 0.1, 0.1, 0.1)
  3199. RainbowBlockShockwave(RightArm.CFrame * cf(0, -1, 0), 2, 2, 2, 0.1, 0.1, 0.1, 0.1)
  3200. end
  3201. end
  3202. ))
  3203. end
  3204. end
  3205. end
  3206. if k == "z" and attack == false and gyroenabled == true then
  3207. LasersandStars()
  3208. end
  3209. if k == "z" and holdz == true and gyroenabled == true then
  3210. holdz = false
  3211. end
  3212. if k == "x" and holdz == true and canrainstar == true then
  3213. holdx = true
  3214. while holdx == true do
  3215. StarRain()
  3216. end
  3217. end
  3218. if k == "c" and attack == false and gyroenabled == true and holdz == false then
  3219. Teleport()
  3220. end
  3221. end
  3222. end
  3223. end
  3224. end
  3225.  
  3226. k2 = function(k)
  3227. if k == "x" and equipped == true then
  3228. holdx = false
  3229. end
  3230. end
  3231.  
  3232. s = function(mouse)
  3233. mouse.Button1Down:connect(function()
  3234. ob1d(mouse)
  3235. end
  3236. )
  3237. mouse.Button1Up:connect(function()
  3238. ob1u(mouse)
  3239. end
  3240. )
  3241. mouse.KeyDown:connect(k)
  3242. mouse.KeyUp:connect(k2)
  3243. player = Player
  3244. ch = Character
  3245. MMouse = mouse
  3246. end
  3247.  
  3248. ds = function(mouse)
  3249. end
  3250.  
  3251. Bin.Selected:connect(s)
  3252. Bin.Deselected:connect(ds)
  3253. local donum = 0
  3254. local sine = 0
  3255. local change = 1
  3256. local val = 0
  3257. fat.Event:connect(function()
  3258. ammolabel.Text = "Speed [" .. speed.Value .. "]"
  3259. ammolabel2.Text = "Damage [" .. damagea.Value .. "]"
  3260. ammolabel3.Text = "Defense [" .. defense.Value .. "]"
  3261. gyro.CFrame = CFrame.new(Vector3.new(1, 0, 1), cam.CoordinateFrame.p - RootPart.CFrame.p.unit * -100)
  3262. sine = sine + change
  3263. local torvel = RootPart.Velocity * Vector3.new(1, 0, 1).magnitude
  3264. local velderp = RootPart.Velocity.y
  3265. hitfloor = rayCast(RootPart.Position, CFrame.new(RootPart.Position, RootPart.Position - Vector3.new(0, 1, 0)).lookVector, 4, Character)
  3266. if donum >= 0.5 then
  3267. handidle = true
  3268. else
  3269. if donum <= 0 then
  3270. handidle = false
  3271. end
  3272. end
  3273. if handidle == false then
  3274. donum = donum + 0.003
  3275. else
  3276. donum = donum - 0.003
  3277. end
  3278. if equipped == true or equipped == false then
  3279. if attack == false then
  3280. idle = idle + 1
  3281. else
  3282. idle = 0
  3283. end
  3284. if ((idle >= 500 and attack ~= false) or RootPart.Velocity.y > 1) and hitfloor == nil then
  3285. Anim = "Jump"
  3286. if attack == false and equipped == true and gyroenabled == false then
  3287. fat.Event:wait()
  3288. Humanoid.WalkSpeed = 16 * speed.Value
  3289. else
  3290. if attack == false and equipped == true and gyroenabled == true then
  3291. fat.Event:wait()
  3292. Humanoid.WalkSpeed = 16 * speed.Value
  3293. end
  3294. end
  3295. else
  3296. if RootPart.Velocity.y < -1 and hitfloor == nil then
  3297. Anim = "Fall"
  3298. if attack == false and equipped == true and gyroenabled == false then
  3299. fat.Event:wait()
  3300. Humanoid.WalkSpeed = 16 * speed.Value
  3301. else
  3302. if attack == false and equipped == true and gyroenabled == true then
  3303. fat.Event:wait()
  3304. Humanoid.WalkSpeed = 16 * speed.Value
  3305. end
  3306. end
  3307. else
  3308. if torvel.x < 1 and torvel.z < 1 and hit ~= nil then
  3309. Anim = "Idle"
  3310. if attack == false and equipped == true and gyroenabled == false then
  3311. fat.Event:wait()
  3312. Humanoid.WalkSpeed = 16 * speed.Value
  3313. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 3 - 0.25 * math.cos(sine / 20) + -math.sin(sine / 20) / 5) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  3314. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(-5 * math.cos(sine / 20)), math.rad(0), math.rad(0)), 0.3)
  3315. RW.C0 = clerp(RW.C0, CFrame.new(0.75, 0.5 - 0.1 * math.cos(sine / 20), -0.35) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(0), math.rad(70), math.rad(80)), 0.3)
  3316. LW.C0 = clerp(LW.C0, CFrame.new(-1, 0.5 - 0.1 * math.cos(sine / 20), -0.45) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(0), math.rad(-60), math.rad(-90)), 0.3)
  3317. RH.C0 = clerp(RH.C0, cf(1, -1, 0) * angles(math.rad(-5), math.rad(90), math.rad(0)) * angles(math.rad(-5 - 2.5 * math.cos(sine / 20)), math.rad(0), math.rad(0)), 0.3)
  3318. LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * angles(math.rad(-5), math.rad(-90), math.rad(0)) * angles(math.rad(-5 - 2.5 * math.cos(sine / 20)), math.rad(0), math.rad(0)), 0.3)
  3319. else
  3320. if attack == false and equipped == true and gyroenabled == true then
  3321. fat.Event:wait()
  3322. Humanoid.WalkSpeed = 16 * speed.Value
  3323. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 3 - 0.25 * math.cos(sine / 20) + -math.sin(sine / 20) / 5) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  3324. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(-5 * math.cos(sine / 20)), math.rad(0), math.rad(0)), 0.3)
  3325. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(15 + 5 * math.cos(sine / 20)), math.rad(-15), math.rad(30 + 5 * math.cos(sine / 20))), 0.3)
  3326. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(15 + 5 * math.cos(sine / 20)), math.rad(15), math.rad(-30 - 5 * math.cos(sine / 20))), 0.3)
  3327. RH.C0 = clerp(RH.C0, cf(1, -1, 0) * angles(math.rad(-5), math.rad(90), math.rad(0)) * angles(math.rad(-5 - 2.5 * math.cos(sine / 20)), math.rad(0), math.rad(0)), 0.3)
  3328. LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * angles(math.rad(-5), math.rad(-90), math.rad(0)) * angles(math.rad(-5 - 2.5 * math.cos(sine / 20)), math.rad(0), math.rad(0)), 0.3)
  3329. end
  3330. end
  3331. else
  3332. if torvel.x < 2 and torvel.z < 2 and hit ~= nil then
  3333. Anim = "Walk"
  3334. if attack == false and equipped == true and gyroenabled == false then
  3335. fat.Event:wait()
  3336. local lv = RootPart.CFrame:pointToObjectSpace(RootPart.Velocity + RootPart.Position)
  3337. Humanoid.WalkSpeed = 16 * speed.Value
  3338. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 3 - 0.25 * math.cos(sine / 20) + -math.sin(sine / 20) / 5) * angles(math.rad(20 * speed.Value), math.rad(0) + RootPart.RotVelocity.Y / 30, math.rad(0)), 0.3)
  3339. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(-10), math.rad(0), math.rad(0) + Head.RotVelocity.Y / 15), 0.3)
  3340. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(-20 * speed.Value), math.rad(0), math.rad(20)), 0.3)
  3341. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-20 * speed.Value), math.rad(0), math.rad(-20)), 0.3)
  3342. RH.C0 = clerp(RH.C0, cf(1, -1, 0) * angles(math.rad(-20 * speed.Value), math.rad(90), math.rad(0)) * angles(math.rad(-10), math.rad(0), math.rad(0)), 0.3)
  3343. LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * angles(math.rad(-20 * speed.Value), math.rad(-90), math.rad(0)) * angles(math.rad(-10), math.rad(0), math.rad(0)), 0.3)
  3344. else
  3345. do
  3346. if attack == false and equipped == true and gyroenabled == true then
  3347. fat.Event:wait()
  3348. local lv = RootPart.CFrame:pointToObjectSpace(RootPart.Velocity + RootPart.Position)
  3349. Humanoid.WalkSpeed = 16 * speed.Value
  3350. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 3 - 0.25 * math.cos(sine / 20) + -math.sin(sine / 20) / 5) * angles(math.rad(-lv.z / 1), math.rad(-lv.x / 1), math.rad(0)), 0.3)
  3351. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(lv.z / 1), math.rad(lv.x / 1), math.rad(0)), 0.3)
  3352. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(lv.z / 1), math.rad(0), math.rad(10 + -lv.x / 1)), 0.3)
  3353. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(lv.z / 1), math.rad(0), math.rad(-10 + -lv.x / 1)), 0.3)
  3354. RH.C0 = clerp(RH.C0, cf(1, -1, 0) * angles(math.rad(lv.z / 1), math.rad(90), math.rad(0)) * angles(math.rad(-5 + lv.x / 1), math.rad(0), math.rad(0)), 0.3)
  3355. LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * angles(math.rad(lv.z / 1), math.rad(-90), math.rad(0)) * angles(math.rad(-5 + -lv.x / 1), math.rad(0), math.rad(0)), 0.3)
  3356. end
  3357. end
  3358. end
  3359. end
  3360. end
  3361. end
  3362. end
  3363. end
  3364. end
  3365. )
Advertisement
Add Comment
Please, Sign In to add comment