G_uy

Untitled

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