Advertisement
Guest User

lol no

a guest
Jun 18th, 2018
96
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 95.33 KB | None | 0 0
  1.  
  2. -- [ GlitchMaster ] --
  3. -- [ Cucumber Quest ] --
  4. wait()
  5. LoudVolume = false
  6. Music = true
  7. script.Name = "GlitchMaster"
  8. Player = game.Players.LocalPlayer
  9. c = game.Players.LocalPlayer.Character
  10. Head = c.Head
  11. anim = c.Humanoid.Animator
  12. rage = false
  13. Battle = false
  14. p = game.Players.LocalPlayer
  15. Music = false
  16. PhaseEnabled = true
  17. TeleportEnabled = true
  18. c.Archivable = true
  19. WholeBody = c:clone()
  20. local Effects = {}
  21. attack = false
  22. local attacking = false
  23. vt = Vector3.new
  24. bc = BrickColor.new
  25. br = BrickColor.random
  26. it = Instance.new
  27. cf = CFrame.new
  28. euler = CFrame.fromEulerAnglesXYZ
  29. angles = CFrame.Angles
  30. matr = math.random
  31. mouse = Player:GetMouse()
  32.  
  33.  
  34. local S10 = Instance.new("Sound") local S11 = Instance.new("ParticleEmitter")
  35.  
  36. c.Humanoid.WalkSpeed = 24 c.Humanoid.JumpPower = 50
  37.  
  38. RSC0 = CFrame.new(1, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  39. RSC1 = CFrame.new(-0.5, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  40. LSC0 = CFrame.new(-1, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  41. LSC1 = CFrame.new(0.5, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  42. RHC0 = CFrame.new(1, -1, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  43. RHC1 = CFrame.new(0.5, 1, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  44. LHC0 = CFrame.new(-1, -1, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  45. LHC1 = CFrame.new(-0.5, 1, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  46. NC0 = CFrame.new(0, 1, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0)
  47. NC1 = CFrame.new(0, -0.5, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0)
  48. RJC0 = CFrame.new(0, 0, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0)
  49. RJC1 = CFrame.new(0, 0, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0)
  50. RS = c.Torso:FindFirstChild("Right Shoulder")
  51. LS = c.Torso:FindFirstChild("Left Shoulder")
  52. RH = c.Torso:FindFirstChild("Right Hip")
  53. LH = c.Torso:FindFirstChild("Left Hip")
  54. RJ = c.HumanoidRootPart:FindFirstChild("RootJoint")
  55. N = c.Torso:FindFirstChild("Neck")
  56. cf = CFrame.new
  57. ang = CFrame.Angles
  58. rd = math.rad
  59. rd2 = math.random
  60.  
  61. function swait(num)
  62. if num==0 or num==nil then
  63. game:service'RunService'.Heartbeat:wait(0)
  64. else
  65. for i=0,num do
  66. game:service'RunService'.Heartbeat:wait(0)
  67. end
  68. end
  69. end
  70.  
  71. function AnimDis()
  72. if c.Animate.Disabled == false then
  73. c.Animate.Disabled = true
  74. anim.Parent = nil
  75. else
  76. anim.Parent = c.Humanoid
  77. c.Animate.Disabled = false
  78. end
  79. end
  80. function lerpz(joint, prop, cfrmz, alp)
  81. joint[prop] = joint[prop]:lerp(cfrmz, alp)
  82. end
  83. function resetlerp()
  84. RJ.C0 = RJC0
  85. RJ.C1 = RJC1
  86. N.C0 = NC0
  87. N.C1 = NC1
  88. RS.C0 = RSC0
  89. RS.C1 = RSC1
  90. LS.C0 = LSC0
  91. LS.C1 = LSC1
  92. RH.C0 = RHC0
  93. RH.C1 = RHC1
  94. LH.C0 = LHC0
  95. LH.C1 = LHC1
  96. end
  97.  
  98. game:GetService('UserInputService').InputBegan:connect(function(InputObj)
  99. if InputObj.KeyCode == Enum.KeyCode.Slash then
  100. local finishEvent = nil
  101. isTyping = true
  102. finishEvent = game:GetService('UserInputService').InputBegan:connect(function(InputObj)
  103. if InputObj.KeyCode == Enum.KeyCode.Return or InputObj.UserInputType == Enum.UserInputType.MouseButton1 then
  104. isTyping = false
  105. finishEvent:disconnect()
  106. end
  107. end)
  108. end
  109. end)
  110.  
  111. function VirusDestroy(H)
  112. spawn(function()
  113. for i = 1,1000 do
  114. H.Transparency = H.Transparency + 1/1000
  115. swait()
  116. end
  117. game.Debris:AddItem(H,3)H.Anchored = true
  118. end)
  119. end
  120.  
  121. function HitInfect(Part)
  122. Part.Touched:connect(function(Hit)
  123. if Hit.Size.Y <= 30 and Hit.Size.X <= 30 and Hit.Size.Z <= 30 and Hit.Transparency < 1 and Hit:findFirstChild("Glitch")== nil and Hit.Parent ~= c then
  124. local S = S10:clone() S.Parent = Hit S.Volume = 0.1 S.SoundId = "rbxassetid://606774093" S.Looped = true S:Play()
  125. Hit.Material = "Sand" Hit.BrickColor = BrickColor.new("Really black") HitInfect(Hit) VirusDestroy(Hit)
  126. for i = 1,2 do
  127. local tra = S11:clone() tra.Parent = Hit
  128. tra.Texture = "rbxassetid://744949545"
  129. tra.LightEmission = 0
  130. if i == 1 then
  131. tra.Color = ColorSequence.new(Color3.new(0/255,255/255,0/255))
  132. tra.ZOffset = 2.5
  133. else
  134. tra.Color = ColorSequence.new(Color3.new(0/255,0/255,0/255))
  135. tra.ZOffset = 3
  136. end
  137. local PSize = (Hit.Size.Y+Hit.Size.X+Hit.Size.Z)/20
  138. tra.Lifetime = NumberRange.new(1,3)
  139. tra.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(0.1,PSize,0),NumberSequenceKeypoint.new(1,0,0)})
  140. tra.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(0.8,0,0),NumberSequenceKeypoint.new(1,1,0)})
  141. tra.Speed = NumberRange.new(0.5) tra.VelocitySpread = 360 tra.Name = "Glitch"
  142. tra.LockedToPart = true
  143. tra.Rate = 15
  144. tra.VelocityInheritance = 0.2
  145. if Hit:findFirstChild("Mesh") and Hit.Name ~= "Head" then
  146. if Hit:findFirstChild("Mesh"):IsA("SpecialMesh") then
  147. Hit.Mesh.TextureId = "rbxassetid://64619306"
  148. end
  149. elseif Hit.Name ~= "Head" then
  150. local M = Instance.new("SpecialMesh",Hit)M.MeshId = "rbxassetid://9856898" M.TextureId = "rbxassetid://64619306"
  151. M.Scale = Vector3.new(Hit.Size.X*2,Hit.Size.Y*2,Hit.Size.Z*2)
  152. end
  153. end
  154. end
  155. end)
  156. end
  157. function Virusify(Hit)
  158. local S = S10:clone() S.Parent = Hit S.Volume = 0.1 S.SoundId = "rbxassetid://606774093" S.Looped = true S:Play()
  159. Hit.Material = "Sand" Hit.BrickColor = BrickColor.new("Really black")
  160. for i = 1,2 do
  161. local tra = S11:clone() tra.Parent = Hit
  162. tra.Texture = "rbxassetid://744949545"
  163. tra.LightEmission = 0
  164. if i == 1 then
  165. tra.Name = "Glitch"
  166. tra.Color = ColorSequence.new(Color3.new(0/255,255/255,0/255))
  167. tra.ZOffset = 2.5
  168. else
  169. tra.Name = "Glitch2"
  170. tra.Color = ColorSequence.new(Color3.new(0/255,0/255,0/255))
  171. tra.ZOffset = 3
  172. end
  173. local PSize = (Hit.Size.Y+Hit.Size.X+Hit.Size.Z)/20
  174. tra.Lifetime = NumberRange.new(1,3)
  175. tra.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(0.1,PSize*0.75,0),NumberSequenceKeypoint.new(1,0,0)})
  176. tra.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(0.8,0,0),NumberSequenceKeypoint.new(1,1,0)})
  177. tra.Speed = NumberRange.new(0.5) tra.VelocitySpread = 360
  178. tra.LockedToPart = true
  179. tra.Rate = 15+(Hit.Size.Y+Hit.Size.X+Hit.Size.Z)*5
  180. tra.VelocityInheritance = 0.2
  181. if Hit:findFirstChild("Mesh") and Hit.Name ~= "Head" then
  182. if Hit:findFirstChild("Mesh"):IsA("SpecialMesh") then
  183. Hit.Mesh.TextureId = "rbxassetid://64619306"
  184. end
  185. elseif Hit.Name ~= "Head" then
  186. local M = Instance.new("SpecialMesh",Hit)M.MeshId = "rbxassetid://9856898" M.TextureId = "rbxassetid://64619306"
  187. M.Scale = Vector3.new(Hit.Size.X*2,Hit.Size.Y*2,Hit.Size.Z*2)
  188. end
  189. end
  190. end
  191.  
  192. function Virusify2(Hit)
  193. Hit.Material = "Sand" Hit.BrickColor = BrickColor.new("Really black")
  194. for i = 1,2 do
  195. local tra = S11:clone() tra.Parent = Hit
  196. tra.Texture = "rbxassetid://744949545"
  197. tra.LightEmission = 0
  198. if i == 1 then
  199. tra.Name = "Glitch"
  200. tra.Color = ColorSequence.new(Color3.new(0/255,255/255,0/255))
  201. tra.ZOffset = 2.5
  202. else
  203. tra.Name = "Glitch2"
  204. tra.Color = ColorSequence.new(Color3.new(0/255,0/255,0/255))
  205. tra.ZOffset = 3
  206. end
  207. local PSize = (Hit.Size.Y)/4
  208. tra.Lifetime = NumberRange.new(0.5)
  209. tra.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(0.1,1,0),NumberSequenceKeypoint.new(1,0,0)})
  210. tra.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(0.8,0,0),NumberSequenceKeypoint.new(1,1,0)})
  211. tra.Speed = NumberRange.new(0.5) tra.VelocitySpread = 360
  212. tra.LockedToPart = true
  213. tra.Rate = 50
  214. tra.VelocityInheritance = 0.2
  215. if Hit:findFirstChild("Mesh") and Hit.Name ~= "Head" then
  216. if Hit:findFirstChild("Mesh"):IsA("SpecialMesh") then
  217. Hit.Mesh.TextureId = "rbxassetid://64619306"
  218. end
  219. elseif Hit.Name ~= "Head" then
  220. local M = Instance.new("SpecialMesh",Hit)M.MeshId = "rbxassetid://9856898" M.TextureId = "rbxassetid://64619306"
  221. M.Scale = Vector3.new(Hit.Size.X*2,Hit.Size.Y*2,Hit.Size.Z*2)
  222. end
  223. end
  224. end
  225.  
  226. function Virusify3(Hit)
  227. local S = S10:clone() S.Parent = Hit S.Volume = 0.1 S.SoundId = "rbxassetid://606774093" S.Looped = true S:Play()
  228. Hit.Material = "Sand" Hit.BrickColor = BrickColor.new("Really black")
  229. for i2 = 1,2 do
  230. for i = 1,2 do
  231. local tra = S11:clone() tra.Parent = Hit
  232. tra.Texture = "rbxassetid://744949545"
  233. tra.LightEmission = 0
  234. if i == 1 then
  235. tra.Name = "Glitch"
  236. tra.Color = ColorSequence.new(Color3.new(0/255,255/255,0/255))
  237. tra.ZOffset = 2.5
  238. else
  239. tra.Name = "Glitch2"
  240. tra.Color = ColorSequence.new(Color3.new(0/255,0/255,0/255))
  241. tra.ZOffset = 3
  242. end
  243. if i2 == 1 then
  244. tra.LockedToPart = true
  245. else
  246. tra.LockedToPart = false
  247. end
  248. local PSize = (Hit.Size.Y+Hit.Size.X+Hit.Size.Z)/20
  249. tra.Lifetime = NumberRange.new(1,3)
  250. tra.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(0.1,PSize*0.75,0),NumberSequenceKeypoint.new(1,0,0)})
  251. tra.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(0.8,0,0),NumberSequenceKeypoint.new(1,1,0)})
  252. tra.Speed = NumberRange.new(0.5) tra.VelocitySpread = 360
  253. tra.Rate = 35+(Hit.Size.Y+Hit.Size.X+Hit.Size.Z)*5
  254. tra.VelocityInheritance = 0.2
  255. if Hit:findFirstChild("Mesh") and Hit.Name ~= "Head" then
  256. if Hit:findFirstChild("Mesh"):IsA("SpecialMesh") then
  257. Hit.Mesh.TextureId = "rbxassetid://64619306"
  258. end
  259. elseif Hit.Name ~= "Head" then
  260. local M = Instance.new("SpecialMesh",Hit)M.MeshId = "rbxassetid://9856898" M.TextureId = "rbxassetid://64619306"
  261. M.Scale = Vector3.new(Hit.Size.X*2,Hit.Size.Y*2,Hit.Size.Z*2)
  262. end
  263. end
  264. end
  265. end
  266.  
  267. local S = Instance.new("Sound",c.HumanoidRootPart)S.Volume = 0.4 S.SoundId = "rbxassetid://606774093" S.Looped = true S:Play()
  268.  
  269. for i,v in pairs(c:children()) do
  270. if v.ClassName == "Accessory" then
  271. v:remove()
  272. end
  273. end
  274.  
  275. if c:findFirstChild("Body Colors") then
  276. c:findFirstChild("Body Colors"):remove()
  277. end
  278. for i,v in pairs (c:children()) do
  279. if v.ClassName == "Part" then
  280. if v.Name ~= "HumanoidRootPart" then
  281. HitInfect(v)
  282. v.Material = "Sand" v.BrickColor = BrickColor.new("Really black")
  283. for i2 = 1,2 do
  284. for i = 1,2 do
  285. local tra = S11:clone() tra.Parent = v
  286. tra.Texture = "rbxassetid://744949545"
  287. tra.LightEmission = 0
  288. if i == 1 then
  289. tra.Color = ColorSequence.new(Color3.new(0/255,255/255,0/255))
  290. tra.ZOffset = 2.5
  291. else
  292. tra.Color = ColorSequence.new(Color3.new(0/255,0/255,0/255))
  293. tra.ZOffset = 3
  294. end
  295. tra.Rate = 15
  296. tra.Lifetime = NumberRange.new(1,3)
  297. tra.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(0.1,0.15,0),NumberSequenceKeypoint.new(1,0,0)})
  298. tra.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(0.8,0,0),NumberSequenceKeypoint.new(1,1,0)})
  299. tra.Speed = NumberRange.new(0.5) tra.VelocitySpread = 360 tra.Name = "Glitch"
  300. if i2 == 1 then
  301. tra.LockedToPart = true
  302. tra.Rate = 10
  303. else
  304. tra.LockedToPart = false
  305. tra.ZOffset = tra.ZOffset - 2.25
  306. end
  307. tra.VelocityInheritance = 0.2
  308. end
  309. if v.Name ~= "Head" then
  310. local M = Instance.new("SpecialMesh",v)M.MeshId = "rbxassetid://9856898" M.TextureId = "rbxassetid://64619306"
  311. M.Scale = Vector3.new(v.Size.X*2,v.Size.Y*2,v.Size.Z*2)
  312. end
  313. end
  314. end
  315. end
  316. end
  317. c.Head.Transparency = 1
  318. local P = Instance.new("Part",c)P.Size = Vector3.new(1,1,1)P.Anchored = false P.CanCollide = false P.Name = "HeadPart"
  319. local W = Instance.new("Weld",P)W.Part0 = P W.Part1 = c.Head
  320. local HM = Instance.new("SpecialMesh",P)HM.MeshId = "rbxassetid://539723444" HM.TextureId = "rbxassetid://64619306" HM.Scale = Vector3.new(0.97,0.97,0.97)
  321. wait()
  322. c.Head:FindFirstChild("face").Texture = ""
  323. if c:findFirstChild("Shirt")~=nil then
  324. c:findFirstChild("Shirt"):remove()
  325. end
  326. if c:findFirstChild("Pants")~=nil then
  327. c:findFirstChild("Pants"):remove()
  328. end
  329.  
  330. local flying = false
  331. local deb = true
  332. local ctrl = {f = 0, b = 0, l = 0, r = 0}
  333. local lastctrl = {f = 0, b = 0, l = 0, r = 0}
  334. local maxspeed = 25
  335. local speed = 0
  336.  
  337. function Fly()
  338. local bg = Instance.new("BodyGyro", c.HumanoidRootPart)
  339. bg.P = 100000 bg.D = 100
  340. bg.maxTorque = Vector3.new(math.huge, 0, math.huge)
  341. bg.cframe = c.HumanoidRootPart.CFrame
  342. local bv = Instance.new("BodyVelocity", c.HumanoidRootPart)
  343. bv.velocity = Vector3.new(0,0.1,0)
  344. bv.maxForce = Vector3.new(math.huge, math.huge, math.huge)
  345. repeat wait()
  346. c.Humanoid.PlatformStand = true
  347. if ctrl.l + ctrl.r ~= 0 or ctrl.f + ctrl.b ~= 0 then
  348. speed = speed+1+(speed/maxspeed)
  349. if speed > maxspeed then
  350. speed = maxspeed
  351. end
  352. elseif not (ctrl.l + ctrl.r ~= 0 or ctrl.f + ctrl.b ~= 0) and speed ~= 0 then
  353. speed = speed-1
  354. if speed < 0 then
  355. speed = 0
  356. end
  357. end
  358. if (ctrl.l + ctrl.r) ~= 0 or (ctrl.f + ctrl.b) ~= 0 then
  359. bv.velocity = ((game.Workspace.CurrentCamera.CoordinateFrame.lookVector * (ctrl.f+ctrl.b)) + ((game.Workspace.CurrentCamera.CoordinateFrame * CFrame.new(ctrl.l+ctrl.r,(ctrl.f+ctrl.b)*.2,0).p) - game.Workspace.CurrentCamera.CoordinateFrame.p))*speed
  360. lastctrl = {f = ctrl.f, b = ctrl.b, l = ctrl.l, r = ctrl.r}
  361. elseif (ctrl.l + ctrl.r) == 0 and (ctrl.f + ctrl.b) == 0 and speed ~= 0 then
  362. bv.velocity = ((game.Workspace.CurrentCamera.CoordinateFrame.lookVector * (lastctrl.f+lastctrl.b)) + ((game.Workspace.CurrentCamera.CoordinateFrame * CFrame.new(lastctrl.l+lastctrl.r,(lastctrl.f+lastctrl.b)*.2,0).p) - game.Workspace.CurrentCamera.CoordinateFrame.p))*speed
  363. else
  364. bv.velocity = Vector3.new(0,0.1,0)
  365. end
  366. until not flying
  367. ctrl = {f = 0, b = 0, l = 0, r = 0}
  368. lastctrl = {f = 0, b = 0, l = 0, r = 0}
  369. speed = 0
  370. bv:Destroy()
  371. c.Humanoid.PlatformStand = false
  372. end
  373.  
  374. Cloud = false
  375. function CloudForm()
  376. if Cloud == false then
  377. S.Volume = 1
  378. attack = true Cloud = true
  379. for i = 1,10 do
  380. lerpz(RJ, "C0", RJC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.1)
  381. lerpz(N, "C0", NC0 * cf(0, 0, -1) * ang(rd(0), rd(0), rd(0)), 0.1)
  382. lerpz(RS, "C0", RSC0 * cf(0, 0, -2) * ang(rd(0), rd(0), rd(0)), 0.1)
  383. lerpz(RS, "C1", RSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.1)
  384. lerpz(LS, "C0", LSC0 * cf(0, 0, -2) * ang(rd(0), rd(0), rd(0)), 0.1)
  385. lerpz(LS, "C1", LSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.1)
  386. lerpz(RH, "C0", RHC0 * cf(0, 2.2, 0) * ang(rd(0), rd(0), rd(0)), 0.1)
  387. lerpz(RH, "C1", RHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.1)
  388. lerpz(LH, "C0", LHC0 * cf(0, 2.2, 0) * ang(rd(0), rd(0), rd(0)), 0.1)
  389. lerpz(LH, "C1", LHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.1)
  390. swait()
  391. end
  392. lerpz(RJ, "C0", RJC0 * cf(0, 0, 2500) * ang(rd(0), rd(0), rd(0)), 1)
  393. local Cl = Instance.new("Part",c)Cl.Size = Vector3.new(10,10,10) Cl.CanCollide = false Cl.Anchored = false Cl.CFrame = c.HumanoidRootPart.CFrame
  394. Cl.CustomPhysicalProperties = PhysicalProperties.new(0,0.3,0.5)
  395. Cl.Material = "Sand" Cl.BrickColor = BrickColor.new("Really black") Cl.Name = "Cloud"
  396. HitInfect(Cl)
  397. for i2 = 1,2 do
  398. for i = 1,2 do
  399. local tra = S11:clone() tra.Parent = CL
  400. tra.Texture = "rbxassetid://744949545"
  401. tra.LightEmission = 0
  402. if i == 1 then
  403. tra.Color = ColorSequence.new(Color3.new(0/255,255/255,0/255))
  404. tra.ZOffset = 2.5
  405. else
  406. tra.Color = ColorSequence.new(Color3.new(0/255,0/255,0/255))
  407. tra.ZOffset = 3
  408. end
  409. tra.Lifetime = NumberRange.new(1,3)
  410. tra.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(0.1,1,0),NumberSequenceKeypoint.new(1,0,0)})
  411. tra.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(0.8,0,0),NumberSequenceKeypoint.new(1,1,0)})
  412. tra.Speed = NumberRange.new(0.5) tra.VelocitySpread = 360 tra.Name = "Glitch"
  413. if i2 == 1 then
  414. tra.LockedToPart = true
  415. tra.Speed = NumberRange.new(0.5)
  416. else
  417. tra.LockedToPart = false
  418. tra.Speed = NumberRange.new(4)
  419. end
  420. tra.Rate = 250
  421. tra.VelocityInheritance = 0.2
  422. end
  423. end
  424. local W = Instance.new("Weld",c.HumanoidRootPart)W.Part0 = c.HumanoidRootPart W.Part1 = Cl
  425. local M = Instance.new("SpecialMesh",Cl)M.MeshId = "rbxassetid://9856898" M.TextureId = "rbxassetid://64619306"
  426. for i = 1,80 do
  427. M.Scale = Vector3.new(i/4,i/4,i/4)
  428. c.HumanoidRootPart.CFrame = c.HumanoidRootPart.CFrame*CFrame.new(0,3,0)
  429. swait()
  430. end
  431. flying = true attack = false
  432. Fly()
  433. else
  434. attack = true S.Volume = 0.4
  435. if c:findFirstChild("Cloud") ~= nil then
  436. lerpz(RJ, "C0", RJC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 1)
  437. if c.HumanoidRootPart:findFirstChild("Smile")~= nil then
  438. for i = 1,20 do
  439. c.HumanoidRootPart.Smile.ImageLabel.ImageTransparency = c.HumanoidRootPart.Smile.ImageLabel.ImageTransparency + 0.05
  440. swait()
  441. end
  442. c.HumanoidRootPart.Smile:remove()
  443. end
  444. for i,v in pairs(c:findFirstChild("Cloud"):children()) do
  445. if v.Name == "Glitch" then
  446. v.Enabled = false
  447. end
  448. end
  449. for i = 1,80 do
  450. c:findFirstChild("Cloud").Mesh.Scale = c:findFirstChild("Cloud").Mesh.Scale - Vector3.new(0.25,0.25,0.25)
  451. swait()
  452. end
  453. game.Debris:AddItem(c:findFirstChild("Cloud"),2)
  454. Cloud = false end flying = false
  455. wait(2)
  456. attack = false
  457. end
  458. end
  459.  
  460. function CloudFace()
  461. if c.HumanoidRootPart:findFirstChild("Smile")~= nil then
  462. for i = 1,20 do
  463. c.HumanoidRootPart.Smile.ImageLabel.ImageTransparency = c.HumanoidRootPart.Smile.ImageLabel.ImageTransparency + 0.05
  464. swait()
  465. end
  466. c.HumanoidRootPart.Smile:remove()
  467. else
  468. local BillBoard = Instance.new("BillboardGui",c.HumanoidRootPart)BillBoard.Name = "Smile" BillBoard.AlwaysOnTop = true BillBoard.Size = UDim2.new(10,0,10,0)
  469. local Im = Instance.new("ImageLabel",BillBoard) Im.BackgroundTransparency = 1 Im.Size = UDim2.new(1,0,1,0)Im.Image = "rbxassetid://915081021"
  470. end
  471. end
  472.  
  473.  
  474. function VirusExplosion(Pos)
  475. for i = 1,10 do
  476. for i2 = 1,8 do
  477. local V = Instance.new("Part")V.Size = Vector3.new(1+i*20,0.5,10)V.Anchored = true V.CanCollide = false
  478. V.CFrame = Pos*CFrame.Angles(0,math.rad(45*i2),0) Virusify2(V) VirusFade(V)
  479. V.CFrame = V.CFrame*CFrame.new(0,3,2*i)HitInfect(V) V.Parent = game.Workspace
  480. end
  481. swait()
  482. end
  483. end
  484.  
  485. function VirusFade(H)
  486. spawn(function()
  487. for i = 1,10 do
  488. H.Transparency = H.Transparency + 1/10
  489. swait()
  490. end
  491. H:findFirstChild("Glitch").Enabled = false H:findFirstChild("Glitch2").Enabled = false
  492. game.Debris:AddItem(H,0.2)
  493. end)
  494. end
  495.  
  496. function VirusFade2(H)
  497. spawn(function()
  498. for i = 1,25 do
  499. H.Transparency = H.Transparency + 1/25
  500. swait()
  501. end
  502. H:findFirstChild("Glitch").Enabled = false H:findFirstChild("Glitch2").Enabled = false
  503. game.Debris:AddItem(H,4)
  504. end)
  505. end
  506.  
  507. function HammerSlam()
  508. c.HumanoidRootPart.Anchored = true
  509. attack = true
  510. AnimDis()
  511. for i = 1,15 do
  512. lerpz(RJ, "C0", RJC0 * cf(0, 0, 0) * ang(rd(20), rd(0), rd(0)), 0.2)-- Y, X, Z
  513. lerpz(N, "C0", NC0 * cf(0, 0, 0) * ang(rd(20), rd(0), rd(0)), 0.2) -- Y, X, Z
  514. lerpz(RS, "C0", RSC0 * cf(0, 0, 0) * ang(rd(0), rd(45), rd(65)), 0.2) -- Z, X, Y
  515. lerpz(LS, "C0", LSC0 * cf(0, 0, 0) * ang(rd(0), rd(-45), rd(-65)), 0.2) -- Z, X, Y
  516. lerpz(RH, "C0", RHC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(45)), 0.2)
  517. lerpz(LH, "C0", LHC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(-45)), 0.2)
  518. swait()
  519. end
  520. local H = Instance.new("Part",c)H.Size = Vector3.new(1,1,15)H.CanCollide = false
  521. local H2 = Instance.new("Part",c)H2.Size = Vector3.new(5,10,5)H2.CanCollide = false
  522. local W = Instance.new("Weld",c["Torso"])W.Part0 = c["Torso"] W.Part1 = H W.C0 = CFrame.new(0,-2,0)
  523. local W2 = Instance.new("Weld",H2)W2.Part0 = H2 W2.Part1 = H W2.C0 = CFrame.new(0,0,-4)
  524. Virusify(H) Virusify(H2)HitInfect(H)HitInfect(H2)
  525. for i = 1,45 do
  526. W.C0 = CFrame.new(0,2,4)*CFrame.Angles(math.rad(5),0,0)
  527. lerpz(RJ, "C0", RJC0 * cf(0, 0, 0) * ang(rd(-20), rd(0), rd(0)), 0.2)-- Y, X, Z
  528. lerpz(N, "C0", NC0 * cf(0, 0, 0) * ang(rd(-20), rd(0), rd(0)), 0.2) -- Y, X, Z
  529. lerpz(RS, "C0", RSC0 * cf(0, 0, 0) * ang(rd(0), rd(-45), rd(220)), 0.2) -- Z, X, Y
  530. lerpz(LS, "C0", LSC0 * cf(0, 0, 0) * ang(rd(0), rd(45), rd(-220)), 0.2) -- Z, X, Y
  531. lerpz(RH, "C0", RHC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(-45)), 0.2)
  532. lerpz(LH, "C0", LHC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(45)), 0.2)
  533. swait()
  534. end
  535. W.C0 = CFrame.new(0,3,-8)*CFrame.Angles(math.rad(200),0,0)
  536. for i = 1,15 do
  537. lerpz(RJ, "C0", RJC0 * cf(0, 0, 0) * ang(rd(20), rd(0), rd(0)), 0.5)-- Y, X, Z
  538. lerpz(N, "C0", NC0 * cf(0, 0, 0) * ang(rd(20), rd(0), rd(0)), 0.5) -- Y, X, Z
  539. lerpz(RS, "C0", RSC0 * cf(0, 0, 0) * ang(rd(0), rd(45), rd(65)), 0.5) -- Z, X, Y
  540. lerpz(LS, "C0", LSC0 * cf(0, 0, 0) * ang(rd(0), rd(-45), rd(-65)), 0.5) -- Z, X, Y
  541. lerpz(RH, "C0", RHC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(45)), 0.5)
  542. lerpz(LH, "C0", LHC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(-45)), 0.5)
  543. swait()
  544. end
  545. local S = Instance.new("Sound",H2)S.Volume = 2 S.SoundId = "rbxassetid://211062246" S:Play()
  546. for i = 1,45 do
  547. for i2 = 1,8 do
  548. local V = Instance.new("Part")V.Size = Vector3.new(10+i*4,1,10)V.Anchored = true V.CanCollide = false
  549. V.CFrame = H2.CFrame*CFrame.Angles(0,math.rad(45*i2),0) Virusify2(V) VirusFade(V)
  550. V.CFrame = V.CFrame*CFrame.new(0,3,5*i)HitInfect(V) V.Parent = game.Workspace
  551. end
  552. swait()
  553. end
  554. H.Anchored = true H2.Anchored = true
  555. W:remove() W2:remove()
  556. c.HumanoidRootPart.Anchored = false
  557. AnimDis()
  558. attack = false
  559. spawn(function()
  560. wait(3) H.Transparency = 1 H2.Transparency = 1
  561. H:findFirstChild("Glitch").Enabled = false H2:findFirstChild("Glitch").Enabled = false
  562. H:findFirstChild("Glitch2").Enabled = false H2:findFirstChild("Glitch2").Enabled = false
  563. game.Debris:AddItem(H,4) game.Debris:AddItem(H2,4)
  564. end)
  565. end
  566.  
  567. function Missiles()
  568. attack = true
  569. local Mis = Instance.new("Part",game.Workspace)Mis.Name = "GlitchMissle" Mis.Size = Vector3.new(2,2,12) Mis.CFrame = c.HumanoidRootPart.CFrame Virusify3(Mis)
  570. Mis.CFrame = CFrame.new(Mis.CFrame:toWorldSpace(CFrame.new(0,0,0)).p,mouse.hit.p+Vector3.new(math.random(-20,20),math.random(-20,20),math.random(-20,20)))
  571. Mis.CanCollide = false local BV = Instance.new("BodyVelocity",Mis)BV.Velocity = Mis.CFrame.lookVector*150 BV.maxForce = Vector3.new(math.huge,math.huge,math.huge)
  572. local hit = false
  573. Mis.Touched:connect(function(Hit)
  574. if Hit.Parent ~= c then
  575. if hit == false then hit = true
  576. Mis.Anchored = true VirusFade2(Mis)
  577. VirusExplosion(CFrame.new(Mis.Position))
  578. end
  579. end
  580. end)
  581. wait(0.1)
  582. attack = false
  583. end
  584.  
  585. mouse.KeyDown:connect(function(key)
  586. if c.Humanoid.Health <= 0 then return end
  587. if attack == true then return end
  588. if Cloud == true then
  589. if key == "f" then
  590. CloudFace()
  591. end
  592. if key == "z" then
  593. Missiles()
  594. end
  595. elseif Cloud == false then
  596. if key == "z" then
  597. HammerSlam()
  598. end
  599. end
  600. if key == "m" then
  601. CloudForm()
  602. end
  603. end)
  604.  
  605. local LastPos = c.HumanoidRootPart.CFrame
  606. local Resetting = false
  607. function Reset()
  608. if Resetting == false then Resetting = true
  609. c.Parent = nil
  610. c.Humanoid.Health = math.huge c.Humanoid.MaxHealth = math.huge
  611. for i,v in pairs(c:children()) do if v.ClassName == "Part" then v:remove() end end
  612. local Tors = Instance.new("Part",c)Tors.Name = "Torso" Tors.Size = Vector3.new(2,2,1) Virusify(Tors)
  613. local Hed = Instance.new("Part",c)Hed.Name = "Head" Hed.Size = Vector3.new(2,1,1) Virusify(Hed) Hed.Transparency = 1
  614. makejoint(c.Torso, NC0, NC1, c.Torso, c.Head, "Neck")
  615. local Hum = Instance.new("Part",c)Hum.Name = "HumanoidRootPart" Hum.Size = Vector3.new(2,2,1) Hum.Transparency = 1
  616. makejoint(c.HumanoidRootPart, RJC0, RJC1, c.HumanoidRootPart, c.Torso, "RootJoint")
  617. local P = Instance.new("Part",c)P.Size = Vector3.new(1,1,1)P.Anchored = false P.CanCollide = false P.Name = "HeadPart"
  618. local W = Instance.new("Weld",P)W.Part0 = P W.Part1 = c.Head
  619. local HM = Instance.new("SpecialMesh",P)HM.MeshId = "rbxassetid://539723444" HM.TextureId = "rbxassetid://64619306" HM.Scale = Vector3.new(0.97,0.97,0.97)
  620. local RiArm = Instance.new("Part",c)RiArm.Name = "Right Arm" RiArm.Size = Vector3.new(1,2,1) Virusify(RiArm)
  621. makejoint(c.Torso, RSC0, RSC1, c.Torso, RiArm, "Right Shoulder")
  622. local LeArm = Instance.new("Part",c)LeArm.Name = "Left Arm" LeArm.Size = Vector3.new(1,2,1) Virusify(LeArm)
  623. makejoint(c.Torso, LSC0, LSC1, c.Torso, LeArm, "Left Shoulder")
  624. local RiLeg = Instance.new("Part",c)RiLeg.Name = "Right Leg" RiLeg.Size = Vector3.new(1,2,1) Virusify(RiLeg)
  625. makejoint(c.Torso, RHC0, RHC1, c.Torso, RiLeg, "Right Hip")
  626. local LeLeg = Instance.new("Part",c)LeLeg.Name = "Left Leg" LeLeg.Size = Vector3.new(1,2,1) Virusify(LeLeg)
  627. makejoint(c.Torso, LHC0, LHC1, c.Torso, LeLeg, "Left Hip")
  628. c.HumanoidRootPart.CFrame = LastPos*CFrame.new(math.random(-5,5),0,math.random(-5,5))
  629. Resetting = false c.Humanoid.Died:connect(Reset) c.Parent = game.Workspace
  630. end
  631. end
  632. c.Humanoid.Died:connect(Reset)
  633.  
  634. function onKeyPress(inputObject, gameProcessedEvent)
  635. if isTyping == true then return end
  636. if inputObject.KeyCode == Enum.KeyCode.W then ctrl.f = 1 end
  637. if inputObject.KeyCode == Enum.KeyCode.S then ctrl.b = -1 end
  638. if inputObject.KeyCode == Enum.KeyCode.A then ctrl.l = -1 end
  639. if inputObject.KeyCode == Enum.KeyCode.D then ctrl.r = 1 end
  640. end
  641. game:GetService("UserInputService").InputBegan:connect(onKeyPress)
  642.  
  643. function onKeyLift(inputObject, gameProcessedEvent)
  644. if isTyping == true then return end
  645. if inputObject.KeyCode == Enum.KeyCode.W then ctrl.f = 0 end
  646. if inputObject.KeyCode == Enum.KeyCode.S then ctrl.b = 0 end
  647. if inputObject.KeyCode == Enum.KeyCode.A then ctrl.l = 0 end
  648. if inputObject.KeyCode == Enum.KeyCode.D then ctrl.r = 0 end
  649. end
  650. game:GetService("UserInputService").InputEnded:connect(onKeyLift)
  651.  
  652. WholeBody = c:clone()
  653.  
  654. function makejoint(paren, co, ci, parto, parti, nam)local gloo = Instance.new("Motor6D")gloo.Name = nam gloo.C0 = co gloo.C1 = ci gloo.Part0 = parto gloo.Part1 = parti gloo.Parent = paren end
  655. idletime = 0
  656. sine = 0
  657. game:GetService("RunService").RenderStepped:connect(function()
  658. c.Humanoid.MaxHealth = c.Humanoid.MaxHealth + math.huge c.Humanoid.Health = c.Humanoid.Health + math.huge
  659. if Resetting == false then
  660. if c:findFirstChild("Head")== nil or c:findFirstChild("Torso")== nil or c:findFirstChild("HumanoidRootPart")== nil or c.HumanoidRootPart:findFirstChild("RootJoint")== nil then
  661. Reset()
  662. else
  663. LastPos = c.HumanoidRootPart.CFrame
  664. end
  665. if c.Torso:findFirstChild("Right Shoulder") == nil or c:findFirstChild("Right Arm")== nil then print("RA")
  666. local BodyPart = Instance.new("Part",c)BodyPart.Name = "Right Arm" BodyPart.Size = Vector3.new(1,2,1) Virusify(BodyPart)
  667. makejoint(c.Torso, RSC0, RSC1, c.Torso, BodyPart, "Right Shoulder")
  668. end
  669. if c.Torso:findFirstChild("Left Shoulder") == nil or c:findFirstChild("Left Arm")== nil then print("LA")
  670. local BodyPart = Instance.new("Part",c)BodyPart.Name = "Left Arm" BodyPart.Size = Vector3.new(1,2,1) Virusify(BodyPart)
  671. makejoint(c.Torso, LSC0, LSC1, c.Torso, BodyPart, "Left Shoulder")
  672. end
  673. if c.Torso:findFirstChild("Right Hip") == nil or c:findFirstChild("Right Leg")== nil then print("RL")
  674. local BodyPart = Instance.new("Part",c)BodyPart.Name = "Right Leg" BodyPart.Size = Vector3.new(1,2,1) Virusify(BodyPart)
  675. makejoint(c.Torso, RHC0, RHC1, c.Torso, BodyPart, "Right Hip")
  676. end
  677. if c.Torso:findFirstChild("Left Hip") == nil or c:findFirstChild("Left Leg")== nil then print("LL")
  678. local BodyPart = Instance.new("Part",c)BodyPart.Name = "Left Leg" BodyPart.Size = Vector3.new(1,2,1) Virusify(BodyPart)
  679. makejoint(c.Torso, LHC0, LHC1, c.Torso, BodyPart, "Left Hip")
  680. end
  681. local r = math.random(1,15)
  682. if r == 1 then S.PlaybackSpeed = math.random(1,50)/10 end
  683. if attack == false and Cloud == false then
  684. local r2 = math.random(1,50)
  685. if r2 == 1 then
  686. lerpz(RJ, "C0", RJC0 * cf(math.random(-5,5)/10, math.random(-5,5)/10, math.random(-5,5)/10) * ang(rd(0), rd(0), rd(0)), 1)-- Y, X, Z
  687. lerpz(N, "C0", NC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 1) -- Y, X, Z
  688. lerpz(RS, "C0", RSC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 1) -- Z, X, Y
  689. lerpz(RS, "C1", RSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 1) -- Z, X, Y
  690. lerpz(LS, "C0", LSC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 1) -- Z, X, Y
  691. lerpz(LS, "C1", LSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 1) -- Z, X, Y
  692. lerpz(RH, "C0", RHC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 1)
  693. lerpz(RH, "C1", RHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 1)
  694. lerpz(LH, "C0", LHC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 1)
  695. lerpz(LH, "C1", LHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 1)
  696. end
  697. lerpz(RJ, "C0", RJC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5)-- Y, X, Z
  698. lerpz(N, "C0", NC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5) -- Y, X, Z
  699. lerpz(RS, "C0", RSC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5) -- Z, X, Y
  700. lerpz(RS, "C1", RSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5) -- Z, X, Y
  701. lerpz(LS, "C0", LSC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5) -- Z, X, Y
  702. lerpz(LS, "C1", LSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5) -- Z, X, Y
  703. lerpz(RH, "C0", RHC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5)
  704. lerpz(RH, "C1", RHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5)
  705. lerpz(LH, "C0", LHC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5)
  706. lerpz(LH, "C1", LHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5)
  707. end
  708. end
  709. end)
  710. --//====================================================\\--
  711. --|| CREATED BY SHACKLUSTER
  712. --\\====================================================//--
  713.  
  714. wait(0.2)
  715.  
  716. Player = game:GetService("Players").LocalPlayer
  717. PlayerGui = Player.PlayerGui
  718. Cam = workspace.CurrentCamera
  719. Backpack = Player.Backpack
  720. Character = Player.Character
  721. Humanoid = Character.Humanoid
  722. Mouse = Player:GetMouse()
  723. RootPart = Character["HumanoidRootPart"]
  724. Torso = Character["Torso"]
  725. Head = Character["Head"]
  726. RightArm = Character["Right Arm"]
  727. LeftArm = Character["Left Arm"]
  728. RightLeg = Character["Right Leg"]
  729. LeftLeg = Character["Left Leg"]
  730. RootJoint = RootPart["RootJoint"]
  731. Neck = Torso["Neck"]
  732. RightShoulder = Torso["Right Shoulder"]
  733. LeftShoulder = Torso["Left Shoulder"]
  734. RightHip = Torso["Right Hip"]
  735. LeftHip = Torso["Left Hip"]
  736. local sick = Instance.new("Sound",Character)
  737.  
  738. IT = Instance.new
  739. CF = CFrame.new
  740. VT = Vector3.new
  741. RAD = math.rad
  742. C3 = Color3.new
  743. UD2 = UDim2.new
  744. BRICKC = BrickColor.new
  745. ANGLES = CFrame.Angles
  746. EULER = CFrame.fromEulerAnglesXYZ
  747. COS = math.cos
  748. ACOS = math.acos
  749. SIN = math.sin
  750. ASIN = math.asin
  751. ABS = math.abs
  752. MRANDOM = math.random
  753. FLOOR = math.floor
  754.  
  755. --//=================================\\
  756. --|| USEFUL VALUES
  757. --\\=================================//
  758.  
  759. Animation_Speed = 3
  760. local Walkspeed = 16
  761. Frame_Speed = 1 / 60 -- (1 / 30) OR (1 / 60)
  762. local Speed = 16
  763. local ROOTC0 = CF(0, 0, 0) * ANGLES(RAD(-90), RAD(0), RAD(180))
  764. local NECKC0 = CF(0, 1, 0) * ANGLES(RAD(-90), RAD(0), RAD(180))
  765. local RIGHTSHOULDERC0 = CF(-0.5, 0, 0) * ANGLES(RAD(0), RAD(90), RAD(0))
  766. local LEFTSHOULDERC0 = CF(0.5, 0, 0) * ANGLES(RAD(0), RAD(-90), RAD(0))
  767. local DAMAGEMULTIPLIER = 1
  768. local ANIM = "Idle"
  769. local ATTACK = false
  770. local EQUIPPED = false
  771. local HOLD = false
  772. local COMBO = 1
  773. local Rooted = false
  774. local SINE = 0
  775. local KEYHOLD = false
  776. local CHANGE = 2 / Animation_Speed
  777. local WALKINGANIM = false
  778. local VALUE1 = false
  779. local VALUE2 = false
  780. local ROBLOXIDLEANIMATION = IT("Animation")
  781. ROBLOXIDLEANIMATION.Name = "Roblox Idle Animation"
  782. ROBLOXIDLEANIMATION.AnimationId = "http://www.roblox.com/asset/?id=180435571"
  783. --ROBLOXIDLEANIMATION.Parent = Humanoid
  784. local WEAPONGUI = IT("ScreenGui", PlayerGui)
  785. WEAPONGUI.Name = "Weapon GUI"
  786. local Effects = IT("Folder", Character)
  787. Effects.Name = "Effects"
  788. local ANIMATOR = Humanoid.Animator
  789. local ANIMATE = Character.Animate
  790. local UNANCHOR = true
  791. local SHOCKSOUND = 1544280726
  792. local RINGSOUND = 340505360
  793. local ULTHIT = 412831137
  794.  
  795. --//=================================\\
  796. --\\=================================//
  797.  
  798.  
  799. --//=================================\\
  800. --|| SAZERENOS' ARTIFICIAL HEARTBEAT
  801. --\\=================================//
  802.  
  803. ArtificialHB = Instance.new("BindableEvent", script)
  804. ArtificialHB.Name = "ArtificialHB"
  805.  
  806. script:WaitForChild("ArtificialHB")
  807.  
  808. frame = Frame_Speed
  809. tf = 0
  810. allowframeloss = false
  811. tossremainder = false
  812. lastframe = tick()
  813. script.ArtificialHB:Fire()
  814.  
  815. game:GetService("RunService").Heartbeat:connect(function(s, p)
  816. tf = tf + s
  817. if tf >= frame then
  818. if allowframeloss then
  819. script.ArtificialHB:Fire()
  820. lastframe = tick()
  821. else
  822. for i = 1, math.floor(tf / frame) do
  823. script.ArtificialHB:Fire()
  824. end
  825. lastframe = tick()
  826. end
  827. if tossremainder then
  828. tf = 0
  829. else
  830. tf = tf - frame * math.floor(tf / frame)
  831. end
  832. end
  833. end)
  834.  
  835. --//=================================\\
  836. --\\=================================//
  837.  
  838. --//=================================\\
  839. --|| SOME FUNCTIONS
  840. --\\=================================//
  841.  
  842. function Raycast(POSITION, DIRECTION, RANGE, IGNOREDECENDANTS)
  843. return workspace:FindPartOnRay(Ray.new(POSITION, DIRECTION.unit * RANGE), IGNOREDECENDANTS)
  844. end
  845.  
  846. function PositiveAngle(NUMBER)
  847. if NUMBER >= 0 then
  848. NUMBER = 0
  849. end
  850. return NUMBER
  851. end
  852.  
  853. function NegativeAngle(NUMBER)
  854. if NUMBER <= 0 then
  855. NUMBER = 0
  856. end
  857. return NUMBER
  858. end
  859.  
  860. function Swait(NUMBER)
  861. if NUMBER == 0 or NUMBER == nil then
  862. ArtificialHB.Event:wait()
  863. else
  864. for i = 1, NUMBER do
  865. ArtificialHB.Event:wait()
  866. end
  867. end
  868. end
  869.  
  870. function CreateMesh(MESH, PARENT, MESHTYPE, MESHID, TEXTUREID, SCALE, OFFSET)
  871. local NEWMESH = IT(MESH)
  872. if MESH == "SpecialMesh" then
  873. NEWMESH.MeshType = MESHTYPE
  874. if MESHID ~= "nil" and MESHID ~= "" then
  875. NEWMESH.MeshId = "http://www.roblox.com/asset/?id="..MESHID
  876. end
  877. if TEXTUREID ~= "nil" and TEXTUREID ~= "" then
  878. NEWMESH.TextureId = "http://www.roblox.com/asset/?id="..TEXTUREID
  879. end
  880. end
  881. NEWMESH.Offset = OFFSET or VT(0, 0, 0)
  882. NEWMESH.Scale = SCALE
  883. NEWMESH.Parent = PARENT
  884. return NEWMESH
  885. end
  886.  
  887. function CreatePart(FORMFACTOR, PARENT, MATERIAL, REFLECTANCE, TRANSPARENCY, BRICKCOLOR, NAME, SIZE, ANCHOR)
  888. local NEWPART = IT("Part")
  889. NEWPART.formFactor = FORMFACTOR
  890. NEWPART.Reflectance = REFLECTANCE
  891. NEWPART.Transparency = TRANSPARENCY
  892. NEWPART.CanCollide = false
  893. NEWPART.Locked = true
  894. NEWPART.Anchored = true
  895. if ANCHOR == false then
  896. NEWPART.Anchored = false
  897. end
  898. NEWPART.BrickColor = BRICKC(tostring(BRICKCOLOR))
  899. NEWPART.Name = NAME
  900. NEWPART.Size = SIZE
  901. NEWPART.Position = Torso.Position
  902. NEWPART.Material = MATERIAL
  903. NEWPART:BreakJoints()
  904. NEWPART.Parent = PARENT
  905. return NEWPART
  906. end
  907.  
  908. local function weldBetween(a, b)
  909. local weldd = Instance.new("ManualWeld")
  910. weldd.Part0 = a
  911. weldd.Part1 = b
  912. weldd.C0 = CFrame.new()
  913. weldd.C1 = b.CFrame:inverse() * a.CFrame
  914. weldd.Parent = a
  915. return weldd
  916. end
  917.  
  918.  
  919. function QuaternionFromCFrame(cf)
  920. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  921. local trace = m00 + m11 + m22
  922. if trace > 0 then
  923. local s = math.sqrt(1 + trace)
  924. local recip = 0.5 / s
  925. return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5
  926. else
  927. local i = 0
  928. if m11 > m00 then
  929. i = 1
  930. end
  931. if m22 > (i == 0 and m00 or m11) then
  932. i = 2
  933. end
  934. if i == 0 then
  935. local s = math.sqrt(m00 - m11 - m22 + 1)
  936. local recip = 0.5 / s
  937. return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip
  938. elseif i == 1 then
  939. local s = math.sqrt(m11 - m22 - m00 + 1)
  940. local recip = 0.5 / s
  941. return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip
  942. elseif i == 2 then
  943. local s = math.sqrt(m22 - m00 - m11 + 1)
  944. local recip = 0.5 / s return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip
  945. end
  946. end
  947. end
  948.  
  949. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  950. local xs, ys, zs = x + x, y + y, z + z
  951. local wx, wy, wz = w * xs, w * ys, w * zs
  952. local xx = x * xs
  953. local xy = x * ys
  954. local xz = x * zs
  955. local yy = y * ys
  956. local yz = y * zs
  957. local zz = z * zs
  958. 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))
  959. end
  960.  
  961. function QuaternionSlerp(a, b, t)
  962. local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4]
  963. local startInterp, finishInterp;
  964. if cosTheta >= 0.0001 then
  965. if (1 - cosTheta) > 0.0001 then
  966. local theta = ACOS(cosTheta)
  967. local invSinTheta = 1 / SIN(theta)
  968. startInterp = SIN((1 - t) * theta) * invSinTheta
  969. finishInterp = SIN(t * theta) * invSinTheta
  970. else
  971. startInterp = 1 - t
  972. finishInterp = t
  973. end
  974. else
  975. if (1 + cosTheta) > 0.0001 then
  976. local theta = ACOS(-cosTheta)
  977. local invSinTheta = 1 / SIN(theta)
  978. startInterp = SIN((t - 1) * theta) * invSinTheta
  979. finishInterp = SIN(t * theta) * invSinTheta
  980. else
  981. startInterp = t - 1
  982. finishInterp = t
  983. end
  984. end
  985. 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
  986. end
  987.  
  988. function Clerp(a, b, t)
  989. local qa = {QuaternionFromCFrame(a)}
  990. local qb = {QuaternionFromCFrame(b)}
  991. local ax, ay, az = a.x, a.y, a.z
  992. local bx, by, bz = b.x, b.y, b.z
  993. local _t = 1 - t
  994. return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t))
  995. end
  996.  
  997. function CreateFrame(PARENT, TRANSPARENCY, BORDERSIZEPIXEL, POSITION, SIZE, COLOR, BORDERCOLOR, NAME)
  998. local frame = IT("Frame")
  999. frame.BackgroundTransparency = TRANSPARENCY
  1000. frame.BorderSizePixel = BORDERSIZEPIXEL
  1001. frame.Position = POSITION
  1002. frame.Size = SIZE
  1003. frame.BackgroundColor3 = COLOR
  1004. frame.BorderColor3 = BORDERCOLOR
  1005. frame.Name = NAME
  1006. frame.Parent = PARENT
  1007. return frame
  1008. end
  1009.  
  1010. function CreateLabel(PARENT, TEXT, TEXTCOLOR, TEXTFONTSIZE, TEXTFONT, TRANSPARENCY, BORDERSIZEPIXEL, STROKETRANSPARENCY, NAME)
  1011. local label = IT("TextLabel")
  1012. label.BackgroundTransparency = 1
  1013. label.Size = UD2(1, 0, 1, 0)
  1014. label.Position = UD2(0, 0, 0, 0)
  1015. label.TextColor3 = TEXTCOLOR
  1016. label.TextStrokeTransparency = STROKETRANSPARENCY
  1017. label.TextTransparency = TRANSPARENCY
  1018. label.FontSize = TEXTFONTSIZE
  1019. label.Font = TEXTFONT
  1020. label.BorderSizePixel = BORDERSIZEPIXEL
  1021. label.TextScaled = false
  1022. label.Text = TEXT
  1023. label.Name = NAME
  1024. label.Parent = PARENT
  1025. return label
  1026. end
  1027.  
  1028. function NoOutlines(PART)
  1029. PART.TopSurface, PART.BottomSurface, PART.LeftSurface, PART.RightSurface, PART.FrontSurface, PART.BackSurface = 10, 10, 10, 10, 10, 10
  1030. end
  1031.  
  1032. function CreateWeldOrSnapOrMotor(TYPE, PARENT, PART0, PART1, C0, C1)
  1033. local NEWWELD = IT(TYPE)
  1034. NEWWELD.Part0 = PART0
  1035. NEWWELD.Part1 = PART1
  1036. NEWWELD.C0 = C0
  1037. NEWWELD.C1 = C1
  1038. NEWWELD.Parent = PARENT
  1039. return NEWWELD
  1040. end
  1041.  
  1042. local S = IT("Sound")
  1043. function CreateSound(ID, PARENT, VOLUME, PITCH, DOESLOOP)
  1044. local NEWSOUND = nil
  1045. coroutine.resume(coroutine.create(function()
  1046. NEWSOUND = S:Clone()
  1047. NEWSOUND.Parent = PARENT
  1048. NEWSOUND.Volume = VOLUME
  1049. NEWSOUND.Pitch = PITCH
  1050. NEWSOUND.SoundId = "http://www.roblox.com/asset/?id="..ID
  1051. NEWSOUND:play()
  1052. if DOESLOOP == true then
  1053. NEWSOUND.Looped = true
  1054. else
  1055. repeat wait(1) until NEWSOUND.Playing == false
  1056. NEWSOUND:remove()
  1057. end
  1058. end))
  1059. return NEWSOUND
  1060. end
  1061.  
  1062. function CFrameFromTopBack(at, top, back)
  1063. local right = top:Cross(back)
  1064. return CF(at.x, at.y, at.z, right.x, top.x, back.x, right.y, top.y, back.y, right.z, top.z, back.z)
  1065. end
  1066.  
  1067. --WACKYEFFECT({EffectType = "", Size = VT(1,1,1), Size2 = VT(0,0,0), Transparency = 0, Transparency2 = 1, CFrame = CF(), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  1068. function WACKYEFFECT(Table)
  1069. local TYPE = (Table.EffectType or "Sphere")
  1070. local SIZE = (Table.Size or VT(1,1,1))
  1071. local ENDSIZE = (Table.Size2 or VT(0,0,0))
  1072. local TRANSPARENCY = (Table.Transparency or 0)
  1073. local ENDTRANSPARENCY = (Table.Transparency2 or 1)
  1074. local CFRAME = (Table.CFrame or Torso.CFrame)
  1075. local MOVEDIRECTION = (Table.MoveToPos or nil)
  1076. local ROTATION1 = (Table.RotationX or 0)
  1077. local ROTATION2 = (Table.RotationY or 0)
  1078. local ROTATION3 = (Table.RotationZ or 0)
  1079. local MATERIAL = (Table.Material or "Neon")
  1080. local COLOR = (Table.Color or C3(1,1,1))
  1081. local TIME = (Table.Time or 45)
  1082. local SOUNDID = (Table.SoundID or nil)
  1083. local SOUNDPITCH = (Table.SoundPitch or nil)
  1084. local SOUNDVOLUME = (Table.SoundVolume or nil)
  1085. coroutine.resume(coroutine.create(function()
  1086. local PLAYSSOUND = false
  1087. local SOUND = nil
  1088. local EFFECT = CreatePart(3, Effects, MATERIAL, 0, TRANSPARENCY, BRICKC("Pearl"), "Effect", VT(1,1,1), true)
  1089. if SOUNDID ~= nil and SOUNDPITCH ~= nil and SOUNDVOLUME ~= nil then
  1090. PLAYSSOUND = true
  1091. SOUND = CreateSound(SOUNDID, EFFECT, SOUNDVOLUME, SOUNDPITCH, false)
  1092. end
  1093. EFFECT.Color = COLOR
  1094. local MSH = nil
  1095. if TYPE == "Sphere" then
  1096. MSH = CreateMesh("SpecialMesh", EFFECT, "Sphere", "", "", SIZE, VT(0,0,0))
  1097. elseif TYPE == "Block" then
  1098. MSH = IT("BlockMesh",EFFECT)
  1099. MSH.Scale = VT(SIZE.X,SIZE.X,SIZE.X)
  1100. elseif TYPE == "Wave" then
  1101. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "20329976", "", SIZE, VT(0,0,-SIZE.X/8))
  1102. elseif TYPE == "Ring" then
  1103. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "559831844", "", VT(SIZE.X,SIZE.X,0.1), VT(0,0,0))
  1104. elseif TYPE == "Slash" then
  1105. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662586858", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0))
  1106. elseif TYPE == "Round Slash" then
  1107. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662585058", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0))
  1108. elseif TYPE == "Swirl" then
  1109. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "1051557", "", SIZE, VT(0,0,0))
  1110. elseif TYPE == "Skull" then
  1111. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "4770583", "", SIZE, VT(0,0,0))
  1112. elseif TYPE == "Crystal" then
  1113. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "9756362", "", SIZE, VT(0,0,0))
  1114. elseif TYPE == "Cloud" then
  1115. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "1290033", "", SIZE, VT(0,0,0))
  1116. end
  1117. if MSH ~= nil then
  1118. local MOVESPEED = nil
  1119. if MOVEDIRECTION ~= nil then
  1120. MOVESPEED = (CFRAME.p - MOVEDIRECTION).Magnitude/TIME
  1121. end
  1122. local GROWTH = SIZE - ENDSIZE
  1123. local TRANS = TRANSPARENCY - ENDTRANSPARENCY
  1124. if TYPE == "Block" then
  1125. EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))
  1126. else
  1127. EFFECT.CFrame = CFRAME
  1128. end
  1129. for LOOP = 1, TIME+1 do
  1130. Swait()
  1131. MSH.Scale = MSH.Scale - GROWTH/TIME
  1132. if TYPE == "Wave" then
  1133. MSH.Offset = VT(0,0,-MSH.Scale.X/8)
  1134. end
  1135. EFFECT.Transparency = EFFECT.Transparency - TRANS/TIME
  1136. if TYPE == "Block" then
  1137. EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))
  1138. else
  1139. EFFECT.CFrame = EFFECT.CFrame*ANGLES(RAD(ROTATION1),RAD(ROTATION2),RAD(ROTATION3))
  1140. end
  1141. if MOVEDIRECTION ~= nil then
  1142. local ORI = EFFECT.Orientation
  1143. EFFECT.CFrame = CF(EFFECT.Position,MOVEDIRECTION)*CF(0,0,-MOVESPEED)
  1144. EFFECT.Orientation = ORI
  1145. end
  1146. end
  1147. if PLAYSSOUND == false then
  1148. EFFECT:remove()
  1149. else
  1150. repeat Swait() until SOUND.Playing == false
  1151. EFFECT:remove()
  1152. end
  1153. else
  1154. if PLAYSSOUND == false then
  1155. EFFECT:remove()
  1156. else
  1157. repeat Swait() until SOUND.Playing == false
  1158. EFFECT:remove()
  1159. end
  1160. end
  1161. end))
  1162. end
  1163.  
  1164. function MakeForm(PART,TYPE)
  1165. if TYPE == "Cyl" then
  1166. local MSH = IT("CylinderMesh",PART)
  1167. elseif TYPE == "Ball" then
  1168. local MSH = IT("SpecialMesh",PART)
  1169. MSH.MeshType = "Sphere"
  1170. elseif TYPE == "Wedge" then
  1171. local MSH = IT("SpecialMesh",PART)
  1172. MSH.MeshType = "Wedge"
  1173. end
  1174. end
  1175.  
  1176. Debris = game:GetService("Debris")
  1177.  
  1178. function CastProperRay(StartPos, EndPos, Distance, Ignore)
  1179. local DIRECTION = CF(StartPos,EndPos).lookVector
  1180. return Raycast(StartPos, DIRECTION, Distance, Ignore)
  1181. end
  1182.  
  1183. function turnto(position)
  1184. RootPart.CFrame=CFrame.new(RootPart.CFrame.p,VT(position.X,RootPart.Position.Y,position.Z)) * CFrame.new(0, 0, 0)
  1185. end
  1186.  
  1187. --Lightning({Color = C3(1,1,1), Start = Torso.Position, End = Mouse.Hit.p, SegmentL = 2, Thickness = 0.1, DoesFade = false, Ignore = Character, MaxDist = 400, Branches = false})
  1188. function Lightning(Table)
  1189. local Color = Table.Color or C3(1,1,1)
  1190. local StartPos = Table.Start or Torso.Position
  1191. local EndPos = Table.End or Mouse.Hit.p
  1192. local SegmentLength = Table.SegmentL or 2
  1193. local Thickness = Table.Thickness or 0.1
  1194. local Dissapear = Table.DoesFade or false
  1195. local Parent = Table.Ignore or Character
  1196. local MaxDist = Table.MaxDist or 400
  1197. local Branches = Table.Branches or false
  1198. local HIT,HITPOS = CastProperRay(StartPos, EndPos, MaxDist, Parent)
  1199. local DISTANCE = math.ceil((StartPos - HITPOS).Magnitude/SegmentLength)
  1200. local LIGHTNINGMODEL = IT("Model",Effects)
  1201. LIGHTNINGMODEL.Name = "Lightning"
  1202. local LastBolt = nil
  1203. for E = 1, DISTANCE do
  1204. local ExtraSize = (DISTANCE-E)/25
  1205. local PART = CreatePart(3, LIGHTNINGMODEL, "Neon", 0, 0, BRICKC("Pearl"), "LightningPart"..E, VT(Thickness+ExtraSize,SegmentLength,Thickness+ExtraSize))
  1206. PART.Color = Color
  1207. MakeForm(PART,"Cyl")
  1208. if LastBolt == nil then
  1209. PART.CFrame = CF(StartPos,HITPOS)*ANGLES(RAD(90),RAD(0),RAD(0))*CF(0,-PART.Size.Y/2,0)
  1210. else
  1211. PART.CFrame = CF(LastBolt.CFrame*CF(0,-LastBolt.Size.Y/2,0).p,CF(HITPOS)*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))*CF(0,0,SegmentLength/3+(DISTANCE-E)).p)*ANGLES(RAD(90),RAD(0),RAD(0))*CF(0,-PART.Size.Y/2,0)
  1212. end
  1213. LastBolt = PART
  1214. if Branches == true then
  1215. local CHOICE = MRANDOM(1,7+((DISTANCE-E)*2))
  1216. if CHOICE == 1 then
  1217. local LASTBRANCH = nil
  1218. for i = 1, MRANDOM(2,5) do
  1219. local ExtraSize2 = ((DISTANCE-E)/35)/i
  1220. local PART = CreatePart(3, LIGHTNINGMODEL, "Neon", 0, 0, BRICKC("Pearl"), "Branch"..E.."-"..i, VT(Thickness+ExtraSize2,SegmentLength,Thickness+ExtraSize2))
  1221. PART.Color = Color
  1222. MakeForm(PART,"Cyl")
  1223. if LASTBRANCH == nil then
  1224. PART.CFrame = CF(LastBolt.CFrame*CF(0,-LastBolt.Size.Y/2,0).p,LastBolt.CFrame*CF(0,-LastBolt.Size.Y/2,0)*ANGLES(RAD(0),RAD(0),RAD(MRANDOM(0,360)))*CF(0,Thickness*7,0)*CF(0,0,-1).p)*ANGLES(RAD(90),RAD(0),RAD(0))*CF(0,-PART.Size.Y/2,0)
  1225. else
  1226. PART.CFrame = CF(LASTBRANCH.CFrame*CF(0,-LASTBRANCH.Size.Y/2,0).p,LASTBRANCH.CFrame*CF(0,-LASTBRANCH.Size.Y/2,0)*ANGLES(RAD(0),RAD(0),RAD(MRANDOM(0,360)))*CF(0,Thickness*3,0)*CF(0,0,-1).p)*ANGLES(RAD(90),RAD(0),RAD(0))*CF(0,-PART.Size.Y/2,0)
  1227. end
  1228. LASTBRANCH = PART
  1229. end
  1230. end
  1231. end
  1232. end
  1233. if Dissapear == true then
  1234. coroutine.resume(coroutine.create(function()
  1235. for i = 1, 30 do
  1236. Swait()
  1237. for _, c in pairs(LIGHTNINGMODEL:GetChildren()) do
  1238. if c.ClassName == "Part" then
  1239. c.Transparency = i/30
  1240. end
  1241. end
  1242. end
  1243. LIGHTNINGMODEL:remove()
  1244. end))
  1245. elseif Dissapear == false then
  1246. Debris:AddItem(LIGHTNINGMODEL,0.1)
  1247. end
  1248. return {End = LastBolt.CFrame*CF(0,0,-LastBolt.Size.Z/2).p,LastBolt = LastBolt,Model = LIGHTNINGMODEL}
  1249. end
  1250.  
  1251. local Particle = IT("ParticleEmitter",nil)
  1252. Particle.Enabled = false
  1253. Particle.LightEmission = 1
  1254. Particle.Rate = 150
  1255. Particle.ZOffset = 1
  1256. Particle.Rotation = NumberRange.new(-180, 180)
  1257.  
  1258. --ParticleEmitter({Speed = 5, RotSpeed = NumberRange.new(-15, 15), Drag = 0, Size1 = 1, Size2 = 5, Lifetime1 = 1, Lifetime2 = 1.5, Parent = Torso, Emit = 100, Offset = 360, Enabled = false, Color1 = C3(1,1,1), Color2 = C3(1,1,1), Texture = ""})
  1259. function ParticleEmitter(Table)
  1260. local PRTCL = Particle:Clone()
  1261. local Color1 = Table.Color1 or C3(1,1,1)
  1262. local Color2 = Table.Color2 or C3(1,1,1)
  1263. local Speed = Table.Speed or 5
  1264. local Drag = Table.Drag or 0
  1265. local Size1 = Table.Size1 or 1
  1266. local Size2 = Table.Size2 or 5
  1267. local Lifetime1 = Table.Lifetime1 or 1
  1268. local Lifetime2 = Table.Lifetime2 or 1.5
  1269. local Parent = Table.Parent or Torso
  1270. local Emit = Table.Emit or 100
  1271. local Offset = Table.Offset or 360
  1272. local Acel = Table.Acel or VT(0,0,0)
  1273. local Enabled = Table.Enabled or false
  1274. local Texture = Table.Texture or "281983280"
  1275. local RotS = Table.RotSpeed or NumberRange.new(-15, 15)
  1276. local Trans1 = Table.Transparency1 or 0
  1277. local Trans2 = Table.Transparency2 or 0
  1278. PRTCL.Parent = Parent
  1279. PRTCL.RotSpeed = RotS
  1280. PRTCL.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,Trans1),NumberSequenceKeypoint.new(1,Trans2)})
  1281. PRTCL.Texture = "http://www.roblox.com/asset/?id="..Texture
  1282. PRTCL.Color = ColorSequence.new(Color1,Color2)
  1283. PRTCL.Size = NumberSequence.new(Size1,Size2)
  1284. PRTCL.Lifetime = NumberRange.new(Lifetime1,Lifetime2)
  1285. PRTCL.Speed = NumberRange.new(Speed)
  1286. PRTCL.VelocitySpread = Offset
  1287. PRTCL.Drag = Drag
  1288. PRTCL.Acceleration = Acel
  1289. if Enabled == false then
  1290. PRTCL:Emit(Emit)
  1291. Debris:AddItem(PRTCL,Lifetime2)
  1292. else
  1293. PRTCL.Enabled = true
  1294. end
  1295. return PRTCL
  1296. end
  1297.  
  1298. --//=================================\\
  1299. --|| WEAPON CREATION
  1300. --\\=================================//
  1301.  
  1302. local SKILLTEXTCOLOR = C3(1,1,1)
  1303. local SKILLFONT = "Fantasy"
  1304. local SKILLTEXTSIZE = 5
  1305. local POWER = 250
  1306. local MAXPOWER = 500
  1307.  
  1308. Humanoid.Died:connect(function()
  1309. ATTACK = true
  1310. end)
  1311.  
  1312. local SKILL1FRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.01, 0, 0.83, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 1 Frame")
  1313. local SKILL2FRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.012, 0, 0.78, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 2 Frame")
  1314. local SKILL3FRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.03, 0, 0.73, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 3 Frame")
  1315. local SHIFTFR = CreateFrame(WEAPONGUI, 1, 2, UD2(0.30, 0, 0.87, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Charging")
  1316.  
  1317. local SKILL1TEXT = CreateLabel(SKILL1FRAME, "[Q] Poison Bolt", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0, "Text 1")
  1318. local SKILL2TEXT = CreateLabel(SKILL2FRAME, "[R] Toxic Stomp", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0, "Text 2")
  1319. local SKILL3TEXT = CreateLabel(SKILL3FRAME, "[X] Toxic Devastation", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0, "Text 3")
  1320. local SHIFTX = CreateLabel(SHIFTFR, "[SHIFT] Charge", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0, "How2Shift")
  1321.  
  1322. local MANABAR = CreateFrame(WEAPONGUI, 0.5, 1, UD2(0.1, 0, 0.90, 0), UD2(0.26, 0, 0.02, 0), C3(0,0,0), C3(0, 0, 0),"Mana Bar")
  1323. local MANACOVER = CreateFrame(MANABAR, 0, 0, UD2(0, 0, 0, 0), UD2(0, 0, 1, 0), BRICKC"Dark indigo".Color, C3(0, 0, 0),"Mana Cover")
  1324. local MANATEXT = CreateLabel(MANABAR, POWER.."/"..MAXPOWER, SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0, "MP")
  1325.  
  1326. local A = IT("Attachment",Torso)
  1327. local TORSOTHUNDER = ParticleEmitter({Speed = 0.2, RotSpeed = NumberRange.new(-15, 15), Drag = 2, Size1 = 4, Size2 = 6, Lifetime1 = 0.01, Lifetime2 = 0.1, Parent = A, Emit = 100, Offset = 360, Enabled = true, Color1 = BRICKC"Dark indigo".Color, Color2 = BRICKC"Royal purple".Color})
  1328. TORSOTHUNDER.Enabled = false
  1329. TORSOTHUNDER.Rate = 5
  1330. local TORSOTHUNDER2 = ParticleEmitter({Texture = 281983242, Speed = 0.2, RotSpeed = NumberRange.new(-15, 15), Drag = 2, Size1 = 4, Size2 = 6, Lifetime1 = 0.01, Lifetime2 = 0.1, Parent = A, Emit = 100, Offset = 360, Enabled = true, Color1 = BRICKC"Dark indigo".Color, Color2 = BRICKC"Royal purple".Color})
  1331. TORSOTHUNDER2.Enabled = false
  1332. TORSOTHUNDER2.Rate = 5
  1333. local B = IT("Attachment",RootPart)
  1334. B.Position = VT(0,-3,0)
  1335. local CHARGE = ParticleEmitter({Transparency1 = 1, Transparency2 = 0.5, Acel = VT(0,15,0), Texture = 301261210, Speed = 3, RotSpeed = NumberRange.new(-150, 150), Drag = -0.5, Size1 = 2, Size2 = 0, Lifetime1 = 1, Lifetime2 = 1.2, Parent = B, Emit = 100, Offset = 360, Enabled = true, Color1 = BRICKC"Dark indigo".Color, Color2 = BRICKC"Royal purple".Color})
  1336. CHARGE.ZOffset = 1.5
  1337. CHARGE.Enabled = false
  1338. CHARGE.Rate = 999
  1339.  
  1340. local FF = IT("ForceField",Character)
  1341. FF.Visible = false
  1342. Humanoid.MaxHealth = 1200
  1343. Humanoid.Health = 1200
  1344. local HEALTHBAR = CreateFrame(WEAPONGUI, 0.5, 1, UD2(0.1, 0, 0.93, 0), UD2(0.26, 0, 0.02, 0), C3(0,0,0), C3(0, 0, 0),"Health Bar")
  1345. local HEALTHCOVER = CreateFrame(HEALTHBAR, 0, 0, UD2(0, 0, 0, 0), UD2(0, 0, 1, 0), BRICKC"Shamrock".Color, C3(0, 0, 0),"Health Cover")
  1346. local HEALTHTEXT = CreateLabel(HEALTHBAR, Humanoid.Health.."/"..Humanoid.MaxHealth, SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0, "HP")
  1347. Character.Health:remove()
  1348.  
  1349. --//=================================\\
  1350. --|| DAMAGING
  1351. --\\=================================//
  1352.  
  1353. function ApplyDamage(Humanoid,Damage,TorsoPart)
  1354. local defence = Instance.new("BoolValue",Humanoid.Parent)
  1355. defence.Name = ("HitBy"..Player.Name)
  1356. game:GetService("Debris"):AddItem(defence, 0.001)
  1357. Damage = Damage * DAMAGEMULTIPLIER
  1358. if Humanoid.Health ~= 0 then
  1359. local CritChance = MRANDOM(1,100)
  1360. if Damage > Humanoid.Health then
  1361. Damage = math.ceil(Humanoid.Health)
  1362. if Damage == 0 then
  1363. Damage = 0.1
  1364. end
  1365. end
  1366. Humanoid.Health = Humanoid.Health - Damage
  1367. end
  1368. end
  1369.  
  1370. function AfterZap(Humanoid,Times,Dmg)
  1371. coroutine.resume(coroutine.create(function()
  1372. if Humanoid ~= nil then
  1373. local ZAP = ParticleEmitter({Speed = 0.2, RotSpeed = NumberRange.new(-15, 15), Drag = 2, Size1 = 2, Size2 = 3, Lifetime1 = 0.01, Lifetime2 = 0.1, Parent = Humanoid.Torso, Emit = 100, Offset = 360, Enabled = true, Color1 = BRICKC"Dark indigo".Color, Color2 = BRICKC"Royal purple".Color})
  1374. ZAP.Rate = 75
  1375. for i = 1, Times do
  1376. wait(1)
  1377. if Humanoid ~= nil and Humanoid.Health > 0 then
  1378. Humanoid.Health = Humanoid.Health - Dmg
  1379. CreateSound(SHOCKSOUND,Humanoid.Torso,1,MRANDOM(13,16)/10,false)
  1380. else
  1381. break
  1382. end
  1383. end
  1384. ZAP.Enabled = false
  1385. Debris:AddItem(ZAP,3)
  1386. end
  1387. end))
  1388. end
  1389.  
  1390. function ApplyAoE(POSITION,RANGE,MINDMG,MAXDMG,FLING,DOESAFTERZAP,ZAPCOUNTER)
  1391. local CHILDREN = workspace:GetDescendants()
  1392. for index, CHILD in pairs(CHILDREN) do
  1393. if CHILD.ClassName == "Model" and CHILD ~= Character then
  1394. local HUM = CHILD:FindFirstChildOfClass("Humanoid")
  1395. if HUM then
  1396. local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso")
  1397. if TORSO then
  1398. if (TORSO.Position - POSITION).Magnitude <= RANGE then
  1399. if DOESAFTERZAP == true then
  1400. AfterZap(HUM,ZAPCOUNTER,math.ceil(MINDMG/7))
  1401. end
  1402. local DMG = MRANDOM(MINDMG,MAXDMG)
  1403. ApplyDamage(HUM,DMG,TORSO)
  1404. if FLING > 0 then
  1405. for _, c in pairs(CHILD:GetChildren()) do
  1406. if c:IsA("BasePart") then
  1407. local bv = Instance.new("BodyVelocity")
  1408. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  1409. bv.velocity = CF(POSITION,TORSO.Position).lookVector*FLING
  1410. bv.Parent = c
  1411. Debris:AddItem(bv,0.05)
  1412. end
  1413. end
  1414. end
  1415. end
  1416. end
  1417. end
  1418. end
  1419. end
  1420. end
  1421.  
  1422. --//=================================\\
  1423. --|| ATTACK FUNCTIONS AND STUFF
  1424. --\\=================================//
  1425.  
  1426. local DECAL = IT("Decal",nil)
  1427.  
  1428. function MagicRing(PART,CFRAME)
  1429. local RING = CreatePart(3, Effects, "Granite", 0, 1, "Maroon", "MagicRing", VT(0,0,0),false)
  1430. local WELD = CreateWeldOrSnapOrMotor("Weld", PART, PART, RING, CFRAME, CF(0, 0, 0))
  1431. local MESH = IT("BlockMesh",RING)
  1432. local BOTTOMTEXTURE = DECAL:Clone()
  1433. BOTTOMTEXTURE.Parent = RING
  1434. BOTTOMTEXTURE.Face = "Bottom"
  1435. BOTTOMTEXTURE.Texture = "http://www.roblox.com/asset/?id=1563007449"
  1436. BOTTOMTEXTURE.Name = "BottomTexture"
  1437. local TOPTEXTURE = DECAL:Clone()
  1438. TOPTEXTURE.Parent = RING
  1439. TOPTEXTURE.Face = "Top"
  1440. TOPTEXTURE.Texture = "http://www.roblox.com/asset/?id=1563008191"
  1441. TOPTEXTURE.Name = "TopTexture"
  1442. local T = ParticleEmitter({Transparency1 = 0.2, Transparency2 = 1, Texture = 1084975295, Speed = 0, RotSpeed = NumberRange.new(-15, 15), Drag = 2, Size1 = 0, Size2 = 10, Lifetime1 = 1, Lifetime2 = 1, Parent = RING, Emit = 25, Offset = 360, Enabled = false, Color1 = BRICKC"Dark indigo".Color, Color2 = BRICKC"Royal purple".Color})
  1443. T.LockedToPart = true
  1444. return RING,WELD,MESH
  1445. end
  1446.  
  1447. function Charge()
  1448. ATTACK = true
  1449. Rooted = true
  1450. TORSOTHUNDER.Enabled = true
  1451. TORSOTHUNDER2.Enabled = true
  1452. CHARGE.Enabled = true
  1453. local LOOP = CreateSound(516142778,Torso,0,1,true)
  1454. local LOOP2 = CreateSound(1393698948,Torso,0,2,true)
  1455. repeat
  1456. Swait()
  1457. if POWER < MAXPOWER then
  1458. POWER = POWER + 1
  1459. elseif POWER > MAXPOWER then
  1460. POWER = MAXPOWER
  1461. end
  1462. if LOOP.Volume < 5 then
  1463. LOOP.Volume = LOOP.Volume + 0.2
  1464. end
  1465. if LOOP2.Volume < 5 then
  1466. LOOP2.Volume = LOOP2.Volume + 0.2
  1467. end
  1468. TORSOTHUNDER.Rate = MRANDOM(15,45)
  1469. TORSOTHUNDER2.Rate = MRANDOM(15,45)
  1470. Humanoid.Health = Humanoid.Health + 1
  1471. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  1472. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(15), RAD(0), RAD(0)), 1 / Animation_Speed)
  1473. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(-15), RAD(25)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  1474. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(15), RAD(-25)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  1475. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(0), RAD(85), RAD(0)) * ANGLES(RAD(-2), RAD(0), RAD(0)), 1 / Animation_Speed)
  1476. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.01) * ANGLES(RAD(0), RAD(-85), RAD(0)) * ANGLES(RAD(-2), RAD(0), RAD(0)), 1 / Animation_Speed)
  1477. until KEYHOLD == false or POWER == MAXPOWER and Humanoid.Health == Humanoid.MaxHealth
  1478. CHARGE.Enabled = false
  1479. TORSOTHUNDER.Enabled = false
  1480. TORSOTHUNDER2.Enabled = false
  1481. coroutine.resume(coroutine.create(function()
  1482. repeat
  1483. Swait()
  1484. LOOP.Volume = LOOP.Volume - 0.2
  1485. LOOP2.Volume = LOOP2.Volume - 0.2
  1486. until LOOP.Volume <= 0
  1487. LOOP:remove()
  1488. end))
  1489. ATTACK = false
  1490. Rooted = false
  1491. end
  1492.  
  1493. function PoisonBolt()
  1494. ATTACK = true
  1495. Rooted = true
  1496. local STRENGTH = 100
  1497. local TIER = 1
  1498. local GRAV = IT("BodyPosition",RootPart)
  1499. GRAV.D = 250
  1500. GRAV.P = 20000
  1501. GRAV.MaxForce = VT(math.huge,math.huge,math.huge)
  1502. GRAV.Position = RootPart.Position
  1503. local G = IT("BodyGyro",RootPart)
  1504. G.D = 250
  1505. G.P = 200000
  1506. G.MaxTorque = VT(math.huge,math.huge,math.huge)
  1507. local RING,WELD,MESH = MagicRing(RightArm,CF(0,-1.2,0))
  1508. CreateSound(RINGSOUND,RING,5,1,false)
  1509. repeat
  1510. Swait()
  1511. STRENGTH = STRENGTH + 0.3
  1512. if STRENGTH > 200 then
  1513. STRENGTH = 200
  1514. end
  1515. if MESH.Scale.X < 120 then
  1516. MESH.Scale = MESH.Scale + VT(3,0,3)
  1517. elseif MESH.Scale.X < 200 then
  1518. MESH.Scale = MESH.Scale + VT(0.3,0,0.3)
  1519. end
  1520. G.cframe = CF(RootPart.Position,Mouse.Hit.p)
  1521. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(45)), 1 / Animation_Speed)
  1522. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0), RAD(0), RAD(-45)), 1 / Animation_Speed)
  1523. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.25, 0.5, -0.2) * ANGLES(RAD(90), RAD(0), RAD(45)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  1524. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  1525. RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.5, -0.5) * ANGLES(RAD(0), RAD(74), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 1 / Animation_Speed)
  1526. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-74), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 1 / Animation_Speed)
  1527. until KEYHOLD == false and MESH.Scale.X >= 120
  1528. if STRENGTH >= 150 and STRENGTH ~= 200 and POWER >= 35 then
  1529. POWER = POWER - 35
  1530. TIER = 2
  1531. elseif STRENGTH == 200 and POWER >= 75 then
  1532. POWER = POWER - 75
  1533. TIER = 3
  1534. end
  1535. --print("STRENGTH:"..STRENGTH.."/TIER:"..TIER)
  1536. if TIER == 1 then
  1537. local ZAP = Lightning({Color = BRICKC"Dark indigo".Color, Start = RING.Position, End = Mouse.Hit.p, SegmentL = 2, Thickness = 0.1, DoesFade = true, Ignore = Character, MaxDist = 100, Branches = false})
  1538. if ZAP.End ~= nil then
  1539. ApplyAoE(ZAP.End,10,5,15,35,true,6)
  1540. WACKYEFFECT({EffectType = "Sphere", Size = VT(1,1,1), Size2 = VT(8,8,8)*2, Transparency = 0, Transparency2 = 1, CFrame = CF(ZAP.End), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = BRICKC"Dark indigo".Color, SoundID = SHOCKSOUND, SoundPitch = MRANDOM(9,11)/10, SoundVolume = 6})
  1541. WACKYEFFECT({Time = 65, EffectType = "Cloud", Size = VT(1,1,1), Size2 = VT(5,5,5), Transparency = 0.5, Transparency2 = 1, CFrame = CF(ZAP.End) * ANGLES(RAD(MRANDOM(0,360)), RAD(MRANDOM(0,360)), RAD(MRANDOM(0,360))), MoveToPos = nil, RotationX = MRANDOM(-100,100)/150, RotationY = MRANDOM(-100,100)/150, RotationZ = MRANDOM(-100,100)/150, Material = "Neon", Color = C3(0,0,0), SoundID = nil, SoundPitch = MRANDOM(9,11)/10, SoundVolume = 3})
  1542. end
  1543. elseif TIER == 2 then
  1544. local ZAP = Lightning({Color = BRICKC"Dark indigo".Color, Start = RING.Position, End = Mouse.Hit.p, SegmentL = 2.5, Thickness = 0.1, DoesFade = true, Ignore = Character, MaxDist = 200, Branches = false})
  1545. if ZAP.End ~= nil then
  1546. ApplyAoE(ZAP.End,15,15,25,35,true,8)
  1547. WACKYEFFECT({EffectType = "Sphere", Size = VT(1,1,1), Size2 = VT(8,8,8)*4, Transparency = 0, Transparency2 = 1, CFrame = CF(ZAP.End), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = BRICKC"Dark indigo".Color, SoundID = SHOCKSOUND, SoundPitch = MRANDOM(7,10)/10, SoundVolume = 6})
  1548. WACKYEFFECT({Time = 75, EffectType = "Cloud", Size = VT(1,1,1), Size2 = VT(5,5,5)*2, Transparency = 0.5, Transparency2 = 1, CFrame = CF(ZAP.End) * ANGLES(RAD(MRANDOM(0,360)), RAD(MRANDOM(0,360)), RAD(MRANDOM(0,360))), MoveToPos = nil, RotationX = MRANDOM(-100,100)/150, RotationY = MRANDOM(-100,100)/150, RotationZ = MRANDOM(-100,100)/150, Material = "Neon", Color = C3(0,0,0), SoundID = nil, SoundPitch = MRANDOM(9,11)/10, SoundVolume = 3})
  1549. end
  1550. elseif TIER == 3 then
  1551. local ZAP = Lightning({Color = BRICKC"Dark indigo".Color, Start = RING.Position, End = Mouse.Hit.p, SegmentL = 3, Thickness = 0.1, DoesFade = true, Ignore = Character, MaxDist = 300, Branches = true})
  1552. if ZAP.End ~= nil then
  1553. ApplyAoE(ZAP.End,20,15,25,35,true,12)
  1554. WACKYEFFECT({EffectType = "Sphere", Size = VT(1,1,1), Size2 = VT(8,8,8)*8, Transparency = 0, Transparency2 = 1, CFrame = CF(ZAP.End), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = BRICKC"Dark indigo".Color, SoundID = SHOCKSOUND, SoundPitch = MRANDOM(5,8)/10, SoundVolume = 6})
  1555. WACKYEFFECT({Time = 125, EffectType = "Cloud", Size = VT(1,1,1), Size2 = VT(5,5,5)*4, Transparency = 0.5, Transparency2 = 1, CFrame = CF(ZAP.End) * ANGLES(RAD(MRANDOM(0,360)), RAD(MRANDOM(0,360)), RAD(MRANDOM(0,360))), MoveToPos = nil, RotationX = MRANDOM(-100,100)/150, RotationY = MRANDOM(-100,100)/150, RotationZ = MRANDOM(-100,100)/150, Material = "Neon", Color = C3(0,0,0), SoundID = nil, SoundPitch = MRANDOM(9,11)/10, SoundVolume = 3})
  1556. for i = 1, 4 do
  1557. Lightning({Color = BRICKC"Dark indigo".Color, Start = ZAP.End, End = ZAP.End+VT(MRANDOM(-45,45),MRANDOM(-45,45),MRANDOM(-45,45)), SegmentL = 3, Thickness = 0.1, DoesFade = true, Ignore = Character, MaxDist = 15, Branches = false})
  1558. end
  1559. end
  1560. end
  1561. wait(0.5)
  1562. RING.Anchored = true
  1563. WELD:remove()
  1564. coroutine.resume(coroutine.create(function()
  1565. for i = 1, 25 do
  1566. Swait()
  1567. RING.TopTexture.Transparency = RING.TopTexture.Transparency + 1/25
  1568. RING.BottomTexture.Transparency = RING.BottomTexture.Transparency + 1/25
  1569. MESH.Scale = MESH.Scale - VT(3,0,3)
  1570. end
  1571. RING:remove()
  1572. end))
  1573. ATTACK = false
  1574. Rooted = false
  1575. G:remove()
  1576. GRAV:remove()
  1577. end
  1578.  
  1579. function ToxicStomp()
  1580. ATTACK = true
  1581. Rooted = false
  1582. local GRAV = IT("BodyPosition",RootPart)
  1583. GRAV.D = 250
  1584. GRAV.P = 20000
  1585. GRAV.MaxForce = VT(math.huge,math.huge,math.huge)
  1586. GRAV.Position = RootPart.Position
  1587. local RING,WELD,MESH = MagicRing(RightLeg,CF(0,-1.2,0))
  1588. CreateSound(RINGSOUND,RING,5,1,false)
  1589. local STRENGTH = 100
  1590. local TIER = 1
  1591. repeat
  1592. Swait()
  1593. STRENGTH = STRENGTH + 0.3
  1594. if STRENGTH > 200 then
  1595. STRENGTH = 200
  1596. end
  1597. if MESH.Scale.X < 120 then
  1598. MESH.Scale = MESH.Scale + VT(3,0,3)
  1599. elseif MESH.Scale.X < 200 then
  1600. MESH.Scale = MESH.Scale + VT(0.3,0,0.3)
  1601. end
  1602. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(-5), RAD(0), RAD(0)), 1 / Animation_Speed)
  1603. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-5), RAD(0), RAD(0)), 1 / Animation_Speed)
  1604. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(120), RAD(0), RAD(12)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  1605. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(120), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  1606. RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.25, -0.65) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 1 / Animation_Speed)
  1607. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.01) * ANGLES(RAD(-15), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 1 / Animation_Speed)
  1608. until KEYHOLD == false and MESH.Scale.X >= 120
  1609. if STRENGTH >= 150 and STRENGTH ~= 200 and POWER >= 45 then
  1610. POWER = POWER - 45
  1611. TIER = 2
  1612. elseif STRENGTH == 200 and POWER >= 100 then
  1613. POWER = POWER - 100
  1614. TIER = 3
  1615. end
  1616. for i=0, 0.2, 0.1 / Animation_Speed do
  1617. Swait()
  1618. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(-25), RAD(0), RAD(0)), 1 / Animation_Speed)
  1619. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-5), RAD(0), RAD(0)), 1 / Animation_Speed)
  1620. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(150), RAD(0), RAD(12)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  1621. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(150), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  1622. RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.25, -0.65) * ANGLES(RAD(10), RAD(90), RAD(0)) * ANGLES(RAD(-1), RAD(0), RAD(0)), 1 / Animation_Speed)
  1623. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.01) * ANGLES(RAD(-15), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 1 / Animation_Speed)
  1624. end
  1625. for i=0, 0.2, 0.1 / Animation_Speed do
  1626. Swait()
  1627. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0.6) * ANGLES(RAD(15), RAD(0), RAD(0)), 1 / Animation_Speed)
  1628. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-5), RAD(0), RAD(0)), 1 / Animation_Speed)
  1629. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(120), RAD(0), RAD(12)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  1630. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(120), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  1631. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.5) * ANGLES(RAD(20), RAD(90), RAD(0)) * ANGLES(RAD(-1), RAD(0), RAD(0)), 1 / Animation_Speed)
  1632. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.01) * ANGLES(RAD(-25), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 1 / Animation_Speed)
  1633. end
  1634. coroutine.resume(coroutine.create(function()
  1635. if TIER == 1 then
  1636. local AOE = CreatePart(3, Effects, "Granite", 0, 1, "Maroon", "Stomp", VT(30,0,30))
  1637. AOE.CFrame = CF(RightLeg.Position-VT(0,1,0))
  1638. local PARTCL = ParticleEmitter({Texture = 281983280, Speed = 0.2, RotSpeed = NumberRange.new(-15, 15), Drag = 2, Size1 = 4, Size2 = 6, Lifetime1 = 0.01, Lifetime2 = 0.1, Parent = AOE, Emit = 100, Offset = 360, Enabled = true, Color1 = BRICKC"Dark indigo".Color, Color2 = BRICKC"Royal purple".Color})
  1639. PARTCL.Rate = 999
  1640. CreateSound(304999618,AOE,5,1,false)
  1641. CreateSound(130972023,AOE,4,1,false)
  1642. ApplyAoE(AOE.Position,15,15,25,35,true,5)
  1643. WACKYEFFECT({EffectType = "Wave", Size = VT(11,1,11), Size2 = VT(45,3,45), Transparency = 0, Transparency2 = 1, CFrame = CF(AOE.Position), MoveToPos = nil, RotationX = 0, RotationY = 15, RotationZ = 0, Material = "Neon", Color = BRICKC"Dark indigo".Color, SoundID = nil, SoundPitch = MRANDOM(5,8)/10, SoundVolume = 6})
  1644. wait(2)
  1645. PARTCL.Enabled = false
  1646. Debris:AddItem(AOE,2)
  1647. elseif TIER == 2 then
  1648. local AOE = CreatePart(3, Effects, "Granite", 0, 1, "Maroon", "Stomp", VT(40,0,40))
  1649. AOE.CFrame = CF(RightLeg.Position-VT(0,1,0))
  1650. local PARTCL = ParticleEmitter({Texture = 281983280, Speed = 0.2, RotSpeed = NumberRange.new(-15, 15), Drag = 2, Size1 = 4, Size2 = 6, Lifetime1 = 0.01, Lifetime2 = 0.1, Parent = AOE, Emit = 100, Offset = 360, Enabled = true, Color1 = BRICKC"Dark indigo".Color, Color2 = BRICKC"Royal purple".Color})
  1651. PARTCL.Rate = 999
  1652. CreateSound(304999618,AOE,5,1,false)
  1653. CreateSound(130972023,AOE,4,1,false)
  1654. ApplyAoE(AOE.Position,20,25,35,35,true,6)
  1655. WACKYEFFECT({EffectType = "Wave", Size = VT(11,1,11), Size2 = VT(55,3,55), Transparency = 0, Transparency2 = 1, CFrame = CF(AOE.Position), MoveToPos = nil, RotationX = 0, RotationY = 15, RotationZ = 0, Material = "Neon", Color = BRICKC"Dark indigo".Color, SoundID = nil, SoundPitch = MRANDOM(5,8)/10, SoundVolume = 6})
  1656. wait(2)
  1657. PARTCL.Enabled = false
  1658. Debris:AddItem(AOE,2)
  1659. elseif TIER == 3 then
  1660. local AOE = CreatePart(3, Effects, "Granite", 0, 1, "Maroon", "Stomp", VT(50,0,50))
  1661. AOE.CFrame = CF(RightLeg.Position-VT(0,1,0))
  1662. local PARTCL = ParticleEmitter({Texture = 281983280, Speed = 0.2, RotSpeed = NumberRange.new(-15, 15), Drag = 2, Size1 = 4, Size2 = 6, Lifetime1 = 0.01, Lifetime2 = 0.1, Parent = AOE, Emit = 100, Offset = 360, Enabled = true, Color1 = BRICKC"Dark indigo".Color, Color2 = BRICKC"Royal purple".Color})
  1663. PARTCL.Rate = 999
  1664. CreateSound(304999618,AOE,5,1,false)
  1665. CreateSound(130972023,AOE,4,1,false)
  1666. for i = 1, 3 do
  1667. ApplyAoE(AOE.Position,30,5,15,5,true,7)WACKYEFFECT({EffectType = "Wave", Size = VT(11,1,11), Size2 = VT(55,3,55), Transparency = 0, Transparency2 = 1, CFrame = CF(AOE.Position), MoveToPos = nil, RotationX = 0, RotationY = 15, RotationZ = 0, Material = "Neon", Color = BRICKC"Dark indigo".Color, SoundID = nil, SoundPitch = MRANDOM(5,8)/10, SoundVolume = 6})
  1668. wait(0.5)
  1669. end
  1670. wait(1.5)
  1671. PARTCL.Enabled = false
  1672. Debris:AddItem(AOE,2)
  1673. end
  1674. end))
  1675. for i=0, 2, 0.1 / Animation_Speed do
  1676. Swait()
  1677. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0.6) * ANGLES(RAD(15), RAD(0), RAD(0)), 1 / Animation_Speed)
  1678. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-5), RAD(0), RAD(0)), 1 / Animation_Speed)
  1679. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(120), RAD(0), RAD(12)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  1680. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(120), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  1681. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.5) * ANGLES(RAD(20), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  1682. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.01) * ANGLES(RAD(-25), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 1 / Animation_Speed)
  1683. end
  1684. RING.Anchored = true
  1685. WELD:remove()
  1686. coroutine.resume(coroutine.create(function()
  1687. for i = 1, 25 do
  1688. Swait()
  1689. RING.TopTexture.Transparency = RING.TopTexture.Transparency + 1/25
  1690. RING.BottomTexture.Transparency = RING.BottomTexture.Transparency + 1/25
  1691. MESH.Scale = MESH.Scale - VT(3,0,3)
  1692. end
  1693. RING:remove()
  1694. end))
  1695. GRAV:remove()
  1696. ATTACK = false
  1697. Rooted = false
  1698. end
  1699.  
  1700. function ToxicDevastation()
  1701. ATTACK = true
  1702. Rooted = false
  1703. Speed = 5
  1704. local STRENGTH = 50
  1705. local TIER = 1
  1706. for i=0, 1, 0.1 / Animation_Speed do
  1707. Swait()
  1708. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -1.5) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  1709. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-25), RAD(0), RAD(0)), 1 / Animation_Speed)
  1710. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(-15), RAD(0), RAD(12)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  1711. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-15), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  1712. RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.15, -0.5) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  1713. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.3) * ANGLES(RAD(-90), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  1714. end
  1715. local POS = RootPart.Position
  1716. Rooted = true
  1717. Speed = Walkspeed
  1718. local TIMER = 0
  1719. local bv = Instance.new("BodyVelocity")
  1720. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  1721. bv.velocity = CF(RootPart.Position,RootPart.Position+VT(0,5,0)).lookVector*150
  1722. bv.Parent = RootPart
  1723. WACKYEFFECT({EffectType = "Wave", Size = VT(0,0,0), Size2 = VT(5,1,5), Transparency = 0, Transparency2 = 1, CFrame = CF(RootPart.Position+VT(0,-3.5,0)), MoveToPos = nil, RotationX = 0, RotationY = 5, RotationZ = 0, Material = "Neon", Color = BRICKC"Pearl".Color, SoundID = 1112042117, SoundPitch = MRANDOM(5,8)/10, SoundVolume = 6})
  1724. repeat
  1725. Swait()
  1726. TIMER = TIMER + 1
  1727. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1728. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-20), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1729. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(-40), RAD(0), RAD(20)) * RIGHTSHOULDERC0, 0.2 / Animation_Speed)
  1730. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-40), RAD(0), RAD(-20)) * LEFTSHOULDERC0, 0.2 / Animation_Speed)
  1731. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.3) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(-20)), 0.2 / Animation_Speed)
  1732. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.3) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(20)), 0.2 / Animation_Speed)
  1733. until RootPart.Position.Y > POS.Y+80 or TIMER > 100
  1734. local GRAV = IT("BodyPosition",RootPart)
  1735. GRAV.D = 250
  1736. GRAV.P = 20000
  1737. GRAV.MaxForce = VT(math.huge,math.huge,math.huge)
  1738. GRAV.Position = RootPart.Position
  1739. bv:remove()
  1740. local G = IT("BodyGyro",RootPart)
  1741. G.D = 250
  1742. G.P = 200000
  1743. G.MaxTorque = VT(math.huge,math.huge,math.huge)
  1744. local RING,WELD,MESH = MagicRing(Torso,CF(0,3,0))
  1745. CreateSound(RINGSOUND,RING,5,1,false)
  1746. local ORB = CreatePart(3, Effects, "Neon", 0, 0, "Royal purple", "Ball", VT(3,3,3))
  1747. MakeForm(ORB,"Ball")
  1748. local LOOP = 0
  1749. repeat
  1750. Swait()
  1751. LOOP = LOOP + 1
  1752. ORB.CFrame = Torso.CFrame*CF(0,4+ORB.Size.X/2,0)
  1753. STRENGTH = STRENGTH + 0.3
  1754. if STRENGTH > 200 then
  1755. STRENGTH = 200
  1756. else
  1757. ORB.Size = ORB.Size + VT(0.02,0.02,0.02)
  1758. end
  1759. if MESH.Scale.X < 120 then
  1760. MESH.Scale = MESH.Scale + VT(5,0,5)
  1761. elseif MESH.Scale.X < 200 then
  1762. MESH.Scale = MESH.Scale + VT(0.6,0,0.6)
  1763. end
  1764. if LOOP == 4 then
  1765. LOOP = 0
  1766. POWER = POWER - 1
  1767. end
  1768. if MRANDOM(1,25) == 1 then
  1769. Lightning({Color = ORB.Color, Start = ORB.Position, End = ORB.Position+VT(MRANDOM(-45,45),MRANDOM(-45,45),MRANDOM(-45,45)), SegmentL = 1, Thickness = 0.1, DoesFade = false, Ignore = Character, MaxDist = ORB.Size.X, Branches = false})
  1770. end
  1771. G.cframe = CF(RootPart.Position,Mouse.Hit.p)
  1772. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  1773. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  1774. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(170), RAD(0), RAD(15)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  1775. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(170), RAD(0), RAD(-15)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  1776. RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.5, -0.5) * ANGLES(RAD(0), RAD(74), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 1 / Animation_Speed)
  1777. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-74), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 1 / Animation_Speed)
  1778. until (KEYHOLD == false and MESH.Scale.X >= 170) or POWER == 0
  1779. if STRENGTH >= 150 and STRENGTH ~= 200 then
  1780. TIER = 2
  1781. elseif STRENGTH == 200 then
  1782. TIER = 3
  1783. end
  1784. coroutine.resume(coroutine.create(function()
  1785. ORB.CFrame = CF(ORB.Position,Mouse.Hit.p)
  1786. CreateSound(1112042117,ORB,5,0.8,false)
  1787. for i = 1, 200 do
  1788. Swait()
  1789. ORB.CFrame = ORB.CFrame*CF(0,0,-2)
  1790. if MRANDOM(1,5) == 1 then
  1791. Lightning({Color = ORB.Color, Start = ORB.Position, End = ORB.Position+VT(MRANDOM(-45,45),MRANDOM(-45,45),MRANDOM(-45,45)), SegmentL = 1, Thickness = 0.1, DoesFade = false, Ignore = Character, MaxDist = ORB.Size.X, Branches = false})
  1792. end
  1793. local HIT = Raycast(ORB.Position, ORB.CFrame.lookVector, ORB.Size.X/2, Character)
  1794. if HIT ~= nil then
  1795. ORB.Transparency = 1
  1796. coroutine.resume(coroutine.create(function()
  1797. local COLOR = ORB.Color
  1798. local POS = ORB.Position
  1799. local SIZE = ORB.Size
  1800. local TIMES = 12 + TIER*3
  1801. local FAKEORB = CreatePart(3, Effects, "Neon", 0, 0, "Royal purple", "Ball", ORB.Size)
  1802. FAKEORB.CFrame = CF(POS)
  1803. MakeForm(FAKEORB,"Ball")
  1804. local TIME = 0
  1805. ApplyAoE(FAKEORB.Position,30+(25*TIER),15,25,0,true,10)
  1806. WACKYEFFECT({Time = 35, EffectType = "Sphere", Size = FAKEORB.Size, Size2 = VT(35+(25*TIER),35+(25*TIER),35+(25*TIER)), Transparency = 0.8, Transparency2 = 1, CFrame = CF(POS), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = COLOR, SoundID = 178452241, SoundPitch = 1, SoundVolume = 6})
  1807. for i = 1, 5 do
  1808. WACKYEFFECT({Time = 15, EffectType = "Wave", Size = VT(5,0,5), Size2 = VT(35+(25*TIER),3,35+(25*TIER)), Transparency = 0.5, Transparency2 = 1, CFrame = CF(POS) * ANGLES(RAD(MRANDOM(0,360)), RAD(MRANDOM(0,360)), RAD(MRANDOM(0,360))), MoveToPos = nil, RotationX = 0, RotationY = -5, RotationZ = 0, Material = "Neon", Color = COLOR, SoundID = nil, SoundPitch = 0.5, SoundVolume = 6})
  1809. end
  1810. for i = 1, TIMES*20 do
  1811. TIME = TIME + 1
  1812. wait()
  1813. if MRANDOM(1,math.ceil(5+(i/15))) == 1 then
  1814. Lightning({Color = ORB.Color, Start = FAKEORB.Position, End = FAKEORB.Position+VT(MRANDOM(-45,45),MRANDOM(-45,45),MRANDOM(-45,45)), SegmentL = 1, Thickness = 0.1, DoesFade = false, Ignore = Character, MaxDist = i/5, Branches = false})
  1815. end
  1816. FAKEORB.Size = FAKEORB.Size - SIZE/(TIMES*20)
  1817. if TIME >= 20 then
  1818. TIME = 0
  1819. ApplyAoE(FAKEORB.Position,30+(25*TIER),15,25,0,true,10)
  1820. WACKYEFFECT({Time = 35, EffectType = "Sphere", Size = FAKEORB.Size, Size2 = VT(35+(25*TIER),35+(25*TIER),35+(25*TIER)), Transparency = 0.8, Transparency2 = 1, CFrame = CF(POS), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = COLOR, SoundID = 178452241, SoundPitch = 1, SoundVolume = 6})
  1821. for i = 1, 5 do
  1822. WACKYEFFECT({Time = 15, EffectType = "Wave", Size = VT(5,0,5), Size2 = VT(35+(25*TIER),3,35+(25*TIER)), Transparency = 0.5, Transparency2 = 1, CFrame = CF(POS) * ANGLES(RAD(MRANDOM(0,360)), RAD(MRANDOM(0,360)), RAD(MRANDOM(0,360))), MoveToPos = nil, RotationX = 0, RotationY = -5, RotationZ = 0, Material = "Neon", Color = COLOR, SoundID = nil, SoundPitch = 0.5, SoundVolume = 6})
  1823. end
  1824. end
  1825. end
  1826. FAKEORB:remove()
  1827. end))
  1828. break
  1829. end
  1830. end
  1831. ORB:remove()
  1832. end))
  1833. for i=0, 1, 0.1 / Animation_Speed do
  1834. Swait()
  1835. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(5), RAD(0), RAD(0)), 1 / Animation_Speed)
  1836. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(15), RAD(0), RAD(0)), 1 / Animation_Speed)
  1837. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(90), RAD(0), RAD(-15)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  1838. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(90), RAD(0), RAD(15)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  1839. RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.5, -0.5) * ANGLES(RAD(0), RAD(74), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 1 / Animation_Speed)
  1840. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-74), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 1 / Animation_Speed)
  1841. end
  1842. coroutine.resume(coroutine.create(function()
  1843. for i = 1, 25 do
  1844. Swait()
  1845. RING.TopTexture.Transparency = RING.TopTexture.Transparency + 1/25
  1846. RING.BottomTexture.Transparency = RING.BottomTexture.Transparency + 1/25
  1847. MESH.Scale = MESH.Scale - VT(3,0,3)
  1848. end
  1849. RING:remove()
  1850. end))
  1851. GRAV:remove()
  1852. G:remove()
  1853. ATTACK = false
  1854. Rooted = false
  1855. end
  1856.  
  1857. --//=================================\\
  1858. --|| ASSIGN THINGS TO KEYS
  1859. --\\=================================//
  1860.  
  1861. function MouseDown(Mouse)
  1862. if ATTACK == false then
  1863. end
  1864. end
  1865.  
  1866. function MouseUp(Mouse)
  1867. HOLD = false
  1868. end
  1869.  
  1870. function KeyDown(Key)
  1871. KEYHOLD = true
  1872. if Key == "q" and ATTACK == false and POWER >= 50 then
  1873. POWER = POWER - 50
  1874. PoisonBolt()
  1875. end
  1876.  
  1877. if Key == "r" and ATTACK == false and POWER >= 125 then
  1878. POWER = POWER - 125
  1879. ToxicStomp()
  1880. end
  1881.  
  1882. if Key == "x" and ATTACK == false and POWER >= 250 then
  1883. POWER = POWER - 250
  1884. ToxicDevastation()
  1885. end
  1886.  
  1887. if string.byte(Key) == 48 and ATTACK == false and (POWER ~= MAXPOWER or Humanoid.Health ~= Humanoid.MaxHealth) then
  1888. Charge()
  1889. end
  1890.  
  1891. if string.byte(Key) == 50 and ATTACK == false then
  1892. if Walkspeed == 16 then
  1893. Walkspeed = 30
  1894. Speed = 30
  1895. elseif Walkspeed == 30 then
  1896. Walkspeed = 16
  1897. Speed = 16
  1898. end
  1899. end
  1900. end
  1901.  
  1902. function KeyUp(Key)
  1903. KEYHOLD = false
  1904. end
  1905.  
  1906. Mouse.Button1Down:connect(function(NEWKEY)
  1907. MouseDown(NEWKEY)
  1908. end)
  1909. Mouse.Button1Up:connect(function(NEWKEY)
  1910. MouseUp(NEWKEY)
  1911. end)
  1912. Mouse.KeyDown:connect(function(NEWKEY)
  1913. KeyDown(NEWKEY)
  1914. end)
  1915. Mouse.KeyUp:connect(function(NEWKEY)
  1916. KeyUp(NEWKEY)
  1917. end)
  1918.  
  1919. --//=================================\\
  1920. --\\=================================//
  1921.  
  1922.  
  1923. function unanchor()
  1924. if UNANCHOR == true then
  1925. g = Character:GetChildren()
  1926. for i = 1, #g do
  1927. if g[i].ClassName == "Part" then
  1928. g[i].Anchored = false
  1929. end
  1930. end
  1931. end
  1932. end
  1933.  
  1934.  
  1935. --//=================================\\
  1936. --|| WRAP THE WHOLE SCRIPT UP
  1937. --\\=================================//
  1938.  
  1939. Humanoid.Changed:connect(function(Jump)
  1940. if Jump == "Jump" and (Disable_Jump == true) then
  1941. Humanoid.Jump = false
  1942. end
  1943. end)
  1944.  
  1945. while true do
  1946. Swait()
  1947. script.Parent = WEAPONGUI
  1948. ANIMATE.Parent = nil
  1949. for _,v in next, Humanoid:GetPlayingAnimationTracks() do
  1950. v:Stop();
  1951. end
  1952. SINE = SINE + CHANGE
  1953. local TORSOVELOCITY = (RootPart.Velocity * VT(1, 0, 1)).magnitude
  1954. local TORSOVERTICALVELOCITY = RootPart.Velocity.y
  1955. local HITFLOOR = Raycast(RootPart.Position, (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 4, Character)
  1956. local WALKSPEEDVALUE = 5
  1957. if ANIM == "Walk" and TORSOVELOCITY > 1 then
  1958. if Humanoid.WalkSpeed <= 20 then
  1959. RootJoint.C1 = Clerp(RootJoint.C1, ROOTC0 * CF(0, 0, -0.05 * COS(SINE / (WALKSPEEDVALUE / 2))) * ANGLES(RAD(0), RAD(0) - RootPart.RotVelocity.Y / 75, RAD(0)), 2 * 1 / Animation_Speed)
  1960. Neck.C1 = Clerp(Neck.C1, CF(0, -0.5, 0) * ANGLES(RAD(-90), RAD(0), RAD(180)) * ANGLES(RAD(2.5 * SIN(SINE / (WALKSPEEDVALUE / 2))), RAD(0), RAD(0) - Head.RotVelocity.Y / 30), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
  1961. RightHip.C1 = Clerp(RightHip.C1, CF(0.5, 0.875 - 0.125 * SIN(SINE / WALKSPEEDVALUE) - 0.05 * COS(SINE / WALKSPEEDVALUE*2), -0.125 * COS(SINE / WALKSPEEDVALUE) +0.2+ 0.2 * COS(SINE / WALKSPEEDVALUE)) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0) - RightLeg.RotVelocity.Y / 75, RAD(0), RAD(45 * COS(SINE / WALKSPEEDVALUE))), 0.5 / Animation_Speed)
  1962. LeftHip.C1 = Clerp(LeftHip.C1, CF(-0.5, 0.875 + 0.125 * SIN(SINE / WALKSPEEDVALUE) - 0.05 * COS(SINE / WALKSPEEDVALUE*2), 0.125 * COS(SINE / WALKSPEEDVALUE) +0.2+ -0.2 * COS(SINE / WALKSPEEDVALUE)) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0) + LeftLeg.RotVelocity.Y / 75, RAD(0), RAD(45 * COS(SINE / WALKSPEEDVALUE))), 0.5 / Animation_Speed)
  1963. else
  1964. RootJoint.C1 = Clerp(RootJoint.C1, ROOTC0 * CF(0, 0, -0.15 * COS(SINE / (WALKSPEEDVALUE / (2*1.3)))) * ANGLES(RAD(0), RAD(0) - RootPart.RotVelocity.Y / 75, RAD(0)), 2 * 1 / Animation_Speed)
  1965. Neck.C1 = Clerp(Neck.C1, CF(0, -0.5, 0) * ANGLES(RAD(-90), RAD(0), RAD(180)) * ANGLES(RAD(2.5 * SIN(SINE / (WALKSPEEDVALUE / (2*1.3)))), RAD(0), RAD(0) - Head.RotVelocity.Y / 30), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
  1966. RightHip.C1 = Clerp(RightHip.C1, CF(0.5, 0.875 - 0.125 * SIN(SINE / WALKSPEEDVALUE*1.3) - 0.15 * COS(SINE / WALKSPEEDVALUE*(2*1.3)), -0.125 * COS(SINE / WALKSPEEDVALUE*1.3) +0.2+ 0.2 * COS(SINE / WALKSPEEDVALUE*1.3)) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0) - RightLeg.RotVelocity.Y / 75, RAD(0), RAD(75 * COS(SINE / WALKSPEEDVALUE*1.3))), 0.5 / Animation_Speed)
  1967. LeftHip.C1 = Clerp(LeftHip.C1, CF(-0.5, 0.875 + 0.125 * SIN(SINE / WALKSPEEDVALUE*1.3) - 0.15 * COS(SINE / WALKSPEEDVALUE*(2*1.3)), 0.125 * COS(SINE / WALKSPEEDVALUE*1.3) +0.2+ -0.2 * COS(SINE / WALKSPEEDVALUE*1.3)) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0) + LeftLeg.RotVelocity.Y / 75, RAD(0), RAD(75 * COS(SINE / WALKSPEEDVALUE*1.3))), 0.5 / Animation_Speed)
  1968. end
  1969. elseif (ANIM ~= "Walk") or (TORSOVELOCITY < 1) then
  1970. RootJoint.C1 = Clerp(RootJoint.C1, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1971. Neck.C1 = Clerp(Neck.C1, CF(0, -0.5, 0) * ANGLES(RAD(-90), RAD(0), RAD(180)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1972. RightHip.C1 = Clerp(RightHip.C1, CF(0.5, 1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1973. LeftHip.C1 = Clerp(LeftHip.C1, CF(-0.5, 1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1974. end
  1975. if TORSOVERTICALVELOCITY > 1 and HITFLOOR == nil then
  1976. ANIM = "Jump"
  1977. if ATTACK == false then
  1978. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1979. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-20), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1980. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(-40), RAD(0), RAD(20)) * RIGHTSHOULDERC0, 0.2 / Animation_Speed)
  1981. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-40), RAD(0), RAD(-20)) * LEFTSHOULDERC0, 0.2 / Animation_Speed)
  1982. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.3) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(-20)), 0.2 / Animation_Speed)
  1983. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.3) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(20)), 0.2 / Animation_Speed)
  1984. end
  1985. elseif TORSOVERTICALVELOCITY < -1 and HITFLOOR == nil then
  1986. ANIM = "Fall"
  1987. if ATTACK == false then
  1988. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 ) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1989. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0 , 0 + ((1) - 1)) * ANGLES(RAD(20), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1990. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(60)) * RIGHTSHOULDERC0, 0.2 / Animation_Speed)
  1991. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-60)) * LEFTSHOULDERC0, 0.2 / Animation_Speed)
  1992. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(20)), 0.2 / Animation_Speed)
  1993. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(10)), 0.2 / Animation_Speed)
  1994. end
  1995. elseif TORSOVELOCITY < 1 and HITFLOOR ~= nil then
  1996. ANIM = "Idle"
  1997. if ATTACK == false then
  1998. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0 - 0.05 * COS(SINE / 12), 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(-2 + 2 * COS(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1999. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  2000. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(-15), RAD(5 + 1 * COS(SINE / 12))) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  2001. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(15), RAD(-5 - 1 * COS(SINE / 12))) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
  2002. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(-2 + 2 * COS(SINE / 12)), RAD(74), RAD(0)) * ANGLES(RAD(-2), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  2003. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(-2 + 2 * COS(SINE / 12)), RAD(-74), RAD(0)) * ANGLES(RAD(-2), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  2004. end
  2005. elseif TORSOVELOCITY > 1 and HITFLOOR ~= nil then
  2006. ANIM = "Walk"
  2007. if ATTACK == false then
  2008. if Humanoid.WalkSpeed <= 20 then
  2009. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -0.1) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  2010. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  2011. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(30 * COS(SINE / WALKSPEEDVALUE)), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 0.85 / Animation_Speed)
  2012. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-30 * COS(SINE / WALKSPEEDVALUE)), RAD(0), RAD(0)) * LEFTSHOULDERC0, 0.85 / Animation_Speed)
  2013. RightHip.C0 = Clerp(RightHip.C0, CF(1 , -1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(-15)), 2 / Animation_Speed)
  2014. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(15)), 2 / Animation_Speed)
  2015. elseif Humanoid.WalkSpeed > 20 then
  2016. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -0.1) * ANGLES(RAD(35), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  2017. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-35), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  2018. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(35), RAD(35), RAD(0)) * ANGLES(RAD(60 * COS(SINE / WALKSPEEDVALUE*1.3)), RAD(0), RAD(2)) * RIGHTSHOULDERC0, 2 / Animation_Speed)
  2019. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(35), RAD(-35), RAD(0)) * ANGLES(RAD(-60 * COS(SINE / WALKSPEEDVALUE*1.3)), RAD(0), RAD(-2)) * LEFTSHOULDERC0, 2 / Animation_Speed)
  2020. RightHip.C0 = Clerp(RightHip.C0, CF(1 , -1, 0) * ANGLES(RAD(0), RAD(80), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(6)), 2 / Animation_Speed)
  2021. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-80), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(-6)), 2 / Animation_Speed)
  2022. end
  2023. end
  2024. end
  2025. unanchor()
  2026. if Rooted == false then
  2027. Disable_Jump = false
  2028. Humanoid.WalkSpeed = Speed
  2029. elseif Rooted == true then
  2030. Disable_Jump = true
  2031. Humanoid.WalkSpeed = 0
  2032. end
  2033. sick.SoundId = "rbxassetid://598848368"
  2034. sick.Looped = true
  2035. sick.Pitch = 1
  2036. sick.Volume = 3
  2037. sick.Parent = Torso
  2038. sick.Playing = true
  2039. MANACOVER:TweenSize(UD2(1 * (POWER / MAXPOWER), 0, 1, 0), "Out", "Quad", 0.1, 0.1)
  2040. MANATEXT.Text = POWER.."/"..MAXPOWER
  2041. HEALTHCOVER:TweenSize(UD2(1 * (Humanoid.Health / Humanoid.MaxHealth), 0, 1, 0), "Out", "Quad", 0.1, 0.1)
  2042. HEALTHTEXT.Text = math.ceil(Humanoid.Health).."/"..Humanoid.MaxHealth
  2043. Humanoid.Health = Humanoid.Health + 0.05
  2044. end
  2045.  
  2046. --//=================================\\
  2047. --\\=================================//
  2048.  
  2049.  
  2050.  
  2051.  
  2052.  
  2053. --//====================================================\\--
  2054. --|| END OF SCRIPT
  2055. --\\====================================================//--
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement