EmeraldIT

Lightning Phoenix Magic

Apr 23rd, 2018
182
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 70.93 KB | None | 0 0
  1. --//=========================================================================================\\--
  2. --||CREATED BY screw u skids enjoy this unabusable sh**||--
  3. --\\=========================================================================================//--
  4.  
  5. wait(0.2)
  6.  
  7. Player = game:GetService("Players").LocalPlayer
  8. PlayerGui = Player.PlayerGui
  9. Cam = workspace.CurrentCamera
  10. Backpack = Player.Backpack
  11. Character = Player.Character
  12. Humanoid = Character.Humanoid
  13. Mouse = Player:GetMouse()
  14. RootPart = Character["HumanoidRootPart"]
  15. Torso = Character["Torso"]
  16. Head = Character["Head"]
  17. RightArm = Character["Right Arm"]
  18. LeftArm = Character["Left Arm"]
  19. RightLeg = Character["Right Leg"]
  20. LeftLeg = Character["Left Leg"]
  21. RootJoint = RootPart["RootJoint"]
  22. Neck = Torso["Neck"]
  23. RightShoulder = Torso["Right Shoulder"]
  24. LeftShoulder = Torso["Left Shoulder"]
  25. RightHip = Torso["Right Hip"]
  26. LeftHip = Torso["Left Hip"]
  27. local sick = Instance.new("Sound",Character)
  28.  
  29. IT = Instance.new
  30. CF = CFrame.new
  31. VT = Vector3.new
  32. RAD = math.rad
  33. C3 = Color3.new
  34. UD2 = UDim2.new
  35. BRICKC = BrickColor.new
  36. ANGLES = CFrame.Angles
  37. EULER = CFrame.fromEulerAnglesXYZ
  38. COS = math.cos
  39. ACOS = math.acos
  40. SIN = math.sin
  41. ASIN = math.asin
  42. ABS = math.abs
  43. MRANDOM = math.random
  44. FLOOR = math.floor
  45.  
  46. --//=================================\\
  47. --|| USEFUL VALUES
  48. --\\=================================//
  49.  
  50. Animation_Speed = 3
  51. local Walkspeed = 16
  52. Frame_Speed = 1 / 60 -- (1 / 30) OR (1 / 60)
  53. local Speed = 16
  54. local ROOTC0 = CF(0, 0, 0) * ANGLES(RAD(-90), RAD(0), RAD(180))
  55. local NECKC0 = CF(0, 1, 0) * ANGLES(RAD(-90), RAD(0), RAD(180))
  56. local RIGHTSHOULDERC0 = CF(-0.5, 0, 0) * ANGLES(RAD(0), RAD(90), RAD(0))
  57. local LEFTSHOULDERC0 = CF(0.5, 0, 0) * ANGLES(RAD(0), RAD(-90), RAD(0))
  58. local DAMAGEMULTIPLIER = 1
  59. local ANIM = "Idle"
  60. local ATTACK = false
  61. local EQUIPPED = false
  62. local HOLD = false
  63. local COMBO = 1
  64. local Rooted = false
  65. local SINE = 0
  66. local KEYHOLD = false
  67. local CHANGE = 2 / Animation_Speed
  68. local WALKINGANIM = false
  69. local VALUE1 = false
  70. local VALUE2 = false
  71. local ROBLOXIDLEANIMATION = IT("Animation")
  72. ROBLOXIDLEANIMATION.Name = "Roblox Idle Animation"
  73. ROBLOXIDLEANIMATION.AnimationId = "http://www.roblox.com/asset/?id=180435571"
  74. --ROBLOXIDLEANIMATION.Parent = Humanoid
  75. local WEAPONGUI = IT("ScreenGui", PlayerGui)
  76. WEAPONGUI.Name = "Weapon GUI"
  77. local Effects = IT("Folder", Character)
  78. Effects.Name = "Effects"
  79. local ANIMATOR = Humanoid.Animator
  80. local ANIMATE = Character.Animate
  81. local UNANCHOR = true
  82. local SHOCKSOUND = 1544280726
  83. local RINGSOUND = 340505360
  84. local ULTHIT = 412831137
  85.  
  86. --//=================================\\
  87. --\\=================================//
  88. local Wing1 = Instance.new("Part",Character)
  89. Wing1.FormFactor = Enum.FormFactor.Custom
  90. Wing1.Size = Vector3.new(.2, .2, .2)
  91. Wing1.Name = "WIng_1"
  92.  
  93. local fire = Instance.new("ParticleEmitter", Wing1)
  94. fire.VelocitySpread = 0
  95. fire.Lifetime = NumberRange.new(2)
  96. fire.Acceleration = Vector3.new(0, 2, 2)
  97. fire.RotSpeed = NumberRange.new(10)
  98. fire.Rate = 300
  99. fire.Rotation = NumberRange.new(151515)
  100. fire.Name = "Fire"
  101. fire.LightEmission = 1
  102. fire.LockedToPart = true
  103. fire.Texture = "rbxassetid://296874871"
  104. fire.Color = ColorSequence.new(BrickColor.new("Royal purple").Color, BrickColor.new("Lime green").Color)
  105. fire.Size = NumberSequence.new({NumberSequenceKeypoint.new(0, 1), NumberSequenceKeypoint.new(1, 6)})
  106. fire.Enabled = false
  107.  
  108. local Wing2 = Wing1:Clone()
  109. Wing2.Parent = Torso
  110. local x,y,z = 0,-1,-6
  111.  
  112. Wld = function(a,b,cf)
  113. local Weld = Instance.new('Weld',a)
  114. Weld.Part0 = a
  115. Weld.Part1 = b
  116. Weld.C1 = cf
  117. return Weld
  118. end
  119.  
  120. local wld = Wld(Torso,Wing1,CFrame.new(0,0,-.5)*CFrame.Angles(-math.rad(90),-math.rad(20),-math.rad(90)))
  121. local wld2 = Wld(Torso,Wing2,CFrame.new(0,0,.5)*CFrame.Angles(-math.rad(90),-math.rad(20),-math.rad(90)))
  122.  
  123. Wing2.Fire.Acceleration = Vector3.new(0, 2, -2)
  124.  
  125. function killmeKILLMENOW()
  126. Wing2.Fire.Enabled = false
  127. Wing1.Fire.Enabled = false
  128. end
  129.  
  130. function killmeKILLMENOWjk()
  131. Wing2.Fire.Enabled = true
  132. Wing1.Fire.Enabled = true
  133. end
  134. --//=================================\\
  135. --|| SAZERENOS' ARTIFICIAL HEARTBEAT
  136. --\\=================================//
  137.  
  138. ArtificialHB = Instance.new("BindableEvent", script)
  139. ArtificialHB.Name = "ArtificialHB"
  140.  
  141. script:WaitForChild("ArtificialHB")
  142.  
  143. frame = Frame_Speed
  144. tf = 0
  145. allowframeloss = false
  146. tossremainder = false
  147. lastframe = tick()
  148. script.ArtificialHB:Fire()
  149.  
  150. game:GetService("RunService").Heartbeat:connect(function(s, p)
  151. tf = tf + s
  152. if tf >= frame then
  153. if allowframeloss then
  154. script.ArtificialHB:Fire()
  155. lastframe = tick()
  156. else
  157. for i = 1, math.floor(tf / frame) do
  158. script.ArtificialHB:Fire()
  159. end
  160. lastframe = tick()
  161. end
  162. if tossremainder then
  163. tf = 0
  164. else
  165. tf = tf - frame * math.floor(tf / frame)
  166. end
  167. end
  168. end)
  169.  
  170. --//=================================\\
  171. --\\=================================//
  172. --//=================================\\
  173. --|| SOME FUNCTIONS
  174. --\\=================================//
  175.  
  176. function Raycast(POSITION, DIRECTION, RANGE, IGNOREDECENDANTS)
  177. return workspace:FindPartOnRay(Ray.new(POSITION, DIRECTION.unit * RANGE), IGNOREDECENDANTS)
  178. end
  179.  
  180. function PositiveAngle(NUMBER)
  181. if NUMBER >= 0 then
  182. NUMBER = 0
  183. end
  184. return NUMBER
  185. end
  186.  
  187. function NegativeAngle(NUMBER)
  188. if NUMBER <= 0 then
  189. NUMBER = 0
  190. end
  191. return NUMBER
  192. end
  193.  
  194. function Swait(NUMBER)
  195. if NUMBER == 0 or NUMBER == nil then
  196. ArtificialHB.Event:wait()
  197. else
  198. for i = 1, NUMBER do
  199. ArtificialHB.Event:wait()
  200. end
  201. end
  202. end
  203.  
  204. function CreateMesh(MESH, PARENT, MESHTYPE, MESHID, TEXTUREID, SCALE, OFFSET)
  205. local NEWMESH = IT(MESH)
  206. if MESH == "SpecialMesh" then
  207. NEWMESH.MeshType = MESHTYPE
  208. if MESHID ~= "nil" and MESHID ~= "" then
  209. NEWMESH.MeshId = "http://www.roblox.com/asset/?id="..MESHID
  210. end
  211. if TEXTUREID ~= "nil" and TEXTUREID ~= "" then
  212. NEWMESH.TextureId = "http://www.roblox.com/asset/?id="..TEXTUREID
  213. end
  214. end
  215. NEWMESH.Offset = OFFSET or VT(0, 0, 0)
  216. NEWMESH.Scale = SCALE
  217. NEWMESH.Parent = PARENT
  218. return NEWMESH
  219. end
  220.  
  221. function CreatePart(FORMFACTOR, PARENT, MATERIAL, REFLECTANCE, TRANSPARENCY, BRICKCOLOR, NAME, SIZE, ANCHOR)
  222. local NEWPART = IT("Part")
  223. NEWPART.formFactor = FORMFACTOR
  224. NEWPART.Reflectance = REFLECTANCE
  225. NEWPART.Transparency = TRANSPARENCY
  226. NEWPART.CanCollide = false
  227. NEWPART.Locked = true
  228. NEWPART.Anchored = true
  229. if ANCHOR == false then
  230. NEWPART.Anchored = false
  231. end
  232. NEWPART.BrickColor = BRICKC(tostring(BRICKCOLOR))
  233. NEWPART.Name = NAME
  234. NEWPART.Size = SIZE
  235. NEWPART.Position = Torso.Position
  236. NEWPART.Material = MATERIAL
  237. NEWPART:BreakJoints()
  238. NEWPART.Parent = PARENT
  239. return NEWPART
  240. end
  241.  
  242. local function weldBetween(a, b)
  243. local weldd = Instance.new("ManualWeld")
  244. weldd.Part0 = a
  245. weldd.Part1 = b
  246. weldd.C0 = CFrame.new()
  247. weldd.C1 = b.CFrame:inverse() * a.CFrame
  248. weldd.Parent = a
  249. return weldd
  250. end
  251.  
  252. function smooth(obj)
  253. local sides = {"Left", "Right", "Top", "Bottom", "Front", "Back"}
  254. for i,v in pairs(sides) do
  255. obj[v.."Surface"] = "SmoothNoOutlines"
  256. end
  257. end
  258. function QuaternionFromCFrame(cf)
  259. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  260. local trace = m00 + m11 + m22
  261. if trace > 0 then
  262. local s = math.sqrt(1 + trace)
  263. local recip = 0.5 / s
  264. return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5
  265. else
  266. local i = 0
  267. if m11 > m00 then
  268. i = 1
  269. end
  270. if m22 > (i == 0 and m00 or m11) then
  271. i = 2
  272. end
  273. if i == 0 then
  274. local s = math.sqrt(m00 - m11 - m22 + 1)
  275. local recip = 0.5 / s
  276. return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip
  277. elseif i == 1 then
  278. local s = math.sqrt(m11 - m22 - m00 + 1)
  279. local recip = 0.5 / s
  280. return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip
  281. elseif i == 2 then
  282. local s = math.sqrt(m22 - m00 - m11 + 1)
  283. local recip = 0.5 / s return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip
  284. end
  285. end
  286. end
  287.  
  288. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  289. local xs, ys, zs = x + x, y + y, z + z
  290. local wx, wy, wz = w * xs, w * ys, w * zs
  291. local xx = x * xs
  292. local xy = x * ys
  293. local xz = x * zs
  294. local yy = y * ys
  295. local yz = y * zs
  296. local zz = z * zs
  297. 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))
  298. end
  299.  
  300. function QuaternionSlerp(a, b, t)
  301. local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4]
  302. local startInterp, finishInterp;
  303. if cosTheta >= 0.0001 then
  304. if (1 - cosTheta) > 0.0001 then
  305. local theta = ACOS(cosTheta)
  306. local invSinTheta = 1 / SIN(theta)
  307. startInterp = SIN((1 - t) * theta) * invSinTheta
  308. finishInterp = SIN(t * theta) * invSinTheta
  309. else
  310. startInterp = 1 - t
  311. finishInterp = t
  312. end
  313. else
  314. if (1 + cosTheta) > 0.0001 then
  315. local theta = ACOS(-cosTheta)
  316. local invSinTheta = 1 / SIN(theta)
  317. startInterp = SIN((t - 1) * theta) * invSinTheta
  318. finishInterp = SIN(t * theta) * invSinTheta
  319. else
  320. startInterp = t - 1
  321. finishInterp = t
  322. end
  323. end
  324. 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
  325. end
  326.  
  327. function Clerp(a, b, t)
  328. local qa = {QuaternionFromCFrame(a)}
  329. local qb = {QuaternionFromCFrame(b)}
  330. local ax, ay, az = a.x, a.y, a.z
  331. local bx, by, bz = b.x, b.y, b.z
  332. local _t = 1 - t
  333. return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t))
  334. end
  335.  
  336. function CreateFrame(PARENT, TRANSPARENCY, BORDERSIZEPIXEL, POSITION, SIZE, COLOR, BORDERCOLOR, NAME)
  337. local frame = IT("Frame")
  338. frame.BackgroundTransparency = TRANSPARENCY
  339. frame.BorderSizePixel = BORDERSIZEPIXEL
  340. frame.Position = POSITION
  341. frame.Size = SIZE
  342. frame.BackgroundColor3 = COLOR
  343. frame.BorderColor3 = BORDERCOLOR
  344. frame.Name = NAME
  345. frame.Parent = PARENT
  346. return frame
  347. end
  348.  
  349. function CreateLabel(PARENT, TEXT, TEXTCOLOR, TEXTFONTSIZE, TEXTFONT, TRANSPARENCY, BORDERSIZEPIXEL, STROKETRANSPARENCY, NAME)
  350. local label = IT("TextLabel")
  351. label.BackgroundTransparency = 1
  352. label.Size = UD2(1, 0, 1, 0)
  353. label.Position = UD2(0, 0, 0, 0)
  354. label.TextColor3 = TEXTCOLOR
  355. label.TextStrokeTransparency = STROKETRANSPARENCY
  356. label.TextTransparency = TRANSPARENCY
  357. label.FontSize = TEXTFONTSIZE
  358. label.Font = TEXTFONT
  359. label.BorderSizePixel = BORDERSIZEPIXEL
  360. label.TextScaled = false
  361. label.Text = TEXT
  362. label.Name = NAME
  363. label.Parent = PARENT
  364. return label
  365. end
  366.  
  367. function NoOutlines(PART)
  368. PART.TopSurface, PART.BottomSurface, PART.LeftSurface, PART.RightSurface, PART.FrontSurface, PART.BackSurface = 10, 10, 10, 10, 10, 10
  369. end
  370.  
  371. function CreateWeldOrSnapOrMotor(TYPE, PARENT, PART0, PART1, C0, C1)
  372. local NEWWELD = IT(TYPE)
  373. NEWWELD.Part0 = PART0
  374. NEWWELD.Part1 = PART1
  375. NEWWELD.C0 = C0
  376. NEWWELD.C1 = C1
  377. NEWWELD.Parent = PARENT
  378. return NEWWELD
  379. end
  380.  
  381. local S = IT("Sound")
  382. function CreateSound(ID, PARENT, VOLUME, PITCH, DOESLOOP)
  383. local NEWSOUND = nil
  384. coroutine.resume(coroutine.create(function()
  385. NEWSOUND = S:Clone()
  386. NEWSOUND.Parent = PARENT
  387. NEWSOUND.Volume = VOLUME
  388. NEWSOUND.Pitch = PITCH
  389. NEWSOUND.SoundId = "http://www.roblox.com/asset/?id="..ID
  390. NEWSOUND:play()
  391. if DOESLOOP == true then
  392. NEWSOUND.Looped = true
  393. else
  394. repeat wait(1) until NEWSOUND.Playing == false
  395. NEWSOUND:remove()
  396. end
  397. end))
  398. return NEWSOUND
  399. end
  400.  
  401. function CFrameFromTopBack(at, top, back)
  402. local right = top:Cross(back)
  403. 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)
  404. end
  405.  
  406. --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})
  407. function WACKYEFFECT(Table)
  408. local TYPE = (Table.EffectType or "Sphere")
  409. local SIZE = (Table.Size or VT(1,1,1))
  410. local ENDSIZE = (Table.Size2 or VT(0,0,0))
  411. local TRANSPARENCY = (Table.Transparency or 0)
  412. local ENDTRANSPARENCY = (Table.Transparency2 or 1)
  413. local CFRAME = (Table.CFrame or Torso.CFrame)
  414. local MOVEDIRECTION = (Table.MoveToPos or nil)
  415. local ROTATION1 = (Table.RotationX or 0)
  416. local ROTATION2 = (Table.RotationY or 0)
  417. local ROTATION3 = (Table.RotationZ or 0)
  418. local MATERIAL = (Table.Material or "Neon")
  419. local COLOR = (Table.Color or C3(1,1,1))
  420. local TIME = (Table.Time or 45)
  421. local SOUNDID = (Table.SoundID or nil)
  422. local SOUNDPITCH = (Table.SoundPitch or nil)
  423. local SOUNDVOLUME = (Table.SoundVolume or nil)
  424. coroutine.resume(coroutine.create(function()
  425. local PLAYSSOUND = false
  426. local SOUND = nil
  427. local EFFECT = CreatePart(3, Effects, MATERIAL, 0, TRANSPARENCY, BRICKC("Pearl"), "Effect", VT(1,1,1), true)
  428. if SOUNDID ~= nil and SOUNDPITCH ~= nil and SOUNDVOLUME ~= nil then
  429. PLAYSSOUND = true
  430. SOUND = CreateSound(SOUNDID, EFFECT, SOUNDVOLUME, SOUNDPITCH, false)
  431. end
  432. EFFECT.Color = COLOR
  433. local MSH = nil
  434. if TYPE == "Sphere" then
  435. MSH = CreateMesh("SpecialMesh", EFFECT, "Sphere", "", "", SIZE, VT(0,0,0))
  436. elseif TYPE == "Block" then
  437. MSH = IT("BlockMesh",EFFECT)
  438. MSH.Scale = VT(SIZE.X,SIZE.X,SIZE.X)
  439. elseif TYPE == "Wave" then
  440. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "20329976", "", SIZE, VT(0,0,-SIZE.X/8))
  441. elseif TYPE == "Ring" then
  442. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "559831844", "", VT(SIZE.X,SIZE.X,0.1), VT(0,0,0))
  443. elseif TYPE == "Slash" then
  444. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662586858", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0))
  445. elseif TYPE == "Round Slash" then
  446. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662585058", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0))
  447. elseif TYPE == "Swirl" then
  448. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "1051557", "", SIZE, VT(0,0,0))
  449. elseif TYPE == "Skull" then
  450. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "4770583", "", SIZE, VT(0,0,0))
  451. elseif TYPE == "Crystal" then
  452. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "9756362", "", SIZE, VT(0,0,0))
  453. elseif TYPE == "Cloud" then
  454. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "1290033", "", SIZE, VT(0,0,0))
  455. end
  456. if MSH ~= nil then
  457. local MOVESPEED = nil
  458. if MOVEDIRECTION ~= nil then
  459. MOVESPEED = (CFRAME.p - MOVEDIRECTION).Magnitude/TIME
  460. end
  461. local GROWTH = SIZE - ENDSIZE
  462. local TRANS = TRANSPARENCY - ENDTRANSPARENCY
  463. if TYPE == "Block" then
  464. EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))
  465. else
  466. EFFECT.CFrame = CFRAME
  467. end
  468. for LOOP = 1, TIME+1 do
  469. Swait()
  470. MSH.Scale = MSH.Scale - GROWTH/TIME
  471. if TYPE == "Wave" then
  472. MSH.Offset = VT(0,0,-MSH.Scale.X/8)
  473. end
  474. EFFECT.Transparency = EFFECT.Transparency - TRANS/TIME
  475. if TYPE == "Block" then
  476. EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))
  477. else
  478. EFFECT.CFrame = EFFECT.CFrame*ANGLES(RAD(ROTATION1),RAD(ROTATION2),RAD(ROTATION3))
  479. end
  480. if MOVEDIRECTION ~= nil then
  481. local ORI = EFFECT.Orientation
  482. EFFECT.CFrame = CF(EFFECT.Position,MOVEDIRECTION)*CF(0,0,-MOVESPEED)
  483. EFFECT.Orientation = ORI
  484. end
  485. end
  486. if PLAYSSOUND == false then
  487. EFFECT:remove()
  488. else
  489. repeat Swait() until SOUND.Playing == false
  490. EFFECT:remove()
  491. end
  492. else
  493. if PLAYSSOUND == false then
  494. EFFECT:remove()
  495. else
  496. repeat Swait() until SOUND.Playing == false
  497. EFFECT:remove()
  498. end
  499. end
  500. end))
  501. end
  502.  
  503. function MakeForm(PART,TYPE)
  504. if TYPE == "Cyl" then
  505. local MSH = IT("CylinderMesh",PART)
  506. elseif TYPE == "Ball" then
  507. local MSH = IT("SpecialMesh",PART)
  508. MSH.MeshType = "Sphere"
  509. elseif TYPE == "Wedge" then
  510. local MSH = IT("SpecialMesh",PART)
  511. MSH.MeshType = "Wedge"
  512. end
  513. end
  514.  
  515. Debris = game:GetService("Debris")
  516.  
  517. function CastProperRay(StartPos, EndPos, Distance, Ignore)
  518. local DIRECTION = CF(StartPos,EndPos).lookVector
  519. return Raycast(StartPos, DIRECTION, Distance, Ignore)
  520. end
  521.  
  522. function turnto(position)
  523. RootPart.CFrame=CFrame.new(RootPart.CFrame.p,VT(position.X,RootPart.Position.Y,position.Z)) * CFrame.new(0, 0, 0)
  524. end
  525.  
  526. --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})
  527. function Lightning(Table)
  528. local Color = Table.Color or C3(1,1,1)
  529. local StartPos = Table.Start or Torso.Position
  530. local EndPos = Table.End or Mouse.Hit.p
  531. local SegmentLength = Table.SegmentL or 2
  532. local Thickness = Table.Thickness or 0.1
  533. local Dissapear = Table.DoesFade or false
  534. local Parent = Table.Ignore or Character
  535. local MaxDist = Table.MaxDist or 400
  536. local Branches = Table.Branches or false
  537. local HIT,HITPOS = CastProperRay(StartPos, EndPos, MaxDist, Parent)
  538. local DISTANCE = math.ceil((StartPos - HITPOS).Magnitude/SegmentLength)
  539. local LIGHTNINGMODEL = IT("Model",Effects)
  540. LIGHTNINGMODEL.Name = "Lightning"
  541. local LastBolt = nil
  542. for E = 1, DISTANCE do
  543. local ExtraSize = (DISTANCE-E)/25
  544. local PART = CreatePart(3, LIGHTNINGMODEL, "Neon", 0, 0, BRICKC("Pearl"), "LightningPart"..E, VT(Thickness+ExtraSize,SegmentLength,Thickness+ExtraSize))
  545. PART.Color = Color
  546. PART.Transparency = 1
  547. MakeForm(PART,"Cyl")
  548. local prytal2 = ParticleEmitter({Texture = 296874871, Speed = 10, RotSpeed = NumberRange.new(-15, 15), Drag = 0, Size1 = 9, Size2 = 0, Lifetime1 = 1, Lifetime2 = 2, Parent = PART, Emit = 2000, Offset = 0, Enabled = true, Color1 = BRICKC"Royal purple".Color, Color2 = BRICKC"Lime green".Color})
  549. prytal2.Rate = 2000
  550. if LastBolt == nil then
  551. PART.CFrame = CF(StartPos,HITPOS)*ANGLES(RAD(90),RAD(0),RAD(0))*CF(0,-PART.Size.Y/2,0)
  552. else
  553. 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)
  554. end
  555. LastBolt = PART
  556. if Branches == true then
  557. local CHOICE = MRANDOM(1,7+((DISTANCE-E)*2))
  558. if CHOICE == 1 then
  559. local LASTBRANCH = nil
  560. for i = 1, MRANDOM(2,5) do
  561. local ExtraSize2 = ((DISTANCE-E)/35)/i
  562. local PART = CreatePart(3, LIGHTNINGMODEL, "Neon", 0, 0, BRICKC("Pearl"), "Branch"..E.."-"..i, VT(Thickness+ExtraSize2,SegmentLength,Thickness+ExtraSize2))
  563. PART.Color = Color
  564. MakeForm(PART,"Cyl")
  565. if LASTBRANCH == nil then
  566. 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)
  567. else
  568. 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)
  569. end
  570. LASTBRANCH = PART
  571. end
  572. end
  573. end
  574. end
  575. if Dissapear == true then
  576. coroutine.resume(coroutine.create(function()
  577. for i = 1, 30 do
  578. Swait()
  579. for _, c in pairs(LIGHTNINGMODEL:GetChildren()) do
  580. if c.ClassName == "Part" then
  581. c.Transparency = i/30
  582. end
  583. end
  584. end
  585. LIGHTNINGMODEL:remove()
  586. end))
  587. elseif Dissapear == false then
  588. Debris:AddItem(LIGHTNINGMODEL,0.1)
  589. end
  590. return {End = LastBolt.CFrame*CF(0,0,-LastBolt.Size.Z/2).p,LastBolt = LastBolt,Model = LIGHTNINGMODEL}
  591. end
  592.  
  593. local Particle = IT("ParticleEmitter",nil)
  594. Particle.Enabled = false
  595. Particle.LightEmission = 1
  596. Particle.Rate = 150
  597. Particle.ZOffset = 1
  598. Particle.Rotation = NumberRange.new(-180, 180)
  599.  
  600. --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 = ""})
  601. function ParticleEmitter(Table)
  602. local PRTCL = Particle:Clone()
  603. local Color1 = Table.Color1 or C3(1,1,1)
  604. local Color2 = Table.Color2 or C3(1,1,1)
  605. local Speed = Table.Speed or 5
  606. local Drag = Table.Drag or 0
  607. local Size1 = Table.Size1 or 1
  608. local Size2 = Table.Size2 or 5
  609. local Lifetime1 = Table.Lifetime1 or 1
  610. local Lifetime2 = Table.Lifetime2 or 1.5
  611. local Parent = Table.Parent or Torso
  612. local Emit = Table.Emit or 100
  613. local Offset = Table.Offset or 360
  614. local Acel = Table.Acel or VT(0,0,0)
  615. local Enabled = Table.Enabled or false
  616. local Texture = Table.Texture or "296874871"
  617. local RotS = Table.RotSpeed or NumberRange.new(-15, 15)
  618. local Trans1 = Table.Transparency1 or 0
  619. local Trans2 = Table.Transparency2 or 0
  620. PRTCL.Parent = Parent
  621. PRTCL.RotSpeed = RotS
  622. PRTCL.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,Trans1),NumberSequenceKeypoint.new(1,Trans2)})
  623. PRTCL.Texture = "http://www.roblox.com/asset/?id="..Texture
  624. PRTCL.Color = ColorSequence.new(Color1,Color2)
  625. PRTCL.Size = NumberSequence.new(Size1,Size2)
  626. PRTCL.Lifetime = NumberRange.new(Lifetime1,Lifetime2)
  627. PRTCL.Speed = NumberRange.new(Speed)
  628. PRTCL.VelocitySpread = Offset
  629. PRTCL.Drag = Drag
  630. PRTCL.Acceleration = Acel
  631. if Enabled == false then
  632. PRTCL:Emit(Emit)
  633. Debris:AddItem(PRTCL,Lifetime2)
  634. else
  635. PRTCL.Enabled = true
  636. end
  637. return PRTCL
  638. end
  639.  
  640. --//=================================\\
  641. --|| WEAPON CREATION
  642. --\\=================================//
  643.  
  644. local SKILLTEXTCOLOR = C3(1,1,1)
  645. local SKILLFONT = "Fantasy"
  646. local SKILLTEXTSIZE = 5
  647. local POWER = 250
  648. local MAXPOWER = 500
  649.  
  650. Humanoid.Died:connect(function()
  651. ATTACK = true
  652. end)
  653.  
  654. 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")
  655. 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")
  656. 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")
  657. 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")
  658.  
  659. local SKILL1TEXT = CreateLabel(SKILL1FRAME, "[Q] Aether Phoenix Lightning", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0, "Text 1")
  660. local SKILL2TEXT = CreateLabel(SKILL2FRAME, "[R] Aether Phoenix's Flaming Stomp", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0, "Text 2")
  661. local SKILL3TEXT = CreateLabel(SKILL3FRAME, "[X] Aether Phoenix Lightning Meteor", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0, "Text 3")
  662. local SHIFTX = CreateLabel(SHIFTFR, "[SHIFT] Charge", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0, "How2Shift")
  663.  
  664. 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")
  665. local MANACOVER = CreateFrame(MANABAR, 0, 0, UD2(0, 0, 0, 0), UD2(0, 0, 1, 0), BRICKC"Bright Yellow".Color, C3(0, 0, 0),"Mana Cover")
  666. local MANATEXT = CreateLabel(MANABAR, POWER.."/"..MAXPOWER, SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0, "MP")
  667.  
  668. local A = IT("Attachment",Torso)
  669. 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"Lime Green".Color, Color2 = BRICKC"Royal Purple".Color})
  670. TORSOTHUNDER.Enabled = false
  671. TORSOTHUNDER.Rate = 5
  672. local TORSOTHUNDER2 = ParticleEmitter({Texture = 296874871, 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"Lime Green".Color, Color2 = BRICKC"Royal Purple".Color})
  673. TORSOTHUNDER2.Enabled = false
  674. TORSOTHUNDER2.Rate = 5
  675. local B = IT("Attachment",RootPart)
  676. B.Position = VT(0,-3,0)
  677. local CHARGE = ParticleEmitter({Transparency1 = 1, Transparency2 = 0.5, Acel = VT(0,30,0), Texture = 296874871, Speed = 3, RotSpeed = NumberRange.new(-150, 150), Drag = -0.5, Size1 = 2, Size2 = 0, Lifetime1 = 1, Lifetime2 = 1.2, Parent = B, Emit = 999, Offset = 360, Enabled = true, Color1 = BRICKC"Lime green".Color, Color2 = BRICKC"Lime green".Color})
  678. CHARGE.ZOffset = 1.5
  679. CHARGE.Enabled = false
  680. CHARGE.Rate = 999
  681. local CHARGE2 = ParticleEmitter({Transparency1 = 1, Transparency2 = 0.5, Acel = VT(0,15,0), Texture = 296874871, Speed = 3, RotSpeed = NumberRange.new(-150, 150), Drag = -0.5, Size1 = 2, Size2 = 0, Lifetime1 = 1, Lifetime2 = 1.2, Parent = B, Emit = 1200, Offset = 360, Enabled = true, Color1 = BRICKC"Royal purple".Color, Color2 = BRICKC"Royal purple".Color})
  682. CHARGE2.ZOffset = 1.5
  683. CHARGE2.Enabled = false
  684. CHARGE2.Rate = 1200
  685.  
  686.  
  687. local FF = IT("ForceField",Character)
  688. FF.Visible = false
  689. Humanoid.MaxHealth = 1200
  690. Humanoid.Health = 1200
  691. 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")
  692. 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")
  693. local HEALTHTEXT = CreateLabel(HEALTHBAR, Humanoid.Health.."/"..Humanoid.MaxHealth, SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0, "HP")
  694. Character.Health:remove()
  695.  
  696. --//=================================\\
  697. --|| DAMAGING
  698. --\\=================================//
  699.  
  700. function ApplyDamage(Humanoid,Damage,TorsoPart)
  701. local defence = Instance.new("BoolValue",Humanoid.Parent)
  702. defence.Name = ("HitBy"..Player.Name)
  703. game:GetService("Debris"):AddItem(defence, 0.001)
  704. Damage = Damage * DAMAGEMULTIPLIER
  705. if Humanoid.Health ~= 0 then
  706. local CritChance = MRANDOM(1,100)
  707. if Damage > Humanoid.Health then
  708. Damage = math.ceil(Humanoid.Health)
  709. if Damage == 0 then
  710. Damage = 0.1
  711. end
  712. end
  713. Humanoid.Health = Humanoid.Health - Damage
  714. end
  715. end
  716.  
  717. function AfterZap(Humanoid,Times,Dmg)
  718. coroutine.resume(coroutine.create(function()
  719. if Humanoid ~= nil then
  720. local ZAP = ParticleEmitter({Speed = 0, RotSpeed = NumberRange.new(-15, 15), Drag = 0, Size1 = 2, Size2 = 3, Lifetime1 = 1, Lifetime2 = 0.1, Parent = Humanoid.Torso, Emit = 100, Offset = 360, Enabled = true, Color1 = BRICKC"Lime green".Color, Color2 = BRICKC"Royal purple".Color})
  721. ZAP.Rate = 75
  722. for i = 1, Times do
  723. wait(1)
  724. if Humanoid ~= nil and Humanoid.Health > 0 then
  725. Humanoid.Health = Humanoid.Health - Dmg
  726. CreateSound(SHOCKSOUND,Humanoid.Torso,1,MRANDOM(13,16)/10,false)
  727. else
  728. break
  729. end
  730. end
  731. ZAP.Enabled = false
  732. Debris:AddItem(ZAP,3)
  733. end
  734. end))
  735. end
  736.  
  737. function ApplyAoE(POSITION,RANGE,MINDMG,MAXDMG,FLING,DOESAFTERZAP,ZAPCOUNTER)
  738. local CHILDREN = workspace:GetDescendants()
  739. for index, CHILD in pairs(CHILDREN) do
  740. if CHILD.ClassName == "Model" and CHILD ~= Character then
  741. local HUM = CHILD:FindFirstChildOfClass("Humanoid")
  742. if HUM then
  743. local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso")
  744. if TORSO then
  745. if (TORSO.Position - POSITION).Magnitude <= RANGE then
  746. if DOESAFTERZAP == true then
  747. AfterZap(HUM,ZAPCOUNTER,math.ceil(MINDMG/7))
  748. end
  749. local DMG = MRANDOM(MINDMG,MAXDMG)
  750. ApplyDamage(HUM,DMG,TORSO)
  751. if FLING > 0 then
  752. for _, c in pairs(CHILD:GetChildren()) do
  753. if c:IsA("BasePart") then
  754. local bv = Instance.new("BodyVelocity")
  755. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  756. bv.velocity = CF(POSITION,TORSO.Position).lookVector*FLING
  757. bv.Parent = c
  758. Debris:AddItem(bv,0.05)
  759. end
  760. end
  761. end
  762. end
  763. end
  764. end
  765. end
  766. end
  767. end
  768.  
  769. --//=================================\\
  770. --|| ATTACK FUNCTIONS AND STUFF
  771. --\\=================================//
  772.  
  773. local DECAL = IT("Decal",nil)
  774.  
  775. function MagicRing(PART,CFRAME)
  776. local RING = CreatePart(3, Effects, "Granite", 0, 1, "Maroon", "MagicRing", VT(0,0,0),false)
  777. local WELD = CreateWeldOrSnapOrMotor("Weld", PART, PART, RING, CFRAME, CF(0, 0, 0))
  778. local MESH = IT("BlockMesh",RING)
  779. local BOTTOMTEXTURE = DECAL:Clone()
  780. BOTTOMTEXTURE.Parent = RING
  781. BOTTOMTEXTURE.Face = "Bottom"
  782. BOTTOMTEXTURE.Texture = "http://www.roblox.com/asset/?id=1563007449"
  783. BOTTOMTEXTURE.Name = "BottomTexture"
  784. local TOPTEXTURE = DECAL:Clone()
  785. TOPTEXTURE.Parent = RING
  786. TOPTEXTURE.Face = "Top"
  787. TOPTEXTURE.Texture = "http://www.roblox.com/asset/?id=1563008191"
  788. TOPTEXTURE.Name = "TopTexture"
  789. 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})
  790. T.LockedToPart = true
  791. return RING,WELD,MESH
  792. end
  793.  
  794. function Charge()
  795. ATTACK = true
  796. Rooted = true
  797. TORSOTHUNDER.Enabled = false
  798. TORSOTHUNDER2.Enabled = false
  799. CHARGE.Enabled = true
  800. CHARGE2.Enabled = true
  801. killmeKILLMENOWjk()
  802. local LOOP = CreateSound(516142778,Torso,0,1,true)
  803. local LOOP2 = CreateSound(1393698948,Torso,0,2,true)
  804. repeat
  805. Swait()
  806. if POWER < MAXPOWER then
  807. POWER = POWER + 1
  808. elseif POWER > MAXPOWER then
  809. POWER = MAXPOWER
  810. end
  811. if LOOP.Volume < 5 then
  812. LOOP.Volume = LOOP.Volume + 0.2
  813. end
  814. if LOOP2.Volume < 5 then
  815. LOOP2.Volume = LOOP2.Volume + 0.2
  816. end
  817. TORSOTHUNDER.Rate = MRANDOM(15,45)
  818. TORSOTHUNDER2.Rate = MRANDOM(15,45)
  819. Humanoid.Health = Humanoid.Health + 1
  820. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  821. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(15), RAD(0), RAD(0)), 1 / Animation_Speed)
  822. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(-15), RAD(25)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  823. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(15), RAD(-25)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  824. 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)
  825. 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)
  826. until KEYHOLD == false or POWER == MAXPOWER and Humanoid.Health == Humanoid.MaxHealth
  827. CHARGE2.Enabled = false
  828. CHARGE.Enabled = false
  829. TORSOTHUNDER.Enabled = false
  830. TORSOTHUNDER2.Enabled = false
  831. killmeKILLMENOW()
  832. coroutine.resume(coroutine.create(function()
  833. repeat
  834. Swait()
  835. LOOP.Volume = LOOP.Volume - 0.2
  836. LOOP2.Volume = LOOP2.Volume - 0.2
  837. until LOOP.Volume <= 0
  838. LOOP:remove()
  839. end))
  840. ATTACK = false
  841. Rooted = false
  842. end
  843. function AetheralBlast()
  844. ATTACK = true
  845. local p = Instance.new("Part")
  846. p.Anchored = true
  847. smooth(p)
  848. p.Material = "Neon"
  849. local bc = BrickColor.new("Lime green")
  850. p.BrickColor = bc
  851. local m = Instance.new("SpecialMesh", p)
  852. m.MeshType = "Sphere"
  853. p.Size = Vector3.new(1,1,1)
  854. p.CFrame = Torso.CFrame
  855. p.CanCollide = false
  856. local pe = Instance.new("ParticleEmitter")
  857. pe.Color = ColorSequence.new(BrickColor.new("Lime green").Color, BrickColor.new("Royal purple").Color)
  858. pe.LightEmission = 0.7
  859. pe.Size = NumberSequence.new(10)
  860. pe.Texture = "rbxassetid://296874871"
  861. pe.Transparency = NumberSequence.new(0.5)
  862. pe.Lifetime = NumberRange.new(5)
  863. pe.Rate = 500
  864. pe.Speed = NumberRange.new(50)
  865. pe.VelocitySpread = 360
  866. pe.Parent = p
  867. p.Parent = workspace
  868. local rate = 20
  869. local oldcf = p.CFrame
  870. local con = p.Touched:connect(function(hitapple)
  871. if hitapple.Parent then
  872. if hitapple.Anchored == false then
  873. if hitapple.Parent.Name ~= Player.Name then
  874. if not hitapple.Parent:IsA("Accessory") then
  875. fade(hitapple, true)
  876. end
  877. end
  878. end
  879. end
  880. end)
  881. ATTACK = false
  882. for i = 0, 10*rate do
  883. p.Size = p.Size +Vector3.new(20,20,20)/rate
  884. p.Transparency = p.Transparency+0.1/rate
  885. p.CFrame = oldcf
  886. Swait()
  887. end
  888. pe.Enabled = false
  889. con:disconnect()
  890. game.Debris:AddItem(p, 5)
  891. end
  892.  
  893. function PoisonBolt()
  894. ATTACK = true
  895. Rooted = true
  896. killmeKILLMENOWjk()
  897. local STRENGTH = 100
  898. local TIER = 1
  899. local GRAV = IT("BodyPosition",RootPart)
  900. GRAV.D = 250
  901. GRAV.P = 20000
  902. GRAV.MaxForce = VT(math.huge,math.huge,math.huge)
  903. GRAV.Position = RootPart.Position
  904. local G = IT("BodyGyro",RootPart)
  905. G.D = 250
  906. G.P = 200000
  907. G.MaxTorque = VT(math.huge,math.huge,math.huge)
  908. local RING,WELD,MESH = MagicRing(RightArm,CF(0,-1.2,0))
  909. CreateSound(RINGSOUND,RING,5,1,false)
  910. repeat
  911. Swait()
  912. STRENGTH = STRENGTH + 0.3
  913. if STRENGTH > 200 then
  914. STRENGTH = 200
  915. end
  916. if MESH.Scale.X < 120 then
  917. MESH.Scale = MESH.Scale + VT(3,0,3)
  918. elseif MESH.Scale.X < 200 then
  919. MESH.Scale = MESH.Scale + VT(0.3,0,0.3)
  920. end
  921. G.cframe = CF(RootPart.Position,Mouse.Hit.p)
  922. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(45)), 1 / Animation_Speed)
  923. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0), RAD(0), RAD(-45)), 1 / Animation_Speed)
  924. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.25, 0.5, -0.2) * ANGLES(RAD(90), RAD(0), RAD(45)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  925. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  926. 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)
  927. 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)
  928. until KEYHOLD == false and MESH.Scale.X >= 120
  929. if STRENGTH >= 150 and STRENGTH ~= 200 and POWER >= 35 then
  930. POWER = POWER - 35
  931. TIER = 2
  932. elseif STRENGTH == 200 and POWER >= 75 then
  933. POWER = POWER - 75
  934. TIER = 3
  935. end
  936. --print("STRENGTH:"..STRENGTH.."/TIER:"..TIER)
  937. if TIER == 1 then
  938. local ZAP = Lightning({Color = BRICKC"Dark indigo".Color, Start = RING.Position, End = Mouse.Hit.p, SegmentL = 2, Thickness = 1, DoesFade = true, Ignore = Character, MaxDist = 100, Branches = true})
  939. if ZAP.End ~= nil then
  940. ApplyAoE(ZAP.End,10,5,15,35,true,6)
  941. 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})
  942. 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})
  943. end
  944. elseif TIER == 2 then
  945. local ZAP = Lightning({Color = BRICKC"Toothpaste".Color, Start = RING.Position, End = Mouse.Hit.p, SegmentL = 2.5, Thickness = 0.1, DoesFade = true, Ignore = Character, MaxDist = 200, Branches = true})
  946. if ZAP.End ~= nil then
  947. ApplyAoE(ZAP.End,15,15,25,35,true,8)
  948. 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"Toothpaste".Color, SoundID = SHOCKSOUND, SoundPitch = MRANDOM(7,10)/10, SoundVolume = 6})
  949. 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})
  950. end
  951. elseif TIER == 3 then
  952. local ZAP = Lightning({Color = BRICKC"Lime green".Color, Start = RING.Position, End = Mouse.Hit.p, SegmentL = 3, Thickness = 0.1, DoesFade = true, Ignore = Character, MaxDist = 300, Branches = true})
  953. if ZAP.End ~= nil then
  954. ApplyAoE(ZAP.End,20,15,25,35,true,12)
  955. 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"Lime green".Color, SoundID = SHOCKSOUND, SoundPitch = MRANDOM(5,8)/10, SoundVolume = 6})
  956. 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})
  957. for i = 1, 4 do
  958. Lightning({Color = BRICKC"Lime green".Color, Start = ZAP.End, End = ZAP.End+VT(MRANDOM(-45,45),MRANDOM(-45,45),MRANDOM(-45,45)), SegmentL = 3, Thickness = 1, DoesFade = true, Ignore = Character, MaxDist = 15, Branches = true})
  959. end
  960. end
  961. end
  962. wait(0.5)
  963. RING.Anchored = true
  964. WELD:remove()
  965. coroutine.resume(coroutine.create(function()
  966. for i = 1, 25 do
  967. Swait()
  968. RING.TopTexture.Transparency = RING.TopTexture.Transparency + 1/25
  969. RING.BottomTexture.Transparency = RING.BottomTexture.Transparency + 1/25
  970. MESH.Scale = MESH.Scale - VT(3,0,3)
  971. end
  972. RING:remove()
  973. end))
  974. killmeKILLMENOW()
  975. ATTACK = false
  976. Rooted = false
  977. G:remove()
  978. GRAV:remove()
  979. end
  980.  
  981. function AetherComet()
  982. vt = Vector3.new
  983. local sa = Instance.new("Sound",Torso)
  984. sa.SoundId = "rbxassetid://304529688"
  985. sa.Volume = 1.5
  986. sa.Pitch = 0.85
  987. sa:Play()
  988. local lb = Instance.new("Part")
  989. lb.Parent = Character
  990. lb.Material = "Neon"
  991. lb.Color = BrickColor.new("Lime green").Color
  992. lb.CanCollide = false
  993. lb.Shape = "Ball"
  994. lb.CFrame = Larm.CFrame
  995. lb.Anchored = true
  996. lb.Transparency = 1
  997. lb.Size = Vector3.new(1,1,1)
  998. local thing = Instance.new("SpecialMesh",lb)
  999. thing.MeshType = meshtype
  1000. local hitted = false
  1001. lb.Anchored = false
  1002. local trail = Instance.new("ParticleEmitter",lb)
  1003. trail.Texture = "rbxassetid://296874871"
  1004. trail.LightEmission = 1
  1005. trail.Color = ColorSequence.new(BrickColor.new("Lime green").Color, BrickColor.new("Royal purple").Color)
  1006. trail.Rate = 9999
  1007. trail.Lifetime = NumberRange.new(1.5)
  1008. trail.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,25,0),NumberSequenceKeypoint.new(1,0,0)})
  1009. trail.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(1,1,0)})
  1010. trail.Speed = NumberRange.new(0,0)
  1011. trail.Rotation = NumberRange.new(-500,500)
  1012. trail.RotSpeed = NumberRange.new(-500,500)
  1013. local bv = Instance.new("BodyVelocity")
  1014. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  1015. bv.velocity = mouse.Hit.lookVector *95
  1016. bv.Parent = lb
  1017. wait(0.05)
  1018. lb.Touched:connect(function(hit)
  1019. if hitted == false then
  1020. hitted = true
  1021. trail.Rate = 0
  1022. lb.Anchored = true
  1023. local aa = Instance.new("Part")
  1024. local val = 1*8
  1025. aa.Parent = lb
  1026. local exsound = Instance.new("Sound",aa)
  1027. exsound.SoundId = "rbxassetid://402347142"
  1028. exsound.Volume = 10
  1029. exsound.Pitch = 0.945
  1030. exsound:Play()
  1031. aa.Material = "Neon"
  1032. aa.Color = BrickColor.new("Lime greem").Color
  1033. aa.CanCollide = false
  1034. aa.Shape = "Cylinder"
  1035. aa.CFrame = lb.CFrame
  1036. aa.Anchored = true
  1037. aa.Transparency = 0
  1038. aa.Size = vt(1,1,1)
  1039. local thinger = Instance.new("SpecialMesh",aa)
  1040. thinger.MeshType = meshtype
  1041. thinger.Scale = vt(15,15,15)
  1042. local explosion = Instance.new("Explosion",aa)
  1043. explosion.Position = aa.Position
  1044. explosion.BlastRadius = 65
  1045. explosion.BlastPressure = 100
  1046. local exp = Instance.new("ParticleEmitter",aa)
  1047. exp.Texture = "rbxassetid://296874871"
  1048. exp.LightEmission = 1
  1049. exp.Color = ColorSequence.new(BrickColor.new("Lime green").Color, BrickColor.new("Royal purple").Color)
  1050. exp.Rate = 9000000000
  1051. exp.Lifetime = NumberRange.new(2.75)
  1052. exp.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,100,0),NumberSequenceKeypoint.new(1,1,0)})
  1053. exp.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(1,1,0)})
  1054. exp.Speed = NumberRange.new(200)
  1055. exp.VelocitySpread = 9000000
  1056. exp.Rotation = NumberRange.new(-500,500)
  1057. exp.RotSpeed = NumberRange.new(-500,500)
  1058. local expa = Instance.new("ParticleEmitter",aa)
  1059. expa.Texture = "rbxassetid://296874871"
  1060. expa.LightEmission = 1
  1061. expa.Color = ColorSequence.new(BrickColor.new("Lime green").Color, BrickColor.new("Royal purple").Color)
  1062. expa.Rate = 9000000000
  1063. expa.Lifetime = NumberRange.new(2.75)
  1064. expa.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,5,0),NumberSequenceKeypoint.new(1,125,0)})
  1065. expa.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0.5,0),NumberSequenceKeypoint.new(1,1,0)})
  1066. expa.Speed = NumberRange.new(200)
  1067. expa.VelocitySpread = 9000000
  1068. expa.Rotation = NumberRange.new(-500,500)
  1069. expa.RotSpeed = NumberRange.new(-500,500)
  1070. local exp2 = exp:Clone()
  1071. exp2.Parent = aa
  1072. local exp3 = exp:Clone()
  1073. exp3.Parent = aa
  1074. local exp4 = exp:Clone()
  1075. exp4.Parent = aa
  1076. local exp5 = exp:Clone()
  1077. exp5.Parent = aa
  1078. local exp6 = exp:Clone()
  1079. exp6.Parent = aa
  1080. local exp7 = exp:Clone()
  1081. exp7.Parent = aa
  1082. local expa2 = expa:Clone()
  1083. expa2.Parent = aa
  1084. local expa3 = expa:Clone()
  1085. expa3.Parent = aa
  1086. local expa4 = expa:Clone()
  1087. expa4.Parent = aa
  1088. local expa5 = expa:Clone()
  1089. expa5.Parent = aa
  1090. local expa6 = expa:Clone()
  1091. expa6.Parent = aa
  1092. local expa7 = expa:Clone()
  1093. expa7.Parent = aa
  1094. vt = Vector3.new
  1095. for i = 0, 1 do
  1096. val = val - 0.025*8
  1097. thinger.Scale = thinger.Scale + vt(val,val,val)
  1098. wait()
  1099. end
  1100. exp.Rate = 0
  1101. exp2.Rate = 0
  1102. exp3.Rate = 0
  1103. exp4.Rate = 0
  1104. exp5.Rate = 0
  1105. exp6.Rate = 0
  1106. exp7.Rate = 0
  1107. for i = 0, 1 do
  1108. val = val - 0.025*8
  1109. thinger.Scale = thinger.Scale + vt(val,val,val)
  1110. wait()
  1111. end
  1112. expa.Rate = 0
  1113. expa2.Rate = 0
  1114. expa3.Rate = 0
  1115. expa4.Rate = 0
  1116. expa5.Rate = 0
  1117. expa6.Rate = 0
  1118. expa7.Rate = 0
  1119. for i = 0, 21 do
  1120. val = val - 0.025*8
  1121. thinger.Scale = thinger.Scale + vt(val,val,val)
  1122. wait()
  1123. end
  1124. for i = 0, 74 do
  1125. val = val - 0.0145
  1126. aa.Transparency = aa.Transparency + 0.0145
  1127. thinger.Scale = thinger.Scale + vt(val,val,val)
  1128. wait()
  1129. end
  1130. end
  1131. end)
  1132. wait(30)
  1133. sa:Destroy()
  1134. tra:Destroy()
  1135. tra2:Destroy()
  1136. lb:Destroy()
  1137. end
  1138.  
  1139.  
  1140. function ToxicStomp()
  1141. ATTACK = true
  1142. Rooted = false
  1143. killmeKILLMENOWjk()
  1144. local GRAV = IT("BodyPosition",RootPart)
  1145. GRAV.D = 250
  1146. GRAV.P = 20000
  1147. GRAV.MaxForce = VT(math.huge,math.huge,math.huge)
  1148. GRAV.Position = RootPart.Position
  1149. local RING,WELD,MESH = MagicRing(RightLeg,CF(0,-1.2,0))
  1150. CreateSound(RINGSOUND,RING,5,1,false)
  1151. local STRENGTH = 100
  1152. local TIER = 1
  1153. repeat
  1154. Swait()
  1155. STRENGTH = STRENGTH + 0.3
  1156. if STRENGTH > 200 then
  1157. STRENGTH = 200
  1158. end
  1159. if MESH.Scale.X < 120 then
  1160. MESH.Scale = MESH.Scale + VT(3,0,3)
  1161. elseif MESH.Scale.X < 200 then
  1162. MESH.Scale = MESH.Scale + VT(0.3,0,0.3)
  1163. end
  1164. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(-5), RAD(0), RAD(0)), 1 / Animation_Speed)
  1165. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-5), RAD(0), RAD(0)), 1 / Animation_Speed)
  1166. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(120), RAD(0), RAD(12)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  1167. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(120), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  1168. 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)
  1169. 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)
  1170. until KEYHOLD == false and MESH.Scale.X >= 120
  1171. if STRENGTH >= 150 and STRENGTH ~= 200 and POWER >= 45 then
  1172. POWER = POWER - 45
  1173. TIER = 2
  1174. elseif STRENGTH == 200 and POWER >= 100 then
  1175. POWER = POWER - 100
  1176. TIER = 3
  1177. end
  1178. for i=0, 0.2, 0.1 / Animation_Speed do
  1179. Swait()
  1180. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(-25), RAD(0), RAD(0)), 1 / Animation_Speed)
  1181. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-5), RAD(0), RAD(0)), 1 / Animation_Speed)
  1182. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(150), RAD(0), RAD(12)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  1183. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(150), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  1184. 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)
  1185. 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)
  1186. end
  1187. for i=0, 0.2, 0.1 / Animation_Speed do
  1188. Swait()
  1189. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0.6) * ANGLES(RAD(15), RAD(0), RAD(0)), 1 / Animation_Speed)
  1190. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-5), RAD(0), RAD(0)), 1 / Animation_Speed)
  1191. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(120), RAD(0), RAD(12)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  1192. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(120), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  1193. 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)
  1194. 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)
  1195. end
  1196. coroutine.resume(coroutine.create(function()
  1197. if TIER == 1 then
  1198. local AOE = CreatePart(3, Effects, "Granite", 0, 1, "Lime green", "Stomp", VT(30,0,30))
  1199. AOE.CFrame = CF(RightLeg.Position-VT(0,1,0))
  1200. local PARTCL = ParticleEmitter({Texture = 296874871, Speed = 100, RotSpeed = NumberRange.new(-15, 15), Drag = 0, Size1 = 9, Size2 = 1, Lifetime1 = 1, Lifetime2 = 2, Parent = AOE, Emit = 99999, Offset = 0, Enabled = true, Color1 = BRICKC"Lime green".Color, Color2 = BRICKC"Royal purple".Color})
  1201. PARTCL.Rate = 99999
  1202. CreateSound(304999618,AOE,5,1,false)
  1203. CreateSound(130972023,AOE,4,1,false)
  1204. ApplyAoE(AOE.Position,15,15,25,35,true,5)
  1205. 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"Lime green".Color, SoundID = nil, SoundPitch = MRANDOM(5,8)/10, SoundVolume = 6})
  1206. wait(2)
  1207. PARTCL.Enabled = false
  1208. Debris:AddItem(AOE,2)
  1209. elseif TIER == 2 then
  1210. local AOE = CreatePart(3, Effects, "Granite", 0, 1, "Lime green", "Stomp", VT(40,0,40))
  1211. AOE.CFrame = CF(RightLeg.Position-VT(0,1,0))
  1212. local PARTCL = ParticleEmitter({Texture = 296874871, Speed = 100, RotSpeed = NumberRange.new(-15, 15), Drag = 0, Size1 = 9, Size2 = 1, Lifetime1 = 1, Lifetime2 = 2, Parent = AOE, Emit = 99999, Offset = 0, Enabled = true, Color1 = BRICKC"Royal purple".Color, Color2 = BRICKC"Lime green".Color})
  1213. PARTCL.Rate = 99999
  1214. CreateSound(3049919618,AOE,5,1,false)
  1215. CreateSound(130972023,AOE,4,1,false)
  1216. ApplyAoE(AOE.Position,20,25,35,35,true,6)
  1217. 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"Lime green".Color, SoundID = nil, SoundPitch = MRANDOM(5,8)/10, SoundVolume = 6})
  1218. wait(2)
  1219. PARTCL.Enabled = false
  1220. Debris:AddItem(AOE,2)
  1221. elseif TIER == 3 then
  1222. local AOE = CreatePart(3, Effects, "Granite", 0, 1, "Lime green", "Stomp", VT(50,0,50))
  1223. AOE.CFrame = CF(RightLeg.Position-VT(0,1,0))
  1224. local PARTCL = ParticleEmitter({Texture = 296874871, Speed = 100, RotSpeed = NumberRange.new(-15, 15), Drag = 0, Size1 = 9, Size2 = 1, Lifetime1 = 1, Lifetime2 = 2, Parent = AOE, Emit = 99999, Offset = 0, Enabled = true, Color1 = BRICKC"Royal purple".Color, Color2 = BRICKC"Lime green".Color})
  1225. PARTCL.Rate = 99999
  1226. CreateSound(304999618,AOE,5,1,false)
  1227. CreateSound(130972023,AOE,4,1,false)
  1228. for i = 1, 3 do
  1229. 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"Lime green".Color, SoundID = nil, SoundPitch = MRANDOM(5,8)/10, SoundVolume = 6})
  1230. wait(0.5)
  1231. end
  1232. wait(1.5)
  1233. PARTCL.Enabled = false
  1234. Debris:AddItem(AOE,2)
  1235. end
  1236. end))
  1237. for i=0, 2, 0.1 / Animation_Speed do
  1238. Swait()
  1239. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0.6) * ANGLES(RAD(15), RAD(0), RAD(0)), 1 / Animation_Speed)
  1240. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-5), RAD(0), RAD(0)), 1 / Animation_Speed)
  1241. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(120), RAD(0), RAD(12)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  1242. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(120), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  1243. 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)
  1244. 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)
  1245. end
  1246. RING.Anchored = true
  1247. WELD:remove()
  1248. coroutine.resume(coroutine.create(function()
  1249. for i = 1, 25 do
  1250. Swait()
  1251. RING.TopTexture.Transparency = RING.TopTexture.Transparency + 1/25
  1252. RING.BottomTexture.Transparency = RING.BottomTexture.Transparency + 1/25
  1253. MESH.Scale = MESH.Scale - VT(3,0,3)
  1254. end
  1255. RING:remove()
  1256. end))
  1257. GRAV:remove()
  1258. killmeKILLMENOW()
  1259. ATTACK = false
  1260. Rooted = false
  1261. end
  1262.  
  1263. function ToxicDevastation()
  1264. ATTACK = true
  1265. Rooted = false
  1266. Speed = 5
  1267. local STRENGTH = 50
  1268. local TIER = 1
  1269. for i=0, 1, 0.1 / Animation_Speed do
  1270. Swait()
  1271. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -1.5) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  1272. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-25), RAD(0), RAD(0)), 1 / Animation_Speed)
  1273. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(-15), RAD(0), RAD(12)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  1274. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-15), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  1275. 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)
  1276. 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)
  1277. end
  1278. killmeKILLMENOWjk()
  1279. local POS = RootPart.Position
  1280. Rooted = true
  1281. Speed = Walkspeed
  1282. local TIMER = 0
  1283. local bv = Instance.new("BodyVelocity")
  1284. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  1285. bv.velocity = CF(RootPart.Position,RootPart.Position+VT(0,5,0)).lookVector*150
  1286. bv.Parent = RootPart
  1287. 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"Lime green".Color, SoundID = 1112042117, SoundPitch = MRANDOM(5,8)/10, SoundVolume = 6})
  1288. repeat
  1289. Swait()
  1290. TIMER = TIMER + 1
  1291. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1292. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-20), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1293. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(-40), RAD(0), RAD(20)) * RIGHTSHOULDERC0, 0.2 / Animation_Speed)
  1294. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-40), RAD(0), RAD(-20)) * LEFTSHOULDERC0, 0.2 / Animation_Speed)
  1295. 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)
  1296. 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)
  1297. until RootPart.Position.Y > POS.Y+80 or TIMER > 100
  1298. local GRAV = IT("BodyPosition",RootPart)
  1299. GRAV.D = 250
  1300. GRAV.P = 20000
  1301. GRAV.MaxForce = VT(math.huge,math.huge,math.huge)
  1302. GRAV.Position = RootPart.Position
  1303. bv:remove()
  1304. local G = IT("BodyGyro",RootPart)
  1305. G.D = 250
  1306. G.P = 200000
  1307. G.MaxTorque = VT(math.huge,math.huge,math.huge)
  1308. local RING,WELD,MESH = MagicRing(Torso,CF(0,3,0))
  1309. CreateSound(RINGSOUND,RING,5,1,false)
  1310. local ORB = CreatePart(3, Effects, "Neon", 0, 0, "Lime green", "Ball", VT(3,3,3))
  1311. MakeForm(ORB,"Ball")
  1312. local prytal = ParticleEmitter({Texture = 296874871, Speed = 0, RotSpeed = NumberRange.new(-15, 15), Drag = 0, Size1 = 9, Size2 = 0, Lifetime1 = 1, Lifetime2 = 2, Parent = ORB, Emit = 2000, Offset = 0, Enabled = true, Color1 = BRICKC"Royal purple".Color, Color2 = BRICKC"Lime green".Color})
  1313. prytal.Rate = 2000
  1314. local LOOP = 0
  1315. repeat
  1316. Swait()
  1317. LOOP = LOOP + 1
  1318. ORB.CFrame = Torso.CFrame*CF(0,4+ORB.Size.X/2,0)
  1319. STRENGTH = STRENGTH + 0.3
  1320. if STRENGTH > 200 then
  1321. STRENGTH = 200
  1322. else
  1323. ORB.Size = ORB.Size + VT(0.02,0.02,0.02)
  1324. end
  1325. if MESH.Scale.X < 120 then
  1326. MESH.Scale = MESH.Scale + VT(9,0,9)
  1327. elseif MESH.Scale.X < 200 then
  1328. MESH.Scale = MESH.Scale + VT(0.9,0,0.9)
  1329. end
  1330. if LOOP == 4 then
  1331. LOOP = 0
  1332. POWER = POWER - 1
  1333. end
  1334. if MRANDOM(1,25) == 1 then
  1335. 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 = true})
  1336. end
  1337. G.cframe = CF(RootPart.Position,Mouse.Hit.p)
  1338. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  1339. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  1340. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(170), RAD(0), RAD(15)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  1341. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(170), RAD(0), RAD(-15)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  1342. 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)
  1343. 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)
  1344. until (KEYHOLD == false and MESH.Scale.X >= 170) or POWER == 0
  1345. if STRENGTH >= 150 and STRENGTH ~= 200 then
  1346. TIER = 2
  1347. elseif STRENGTH == 200 then
  1348. TIER = 3
  1349. end
  1350. coroutine.resume(coroutine.create(function()
  1351. ORB.CFrame = CF(ORB.Position,Mouse.Hit.p)
  1352. CreateSound(1112042117,ORB,5,0.8,false)
  1353. for i = 1, 200 do
  1354. Swait()
  1355. ORB.CFrame = ORB.CFrame*CF(0,0,-2)
  1356. if MRANDOM(1,5) == 1 then
  1357. 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 = true})
  1358. end
  1359. local HIT = Raycast(ORB.Position, ORB.CFrame.lookVector, ORB.Size.X/2, Character)
  1360. if HIT ~= nil then
  1361. ORB.Transparency = 1
  1362. coroutine.resume(coroutine.create(function()
  1363. local COLOR = ORB.Color
  1364. local POS = ORB.Position
  1365. local SIZE = ORB.Size
  1366. local TIMES = 12 + TIER*3
  1367. local FAKEORB = CreatePart(3, Effects, "Neon", 0, 0, "Lime green", "Ball", ORB.Size)
  1368. FAKEORB.CFrame = CF(POS)
  1369. MakeForm(FAKEORB,"Ball")
  1370. local TIME = 0
  1371. ApplyAoE(FAKEORB.Position,30+(25*TIER),15,25,0,true,10)
  1372. 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})
  1373. for i = 1, 5 do
  1374. 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})
  1375. end
  1376. for i = 1, TIMES*20 do
  1377. TIME = TIME + 1
  1378. wait()
  1379. if MRANDOM(1,math.ceil(5+(i/15))) == 1 then
  1380. 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 = true})
  1381. end
  1382. FAKEORB.Size = FAKEORB.Size - SIZE/(TIMES*20)
  1383. if TIME >= 20 then
  1384. TIME = 0
  1385. ApplyAoE(FAKEORB.Position,30+(25*TIER),15,25,0,true,10)
  1386. 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})
  1387. for i = 1, 5 do
  1388. 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})
  1389. end
  1390. end
  1391. end
  1392. FAKEORB:remove()
  1393. end))
  1394. break
  1395. end
  1396. end
  1397. ORB:remove()
  1398. end))
  1399. for i=0, 1, 0.1 / Animation_Speed do
  1400. Swait()
  1401. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(5), RAD(0), RAD(0)), 1 / Animation_Speed)
  1402. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(15), RAD(0), RAD(0)), 1 / Animation_Speed)
  1403. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(90), RAD(0), RAD(-15)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  1404. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(90), RAD(0), RAD(15)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  1405. 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)
  1406. 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)
  1407. end
  1408. coroutine.resume(coroutine.create(function()
  1409. for i = 1, 25 do
  1410. Swait()
  1411. RING.TopTexture.Transparency = RING.TopTexture.Transparency + 1/25
  1412. RING.BottomTexture.Transparency = RING.BottomTexture.Transparency + 1/25
  1413. MESH.Scale = MESH.Scale - VT(3,0,3)
  1414. end
  1415. RING:remove()
  1416. end))
  1417. GRAV:remove()
  1418. G:remove()
  1419. killmeKILLMENOW()
  1420. ATTACK = false
  1421. Rooted = false
  1422. end
  1423.  
  1424. --//=================================\\
  1425. --|| ASSIGN THINGS TO KEYS
  1426. --\\=================================//
  1427.  
  1428. function MouseDown(Mouse)
  1429. if ATTACK == false then
  1430. end
  1431. end
  1432.  
  1433. function MouseUp(Mouse)
  1434. HOLD = false
  1435. end
  1436.  
  1437. function KeyDown(Key)
  1438. KEYHOLD = true
  1439. if Key == "q" and ATTACK == false and POWER >= 50 then
  1440. POWER = POWER - 50
  1441. PoisonBolt()
  1442. end
  1443.  
  1444. if Key == "r" and ATTACK == false and POWER >= 125 then
  1445. POWER = POWER - 125
  1446. ToxicStomp()
  1447. end
  1448.  
  1449. if Key == "x" and ATTACK == false and POWER >= 250 then
  1450. POWER = POWER - 250
  1451. ToxicDevastation()
  1452. end
  1453.  
  1454. if Key == "p" and ATTACK == false and POWER >= 300 then
  1455. POWER = POWER - 300
  1456. AetheralBlast()
  1457. end
  1458.  
  1459. if Key == "n" and ATTACK == false and POWER >= 300 then
  1460. POWER = POWER - 300
  1461. AetherComet()
  1462. end
  1463.  
  1464. if string.byte(Key) == 48 and ATTACK == false and (POWER ~= MAXPOWER or Humanoid.Health ~= Humanoid.MaxHealth) then
  1465. Charge()
  1466. end
  1467.  
  1468. if string.byte(Key) == 50 and ATTACK == false then
  1469. if Walkspeed == 16 then
  1470. Walkspeed = 100
  1471. Speed = 100
  1472. killmeKILLMENOWjk()
  1473. elseif Walkspeed == 100 then
  1474. Walkspeed = 16
  1475. Speed = 16
  1476. killmeKILLMENOW()
  1477. end
  1478. end
  1479. end
  1480.  
  1481. function KeyUp(Key)
  1482. KEYHOLD = false
  1483. end
  1484.  
  1485. Mouse.Button1Down:connect(function(NEWKEY)
  1486. MouseDown(NEWKEY)
  1487. end)
  1488. Mouse.Button1Up:connect(function(NEWKEY)
  1489. MouseUp(NEWKEY)
  1490. end)
  1491. Mouse.KeyDown:connect(function(NEWKEY)
  1492. KeyDown(NEWKEY)
  1493. end)
  1494. Mouse.KeyUp:connect(function(NEWKEY)
  1495. KeyUp(NEWKEY)
  1496. end)
  1497.  
  1498. --//=================================\\
  1499. --\\=================================//
  1500.  
  1501.  
  1502. function unanchor()
  1503. if UNANCHOR == true then
  1504. g = Character:GetChildren()
  1505. for i = 1, #g do
  1506. if g[i].ClassName == "Part" then
  1507. g[i].Anchored = false
  1508. end
  1509. end
  1510. end
  1511. end
  1512.  
  1513.  
  1514. --//=================================\\
  1515. --|| WRAP THE WHOLE SCRIPT UP
  1516. --\\=================================//
  1517.  
  1518. Humanoid.Changed:connect(function(Jump)
  1519. if Jump == "Jump" and (Disable_Jump == true) then
  1520. Humanoid.Jump = false
  1521. end
  1522. end)
  1523.  
  1524. while true do
  1525. Swait()
  1526. script.Parent = WEAPONGUI
  1527. ANIMATE.Parent = nil
  1528. for _,v in next, Humanoid:GetPlayingAnimationTracks() do
  1529. v:Stop();
  1530. end
  1531. SINE = SINE + CHANGE
  1532. local TORSOVELOCITY = (RootPart.Velocity * VT(1, 0, 1)).magnitude
  1533. local TORSOVERTICALVELOCITY = RootPart.Velocity.y
  1534. local HITFLOOR = Raycast(RootPart.Position, (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 4, Character)
  1535. local WALKSPEEDVALUE = 5
  1536. if ANIM == "Walk" and TORSOVELOCITY > 1 then
  1537. if Humanoid.WalkSpeed <= 20 then
  1538. 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)
  1539. 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)
  1540. 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)
  1541. 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)
  1542. else
  1543. 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)
  1544. 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)
  1545. 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)
  1546. 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)
  1547. end
  1548. elseif (ANIM ~= "Walk") or (TORSOVELOCITY < 1) then
  1549. RootJoint.C1 = Clerp(RootJoint.C1, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1550. 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)
  1551. 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)
  1552. 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)
  1553. end
  1554. if TORSOVERTICALVELOCITY > 1 and HITFLOOR == nil then
  1555. ANIM = "Jump"
  1556. if ATTACK == false then
  1557. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1558. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-20), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1559. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(-40), RAD(0), RAD(20)) * RIGHTSHOULDERC0, 0.2 / Animation_Speed)
  1560. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-40), RAD(0), RAD(-20)) * LEFTSHOULDERC0, 0.2 / Animation_Speed)
  1561. 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)
  1562. 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)
  1563. end
  1564. elseif TORSOVERTICALVELOCITY < -1 and HITFLOOR == nil then
  1565. ANIM = "Fall"
  1566. if ATTACK == false then
  1567. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 ) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1568. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0 , 0 + ((1) - 1)) * ANGLES(RAD(20), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1569. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(60)) * RIGHTSHOULDERC0, 0.2 / Animation_Speed)
  1570. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-60)) * LEFTSHOULDERC0, 0.2 / Animation_Speed)
  1571. 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)
  1572. 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)
  1573. end
  1574. elseif TORSOVELOCITY < 1 and HITFLOOR ~= nil then
  1575. ANIM = "Idle"
  1576. if ATTACK == false then
  1577. 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)
  1578. 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)
  1579. 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)
  1580. 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)
  1581. 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)
  1582. 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)
  1583. end
  1584. elseif TORSOVELOCITY > 1 and HITFLOOR ~= nil then
  1585. ANIM = "Walk"
  1586. if ATTACK == false then
  1587. if Humanoid.WalkSpeed <= 20 then
  1588. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -0.1) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1589. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1590. 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)
  1591. 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)
  1592. 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)
  1593. 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)
  1594. elseif Humanoid.WalkSpeed > 20 then
  1595. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -0.1) * ANGLES(RAD(35), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1596. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-35), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1597. 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)
  1598. 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)
  1599. 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)
  1600. 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)
  1601. end
  1602. end
  1603. end
  1604. unanchor()
  1605. if Rooted == false then
  1606. Disable_Jump = false
  1607. Humanoid.WalkSpeed = Speed
  1608. elseif Rooted == true then
  1609. Disable_Jump = true
  1610. Humanoid.WalkSpeed = 0
  1611. end
  1612. sick.SoundId = "rbxassetid://598848368"
  1613. sick.Looped = true
  1614. sick.Pitch = 1
  1615. sick.Volume = 3
  1616. sick.Parent = Torso
  1617. sick.Playing = true
  1618. MANACOVER:TweenSize(UD2(1 * (POWER / MAXPOWER), 0, 1, 0), "Out", "Quad", 0.1, 0.1)
  1619. MANATEXT.Text = POWER.."/"..MAXPOWER
  1620. HEALTHCOVER:TweenSize(UD2(1 * (Humanoid.Health / Humanoid.MaxHealth), 0, 1, 0), "Out", "Quad", 0.1, 0.1)
  1621. HEALTHTEXT.Text = math.ceil(Humanoid.Health).."/"..Humanoid.MaxHealth
  1622. Humanoid.Health = Humanoid.Health + 0.05
  1623. end
  1624.  
  1625. --//=================================\\
  1626. --\\=================================//
  1627.  
  1628.  
  1629.  
  1630.  
  1631.  
  1632. --//====================================================\\--
  1633. --|| END OF SCRIPT
  1634. --\\====================================================//--
Add Comment
Please, Sign In to add comment