PerpetualZblack

Untitled

Mar 22nd, 2019
143
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 231.34 KB | None | 0 0
  1. --https://github.com/Mokiros/roblox-FE-compatibility
  2. if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
  3. local Player,Mouse,mouse,UserInputService,ContextActionService = owner
  4. local RealPlayer = Player
  5. do print("FE Compatibility code by Mokiros")local a=RealPlayer;script.Parent=a.Character;local b=Instance.new("RemoteEvent")b.Name="UserInput_Event"local function c()local d={_fakeEvent=true,Functions={},Connect=function(self,e)table.insert(self.Functions,e)end}d.connect=d.Connect;return d end;local f={Target=nil,Hit=CFrame.new(),KeyUp=c(),KeyDown=c(),Button1Up=c(),Button1Down=c(),Button2Up=c(),Button2Down=c()}local g={InputBegan=c(),InputEnded=c()}local CAS={Actions={},BindAction=function(self,h,i,j,...)CAS.Actions[h]=i and{Name=h,Function=i,Keys={...}}or nil end}CAS.UnbindAction=CAS.BindAction;local function k(self,l,...)local d=f[l]if d and d._fakeEvent then for m,e in pairs(d.Functions)do e(...)end end end;f.TrigEvent=k;g.TrigEvent=k;b.OnServerEvent:Connect(function(n,o)if n~=a then return end;f.Target=o.Target;f.Hit=o.Hit;if not o.isMouse then local p=o.UserInputState==Enum.UserInputState.Begin;if o.UserInputType==Enum.UserInputType.MouseButton1 then return f:TrigEvent(p and"Button1Down"or"Button1Up")end;if o.UserInputType==Enum.UserInputType.MouseButton2 then return f:TrigEvent(p and"Button2Down"or"Button2Up")end;for m,d in pairs(CAS.Actions)do for m,q in pairs(d.Keys)do if q==o.KeyCode then d.Function(d.Name,o.UserInputState,o)end end end;f:TrigEvent(p and"KeyDown"or"KeyUp",o.KeyCode.Name:lower())g:TrigEvent(p and"InputBegan"or"InputEnded",o,false)end end)b.Parent=NLS([==[local a=game:GetService("Players").LocalPlayer;local b=script:WaitForChild("UserInput_Event")local c=a:GetMouse()local d=game:GetService("UserInputService")local e=function(f,g)if g then return end;b:FireServer({KeyCode=f.KeyCode,UserInputType=f.UserInputType,UserInputState=f.UserInputState,Hit=c.Hit,Target=c.Target})end;d.InputBegan:Connect(e)d.InputEnded:Connect(e)local h,i;while wait(1/30)do if h~=c.Hit or i~=c.Target then h,i=c.Hit,c.Target;b:FireServer({isMouse=true,Target=i,Hit=h})end end]==],Player.Character)local r=game;local s={__index=function(self,q)local t=rawget(self,"_RealService")if t then return typeof(t[q])=="function"and function(m,...)return t[q](t,...)end or t[q]end end,__newindex=function(self,q,u)local t=rawget(self,"_RealService")if t then t[q]=u end end}local function v(d,w)d._RealService=typeof(w)=="string"and r:GetService(w)or w;return setmetatable(d,s)end;local x={GetService=function(self,t)return rawget(self,t)or r:GetService(t)end,Players=v({LocalPlayer=v({GetMouse=function(self)return f end},Player)},"Players"),UserInputService=v(g,"UserInputService"),ContextActionService=v(CAS,"ContextActionService"),RunService=v({_btrs={},RenderStepped=r:GetService("RunService").Heartbeat,BindToRenderStep=function(self,h,m,i)self._btrs[h]=self.Heartbeat:Connect(i)end,UnbindFromRenderStep=function(self,h)self._btrs[h]:Disconnect()end},"RunService")}rawset(x.Players,"localPlayer",x.Players.LocalPlayer)x.service=x.GetService;v(x,game)game,owner=x,x.Players.LocalPlayer end
  6. Character = game.Players.LocalPlayer.Character
  7. Head = Character.Head
  8.  
  9. --Converted with ttyyuu12345's model to script plugin v4
  10. function sandbox(var,func)
  11. local env = getfenv(func)
  12. local newenv = setmetatable({},{
  13. __index = function(self,k)
  14. if k=="script" then
  15. return var
  16. else
  17. return env[k]
  18. end
  19. end,
  20. })
  21. setfenv(func,newenv)
  22. return func
  23. end
  24. cors = {}
  25. mas = Instance.new("Model",game:GetService("Lighting"))
  26. LocalScript0 = Instance.new("LocalScript")
  27. ParticleEmitter1 = Instance.new("ParticleEmitter")
  28. ParticleEmitter2 = Instance.new("ParticleEmitter")
  29. ParticleEmitter3 = Instance.new("ParticleEmitter")
  30. ParticleEmitter4 = Instance.new("ParticleEmitter")
  31. ParticleEmitter5 = Instance.new("ParticleEmitter")
  32. ParticleEmitter6 = Instance.new("ParticleEmitter")
  33. ParticleEmitter7 = Instance.new("ParticleEmitter")
  34. ParticleEmitter8 = Instance.new("ParticleEmitter")
  35. LocalScript9 = Instance.new("LocalScript")
  36. NumberValue10 = Instance.new("NumberValue")
  37. NumberValue11 = Instance.new("NumberValue")
  38. BoolValue12 = Instance.new("BoolValue")
  39. ParticleEmitter13 = Instance.new("ParticleEmitter")
  40. ParticleEmitter14 = Instance.new("ParticleEmitter")
  41. ParticleEmitter15 = Instance.new("ParticleEmitter")
  42. ParticleEmitter16 = Instance.new("ParticleEmitter")
  43. ParticleEmitter17 = Instance.new("ParticleEmitter")
  44. ParticleEmitter18 = Instance.new("ParticleEmitter")
  45. ParticleEmitter19 = Instance.new("ParticleEmitter")
  46. ParticleEmitter20 = Instance.new("ParticleEmitter")
  47. ParticleEmitter21 = Instance.new("ParticleEmitter")
  48. ParticleEmitter22 = Instance.new("ParticleEmitter")
  49. LocalScript0.Name = "WarPheonix"
  50. LocalScript0.Parent = mas
  51. table.insert(cors,sandbox(LocalScript0,function()
  52.  
  53. wait(0.2)
  54. Player = game:GetService("Players").LocalPlayer
  55. PlayerGui = Player.PlayerGui
  56. Cam = workspace.CurrentCamera
  57. Backpack = Player.Backpack
  58. Character = Player.Character
  59. Humanoid = Character.Humanoid
  60. Mouse = Player:GetMouse()
  61. RootPart = Character.HumanoidRootPart
  62. Torso = Character.Torso
  63. Head = Character.Head
  64. RightArm = Character["Right Arm"]
  65. LeftArm = Character["Left Arm"]
  66. RightLeg = Character["Right Leg"]
  67. LeftLeg = Character["Left Leg"]
  68. RootJoint = RootPart.RootJoint
  69. Neck = Torso.Neck
  70. RightShoulder = Torso["Right Shoulder"]
  71. LeftShoulder = Torso["Left Shoulder"]
  72. RightHip = Torso["Right Hip"]
  73. LeftHip = Torso["Left Hip"]
  74. local sick = Instance.new("Sound", Character)
  75. sick.SoundId = "rbxassetid://1604456093"
  76. sick.Looped = true
  77. IT = Instance.new
  78. CF = CFrame.new
  79. VT = Vector3.new
  80. RAD = math.rad
  81. C3 = Color3.new
  82. UD2 = UDim2.new
  83. BRICKC = BrickColor.new
  84. ANGLES = CFrame.Angles
  85. EULER = CFrame.fromEulerAnglesXYZ
  86. COS = math.cos
  87. ACOS = math.acos
  88. SIN = math.sin
  89. ASIN = math.asin
  90. ABS = math.abs
  91. MRANDOM = math.random
  92. FLOOR = math.floor
  93.  
  94. local naeeym2 = Instance.new("BillboardGui",Character)
  95. naeeym2.AlwaysOnTop = true
  96. naeeym2.Size = UDim2.new(5,35,2,35)
  97. naeeym2.StudsOffset = Vector3.new(0,4.5,0)
  98. naeeym2.Adornee = Character.Head
  99. naeeym2.Name = "Name"
  100. naeeym2.MaxDistance = 200
  101. local tecks2 = Instance.new("TextLabel",naeeym2)
  102. tecks2.BackgroundTransparency = 1
  103. tecks2.TextScaled = true
  104. tecks2.BorderSizePixel = 0
  105. tecks2.Text = "The War Phoenix"
  106. tecks2.Font = "Fantasy"
  107. tecks2.TextSize = 48
  108. tecks2.TextStrokeTransparency = 0
  109. tecks2.TextColor3 = Color3.new(255,255,255)
  110. tecks2.TextStrokeColor3 = Color3.new(188/255, 155/255, 93/255)
  111. tecks2.Size = UDim2.new(1,0,0.5,0)
  112. tecks2.Parent = naeeym2
  113.  
  114. local naeeym3 = Instance.new("BillboardGui",Character)
  115. naeeym3.AlwaysOnTop = true
  116. naeeym3.Size = UDim2.new(5,35,2,35)
  117. naeeym3.StudsOffset = Vector3.new(0,3,0)
  118. naeeym3.Adornee = Character.Head
  119. naeeym3.Name = "Name"
  120. naeeym3.MaxDistance = 200
  121. local tecks3 = Instance.new("TextLabel",naeeym2)
  122. tecks3.BackgroundTransparency = 1
  123. tecks3.TextScaled = true
  124. tecks3.BorderSizePixel = 0
  125. tecks3.Text = Player.Name
  126. tecks3.Font = "Fantasy"
  127. tecks3.TextSize = 32
  128. tecks3.TextStrokeTransparency = 1
  129. tecks3.TextColor3 = Color3.new(125/255,125/255,125/255)
  130. tecks3.TextStrokeColor3 = Color3.new(125/255,125/255,125/255)
  131. tecks3.Size = UDim2.new(1,0,0.5,0)
  132. tecks3.Parent = naeeym3
  133.  
  134.  
  135. Animation_Speed = 3
  136. Frame_Speed = 0.016666666666666666
  137. local Speed = 16
  138. local ROOTC0 = CF(0, 0, 0) * ANGLES(RAD(-90), RAD(0), RAD(180))
  139. local NECKC0 = CF(0, 1, 0) * ANGLES(RAD(-90), RAD(0), RAD(180))
  140. local RIGHTSHOULDERC0 = CF(-0.5, 0, 0) * ANGLES(RAD(0), RAD(90), RAD(0))
  141. local LEFTSHOULDERC0 = CF(0.5, 0, 0) * ANGLES(RAD(0), RAD(-90), RAD(0))
  142. local DAMAGEMULTIPLIER = 1
  143. local ANIM = "Idle"
  144. local ATTACK = false
  145. local EQUIPPED = false
  146. local HOLD = false
  147. local COMBO = 1
  148. local Rooted = false
  149. local SINE = 0
  150. local KEYHOLD = false
  151. local CHANGE = 2 / Animation_Speed
  152. local WALKINGANIM = false
  153. local VALUE1 = false
  154. local VALUE2 = false
  155. local ROBLOXIDLEANIMATION = IT("Animation")
  156. ROBLOXIDLEANIMATION.Name = "Roblox Idle Animation"
  157. ROBLOXIDLEANIMATION.AnimationId = "http://www.roblox.com/asset/?id=180435571"
  158. local WEAPONGUI = IT("ScreenGui", PlayerGui)
  159. WEAPONGUI.Name = "Weapon GUI"
  160. local Effects = IT("Folder", Character)
  161. Effects.Name = "Effects"
  162. local ANIMATOR = Humanoid.Animator
  163. local ANIMATE = Character.Animate
  164. local UNANCHOR = true
  165. local FLIGHT = false
  166. local BODYPOS, GYRO, FLIGHTRING
  167. local PARTICLES = false
  168. local WINGS = false
  169. local APPLYGYRO = true
  170. local DIRECTTURN = false
  171. local PHEONIXCOLOR = C3(0.9, 0.9, 0.9)
  172. ArtificialHB = Instance.new("BindableEvent", script)
  173. ArtificialHB.Name = "ArtificialHB"
  174. script:WaitForChild("ArtificialHB")
  175. frame = Frame_Speed
  176. tf = 0
  177. allowframeloss = false
  178. tossremainder = false
  179. lastframe = tick()
  180. script.ArtificialHB:Fire()
  181. game:GetService("RunService").Heartbeat:connect(function(s, p)
  182. tf = tf + s
  183. if tf >= frame then
  184. if allowframeloss then
  185. script.ArtificialHB:Fire()
  186. lastframe = tick()
  187. else
  188. for i = 1, math.floor(tf / frame) do
  189. script.ArtificialHB:Fire()
  190. end
  191. lastframe = tick()
  192. end
  193. if tossremainder then
  194. tf = 0
  195. else
  196. tf = tf - frame * math.floor(tf / frame)
  197. end
  198. end
  199. end)
  200. function Raycast(POSITION, DIRECTION, RANGE, IGNOREDECENDANTS)
  201. return workspace:FindPartOnRay(Ray.new(POSITION, DIRECTION.unit * RANGE), IGNOREDECENDANTS)
  202. end
  203. function PositiveAngle(NUMBER)
  204. if NUMBER >= 0 then
  205. NUMBER = 0
  206. end
  207. return NUMBER
  208. end
  209. function NegativeAngle(NUMBER)
  210. if NUMBER <= 0 then
  211. NUMBER = 0
  212. end
  213. return NUMBER
  214. end
  215. function Swait(NUMBER)
  216. if NUMBER == 0 or NUMBER == nil then
  217. ArtificialHB.Event:wait()
  218. else
  219. for i = 1, NUMBER do
  220. ArtificialHB.Event:wait()
  221. end
  222. end
  223. end
  224. function CreateMesh(MESH, PARENT, MESHTYPE, MESHID, TEXTUREID, SCALE, OFFSET)
  225. local NEWMESH = IT(MESH)
  226. if MESH == "SpecialMesh" then
  227. NEWMESH.MeshType = MESHTYPE
  228. if MESHID ~= "nil" and MESHID ~= "" then
  229. NEWMESH.MeshId = "http://www.roblox.com/asset/?id=" .. MESHID
  230. end
  231. if TEXTUREID ~= "nil" and TEXTUREID ~= "" then
  232. NEWMESH.TextureId = "http://www.roblox.com/asset/?id=" .. TEXTUREID
  233. end
  234. end
  235. NEWMESH.Offset = OFFSET or VT(0, 0, 0)
  236. NEWMESH.Scale = SCALE
  237. NEWMESH.Parent = PARENT
  238. return NEWMESH
  239. end
  240. function CreatePart(FORMFACTOR, PARENT, MATERIAL, REFLECTANCE, TRANSPARENCY, BRICKCOLOR, NAME, SIZE, ANCHOR)
  241. local NEWPART = IT("Part")
  242. NEWPART.formFactor = FORMFACTOR
  243. NEWPART.Reflectance = REFLECTANCE
  244. NEWPART.Transparency = TRANSPARENCY
  245. NEWPART.CanCollide = false
  246. NEWPART.Locked = true
  247. NEWPART.Anchored = true
  248. if ANCHOR == false then
  249. NEWPART.Anchored = false
  250. end
  251. NEWPART.BrickColor = BRICKC(tostring(BRICKCOLOR))
  252. NEWPART.Name = NAME
  253. NEWPART.Size = SIZE
  254. NEWPART.Position = Torso.Position
  255. NEWPART.Material = MATERIAL
  256. NEWPART:BreakJoints()
  257. NEWPART.Parent = PARENT
  258. return NEWPART
  259. end
  260. local weldBetween = function(a, b)
  261. local weldd = Instance.new("ManualWeld")
  262. weldd.Part0 = a
  263. weldd.Part1 = b
  264. weldd.C0 = CFrame.new()
  265. weldd.C1 = b.CFrame:inverse() * a.CFrame
  266. weldd.Parent = a
  267. return weldd
  268. end
  269. function QuaternionFromCFrame(cf)
  270. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  271. local trace = m00 + m11 + m22
  272. if trace > 0 then
  273. local s = math.sqrt(1 + trace)
  274. local recip = 0.5 / s
  275. return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5
  276. else
  277. local i = 0
  278. if m00 < m11 then
  279. i = 1
  280. end
  281. if m22 > (i == 0 and m00 or m11) then
  282. i = 2
  283. end
  284. if i == 0 then
  285. local s = math.sqrt(m00 - m11 - m22 + 1)
  286. local recip = 0.5 / s
  287. return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip
  288. elseif i == 1 then
  289. local s = math.sqrt(m11 - m22 - m00 + 1)
  290. local recip = 0.5 / s
  291. return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip
  292. elseif i == 2 then
  293. local s = math.sqrt(m22 - m00 - m11 + 1)
  294. local recip = 0.5 / s
  295. return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip
  296. end
  297. end
  298. end
  299. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  300. local xs, ys, zs = x + x, y + y, z + z
  301. local wx, wy, wz = w * xs, w * ys, w * zs
  302. local xx = x * xs
  303. local xy = x * ys
  304. local xz = x * zs
  305. local yy = y * ys
  306. local yz = y * zs
  307. local zz = z * zs
  308. 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))
  309. end
  310. function QuaternionSlerp(a, b, t)
  311. local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4]
  312. local startInterp, finishInterp
  313. if cosTheta >= 1.0E-4 then
  314. if 1 - cosTheta > 1.0E-4 then
  315. local theta = ACOS(cosTheta)
  316. local invSinTheta = 1 / SIN(theta)
  317. startInterp = SIN((1 - t) * theta) * invSinTheta
  318. finishInterp = SIN(t * theta) * invSinTheta
  319. else
  320. startInterp = 1 - t
  321. finishInterp = t
  322. end
  323. elseif 1 + cosTheta > 1.0E-4 then
  324. local theta = ACOS(-cosTheta)
  325. local invSinTheta = 1 / SIN(theta)
  326. startInterp = SIN((t - 1) * theta) * invSinTheta
  327. finishInterp = SIN(t * theta) * invSinTheta
  328. else
  329. startInterp = t - 1
  330. finishInterp = t
  331. end
  332. 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
  333. end
  334. function Clerp(a, b, t)
  335. local qa = {
  336. QuaternionFromCFrame(a)
  337. }
  338. local qb = {
  339. QuaternionFromCFrame(b)
  340. }
  341. local ax, ay, az = a.x, a.y, a.z
  342. local bx, by, bz = b.x, b.y, b.z
  343. local _t = 1 - t
  344. return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t))
  345. end
  346. function CreateFrame(PARENT, TRANSPARENCY, BORDERSIZEPIXEL, POSITION, SIZE, COLOR, BORDERCOLOR, NAME)
  347. local frame = IT("Frame")
  348. frame.BackgroundTransparency = TRANSPARENCY
  349. frame.BorderSizePixel = BORDERSIZEPIXEL
  350. frame.Position = POSITION
  351. frame.Size = SIZE
  352. frame.BackgroundColor3 = COLOR
  353. frame.BorderColor3 = BORDERCOLOR
  354. frame.Name = NAME
  355. frame.Parent = PARENT
  356. return frame
  357. end
  358. function CreateLabel(PARENT, TEXT, TEXTCOLOR, TEXTFONTSIZE, TEXTFONT, TRANSPARENCY, BORDERSIZEPIXEL, STROKETRANSPARENCY, NAME)
  359. local label = IT("TextLabel")
  360. label.BackgroundTransparency = 1
  361. label.Size = UD2(1, 0, 1, 0)
  362. label.Position = UD2(0, 0, 0, 0)
  363. label.TextColor3 = TEXTCOLOR
  364. label.TextStrokeTransparency = STROKETRANSPARENCY
  365. label.TextTransparency = TRANSPARENCY
  366. label.FontSize = TEXTFONTSIZE
  367. label.Font = TEXTFONT
  368. label.BorderSizePixel = BORDERSIZEPIXEL
  369. label.TextScaled = false
  370. label.Text = TEXT
  371. label.Name = NAME
  372. label.Parent = PARENT
  373. return label
  374. end
  375. function NoOutlines(PART)
  376. PART.TopSurface, PART.BottomSurface, PART.LeftSurface, PART.RightSurface, PART.FrontSurface, PART.BackSurface = 10, 10, 10, 10, 10, 10
  377. end
  378. function CreateWeldOrSnapOrMotor(TYPE, PARENT, PART0, PART1, C0, C1)
  379. local NEWWELD = IT(TYPE)
  380. NEWWELD.Part0 = PART0
  381. NEWWELD.Part1 = PART1
  382. NEWWELD.C0 = C0
  383. NEWWELD.C1 = C1
  384. NEWWELD.Parent = PARENT
  385. return NEWWELD
  386. end
  387. local S = IT("Sound")
  388. function CreateSound(ID, PARENT, VOLUME, PITCH, DOESLOOP)
  389. local NEWSOUND
  390. coroutine.resume(coroutine.create(function()
  391. NEWSOUND = S:Clone()
  392. NEWSOUND.Parent = PARENT
  393. NEWSOUND.Volume = VOLUME
  394. NEWSOUND.Pitch = PITCH
  395. NEWSOUND.SoundId = "http://www.roblox.com/asset/?id=" .. ID
  396. NEWSOUND:play()
  397. if DOESLOOP == true then
  398. NEWSOUND.Looped = true
  399. else
  400. repeat
  401. wait(1)
  402. until NEWSOUND.Playing == false
  403. NEWSOUND:remove()
  404. end
  405. end))
  406. return NEWSOUND
  407. end
  408. function CFrameFromTopBack(at, top, back)
  409. local right = top:Cross(back)
  410. 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)
  411. end
  412. function WACKYEFFECT(Table)
  413. local TYPE = Table.EffectType or "Sphere"
  414. local SIZE = Table.Size or VT(1, 1, 1)
  415. local ENDSIZE = Table.Size2 or VT(0, 0, 0)
  416. local TRANSPARENCY = Table.Transparency or 0
  417. local ENDTRANSPARENCY = Table.Transparency2 or 1
  418. local CFRAME = Table.CFrame or Torso.CFrame
  419. local MOVEDIRECTION = Table.MoveToPos or nil
  420. local ROTATION1 = Table.RotationX or 0
  421. local ROTATION2 = Table.RotationY or 0
  422. local ROTATION3 = Table.RotationZ or 0
  423. local MATERIAL = Table.Material or "Neon"
  424. local COLOR = Table.Color or C3(1, 1, 1)
  425. local TIME = Table.Time or 45
  426. local SOUNDID = Table.SoundID or nil
  427. local SOUNDPITCH = Table.SoundPitch or nil
  428. local SOUNDVOLUME = Table.SoundVolume or nil
  429. coroutine.resume(coroutine.create(function()
  430. local PLAYSSOUND = false
  431. local SOUND
  432. local EFFECT = CreatePart(3, Effects, MATERIAL, 0, TRANSPARENCY, BRICKC("Pearl"), "Effect", VT(1, 1, 1), true)
  433. if SOUNDID ~= nil and SOUNDPITCH ~= nil and SOUNDVOLUME ~= nil then
  434. PLAYSSOUND = true
  435. SOUND = CreateSound(SOUNDID, EFFECT, SOUNDVOLUME, SOUNDPITCH, false)
  436. end
  437. EFFECT.Color = COLOR
  438. local MSH
  439. if TYPE == "Sphere" then
  440. MSH = CreateMesh("SpecialMesh", EFFECT, "Sphere", "", "", SIZE, VT(0, 0, 0))
  441. elseif TYPE == "Block" then
  442. MSH = IT("BlockMesh", EFFECT)
  443. MSH.Scale = VT(SIZE.X, SIZE.X, SIZE.X)
  444. elseif TYPE == "Wave" then
  445. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "20329976", "", SIZE, VT(0, 0, -SIZE.X / 8))
  446. elseif TYPE == "Ring" then
  447. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "559831844", "", VT(SIZE.X, SIZE.X, 0.1), VT(0, 0, 0))
  448. elseif TYPE == "Slash" then
  449. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662586858", "", VT(SIZE.X / 10, 0, SIZE.X / 10), VT(0, 0, 0))
  450. elseif TYPE == "Round Slash" then
  451. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662585058", "", VT(SIZE.X / 10, 0, SIZE.X / 10), VT(0, 0, 0))
  452. elseif TYPE == "Swirl" then
  453. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "1051557", "", SIZE, VT(0, 0, 0))
  454. elseif TYPE == "Skull" then
  455. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "4770583", "", SIZE, VT(0, 0, 0))
  456. elseif TYPE == "Crystal" then
  457. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "9756362", "", SIZE, VT(0, 0, 0))
  458. end
  459. if MSH ~= nil then
  460. local MOVESPEED
  461. if MOVEDIRECTION ~= nil then
  462. MOVESPEED = (CFRAME.p - MOVEDIRECTION).Magnitude / TIME
  463. end
  464. local GROWTH = SIZE - ENDSIZE
  465. local TRANS = TRANSPARENCY - ENDTRANSPARENCY
  466. if TYPE == "Block" then
  467. EFFECT.CFrame = CFRAME * ANGLES(RAD(MRANDOM(0, 360)), RAD(MRANDOM(0, 360)), RAD(MRANDOM(0, 360)))
  468. else
  469. EFFECT.CFrame = CFRAME
  470. end
  471. for LOOP = 1, TIME + 1 do
  472. Swait()
  473. MSH.Scale = MSH.Scale - GROWTH / TIME
  474. if TYPE == "Wave" then
  475. MSH.Offset = VT(0, 0, -MSH.Scale.X / 8)
  476. end
  477. EFFECT.Transparency = EFFECT.Transparency - TRANS / TIME
  478. if TYPE == "Block" then
  479. EFFECT.CFrame = CFRAME * ANGLES(RAD(MRANDOM(0, 360)), RAD(MRANDOM(0, 360)), RAD(MRANDOM(0, 360)))
  480. else
  481. EFFECT.CFrame = EFFECT.CFrame * ANGLES(RAD(ROTATION1), RAD(ROTATION2), RAD(ROTATION3))
  482. end
  483. if MOVEDIRECTION ~= nil then
  484. local ORI = EFFECT.Orientation
  485. EFFECT.CFrame = CF(EFFECT.Position, MOVEDIRECTION) * CF(0, 0, -MOVESPEED)
  486. EFFECT.Orientation = ORI
  487. end
  488. end
  489. if PLAYSSOUND == false then
  490. EFFECT:remove()
  491. else
  492. repeat
  493. Swait()
  494. until SOUND.Playing == false
  495. EFFECT:remove()
  496. end
  497. elseif PLAYSSOUND == false then
  498. EFFECT:remove()
  499. else
  500. repeat
  501. Swait()
  502. until SOUND.Playing == false
  503. EFFECT:remove()
  504. end
  505. end))
  506. end
  507. function MakeForm(PART, TYPE)
  508. if TYPE == "Cyl" then
  509. local MSH = IT("CylinderMesh", PART)
  510. elseif TYPE == "Ball" then
  511. local MSH = IT("SpecialMesh", PART)
  512. MSH.MeshType = "Sphere"
  513. elseif TYPE == "Wedge" then
  514. local MSH = IT("SpecialMesh", PART)
  515. MSH.MeshType = "Wedge"
  516. end
  517. end
  518. Debris = game:GetService("Debris")
  519. function CastProperRay(StartPos, EndPos, Distance, Ignore)
  520. local DIRECTION = CF(StartPos, EndPos).lookVector
  521. return Raycast(StartPos, DIRECTION, Distance, Ignore)
  522. end
  523. function turnto(position)
  524. RootPart.CFrame = CFrame.new(RootPart.CFrame.p, VT(position.X, RootPart.Position.Y, position.Z)) * CFrame.new(0, 0, 0)
  525. end
  526. local DECAL = IT("Decal", nil)
  527. function MagicRing(PART, CFRAME, VARIANT)
  528. if VARIANT == "Pheonix" or VARIANT == "Sun" or VARIANT == "Fire" then
  529. local RING = CreatePart(3, Effects, "Granite", 0, 1, "Maroon", "MagicRing", VT(0, 0, 0), false)
  530. local WELD = CreateWeldOrSnapOrMotor("Weld", PART, PART, RING, CFRAME, CF(0, 0, 0))
  531. local MESH = IT("BlockMesh", RING)
  532. local BOTTOMTEXTURE = DECAL:Clone()
  533. BOTTOMTEXTURE.Parent = RING
  534. BOTTOMTEXTURE.Face = "Bottom"
  535. BOTTOMTEXTURE.Name = "BottomTexture"
  536. local TOPTEXTURE = DECAL:Clone()
  537. TOPTEXTURE.Parent = RING
  538. TOPTEXTURE.Face = "Top"
  539. TOPTEXTURE.Name = "TopTexture"
  540. local T = script.RingEmit:Clone()
  541. T.Parent = RING
  542. local LIGHT = IT("PointLight", RING)
  543. if VARIANT == "Pheonix" then
  544. BOTTOMTEXTURE.Texture = "http://www.roblox.com/asset/?id=1617574752"
  545. TOPTEXTURE.Texture = "http://www.roblox.com/asset/?id=1617575377"
  546. T.Color = ColorSequence.new(PHEONIXCOLOR)
  547. CreateSound(462809305, RING, 5, 1, false)
  548. elseif VARIANT == "Sun" then
  549. BOTTOMTEXTURE.Texture = "http://www.roblox.com/asset/?id=1217786509"
  550. TOPTEXTURE.Texture = "http://www.roblox.com/asset/?id=1217788749"
  551. T.Color = ColorSequence.new(BRICKC("Bright orange").Color)
  552. CreateSound(462809305, RING, 5, 1, false)
  553. LIGHT.Color = BRICKC("Bright orange").Color
  554. elseif VARIANT == "Fire" then
  555. BOTTOMTEXTURE.Texture = "http://www.roblox.com/asset/?id=1222222911"
  556. TOPTEXTURE.Texture = "http://www.roblox.com/asset/?id=1222223218"
  557. T.Color = ColorSequence.new(BRICKC("Bright orange").Color)
  558. CreateSound(343211019, RING, 5, 1, false)
  559. LIGHT.Color = C3(1, 0.3333333333333333, 0)
  560. end
  561. T.LightEmission = 1
  562. T:Emit(5)
  563. Debris:AddItem(T, 5)
  564. return RING, WELD, MESH
  565. end
  566. end
  567. function AddChildrenToTable(FROM, PARENT, DIST, TABLE)
  568. for _, c in pairs(PARENT:GetDescendants()) do
  569. if c.ClassName == "Model" and c ~= Character and c:FindFirstChildOfClass("Humanoid") and (c:FindFirstChild("Torso") or c:FindFirstChild("UpperTorso")) then
  570. local HUMANOID = c:FindFirstChildOfClass("Humanoid")
  571. local TORSO = c:FindFirstChild("Torso") or c:FindFirstChild("UpperTorso")
  572. if DIST > (TORSO.Position - FROM).Magnitude then
  573. table.insert(TABLE, c)
  574. end
  575. end
  576. end
  577. end
  578. local BACKATTACHMENT1 = IT("Attachment", Torso)
  579. BACKATTACHMENT1.Position = VT(0.5, 0.5, 0.75)
  580. local BACKATTACHMENT2 = IT("Attachment", Torso)
  581. BACKATTACHMENT2.Position = VT(-0.5, 0.5, 0.75)
  582. local WINGS1 = script.Wing1
  583. WINGS1.EmissionDirection="Right"
  584. WINGS1.Size=NumberSequence.new(2)
  585. local WINGS1B = script.Wing1B
  586. WINGS1B.EmissionDirection="Right"
  587. WINGS1B.Size=NumberSequence.new(2)
  588. local WINGS2 = script.Wing2
  589. WINGS2.EmissionDirection="Left"
  590. WINGS2.Size=NumberSequence.new(2)
  591. local WINGS2B = script.Wing2B
  592. WINGS2B.EmissionDirection="Left"
  593. WINGS2B.Size=NumberSequence.new(2)
  594. WINGS1.Parent = BACKATTACHMENT1
  595. WINGS1.LockedToPart=true
  596. WINGS1B.Parent = BACKATTACHMENT1
  597. WINGS1B.LockedToPart=true
  598. WINGS2.Parent = BACKATTACHMENT2
  599. WINGS2.LockedToPart=true
  600. WINGS2B.Parent = BACKATTACHMENT2
  601. WINGS2B.LockedToPart=true
  602. local FACEATTACHMENT = IT("Attachment", Head)
  603. FACEATTACHMENT.Position = VT(0.167, 0.272, -0.5)
  604. FACEATTACHMENT.Orientation = VT(0, 35, 0)
  605. local EYE = script.Eye1
  606. EYE.LockedToPart=true
  607. EYE.Parent = FACEATTACHMENT
  608. local EYE2 = script.Eye2
  609. EYE2.Parent = FACEATTACHMENT
  610. EYE2.LockedToPart=true
  611. local TRAIL1 = script.PheonixTrail:Clone()
  612. TRAIL1.LockedToPart=true
  613. TRAIL1.Size=NumberSequence.new(.01)
  614. TRAIL1.Parent = BACKATTACHMENT1
  615. local TRAIL2 = script.PheonixTrail:Clone()
  616. TRAIL2.LockedToPart=true
  617. TRAIL2.Parent = BACKATTACHMENT2
  618. TRAIL2.Size=NumberSequence.new(.01)
  619. local LIGHT = IT("PointLight", FACEATTACHMENT)
  620. LIGHT.Enabled = false
  621. LIGHT.Brightness = 5
  622. LIGHT.Range = 6
  623. Humanoid.Died:connect(function()
  624. ATTACK = true
  625. end)
  626. function ApplyDamage(Humanoid, Damage, TorsoPart, Time, AfterBurn, Variant)
  627. local defence = Instance.new("BoolValue", Humanoid.Parent)
  628. defence.Name = "HitBy" .. Player.Name
  629. game:GetService("Debris"):AddItem(defence, 0.001)
  630. Damage = Damage * DAMAGEMULTIPLIER
  631. if Humanoid.Health ~= 0 then
  632. local CritChance = MRANDOM(1, 100)
  633. if Damage > Humanoid.Health then
  634. Damage = math.ceil(Humanoid.Health)
  635. if Damage == 0 then
  636. Damage = 0.1
  637. end
  638. end
  639. Humanoid.Health = Humanoid.Health - Damage
  640. if AfterBurn == true then
  641. Afterburn(Humanoid, Time, Damage / 5, Variant)
  642. end
  643. end
  644. end
  645. function Afterburn(Human, Time, Damage, Variant)
  646. coroutine.resume(coroutine.create(function()
  647. if Human and (Human.Parent:FindFirstChild("Torso") or Human.Parent:FindFirstChild("UpperTorso")) then
  648. local Torso = Human.Parent:FindFirstChild("Torso") or Human.Parent:FindFirstChild("UpperTorso")
  649. local FIRE
  650. if Variant == "Pheonix" then
  651. FIRE = script.PheonixBurn:Clone()
  652. FIRE.Parent = Torso
  653. FIRE.Enabled = true
  654. elseif Variant == "Sun" then
  655. FIRE = script.SunBurn:Clone()
  656. FIRE.Parent = Torso
  657. FIRE.Enabled = true
  658. elseif Variant == "Fire" then
  659. FIRE = script.Burn:Clone()
  660. FIRE.Parent = Torso
  661. FIRE.Enabled = true
  662. end
  663. for i = 1, Time do
  664. wait(0.5)
  665. Human.Health = Human.Health - Damage
  666. end
  667. wait(0.25)
  668. FIRE.Enabled = false
  669. Debris:AddItem(FIRE, 1.5)
  670. end
  671. end))
  672. end
  673. function ApplyAoE(POSITION, RANGE, MINDMG, MAXDMG, FLING, AFTERBURN, TIME, VARIANT, DOESCAMSHAKE, CAMVALUES)
  674. local CHILDREN = workspace:GetChildren()
  675. for index, CHILD in pairs(CHILDREN) do
  676. if CHILD.ClassName == "Model" and CHILD ~= Character then
  677. local HUM = CHILD:FindFirstChildOfClass("Humanoid")
  678. if HUM then
  679. local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso")
  680. if TORSO and RANGE >= (TORSO.Position - POSITION).Magnitude then
  681. local DMG = MRANDOM(MINDMG, MAXDMG)
  682. ApplyDamage(HUM, DMG, TORSO, TIME, AFTERBURN, VARIANT)
  683. if HUM.MaxHealth == math.huge then
  684. CHILD:BreakJoints()
  685. end
  686. if DOESCAMSHAKE == true then
  687. local CAMSHAKER = script.CamShake:Clone()
  688. CAMSHAKER.Shake.Value = CAMVALUES.SHAKE
  689. CAMSHAKER.Timer.Value = CAMVALUES.TIMER
  690. CAMSHAKER.DoesFade.Value = CAMVALUES.DOESFADE
  691. CAMSHAKER.Parent = CHILD
  692. CAMSHAKER.Disabled = false
  693. end
  694. if FLING > 0 then
  695. for _, c in pairs(CHILD:GetChildren()) do
  696. if c:IsA("BasePart") then
  697. local bv = Instance.new("BodyVelocity")
  698. bv.maxForce = Vector3.new(1000000000, 1000000000, 1000000000)
  699. bv.velocity = CF(POSITION, TORSO.Position).lookVector * FLING
  700. bv.Parent = c
  701. Debris:AddItem(bv, 0.05)
  702. end
  703. end
  704. end
  705. end
  706. end
  707. end
  708. end
  709. end
  710. function ShootingStar()
  711. ATTACK = true
  712. Rooted = false
  713. local GYRO = IT("BodyGyro", RootPart)
  714. GYRO.D = 20
  715. GYRO.P = 4000
  716. GYRO.MaxTorque = VT(0, 40000, 0)
  717. local RING, WELD, MESH = MagicRing(RightArm, CF(0, -1.2, 0), "Sun")
  718. coroutine.resume(coroutine.create(function()
  719. for i = 1, 35 do
  720. Swait()
  721. MESH.Scale = MESH.Scale + VT(2.6, 0, 2.6)
  722. end
  723. end))
  724. for i = 0, 1.8, 0.1 / Animation_Speed do
  725. GYRO.CFrame = CF(RootPart.Position, Mouse.Hit.p)
  726. Swait()
  727. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(74)), 2 / Animation_Speed)
  728. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(20), RAD(0), RAD(-74)), 1 / Animation_Speed)
  729. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.25, 0.5, -0.3) * ANGLES(RAD(90), RAD(0), RAD(74)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  730. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.45, 0.1, -0.3) * ANGLES(RAD(0), RAD(45), RAD(0)) * ANGLES(RAD(165), RAD(0), RAD(0)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  731. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(0), RAD(65), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  732. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  733. end
  734. coroutine.resume(coroutine.create(function()
  735. local POSITION = Mouse.Hit.p
  736. local FIREBALL = CreatePart(3, Effects, "Neon", 0, 1, "New Yeller", "Fire", VT(3, 3, 3))
  737. FIREBALL.CFrame = RightArm.CFrame * CF(0, -3, 0)
  738. local FIRE = script.SunFireball:Clone()
  739. FIRE.Parent = FIREBALL
  740. FIRE.Enabled = true
  741. local EXPLOSION = script.SunExplosion:Clone()
  742. EXPLOSION.Parent = FIREBALL
  743. CreateSound(463598785, FIREBALL, 5, 1, false)
  744. local DISTANCE = (RootPart.Position - POSITION).Magnitude
  745. local FRAME = CF(VT(POSITION.X + MRANDOM(-45, 45) / 3, RootPart.Position.Y, POSITION.Z + MRANDOM(-45, 45) / 3), RootPart.Position + VT(0, 145, 0)) * CF(0, 0, -DISTANCE / 2)
  746. for i = 1, 75 do
  747. Swait()
  748. FIREBALL.CFrame = Clerp(FIREBALL.CFrame, FRAME, 0.5 / Animation_Speed)
  749. end
  750. FIREBALL.CFrame = CF(FIREBALL.Position, POSITION)
  751. for i = 1, 300 do
  752. Swait()
  753. FIREBALL.CFrame = FIREBALL.CFrame * CF(0, 0, -4)
  754. local HITFLOOR, HITPOS = Raycast(FIREBALL.Position, FIREBALL.CFrame.lookVector, 4.2, Character)
  755. if HITFLOOR ~= nil then
  756. FIRE.Enabled = false
  757. EXPLOSION:Emit(500)
  758. CreateSound(416328540, FIREBALL, 5, 1, false)
  759. ApplyAoE(FIREBALL.Position, 75, 25, 35, 65, true, MRANDOM(5, 15), "Sun", true, {
  760. SHAKE = 1,
  761. TIMER = 6,
  762. DOESFADE = true
  763. })
  764. WACKYEFFECT({
  765. EffectType = "Sphere",
  766. Size = VT(0, 0, 0),
  767. Size2 = VT(150, 150, 150),
  768. Transparency = 0,
  769. Transparency2 = 1,
  770. CFrame = CF(FIREBALL.Position),
  771. MoveToPos = nil,
  772. RotationX = 0,
  773. RotationY = 0,
  774. RotationZ = 0,
  775. Material = "Neon",
  776. Color = C3(1, 0.6666666666666666, 0),
  777. SoundID = nil,
  778. SoundPitch = nil,
  779. SoundVolume = nil
  780. })
  781. wait(5)
  782. break
  783. end
  784. end
  785. FIREBALL:remove()
  786. end))
  787. GYRO:remove()
  788. RING.Anchored = true
  789. WELD:remove()
  790. coroutine.resume(coroutine.create(function()
  791. for i = 1, 35 do
  792. Swait()
  793. MESH.Scale = MESH.Scale - VT(2.6, 0, 2.6)
  794. end
  795. RING:remove()
  796. end))
  797. ATTACK = false
  798. Rooted = false
  799. end
  800. function PheonixRage()
  801. ATTACK = true
  802. Rooted = true
  803. local A = false
  804. local B = false
  805. local RING, WELD, MESH = MagicRing(RootPart, CF(0, -3, 0), "Pheonix")
  806. WELD:remove()
  807. RING.Anchored = true
  808. coroutine.resume(coroutine.create(function()
  809. for i = 1, 45 do
  810. Swait()
  811. MESH.Scale = MESH.Scale + VT(15, 0, 15)
  812. end
  813. end))
  814. coroutine.resume(coroutine.create(function()
  815. repeat
  816. Swait()
  817. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  818. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(15 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
  819. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.15, 0.5, -0.5) * ANGLES(RAD(15), RAD(0), RAD(-90)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  820. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.15, 0.25, -0.5) * ANGLES(RAD(-15), RAD(0), RAD(90)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  821. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(70), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 1 / Animation_Speed)
  822. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-70), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 1 / Animation_Speed)
  823. until A == true
  824. repeat
  825. Swait()
  826. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(-25), RAD(0), RAD(0)), 1 / Animation_Speed)
  827. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
  828. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(45)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  829. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-45)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  830. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(-35), RAD(80), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 1 / Animation_Speed)
  831. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(-35), RAD(-80), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 1 / Animation_Speed)
  832. until B == true
  833. for i = 1, 45 do
  834. Swait()
  835. MESH.Scale = MESH.Scale - VT(15, 0, 15)
  836. end
  837. RING:remove()
  838. end))
  839. wait(1)
  840. for i = 1, 4 do
  841. WACKYEFFECT({
  842. EffectType = "Sphere",
  843. Size = VT(45, 45, 45),
  844. Size2 = VT(0, 0, 0),
  845. Transparency = 1,
  846. Transparency2 = 0.8,
  847. CFrame = CF(Torso.Position),
  848. MoveToPos = nil,
  849. RotationX = 0,
  850. RotationY = 0,
  851. RotationZ = 0,
  852. Material = "Neon",
  853. Color = PHEONIXCOLOR,
  854. SoundID = nil,
  855. SoundPitch = nil,
  856. SoundVolume = nil
  857. })
  858. wait(0.5)
  859. end
  860. A = true
  861. ApplyAoE(Torso.Position, 80, 45, 50, 35, true, MRANDOM(12, 16), "Pheonix", true, {
  862. SHAKE = 2,
  863. TIMER = 25,
  864. DOESFADE = true
  865. })
  866. WACKYEFFECT({
  867. Time = 60,
  868. EffectType = "Sphere",
  869. Size = VT(40, 40, 40),
  870. Size2 = VT(140, 140, 140),
  871. Transparency = 0,
  872. Transparency2 = 1,
  873. CFrame = CF(Torso.Position),
  874. MoveToPos = nil,
  875. RotationX = 0,
  876. RotationY = 0,
  877. RotationZ = 0,
  878. Material = "Neon",
  879. Color = C3(1, 0.6666666666666666, 0),
  880. SoundID = nil,
  881. SoundPitch = nil,
  882. SoundVolume = nil
  883. })
  884. WACKYEFFECT({
  885. Time = 60,
  886. EffectType = "Sphere",
  887. Size = VT(50, 50, 50),
  888. Size2 = VT(150, 150, 150),
  889. Transparency = 0.5,
  890. Transparency2 = 1,
  891. CFrame = CF(Torso.Position),
  892. MoveToPos = nil,
  893. RotationX = 0,
  894. RotationY = 0,
  895. RotationZ = 0,
  896. Material = "Neon",
  897. Color = PHEONIXCOLOR,
  898. SoundID = 462692971,
  899. SoundPitch = 0.8,
  900. SoundVolume = 6
  901. })
  902. local EXPLOSION = script.PheonixExplosion1:Clone()
  903. EXPLOSION.Parent = Torso
  904. EXPLOSION.Enabled = true
  905. local EXPLOSION2 = script.PheonixExplosion2:Clone()
  906. EXPLOSION2.Parent = Torso
  907. EXPLOSION2.Enabled = true
  908. wait(0.3)
  909. EXPLOSION.Enabled = false
  910. EXPLOSION2.Enabled = false
  911. Debris:AddItem(EXPLOSION, 5)
  912. Debris:AddItem(EXPLOSION2, 5)
  913. wait(1)
  914. B = true
  915. ATTACK = false
  916. Rooted = false
  917. end
  918. function Breath()
  919. ATTACK = true
  920. local POSITION = IT("BodyPosition", RootPart)
  921. POSITION.Position = RootPart.CFrame * CF(0, 35, 35).p
  922. POSITION.D = 1250
  923. POSITION.P = 40000
  924. POSITION.maxForce = Vector3.new(math.huge, math.huge, math.huge)
  925. WINGS = true
  926. local RING, WELD, MESH = MagicRing(Torso, CF(0, 0.5, 0.6) * ANGLES(RAD(-90), RAD(0), RAD(0)), "Pheonix")
  927. coroutine.resume(coroutine.create(function()
  928. for i = 1, 20 do
  929. Swait()
  930. MESH.Scale = MESH.Scale + VT(4, 0, 4)
  931. end
  932. end))
  933. for i = 1, 25 do
  934. Swait()
  935. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(-14.4 * i), RAD(0), RAD(0)), 1 / Animation_Speed)
  936. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(-20), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  937. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.25, 0.5, -1) * ANGLES(RAD(0), RAD(0), RAD(-90)) * RIGHTSHOULDERC0, 0.2 / Animation_Speed)
  938. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25, 0.5, -1) * ANGLES(RAD(0), RAD(0), RAD(90)) * LEFTSHOULDERC0, 0.2 / Animation_Speed)
  939. RightHip.C0 = Clerp(RightHip.C0, CF(1, 0, -0.5) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(-20)), 0.2 / Animation_Speed)
  940. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, 0, -0.5) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(20)), 0.2 / Animation_Speed)
  941. end
  942. local GYRO = IT("BodyGyro", RootPart)
  943. GYRO.D = 20
  944. GYRO.P = 4000
  945. GYRO.MaxTorque = VT(0, 40000, 0)
  946. coroutine.resume(coroutine.create(function()
  947. repeat
  948. Swait()
  949. GYRO.CFrame = CF(RootPart.Position, Mouse.Hit.p)
  950. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 + 1 * SIN(SINE / 24)) * ANGLES(RAD(0), RAD(0), RAD(24)), 2 / Animation_Speed)
  951. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(20), RAD(0), RAD(-24)), 1 / Animation_Speed)
  952. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.25, 0.5, -0.3) * ANGLES(RAD(90), RAD(0), RAD(24)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  953. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.45, 0.1, -0.3) * ANGLES(RAD(0), RAD(45), RAD(0)) * ANGLES(RAD(165), RAD(0), RAD(0)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  954. RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.5, -0.5) * ANGLES(RAD(0), RAD(75), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  955. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  956. until ATTACK == false
  957. POSITION:remove()
  958. GYRO:remove()
  959. for i = 1, 20 do
  960. Swait()
  961. MESH.Scale = MESH.Scale - VT(4, 0, 4)
  962. end
  963. RING:remove()
  964. end))
  965. local RING, WELD, MESH = MagicRing(RightArm, CF(0, -1.2, 0) * ANGLES(RAD(0), RAD(180), RAD(0)), "Pheonix")
  966. for i = 1, 35 do
  967. Swait()
  968. MESH.Scale = MESH.Scale + VT(2.6, 0, 2.6)
  969. end
  970. wait(0.3)
  971. coroutine.resume(coroutine.create(function()
  972. local FIREBALL = CreatePart(3, Effects, "Neon", 0, 1, "Cyan", "Flight", VT(5, 5, 5))
  973. FIREBALL.CFrame = CF(RING.Position, Mouse.Hit.p)
  974. local PARTICLES1 = script.PheonixFireball1:Clone()
  975. PARTICLES1.Parent = FIREBALL
  976. PARTICLES1.Enabled = true
  977. local PARTICLES2 = script.PheonixFireball2:Clone()
  978. PARTICLES2.Parent = FIREBALL
  979. PARTICLES2.Enabled = true
  980. CreateSound(463593339, FIREBALL, 6, 1, false)
  981. for i = 1, 250 do
  982. Swait()
  983. local HIT, HITPOS = Raycast(FIREBALL.Position, FIREBALL.CFrame.lookVector, 2.5, Character)
  984. FIREBALL.CFrame = FIREBALL.CFrame * CF(0, 0, -2)
  985. if HIT then
  986. ApplyAoE(FIREBALL.Position, 50, 45, 50, 35, true, MRANDOM(12, 16), "Pheonix", true, {
  987. SHAKE = 2,
  988. TIMER = 25,
  989. DOESFADE = true
  990. })
  991. WACKYEFFECT({
  992. Time = 60,
  993. EffectType = "Sphere",
  994. Size = VT(0, 0, 0),
  995. Size2 = VT(100, 100, 100),
  996. Transparency = 0,
  997. Transparency2 = 1,
  998. CFrame = CF(FIREBALL.Position),
  999. MoveToPos = nil,
  1000. RotationX = 0,
  1001. RotationY = 0,
  1002. RotationZ = 0,
  1003. Material = "Neon",
  1004. Color = C3(1, 0.6666666666666666, 0),
  1005. SoundID = nil,
  1006. SoundPitch = nil,
  1007. SoundVolume = nil
  1008. })
  1009. WACKYEFFECT({
  1010. Time = 60,
  1011. EffectType = "Sphere",
  1012. Size = VT(0, 0, 0),
  1013. Size2 = VT(120, 120, 120),
  1014. Transparency = 0.5,
  1015. Transparency2 = 1,
  1016. CFrame = CF(FIREBALL.Position),
  1017. MoveToPos = nil,
  1018. RotationX = 0,
  1019. RotationY = 0,
  1020. RotationZ = 0,
  1021. Material = "Neon",
  1022. Color = PHEONIXCOLOR,
  1023. SoundID = 462692971,
  1024. SoundPitch = 1,
  1025. SoundVolume = 6
  1026. })
  1027. PARTICLES1.Enabled = false
  1028. PARTICLES2.Enabled = false
  1029. local EXPLOSION = script.PheonixExplosion1:Clone()
  1030. EXPLOSION.Parent = FIREBALL
  1031. EXPLOSION.Enabled = true
  1032. local EXPLOSION2 = script.PheonixExplosion2:Clone()
  1033. EXPLOSION2.Parent = FIREBALL
  1034. EXPLOSION2.Enabled = true
  1035. wait(0.3)
  1036. EXPLOSION.Enabled = false
  1037. EXPLOSION2.Enabled = false
  1038. break
  1039. end
  1040. end
  1041. PARTICLES1.Enabled = false
  1042. PARTICLES2.Enabled = false
  1043. Debris:AddItem(FIREBALL, 7)
  1044. end))
  1045. wait(0.3)
  1046. coroutine.resume(coroutine.create(function()
  1047. WELD:remove()
  1048. RING.Anchored = true
  1049. for i = 1, 35 do
  1050. Swait()
  1051. MESH.Scale = MESH.Scale - VT(2.6, 0, 2.6)
  1052. end
  1053. RING:remove()
  1054. end))
  1055. WINGS = false
  1056. ATTACK = false
  1057. end
  1058. function ThreeShootingStars()
  1059. ATTACK = true
  1060. Rooted = false
  1061. local POS1, POS2, POS3
  1062. local RING, WELD, MESH = MagicRing(RightArm, CF(0, -1.2, 0), "Sun")
  1063. coroutine.resume(coroutine.create(function()
  1064. for i = 1, 35 do
  1065. Swait()
  1066. MESH.Scale = MESH.Scale + VT(2.6, 0, 2.6)
  1067. end
  1068. end))
  1069. coroutine.resume(coroutine.create(function()
  1070. repeat
  1071. Swait()
  1072. if POS1 then
  1073. coroutine.resume(coroutine.create(function()
  1074. local POSITION = POS1
  1075. local FIREBALL = CreatePart(3, Effects, "Neon", 0, 1, "New Yeller", "Fire", VT(3, 3, 3))
  1076. FIREBALL.CFrame = RightArm.CFrame * CF(0, -3, 0)
  1077. local FIRE = script.SunFireball:Clone()
  1078. FIRE.Parent = FIREBALL
  1079. FIRE.Enabled = true
  1080. local EXPLOSION = script.SunExplosion:Clone()
  1081. EXPLOSION.Parent = FIREBALL
  1082. CreateSound(463598785, FIREBALL, 5, 1, false)
  1083. local DISTANCE = (RootPart.Position - POSITION).Magnitude
  1084. local FRAME = CF(VT(POSITION.X + MRANDOM(-45, 45) / 3, RootPart.Position.Y, POSITION.Z + MRANDOM(-45, 45) / 3), RootPart.Position + VT(0, 45, 0)) * CF(0, 0, -DISTANCE / 2)
  1085. for i = 1, 75 do
  1086. Swait()
  1087. FIREBALL.CFrame = Clerp(FIREBALL.CFrame, FRAME, 0.5 / Animation_Speed)
  1088. end
  1089. FIREBALL.CFrame = CF(FIREBALL.Position, POSITION)
  1090. for i = 1, 300 do
  1091. Swait()
  1092. FIREBALL.CFrame = FIREBALL.CFrame * CF(0, 0, -4)
  1093. local HITFLOOR, HITPOS = Raycast(FIREBALL.Position, FIREBALL.CFrame.lookVector, 4.2, Character)
  1094. if HITFLOOR ~= nil then
  1095. FIRE.Enabled = false
  1096. EXPLOSION:Emit(500)
  1097. CreateSound(416328540, FIREBALL, 5, 1, false)
  1098. ApplyAoE(FIREBALL.Position, 75, 25, 35, 65, true, MRANDOM(5, 15), "Sun", true, {
  1099. SHAKE = 1,
  1100. TIMER = 6,
  1101. DOESFADE = true
  1102. })
  1103. WACKYEFFECT({
  1104. EffectType = "Sphere",
  1105. Size = VT(0, 0, 0),
  1106. Size2 = VT(150, 150, 150),
  1107. Transparency = 0,
  1108. Transparency2 = 1,
  1109. CFrame = CF(FIREBALL.Position),
  1110. MoveToPos = nil,
  1111. RotationX = 0,
  1112. RotationY = 0,
  1113. RotationZ = 0,
  1114. Material = "Neon",
  1115. Color = C3(1, 0.6666666666666666, 0),
  1116. SoundID = nil,
  1117. SoundPitch = nil,
  1118. SoundVolume = nil
  1119. })
  1120. wait(5)
  1121. break
  1122. end
  1123. end
  1124. FIREBALL:remove()
  1125. end))
  1126. POS1 = nil
  1127. end
  1128. if POS2 then
  1129. coroutine.resume(coroutine.create(function()
  1130. local POSITION = POS2
  1131. local FIREBALL = CreatePart(3, Effects, "Neon", 0, 1, "New Yeller", "Fire", VT(3, 3, 3))
  1132. FIREBALL.CFrame = RightArm.CFrame * CF(0, -3, 0)
  1133. local FIRE = script.SunFireball:Clone()
  1134. FIRE.Parent = FIREBALL
  1135. FIRE.Enabled = true
  1136. local EXPLOSION = script.SunExplosion:Clone()
  1137. EXPLOSION.Parent = FIREBALL
  1138. CreateSound(463598785, FIREBALL, 5, 1, false)
  1139. local DISTANCE = (RootPart.Position - POSITION).Magnitude
  1140. local FRAME = CF(VT(POSITION.X + MRANDOM(-45, 45) / 3, RootPart.Position.Y, POSITION.Z + MRANDOM(-45, 45) / 3), RootPart.Position + VT(0, 45, 0)) * CF(0, 0, -DISTANCE / 2)
  1141. for i = 1, 75 do
  1142. Swait()
  1143. FIREBALL.CFrame = Clerp(FIREBALL.CFrame, FRAME, 0.5 / Animation_Speed)
  1144. end
  1145. FIREBALL.CFrame = CF(FIREBALL.Position, POSITION)
  1146. for i = 1, 300 do
  1147. Swait()
  1148. FIREBALL.CFrame = FIREBALL.CFrame * CF(0, 0, -4)
  1149. local HITFLOOR, HITPOS = Raycast(FIREBALL.Position, FIREBALL.CFrame.lookVector, 4.2, Character)
  1150. if HITFLOOR ~= nil then
  1151. FIRE.Enabled = false
  1152. EXPLOSION:Emit(500)
  1153. CreateSound(416328540, FIREBALL, 5, 1, false)
  1154. ApplyAoE(FIREBALL.Position, 75, 25, 35, 65, true, MRANDOM(5, 15), "Sun", true, {
  1155. SHAKE = 1,
  1156. TIMER = 6,
  1157. DOESFADE = true
  1158. })
  1159. WACKYEFFECT({
  1160. EffectType = "Sphere",
  1161. Size = VT(0, 0, 0),
  1162. Size2 = VT(150, 150, 150),
  1163. Transparency = 0,
  1164. Transparency2 = 1,
  1165. CFrame = CF(FIREBALL.Position),
  1166. MoveToPos = nil,
  1167. RotationX = 0,
  1168. RotationY = 0,
  1169. RotationZ = 0,
  1170. Material = "Neon",
  1171. Color = C3(1, 0.6666666666666666, 0),
  1172. SoundID = nil,
  1173. SoundPitch = nil,
  1174. SoundVolume = nil
  1175. })
  1176. wait(5)
  1177. break
  1178. end
  1179. end
  1180. FIREBALL:remove()
  1181. end))
  1182. POS2 = nil
  1183. end
  1184. if POS3 then
  1185. coroutine.resume(coroutine.create(function()
  1186. local POSITION = POS3
  1187. local FIREBALL = CreatePart(3, Effects, "Neon", 0, 1, "New Yeller", "Fire", VT(3, 3, 3))
  1188. FIREBALL.CFrame = RightArm.CFrame * CF(0, -3, 0)
  1189. local FIRE = script.SunFireball:Clone()
  1190. FIRE.Parent = FIREBALL
  1191. FIRE.Enabled = true
  1192. local EXPLOSION = script.SunExplosion:Clone()
  1193. EXPLOSION.Parent = FIREBALL
  1194. CreateSound(463598785, FIREBALL, 5, 1, false)
  1195. local DISTANCE = (RootPart.Position - POSITION).Magnitude
  1196. local FRAME = CF(VT(POSITION.X + MRANDOM(-45, 45) / 3, RootPart.Position.Y, POSITION.Z + MRANDOM(-45, 45) / 3), RootPart.Position + VT(0, 45, 0)) * CF(0, 0, -DISTANCE / 2)
  1197. for i = 1, 75 do
  1198. Swait()
  1199. FIREBALL.CFrame = Clerp(FIREBALL.CFrame, FRAME, 0.5 / Animation_Speed)
  1200. end
  1201. FIREBALL.CFrame = CF(FIREBALL.Position, POSITION)
  1202. for i = 1, 300 do
  1203. Swait()
  1204. FIREBALL.CFrame = FIREBALL.CFrame * CF(0, 0, -4)
  1205. local HITFLOOR, HITPOS = Raycast(FIREBALL.Position, FIREBALL.CFrame.lookVector, 4.2, Character)
  1206. if HITFLOOR ~= nil then
  1207. FIRE.Enabled = false
  1208. EXPLOSION:Emit(500)
  1209. CreateSound(416328540, FIREBALL, 5, 1, false)
  1210. ApplyAoE(FIREBALL.Position, 75, 25, 35, 65, true, MRANDOM(5, 15), "Sun", true, {
  1211. SHAKE = 1,
  1212. TIMER = 6,
  1213. DOESFADE = true
  1214. })
  1215. WACKYEFFECT({
  1216. EffectType = "Sphere",
  1217. Size = VT(0, 0, 0),
  1218. Size2 = VT(150, 150, 150),
  1219. Transparency = 0,
  1220. Transparency2 = 1,
  1221. CFrame = CF(FIREBALL.Position),
  1222. MoveToPos = nil,
  1223. RotationX = 0,
  1224. RotationY = 0,
  1225. RotationZ = 0,
  1226. Material = "Neon",
  1227. Color = C3(1, 0.6666666666666666, 0),
  1228. SoundID = nil,
  1229. SoundPitch = nil,
  1230. SoundVolume = nil
  1231. })
  1232. wait(5)
  1233. break
  1234. end
  1235. end
  1236. FIREBALL:remove()
  1237. end))
  1238. POS3 = nil
  1239. end
  1240. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 + 1 * SIN(SINE / 24)) * ANGLES(RAD(0), RAD(0), RAD(74)), 2 / Animation_Speed)
  1241. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(20), RAD(0), RAD(-74)), 1 / Animation_Speed)
  1242. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.25, 0.5, -0.3) * ANGLES(RAD(90), RAD(0), RAD(74)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  1243. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.45, 0.1, -0.3) * ANGLES(RAD(0), RAD(45), RAD(0)) * ANGLES(RAD(165), RAD(0), RAD(0)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  1244. RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.5, -0.5) * ANGLES(RAD(0), RAD(75), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  1245. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  1246. until ATTACK == false
  1247. end))
  1248. wait(0.4)
  1249. POS1 = Mouse.Hit.p
  1250. wait(0.5)
  1251. POS2 = Mouse.Hit.p
  1252. wait(0.6)
  1253. POS3 = Mouse.Hit.p
  1254. wait(0.3)
  1255. RING.Anchored = true
  1256. WELD:remove()
  1257. coroutine.resume(coroutine.create(function()
  1258. for i = 1, 35 do
  1259. Swait()
  1260. MESH.Scale = MESH.Scale - VT(2.6, 0, 2.6)
  1261. end
  1262. RING:remove()
  1263. end))
  1264. ATTACK = false
  1265. Rooted = false
  1266. end
  1267. function PheonixFlare()
  1268. ATTACK = true
  1269. Rooted = false
  1270. PARTICLES = true
  1271. coroutine.resume(coroutine.create(function()
  1272. repeat
  1273. Swait()
  1274. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 + 1 * SIN(SINE / 24)) * ANGLES(RAD(0), RAD(0), RAD(0)), 2 / Animation_Speed)
  1275. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(20), RAD(0), RAD(0)), 1 / Animation_Speed)
  1276. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(-15), RAD(25)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  1277. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(15), RAD(-25)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  1278. RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.5, -0.5) * ANGLES(RAD(0), RAD(75), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  1279. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  1280. until ATTACK == false
  1281. end))
  1282. CreateSound(462676772, Torso, 7, 1, false)
  1283. WINGS1.Acceleration = VT(9, 0, -12)
  1284. WINGS1B.Acceleration = VT(9, 0, -12)
  1285. WINGS2.Acceleration = VT(-9, 0, -12)
  1286. WINGS2B.Acceleration = VT(-9, 0, -12)
  1287. wait(0.25)
  1288. coroutine.resume(coroutine.create(function()
  1289. local WIND = CreatePart(3, Effects, "Neon", 0, 1, "Cyan", "Flight", VT(0, 0, 0))
  1290. WIND.CFrame = CF(RootPart.Position, Mouse.Hit.p)
  1291. local PARTICLES = script.Gale:Clone()
  1292. PARTICLES.Parent = WIND
  1293. PARTICLES.Enabled = true
  1294. CreateSound(376218535, WIND, 6, 1, false)
  1295. for i = 1, 250 do
  1296. Swait()
  1297. local HIT, HITPOS = Raycast(WIND.Position, WIND.CFrame.lookVector, 3, Character)
  1298. WIND.CFrame = WIND.CFrame * CF(0, 0, -2)
  1299. if HIT then
  1300. ApplyAoE(WIND.Position, 45, 10, 30, 135, false, MRANDOM(12, 16), "Nul", true, {
  1301. SHAKE = 3,
  1302. TIMER = 7,
  1303. DOESFADE = true
  1304. })
  1305. CreateSound(260430117, WIND, 3, 1, false)
  1306. WACKYEFFECT({
  1307. Time = 25,
  1308. EffectType = "Wave",
  1309. Size = VT(20, 0, 20),
  1310. Size2 = VT(60, 8, 60),
  1311. Transparency = 0.9,
  1312. Transparency2 = 1,
  1313. CFrame = WIND.CFrame * ANGLES(RAD(90), RAD(0), RAD(0)) * ANGLES(RAD(0), RAD(45), RAD(0)),
  1314. MoveToPos = nil,
  1315. RotationX = 0,
  1316. RotationY = 0,
  1317. RotationZ = 0,
  1318. Material = "Neon",
  1319. Color = C3(0.8, 0.8, 0.8),
  1320. SoundID = nil,
  1321. SoundPitch = nil,
  1322. SoundVolume = nil
  1323. })
  1324. WACKYEFFECT({
  1325. Time = 25,
  1326. EffectType = "Wave",
  1327. Size = VT(20, 0, 20),
  1328. Size2 = VT(60, 8, 60),
  1329. Transparency = 0.9,
  1330. Transparency2 = 1,
  1331. CFrame = WIND.CFrame * ANGLES(RAD(90), RAD(0), RAD(0)),
  1332. MoveToPos = nil,
  1333. RotationX = 0,
  1334. RotationY = 0,
  1335. RotationZ = 0,
  1336. Material = "Neon",
  1337. Color = C3(0.8, 0.8, 0.8),
  1338. SoundID = nil,
  1339. SoundPitch = nil,
  1340. SoundVolume = nil
  1341. })
  1342. break
  1343. end
  1344. end
  1345. PARTICLES.Enabled = false
  1346. Debris:AddItem(WIND, 7)
  1347. end))
  1348. wait(1)
  1349. CreateSound(462676772, Torso, 7, 1, false)
  1350. WINGS1.Acceleration = VT(9, 1, 4)
  1351. WINGS1B.Acceleration = VT(9, 1, 4)
  1352. WINGS2.Acceleration = VT(-9, 1, 4)
  1353. WINGS2B.Acceleration = VT(-9, 1, 4)
  1354. wait(0.25)
  1355. coroutine.resume(coroutine.create(function()
  1356. local FIREBALL = CreatePart(3, Effects, "Neon", 0, 1, "Cyan", "Flight", VT(5, 5, 5))
  1357. FIREBALL.CFrame = CF(RootPart.Position, Mouse.Hit.p)
  1358. local PARTICLES1 = script.PheonixFireball1:Clone()
  1359. PARTICLES1.Parent = FIREBALL
  1360. PARTICLES1.Enabled = true
  1361. local PARTICLES2 = script.PheonixFireball2:Clone()
  1362. PARTICLES2.Parent = FIREBALL
  1363. PARTICLES2.Enabled = true
  1364. CreateSound(463593339, FIREBALL, 6, 1, false)
  1365. for i = 1, 250 do
  1366. Swait()
  1367. local HIT, HITPOS = Raycast(FIREBALL.Position, FIREBALL.CFrame.lookVector, 2.5, Character)
  1368. FIREBALL.CFrame = FIREBALL.CFrame * CF(0, 0, -2)
  1369. if HIT then
  1370. ApplyAoE(FIREBALL.Position, 70, 45, 50, 35, true, MRANDOM(12, 16), "Pheonix", true, {
  1371. SHAKE = 2,
  1372. TIMER = 25,
  1373. DOESFADE = true
  1374. })
  1375. WACKYEFFECT({
  1376. Time = 60,
  1377. EffectType = "Sphere",
  1378. Size = VT(0, 0, 0),
  1379. Size2 = VT(120, 120, 120),
  1380. Transparency = 0,
  1381. Transparency2 = 1,
  1382. CFrame = CF(FIREBALL.Position),
  1383. MoveToPos = nil,
  1384. RotationX = 0,
  1385. RotationY = 0,
  1386. RotationZ = 0,
  1387. Material = "Neon",
  1388. Color = C3(1, 0.6666666666666666, 0),
  1389. SoundID = nil,
  1390. SoundPitch = nil,
  1391. SoundVolume = nil
  1392. })
  1393. WACKYEFFECT({
  1394. Time = 60,
  1395. EffectType = "Sphere",
  1396. Size = VT(0, 0, 0),
  1397. Size2 = VT(140, 140, 140),
  1398. Transparency = 0.5,
  1399. Transparency2 = 1,
  1400. CFrame = CF(FIREBALL.Position),
  1401. MoveToPos = nil,
  1402. RotationX = 0,
  1403. RotationY = 0,
  1404. RotationZ = 0,
  1405. Material = "Neon",
  1406. Color = PHEONIXCOLOR,
  1407. SoundID = 462692971,
  1408. SoundPitch = 1,
  1409. SoundVolume = 6
  1410. })
  1411. PARTICLES1.Enabled = false
  1412. PARTICLES2.Enabled = false
  1413. local EXPLOSION = script.PheonixExplosion1:Clone()
  1414. EXPLOSION.Parent = FIREBALL
  1415. EXPLOSION.Enabled = true
  1416. local EXPLOSION2 = script.PheonixExplosion2:Clone()
  1417. EXPLOSION2.Parent = FIREBALL
  1418. EXPLOSION2.Enabled = true
  1419. wait(0.3)
  1420. EXPLOSION.Enabled = false
  1421. EXPLOSION2.Enabled = false
  1422. break
  1423. end
  1424. end
  1425. PARTICLES1.Enabled = false
  1426. PARTICLES2.Enabled = false
  1427. Debris:AddItem(FIREBALL, 7)
  1428. end))
  1429. wait(0.5)
  1430. PARTICLES = false
  1431. ATTACK = false
  1432. Rooted = false
  1433. end
  1434. function PheonixFireballs()
  1435. ATTACK = true
  1436. local POWER = 1
  1437. DIRECTTURN = true
  1438. coroutine.resume(coroutine.create(function()
  1439. repeat
  1440. Swait()
  1441. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 + 1 * SIN(SINE / 24)) * ANGLES(RAD(0), RAD(0), RAD(24)), 2 / Animation_Speed)
  1442. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(20), RAD(0), RAD(-24)), 1 / Animation_Speed)
  1443. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.25, 0.5, -0.3) * ANGLES(RAD(90), RAD(0), RAD(24)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  1444. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.45, 0.1, -0.3) * ANGLES(RAD(0), RAD(45), RAD(0)) * ANGLES(RAD(165), RAD(0), RAD(0)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  1445. RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.5, -0.5) * ANGLES(RAD(0), RAD(75), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  1446. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  1447. until ATTACK == false
  1448. end))
  1449. local RING1, WELD1, MESH1 = MagicRing(RightArm, CF(0, -1.2, 0) * ANGLES(RAD(0), RAD(180), RAD(0)), "Pheonix")
  1450. local RING2, WELD2, MESH2 = MagicRing(RightArm, CF(0, -1.6, 0) * ANGLES(RAD(0), RAD(180), RAD(0)), "Pheonix")
  1451. for i = 1, 35 do
  1452. Swait()
  1453. MESH1.Scale = MESH1.Scale + VT(6, 0, 6)
  1454. MESH2.Scale = MESH2.Scale + VT(3, 0, 3)
  1455. end
  1456. repeat
  1457. wait()
  1458. POWER = POWER + 1
  1459. until KEYHOLD == false
  1460. if POWER <= 30 then
  1461. for i = 1, 15 do
  1462. wait(0.1)
  1463. coroutine.resume(coroutine.create(function()
  1464. local FIREBALL = CreatePart(3, Effects, "Neon", 0, 1, "Cyan", "Flight", VT(2, 2, 2))
  1465. FIREBALL.CFrame = CF(RootPart.Position, Mouse.Hit.p)
  1466. local PARTICLES1 = script.PheonixFireball1:Clone()
  1467. PARTICLES1.Parent = FIREBALL
  1468. PARTICLES1.Enabled = true
  1469. local PARTICLES2 = script.PheonixFireball2:Clone()
  1470. PARTICLES2.Parent = FIREBALL
  1471. PARTICLES2.Enabled = true
  1472. PARTICLES1.Size = NumberSequence.new(3, 0)
  1473. PARTICLES2.Size = NumberSequence.new(3, 0)
  1474. CreateSound(463593339, FIREBALL, 6, 1, false)
  1475. for i = 1, 250 do
  1476. Swait()
  1477. local HIT, HITPOS = Raycast(FIREBALL.Position, FIREBALL.CFrame.lookVector, 4.5, Character)
  1478. FIREBALL.CFrame = FIREBALL.CFrame * CF(0, 0, -4)
  1479. if HIT then
  1480. ApplyAoE(FIREBALL.Position, 25, 5, 15, 5, true, MRANDOM(5, 6), "Pheonix", true, {
  1481. SHAKE = 2,
  1482. TIMER = 25,
  1483. DOESFADE = true
  1484. })
  1485. WACKYEFFECT({
  1486. Time = 60,
  1487. EffectType = "Sphere",
  1488. Size = VT(0, 0, 0),
  1489. Size2 = VT(50, 50, 50),
  1490. Transparency = 0,
  1491. Transparency2 = 1,
  1492. CFrame = CF(FIREBALL.Position),
  1493. MoveToPos = nil,
  1494. RotationX = 0,
  1495. RotationY = 0,
  1496. RotationZ = 0,
  1497. Material = "Neon",
  1498. Color = C3(1, 0.6666666666666666, 0),
  1499. SoundID = nil,
  1500. SoundPitch = nil,
  1501. SoundVolume = nil
  1502. })
  1503. WACKYEFFECT({
  1504. Time = 60,
  1505. EffectType = "Sphere",
  1506. Size = VT(0, 0, 0),
  1507. Size2 = VT(60, 60, 60),
  1508. Transparency = 0.5,
  1509. Transparency2 = 1,
  1510. CFrame = CF(FIREBALL.Position),
  1511. MoveToPos = nil,
  1512. RotationX = 0,
  1513. RotationY = 0,
  1514. RotationZ = 0,
  1515. Material = "Neon",
  1516. Color = PHEONIXCOLOR,
  1517. SoundID = 462692971,
  1518. SoundPitch = 1,
  1519. SoundVolume = 6
  1520. })
  1521. PARTICLES1.Enabled = false
  1522. PARTICLES2.Enabled = false
  1523. local EXPLOSION = script.PheonixExplosion1:Clone()
  1524. EXPLOSION.Parent = FIREBALL
  1525. EXPLOSION.Enabled = true
  1526. local EXPLOSION2 = script.PheonixExplosion2:Clone()
  1527. EXPLOSION2.Parent = FIREBALL
  1528. EXPLOSION2.Enabled = true
  1529. wait(0.3)
  1530. EXPLOSION.Enabled = false
  1531. EXPLOSION2.Enabled = false
  1532. break
  1533. end
  1534. end
  1535. PARTICLES1.Enabled = false
  1536. PARTICLES2.Enabled = false
  1537. Debris:AddItem(FIREBALL, 7)
  1538. end))
  1539. end
  1540. else
  1541. for E = 1, 5 do
  1542. do
  1543. local OFFSET = ANGLES(RAD(72 * E), RAD(72 * E), RAD(0)) * CF(0, 0, 75)
  1544. coroutine.resume(coroutine.create(function()
  1545. local FIREBALL = CreatePart(3, Effects, "Neon", 0, 1, "Cyan", "Flight", VT(5, 5, 5))
  1546. FIREBALL.CFrame = CF(RootPart.Position, CF(Mouse.Hit.p, RootPart.Position) * OFFSET.p)
  1547. local PARTICLES1 = script.PheonixFireball1:Clone()
  1548. PARTICLES1.Parent = FIREBALL
  1549. PARTICLES1.Enabled = true
  1550. local PARTICLES2 = script.PheonixFireball2:Clone()
  1551. PARTICLES2.Parent = FIREBALL
  1552. PARTICLES2.Enabled = true
  1553. CreateSound(463593339, FIREBALL, 6, 1, false)
  1554. for i = 1, 650 do
  1555. Swait()
  1556. local HIT, HITPOS = Raycast(FIREBALL.Position, FIREBALL.CFrame.lookVector, 2.5, Character)
  1557. FIREBALL.CFrame = FIREBALL.CFrame * CF(0, 0, -2)
  1558. if HIT then
  1559. ApplyAoE(FIREBALL.Position, 70, 45, 50, 35, true, MRANDOM(12, 16), "Pheonix", true, {
  1560. SHAKE = 2,
  1561. TIMER = 25,
  1562. DOESFADE = true
  1563. })
  1564. WACKYEFFECT({
  1565. Time = 60,
  1566. EffectType = "Sphere",
  1567. Size = VT(0, 0, 0),
  1568. Size2 = VT(120, 120, 120),
  1569. Transparency = 0,
  1570. Transparency2 = 1,
  1571. CFrame = CF(FIREBALL.Position),
  1572. MoveToPos = nil,
  1573. RotationX = 0,
  1574. RotationY = 0,
  1575. RotationZ = 0,
  1576. Material = "Neon",
  1577. Color = C3(1, 0.6666666666666666, 0),
  1578. SoundID = nil,
  1579. SoundPitch = nil,
  1580. SoundVolume = nil
  1581. })
  1582. WACKYEFFECT({
  1583. Time = 60,
  1584. EffectType = "Sphere",
  1585. Size = VT(0, 0, 0),
  1586. Size2 = VT(140, 140, 140),
  1587. Transparency = 0.5,
  1588. Transparency2 = 1,
  1589. CFrame = CF(FIREBALL.Position),
  1590. MoveToPos = nil,
  1591. RotationX = 0,
  1592. RotationY = 0,
  1593. RotationZ = 0,
  1594. Material = "Neon",
  1595. Color = PHEONIXCOLOR,
  1596. SoundID = 462692971,
  1597. SoundPitch = 1,
  1598. SoundVolume = 6
  1599. })
  1600. PARTICLES1.Enabled = false
  1601. PARTICLES2.Enabled = false
  1602. local EXPLOSION = script.PheonixExplosion1:Clone()
  1603. EXPLOSION.Parent = FIREBALL
  1604. EXPLOSION.Enabled = true
  1605. local EXPLOSION2 = script.PheonixExplosion2:Clone()
  1606. EXPLOSION2.Parent = FIREBALL
  1607. EXPLOSION2.Enabled = true
  1608. wait(0.3)
  1609. EXPLOSION.Enabled = false
  1610. EXPLOSION2.Enabled = false
  1611. break
  1612. end
  1613. end
  1614. PARTICLES1.Enabled = false
  1615. PARTICLES2.Enabled = false
  1616. Debris:AddItem(FIREBALL, 7)
  1617. end))
  1618. end
  1619. end
  1620. end
  1621. wait(0.5)
  1622. WELD1:remove()
  1623. WELD2:remove()
  1624. RING1.Anchored = true
  1625. RING2.Anchored = true
  1626. coroutine.resume(coroutine.create(function()
  1627. for i = 1, 35 do
  1628. Swait()
  1629. MESH1.Scale = MESH1.Scale - VT(6, 0, 6)
  1630. MESH2.Scale = MESH2.Scale - VT(3, 0, 3)
  1631. end
  1632. RING1:remove()
  1633. RING2:remove()
  1634. end))
  1635. DIRECTTURN = false
  1636. ATTACK = false
  1637. end
  1638. function PheonixJump()
  1639. local DONE = false
  1640. local STRENGTH = 15
  1641. local UP = 5
  1642. ATTACK = true
  1643. DIRECTTURN = true
  1644. local RING, WELD, MESH = MagicRing(RootPart, CF(0, -3.5, 0) * ANGLES(RAD(0), RAD(180), RAD(0)), "Pheonix")
  1645. for i = 1, 30 do
  1646. Swait()
  1647. MESH.Scale = MESH.Scale + VT(12, 0, 12)
  1648. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, -1.4) * ANGLES(RAD(0), RAD(-5), RAD(-15)), 2 / Animation_Speed)
  1649. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(15), RAD(0), RAD(15)), 0.5 / Animation_Speed)
  1650. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5 + 0.05 * COS(SINE / 12), 0) * ANGLES(RAD(15), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 2 / Animation_Speed)
  1651. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 2 / Animation_Speed)
  1652. RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.35, -0.25) * ANGLES(RAD(35), RAD(35), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(0)), 2 / Animation_Speed)
  1653. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1.5, -0.4) * ANGLES(RAD(0), RAD(-75), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(90)), 2 / Animation_Speed)
  1654. end
  1655. local KEYDOWN = Mouse.KeyDown:connect(function(NEWKEY)
  1656. if NEWKEY == "w" and VALUE2 == false then
  1657. coroutine.resume(coroutine.create(function()
  1658. ApplyAoE(RING.Position, 35, 15, 20, 35, true, MRANDOM(12, 16), "Pheonix", true, {
  1659. SHAKE = 2,
  1660. TIMER = 15,
  1661. DOESFADE = true
  1662. })
  1663. WACKYEFFECT({
  1664. EffectType = "Sphere",
  1665. Size = VT(0, 0, 0),
  1666. Size2 = VT(50, 50, 50),
  1667. Transparency = 0,
  1668. Transparency2 = 1,
  1669. CFrame = CF(RING.Position),
  1670. MoveToPos = nil,
  1671. RotationX = 0,
  1672. RotationY = 0,
  1673. RotationZ = 0,
  1674. Material = "Neon",
  1675. Color = C3(1, 0.6666666666666666, 0),
  1676. SoundID = nil,
  1677. SoundPitch = nil,
  1678. SoundVolume = nil
  1679. })
  1680. WACKYEFFECT({
  1681. EffectType = "Sphere",
  1682. Size = VT(0, 0, 0),
  1683. Size2 = VT(70, 70, 70),
  1684. Transparency = 0.5,
  1685. Transparency2 = 1,
  1686. CFrame = CF(RING.Position),
  1687. MoveToPos = nil,
  1688. RotationX = 0,
  1689. RotationY = 0,
  1690. RotationZ = 0,
  1691. Material = "Neon",
  1692. Color = PHEONIXCOLOR,
  1693. SoundID = 462692971,
  1694. SoundPitch = 1.2,
  1695. SoundVolume = 6
  1696. })
  1697. local EXPLOSION = script.PheonixExplosion1:Clone()
  1698. EXPLOSION.Parent = RING
  1699. EXPLOSION.Enabled = true
  1700. local EXPLOSION2 = script.PheonixExplosion2:Clone()
  1701. EXPLOSION2.Parent = RING
  1702. EXPLOSION2.Enabled = true
  1703. wait(0.3)
  1704. EXPLOSION.Enabled = false
  1705. EXPLOSION2.Enabled = false
  1706. Debris:AddItem(RING, 3)
  1707. end))
  1708. CreateSound(462676772, Torso, 8, 1, false)
  1709. coroutine.resume(coroutine.create(function()
  1710. for i = 1, 25 do
  1711. Swait()
  1712. ApplyAoE(Torso.Position, 15, 15, 20, 75, true, MRANDOM(4, 5), "Pheonix", false, {
  1713. SHAKE = 4,
  1714. TIMER = 5,
  1715. DOESFADE = true
  1716. })
  1717. WACKYEFFECT({
  1718. Time = 10,
  1719. EffectType = "Wave",
  1720. Size = VT(45, 5, 45) / 3,
  1721. Size2 = VT(35, 200, 35) / 5,
  1722. Transparency = 0.8,
  1723. Transparency2 = 1,
  1724. CFrame = Torso.CFrame * ANGLES(RAD(180), RAD(0), RAD(0)),
  1725. MoveToPos = nil,
  1726. RotationX = 0,
  1727. RotationY = 5,
  1728. RotationZ = 0,
  1729. Material = "Neon",
  1730. Color = C3(1, 0.6666666666666666, 0),
  1731. SoundID = nil,
  1732. SoundPitch = nil,
  1733. SoundVolume = nil
  1734. })
  1735. WACKYEFFECT({
  1736. Time = 10,
  1737. EffectType = "Wave",
  1738. Size = VT(55, 5, 55) / 3,
  1739. Size2 = VT(45, 200, 45) / 5,
  1740. Transparency = 0.8,
  1741. Transparency2 = 1,
  1742. CFrame = Torso.CFrame * ANGLES(RAD(180), RAD(0), RAD(0)),
  1743. MoveToPos = nil,
  1744. RotationX = 0,
  1745. RotationY = -5,
  1746. RotationZ = 0,
  1747. Material = "Neon",
  1748. Color = PHEONIXCOLOR,
  1749. SoundID = nil,
  1750. SoundPitch = nil,
  1751. SoundVolume = nil
  1752. })
  1753. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 + 1 * SIN(SINE / 24)) * ANGLES(RAD(65), RAD(0), RAD(28.8 * i)), 2 / Animation_Speed)
  1754. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(-20), RAD(0), RAD(0)), 1 / Animation_Speed)
  1755. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(-15), RAD(0), RAD(15)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  1756. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-15), RAD(0), RAD(-15)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  1757. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(-15), RAD(65), RAD(0)) * ANGLES(RAD(-10), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1758. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(-15), RAD(-65), RAD(0)) * ANGLES(RAD(-10), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1759. end
  1760. ATTACK = false
  1761. end))
  1762. repeat
  1763. VALUE2 = true
  1764. Swait()
  1765. BODYPOS.Position = RootPart.CFrame * CF(0, UP, -STRENGTH).p
  1766. if STRENGTH > 2.5 then
  1767. STRENGTH = STRENGTH - 0.1
  1768. else
  1769. STRENGTH = 2.5
  1770. end
  1771. if UP > 0 then
  1772. UP = UP - 0.15
  1773. else
  1774. UP = 0
  1775. end
  1776. until KEYHOLD == false and STRENGTH < 5 and ATTACK == false
  1777. DONE = true
  1778. end
  1779. end)
  1780. repeat
  1781. Swait()
  1782. if STRENGTH < 50 then
  1783. STRENGTH = STRENGTH + 0.15
  1784. MESH.Scale = MESH.Scale + VT(0.5, 0, 0.5)
  1785. end
  1786. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, -1.4) * ANGLES(RAD(0), RAD(-5), RAD(-15)), 2 / Animation_Speed)
  1787. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(15), RAD(0), RAD(15)), 0.5 / Animation_Speed)
  1788. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5 + 0.05 * COS(SINE / 12), 0) * ANGLES(RAD(15), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 2 / Animation_Speed)
  1789. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 2 / Animation_Speed)
  1790. RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.35, -0.25) * ANGLES(RAD(35), RAD(35), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(0)), 2 / Animation_Speed)
  1791. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1.5, -0.4) * ANGLES(RAD(0), RAD(-75), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(90)), 2 / Animation_Speed)
  1792. until VALUE2 == true
  1793. DIRECTTURN = false
  1794. WELD:remove()
  1795. RING.Anchored = true
  1796. local SIZE = MESH.Scale.X
  1797. coroutine.resume(coroutine.create(function()
  1798. for i = 1, 30 do
  1799. Swait()
  1800. MESH.Scale = MESH.Scale - VT(SIZE, 0, SIZE) / 30
  1801. end
  1802. RING:remove()
  1803. end))
  1804. repeat
  1805. wait()
  1806. until DONE == true
  1807. KEYDOWN:disconnect()
  1808. VALUE2 = false
  1809. end
  1810. function DragonFirePillar()
  1811. ATTACK = true
  1812. local POS = Mouse.Hit.p
  1813. APPLYGYRO = false
  1814. local RING, WELD, MESH = MagicRing(RightArm, CF(0, -1.2, 0) * ANGLES(RAD(0), RAD(180), RAD(0)), "Fire")
  1815. coroutine.resume(coroutine.create(function()
  1816. repeat
  1817. Swait()
  1818. GYRO.CFrame = CF(RootPart.Position, POS)
  1819. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 + 1 * SIN(SINE / 24)) * ANGLES(RAD(0), RAD(0), RAD(24)), 2 / Animation_Speed)
  1820. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(20), RAD(0), RAD(-24)), 1 / Animation_Speed)
  1821. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.25, 0.5, -0.3) * ANGLES(RAD(90), RAD(0), RAD(24)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  1822. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.45, 0.1, -0.3) * ANGLES(RAD(0), RAD(45), RAD(0)) * ANGLES(RAD(165), RAD(0), RAD(0)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  1823. RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.5, -0.5) * ANGLES(RAD(0), RAD(75), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  1824. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  1825. until ATTACK == false
  1826. end))
  1827. for i = 1, 40 do
  1828. MESH.Scale = MESH.Scale + VT(4, 0, 4)
  1829. Swait()
  1830. end
  1831. for i = 1, 6 do
  1832. WACKYEFFECT({
  1833. EffectType = "Sphere",
  1834. Size = VT(35, 35, 35),
  1835. Size2 = VT(0, 0, 0),
  1836. Transparency = 1,
  1837. Transparency2 = 0.5,
  1838. CFrame = CF(POS),
  1839. MoveToPos = nil,
  1840. RotationX = 0,
  1841. RotationY = 0,
  1842. RotationZ = 0,
  1843. Material = "Neon",
  1844. Color = C3(1, 0.3333333333333333, 0),
  1845. SoundID = nil,
  1846. SoundPitch = nil,
  1847. SoundVolume = nil
  1848. })
  1849. wait(1)
  1850. end
  1851. coroutine.resume(coroutine.create(function()
  1852. coroutine.resume(coroutine.create(function()
  1853. for i = 1, 30 do
  1854. Swait()
  1855. MESH.Scale = MESH.Scale - VT(4, 0, 4)
  1856. end
  1857. RING:remove()
  1858. end))
  1859. WACKYEFFECT({
  1860. Time = 640,
  1861. EffectType = "Sphere",
  1862. Size = VT(15, 500, 15),
  1863. Size2 = VT(10, 700, 10),
  1864. Transparency = 0,
  1865. Transparency2 = 1,
  1866. CFrame = CF(POS),
  1867. MoveToPos = nil,
  1868. RotationX = 0,
  1869. RotationY = 0,
  1870. RotationZ = 0,
  1871. Material = "Neon",
  1872. Color = C3(1, 0.3333333333333333, 0),
  1873. SoundID = nil,
  1874. SoundPitch = nil,
  1875. SoundVolume = nil
  1876. })
  1877. for i = 1, 15 do
  1878. ApplyAoE(POS, 35, 20, 30, 15, true, MRANDOM(3, 4), "Fire", true, {
  1879. SHAKE = 5,
  1880. TIMER = 6,
  1881. DOESFADE = true
  1882. })
  1883. WACKYEFFECT({
  1884. Time = 125,
  1885. EffectType = "Wave",
  1886. Size = VT(0, 5, 0),
  1887. Size2 = VT(250, 35, 250),
  1888. Transparency = 0.4,
  1889. Transparency2 = 1,
  1890. CFrame = CF(POS) * ANGLES(RAD(0), RAD(MRANDOM(0, 360)), RAD(0)),
  1891. MoveToPos = nil,
  1892. RotationX = 0,
  1893. RotationY = MRANDOM(-5, 5) * 2,
  1894. RotationZ = 0,
  1895. Material = "Neon",
  1896. Color = C3(1, 0.3333333333333333, 0),
  1897. SoundID = nil,
  1898. SoundPitch = MRANDOM(9, 11) / 10,
  1899. SoundVolume = 4
  1900. })
  1901. WACKYEFFECT({
  1902. Time = 75,
  1903. EffectType = "Swirl",
  1904. Size = VT(20, 20, 20),
  1905. Size2 = VT(65, 500, 65),
  1906. Transparency = 0.4,
  1907. Transparency2 = 1,
  1908. CFrame = CF(POS) * ANGLES(RAD(0), RAD(MRANDOM(0, 360)), RAD(0)),
  1909. MoveToPos = nil,
  1910. RotationX = 0,
  1911. RotationY = MRANDOM(-5, 5) * 6,
  1912. RotationZ = 0,
  1913. Material = "Neon",
  1914. Color = C3(1, 0.3333333333333333, 0),
  1915. SoundID = nil,
  1916. SoundPitch = MRANDOM(9, 11) / 10,
  1917. SoundVolume = 4
  1918. })
  1919. WACKYEFFECT({
  1920. Time = 75,
  1921. EffectType = "Swirl",
  1922. Size = VT(20, 20, 20),
  1923. Size2 = VT(45, 600, 45),
  1924. Transparency = 0.4,
  1925. Transparency2 = 1,
  1926. CFrame = CF(POS) * ANGLES(RAD(0), RAD(MRANDOM(0, 360)), RAD(0)),
  1927. MoveToPos = nil,
  1928. RotationX = 0,
  1929. RotationY = MRANDOM(-5, 5) * 6,
  1930. RotationZ = 0,
  1931. Material = "Neon",
  1932. Color = C3(1, 0.3333333333333333, 0),
  1933. SoundID = 304529688,
  1934. SoundPitch = MRANDOM(9, 11) / 10,
  1935. SoundVolume = 4
  1936. })
  1937. wait(0.6)
  1938. end
  1939. end))
  1940. APPLYGYRO = true
  1941. ATTACK = false
  1942. end
  1943. function PheonixTornado()
  1944. ATTACK = true
  1945. local BUILDUP = true
  1946. local HITS = {}
  1947. PARTICLES = true
  1948. coroutine.resume(coroutine.create(function()
  1949. repeat
  1950. Swait()
  1951. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 + 1 * SIN(SINE / 24)) * ANGLES(RAD(0), RAD(0), RAD(0)), 2 / Animation_Speed)
  1952. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(20), RAD(0), RAD(0)), 1 / Animation_Speed)
  1953. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(-15), RAD(25)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  1954. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(15), RAD(-25)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  1955. RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.5, -0.5) * ANGLES(RAD(0), RAD(75), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  1956. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  1957. until BUILDUP == false
  1958. end))
  1959. WINGS1.Acceleration = VT(9, 0, -12)
  1960. WINGS1B.Acceleration = VT(9, 0, -12)
  1961. WINGS2.Acceleration = VT(-9, 0, -12)
  1962. WINGS2B.Acceleration = VT(-9, 0, -12)
  1963. wait(1)
  1964. CreateSound(462676772, Torso, 7, 1, false)
  1965. WINGS1.Acceleration = VT(9, 1, 4)
  1966. WINGS1B.Acceleration = VT(9, 1, 4)
  1967. WINGS2.Acceleration = VT(-9, 1, 4)
  1968. WINGS2B.Acceleration = VT(-9, 1, 4)
  1969. wait(0.25)
  1970. AddChildrenToTable(Torso.Position, workspace, 35, HITS)
  1971. WACKYEFFECT({
  1972. Time = 40,
  1973. EffectType = "Swirl",
  1974. Size = VT(50, 5, 50),
  1975. Size2 = VT(50, 60, 50),
  1976. Transparency = 0.8,
  1977. Transparency2 = 1,
  1978. CFrame = Torso.CFrame * ANGLES(RAD(180), RAD(0), RAD(0)),
  1979. MoveToPos = nil,
  1980. RotationX = 0,
  1981. RotationY = -5,
  1982. RotationZ = 0,
  1983. Material = "Neon",
  1984. Color = C3(0.8, 0.8, 0.8),
  1985. SoundID = nil,
  1986. SoundPitch = nil,
  1987. SoundVolume = nil
  1988. })
  1989. BUILDUP = false
  1990. PARTICLES = false
  1991. if #HITS > 0 then
  1992. do
  1993. local BODIES = {}
  1994. if #HITS == 1 then
  1995. for i = 1, #HITS do
  1996. local TORSO = HITS[i]:FindFirstChild("HumanoidRootPart") or HITS[i]:FindFirstChild("Torso") or HITS[i]:FindFirstChild("UpperTorso")
  1997. local HUM = HITS[i]:FindFirstChildOfClass("Humanoid")
  1998. if HUM and TORSO and 0 < HUM.Health then
  1999. local POSITION = IT("BodyPosition", TORSO)
  2000. POSITION.Position = RootPart.CFrame * CF(0, 45, -35).p
  2001. POSITION.D = 15
  2002. POSITION.P = 4000000
  2003. table.insert(BODIES, POSITION)
  2004. end
  2005. end
  2006. else
  2007. for i = 1, #HITS do
  2008. local TORSO = HITS[i]:FindFirstChild("HumanoidRootPart") or HITS[i]:FindFirstChild("Torso") or HITS[i]:FindFirstChild("UpperTorso")
  2009. local HUM = HITS[i]:FindFirstChildOfClass("Humanoid")
  2010. if HUM and TORSO and 0 < HUM.Health then
  2011. local POSITION = IT("BodyPosition", TORSO)
  2012. POSITION.Position = RootPart.CFrame * CF(0, 35, -35) * ANGLES(RAD(0), RAD(360 / #HITS * i), RAD(0)) * CF(0, 0, 10).p
  2013. POSITION.D = 450
  2014. POSITION.P = 40000
  2015. POSITION.maxForce = Vector3.new(math.huge, math.huge, math.huge)
  2016. table.insert(BODIES, POSITION)
  2017. end
  2018. end
  2019. end
  2020. local POS = RootPart.CFrame * CF(0, 35, -35).p
  2021. wait(1.75)
  2022. BODYPOS.D = 450
  2023. BODYPOS.Position = POS
  2024. wait(0.5)
  2025. APPLYGYRO = false
  2026. local E = 0
  2027. CreateSound(1417056081, RootPart, 10, 0.5, false)
  2028. for i = 1, 50 do
  2029. Swait()
  2030. E = E + 1
  2031. WACKYEFFECT({
  2032. Time = 25,
  2033. EffectType = "Wave",
  2034. Size = VT(45, 5, 45) / 3,
  2035. Size2 = VT(35, 200, 35) / 5,
  2036. Transparency = 0.8,
  2037. Transparency2 = 1,
  2038. CFrame = Torso.CFrame * ANGLES(RAD(180), RAD(0), RAD(0)),
  2039. MoveToPos = nil,
  2040. RotationX = 0,
  2041. RotationY = 5,
  2042. RotationZ = 0,
  2043. Material = "Neon",
  2044. Color = C3(1, 0.6666666666666666, 0),
  2045. SoundID = nil,
  2046. SoundPitch = nil,
  2047. SoundVolume = nil
  2048. })
  2049. WACKYEFFECT({
  2050. Time = 25,
  2051. EffectType = "Wave",
  2052. Size = VT(55, 5, 55) / 3,
  2053. Size2 = VT(45, 200, 45) / 5,
  2054. Transparency = 0.8,
  2055. Transparency2 = 1,
  2056. CFrame = Torso.CFrame * ANGLES(RAD(180), RAD(0), RAD(0)),
  2057. MoveToPos = nil,
  2058. RotationX = 0,
  2059. RotationY = -5,
  2060. RotationZ = 0,
  2061. Material = "Neon",
  2062. Color = PHEONIXCOLOR,
  2063. SoundID = nil,
  2064. SoundPitch = nil,
  2065. SoundVolume = nil
  2066. })
  2067. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 + 1 * SIN(SINE / 24)) * ANGLES(RAD(0), RAD(0), RAD(-E * 10)) * CF(45, 0, 0) * ANGLES(RAD(65), RAD(0), RAD(0)), 2 / Animation_Speed)
  2068. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(-20), RAD(0), RAD(0)), 1 / Animation_Speed)
  2069. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(-15), RAD(0), RAD(15)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  2070. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-15), RAD(0), RAD(-15)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  2071. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(-15), RAD(65), RAD(0)) * ANGLES(RAD(-10), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  2072. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(-15), RAD(-65), RAD(0)) * ANGLES(RAD(-10), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  2073. end
  2074. local TORNADO = CreatePart(3, Effects, "Neon", 0, 1, "Really red", "Tornado", VT(0, 0, 0))
  2075. TORNADO.CFrame = CF(POS)
  2076. local MESH = CreateMesh("SpecialMesh", TORNADO, "FileMesh", "102638417", "", VT(25, 25, 25), VT(0, 0, 0))
  2077. local DECAL = IT("Decal", TORNADO)
  2078. DECAL.Texture = "rbxassetid://559849514"
  2079. DECAL.Transparency = 1
  2080. DECAL.Color3 = BRICKC("Deep orange").Color
  2081. local LOOP = 0
  2082. for i = 1, 250 do
  2083. Swait()
  2084. E = E + 1
  2085. LOOP = LOOP + 1
  2086. if LOOP == 10 then
  2087. LOOP = 0
  2088. ApplyAoE(TORNADO.Position, 35, 2, 2, 0, true, MRANDOM(3, 4), "Pheonix", true, {
  2089. SHAKE = 2,
  2090. TIMER = 4,
  2091. DOESFADE = true
  2092. })
  2093. end
  2094. TORNADO.CFrame = CF(POS) * ANGLES(RAD(0), RAD(-E * 10), RAD(0))
  2095. DECAL.Transparency = DECAL.Transparency - 0.002
  2096. WACKYEFFECT({
  2097. Time = 25,
  2098. EffectType = "Wave",
  2099. Size = VT(45, 5, 45) / 3,
  2100. Size2 = VT(35, 200, 35) / 5,
  2101. Transparency = 0.8,
  2102. Transparency2 = 1,
  2103. CFrame = Torso.CFrame * ANGLES(RAD(180), RAD(0), RAD(0)),
  2104. MoveToPos = nil,
  2105. RotationX = 0,
  2106. RotationY = 5,
  2107. RotationZ = 0,
  2108. Material = "Neon",
  2109. Color = C3(1, 0.6666666666666666, 0),
  2110. SoundID = nil,
  2111. SoundPitch = nil,
  2112. SoundVolume = nil
  2113. })
  2114. WACKYEFFECT({
  2115. Time = 25,
  2116. EffectType = "Wave",
  2117. Size = VT(55, 5, 55) / 3,
  2118. Size2 = VT(45, 200, 45) / 5,
  2119. Transparency = 0.9,
  2120. Transparency2 = 1,
  2121. CFrame = Torso.CFrame * ANGLES(RAD(180), RAD(0), RAD(0)),
  2122. MoveToPos = nil,
  2123. RotationX = 0,
  2124. RotationY = -5,
  2125. RotationZ = 0,
  2126. Material = "Neon",
  2127. Color = PHEONIXCOLOR,
  2128. SoundID = nil,
  2129. SoundPitch = nil,
  2130. SoundVolume = nil
  2131. })
  2132. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 + 1 * SIN(SINE / 24)) * ANGLES(RAD(0), RAD(0), RAD(-E * 10)) * CF(45, 0, 0) * ANGLES(RAD(65), RAD(0), RAD(0)), 2 / Animation_Speed)
  2133. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(-20), RAD(0), RAD(0)), 1 / Animation_Speed)
  2134. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(-15), RAD(0), RAD(15)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  2135. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-15), RAD(0), RAD(-15)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  2136. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(-15), RAD(65), RAD(0)) * ANGLES(RAD(-10), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  2137. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(-15), RAD(-65), RAD(0)) * ANGLES(RAD(-10), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  2138. end
  2139. for i = 1, #BODIES do
  2140. BODIES[i]:remove()
  2141. end
  2142. coroutine.resume(coroutine.create(function()
  2143. for i = 1, 25 do
  2144. Swait()
  2145. DECAL.Transparency = DECAL.Transparency + 0.02
  2146. TORNADO.CFrame = CF(POS) * ANGLES(RAD(0), RAD(-E * 10), RAD(0))
  2147. end
  2148. TORNADO:remove()
  2149. end))
  2150. for i = 1, 75 do
  2151. Swait()
  2152. E = E + 1
  2153. LOOP = LOOP + 1
  2154. TORNADO.CFrame = CF(POS) * ANGLES(RAD(0), RAD(-E * 15), RAD(0))
  2155. DECAL.Transparency = DECAL.Transparency - 0.002
  2156. WACKYEFFECT({
  2157. Time = 25,
  2158. EffectType = "Wave",
  2159. Size = VT(45, 5, 45) / 3,
  2160. Size2 = VT(35, 200, 35) / 5,
  2161. Transparency = 0.8,
  2162. Transparency2 = 1,
  2163. CFrame = Torso.CFrame * ANGLES(RAD(180), RAD(0), RAD(0)),
  2164. MoveToPos = nil,
  2165. RotationX = 0,
  2166. RotationY = 5,
  2167. RotationZ = 0,
  2168. Material = "Neon",
  2169. Color = C3(1, 0.6666666666666666, 0),
  2170. SoundID = nil,
  2171. SoundPitch = nil,
  2172. SoundVolume = nil
  2173. })
  2174. WACKYEFFECT({
  2175. Time = 25,
  2176. EffectType = "Wave",
  2177. Size = VT(55, 5, 55) / 3,
  2178. Size2 = VT(45, 200, 45) / 5,
  2179. Transparency = 0.8,
  2180. Transparency2 = 1,
  2181. CFrame = Torso.CFrame * ANGLES(RAD(180), RAD(0), RAD(0)),
  2182. MoveToPos = nil,
  2183. RotationX = 0,
  2184. RotationY = -5,
  2185. RotationZ = 0,
  2186. Material = "Neon",
  2187. Color = PHEONIXCOLOR,
  2188. SoundID = nil,
  2189. SoundPitch = nil,
  2190. SoundVolume = nil
  2191. })
  2192. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 + 1 * SIN(SINE / 24)) * ANGLES(RAD(0), RAD(0), RAD(-E * 10)) * CF(45 - 0.6 * i, 0, 0) * ANGLES(RAD(65), RAD(0), RAD(0)), 2 / Animation_Speed)
  2193. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(-20), RAD(0), RAD(0)), 1 / Animation_Speed)
  2194. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(-15), RAD(0), RAD(15)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  2195. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-15), RAD(0), RAD(-15)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  2196. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(-15), RAD(65), RAD(0)) * ANGLES(RAD(-10), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  2197. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(-15), RAD(-65), RAD(0)) * ANGLES(RAD(-10), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  2198. end
  2199. BODYPOS.D = 75
  2200. end
  2201. end
  2202. APPLYGYRO = true
  2203. ATTACK = false
  2204. end
  2205. function PheonixNuke()
  2206. if Mouse.Target ~= nil then
  2207. ATTACK = true
  2208. Rooted = false
  2209. BODYPOS.Position = Mouse.Hit.p + VT(0, 6, 0)
  2210. BODYPOS.D = 700
  2211. coroutine.resume(coroutine.create(function()
  2212. repeat
  2213. Swait()
  2214. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 + 1 * SIN(SINE / 24)) * ANGLES(RAD(0), RAD(0), RAD(0)), 2 / Animation_Speed)
  2215. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(20), RAD(0), RAD(0)), 1 / Animation_Speed)
  2216. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(-15), RAD(25)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  2217. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(15), RAD(-25)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  2218. RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.5, -0.5) * ANGLES(RAD(0), RAD(75), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  2219. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  2220. until ATTACK == false
  2221. end))
  2222. wait(1.5)
  2223. for i = 1, 4 do
  2224. WACKYEFFECT({
  2225. EffectType = "Sphere",
  2226. Size = VT(125, 125, 125),
  2227. Size2 = VT(0, 0, 0),
  2228. Transparency = 1,
  2229. Transparency2 = 0.8,
  2230. CFrame = CF(Torso.Position),
  2231. MoveToPos = nil,
  2232. RotationX = 0,
  2233. RotationY = 0,
  2234. RotationZ = 0,
  2235. Material = "Neon",
  2236. Color = PHEONIXCOLOR,
  2237. SoundID = nil,
  2238. SoundPitch = nil,
  2239. SoundVolume = nil
  2240. })
  2241. wait(0.7)
  2242. end
  2243. PARTICLES = true
  2244. WINGS1.Acceleration = VT(9, 3, 4)
  2245. WINGS1B.Acceleration = VT(9, 3, 4)
  2246. WINGS2.Acceleration = VT(-9, 3, 4)
  2247. WINGS2B.Acceleration = VT(-9, 3, 4)
  2248. wait(2)
  2249. CreateSound(462676772, Torso, 8, 1, false)
  2250. WINGS1.Acceleration = VT(9, -2, -12)
  2251. WINGS1B.Acceleration = VT(9, -2, -12)
  2252. WINGS2.Acceleration = VT(-9, -2, -12)
  2253. WINGS2B.Acceleration = VT(-9, -2, -12)
  2254. wait(1)
  2255. for i = 1, 5 do
  2256. local HITFLOOR, HITPOS = Raycast(RootPart.Position, CF(RootPart.Position, RootPart.Position + VT(0, -1, 0)).lookVector, 25, Character)
  2257. ApplyAoE(Torso.Position, 240, 25, 30, 165, true, MRANDOM(5, 7), "Pheonix", true, {
  2258. SHAKE = 8,
  2259. TIMER = 25,
  2260. DOESFADE = true
  2261. })
  2262. for i = 1, 5 do
  2263. WACKYEFFECT({
  2264. Time = 120,
  2265. EffectType = "Swirl",
  2266. Size = VT(20, 20, 20),
  2267. Size2 = (VT(180, 180, 180) + VT(50, 50, 50) * i) * 2,
  2268. Transparency = 0.8,
  2269. Transparency2 = 1,
  2270. CFrame = CF(Torso.Position) * ANGLES(RAD(0), RAD(i * 15), RAD(0)),
  2271. MoveToPos = nil,
  2272. RotationX = 0,
  2273. RotationY = 6 + i,
  2274. RotationZ = 0,
  2275. Material = "Neon",
  2276. Color = PHEONIXCOLOR,
  2277. SoundID = nil,
  2278. SoundPitch = nil,
  2279. SoundVolume = nil
  2280. })
  2281. end
  2282. WACKYEFFECT({
  2283. Time = 80,
  2284. EffectType = "Sphere",
  2285. Size = VT(40, 40, 40),
  2286. Size2 = VT(240, 240, 240) * 2,
  2287. Transparency = 0,
  2288. Transparency2 = 1,
  2289. CFrame = CF(Torso.Position),
  2290. MoveToPos = nil,
  2291. RotationX = 0,
  2292. RotationY = 0,
  2293. RotationZ = 0,
  2294. Material = "Neon",
  2295. Color = C3(1, 0.6666666666666666, 0),
  2296. SoundID = nil,
  2297. SoundPitch = 1,
  2298. SoundVolume = 8
  2299. })
  2300. WACKYEFFECT({
  2301. Time = 80,
  2302. EffectType = "Sphere",
  2303. Size = VT(50, 50, 50),
  2304. Size2 = VT(250, 250, 250) * 2,
  2305. Transparency = 0.5,
  2306. Transparency2 = 1,
  2307. CFrame = CF(Torso.Position),
  2308. MoveToPos = nil,
  2309. RotationX = 0,
  2310. RotationY = 0,
  2311. RotationZ = 0,
  2312. Material = "Neon",
  2313. Color = PHEONIXCOLOR,
  2314. SoundID = nil,
  2315. SoundPitch = 0.7,
  2316. SoundVolume = 10
  2317. })
  2318. local EXPLOSION = script.PheonixExplosion1:Clone()
  2319. EXPLOSION.Parent = Torso
  2320. EXPLOSION.Enabled = true
  2321. local EXPLOSION2 = script.PheonixExplosion2:Clone()
  2322. EXPLOSION2.Parent = Torso
  2323. EXPLOSION2.Enabled = true
  2324. EXPLOSION.Drag = -5
  2325. EXPLOSION2.Drag = -5
  2326. EXPLOSION:Emit(100)
  2327. EXPLOSION2:Emit(100)
  2328. CreateSound(462692971, Effects, 2, 1, false)
  2329. for i = 1, 5 do
  2330. wait()
  2331. WACKYEFFECT({
  2332. Time = 40,
  2333. EffectType = "Wave",
  2334. Size = VT(20, 0, 20),
  2335. Size2 = (VT(160, 6, 160) + VT(50, 4, 50) * i) * 2,
  2336. Transparency = 0.8,
  2337. Transparency2 = 1,
  2338. CFrame = CF(HITPOS) * ANGLES(RAD(0), RAD(i * 15), RAD(0)),
  2339. MoveToPos = nil,
  2340. RotationX = 0,
  2341. RotationY = -12 + i,
  2342. RotationZ = 0,
  2343. Material = "Neon",
  2344. Color = C3(1, 0.6666666666666666, 0),
  2345. SoundID = nil,
  2346. SoundPitch = nil,
  2347. SoundVolume = nil
  2348. })
  2349. WACKYEFFECT({
  2350. Time = 40,
  2351. EffectType = "Wave",
  2352. Size = VT(20, 0, 20),
  2353. Size2 = (VT(180, 6, 180) + VT(50, 5, 50) * i) * 2,
  2354. Transparency = 0.8,
  2355. Transparency2 = 1,
  2356. CFrame = CF(HITPOS) * ANGLES(RAD(0), RAD(i * 15), RAD(0)),
  2357. MoveToPos = nil,
  2358. RotationX = 0,
  2359. RotationY = -12 + i,
  2360. RotationZ = 0,
  2361. Material = "Neon",
  2362. Color = PHEONIXCOLOR,
  2363. SoundID = nil,
  2364. SoundPitch = nil,
  2365. SoundVolume = nil
  2366. })
  2367. end
  2368. EXPLOSION.Enabled = false
  2369. EXPLOSION2.Enabled = false
  2370. Debris:AddItem(EXPLOSION, 5)
  2371. Debris:AddItem(EXPLOSION2, 5)
  2372. wait(0.4)
  2373. end
  2374. wait(0.6)
  2375. PARTICLES = false
  2376. BODYPOS.D = 75
  2377. ATTACK = false
  2378. Rooted = false
  2379. end
  2380. end
  2381. function MouseDown(Mouse)
  2382. if ATTACK == false then
  2383. end
  2384. end
  2385. function MouseUp(Mouse)
  2386. HOLD = false
  2387. end
  2388. function KeyDown(Key)
  2389. KEYHOLD = true
  2390. if EQUIPPED == true then
  2391. if FLIGHT == false then
  2392. if Key == "z" and ATTACK == false then
  2393. ShootingStar()
  2394. end
  2395. if Key == "b" and ATTACK == false then
  2396. Breath()
  2397. end
  2398. if Key == "c" and ATTACK == false then
  2399. PheonixRage()
  2400. end
  2401. if Key == "q" and ATTACK == false then
  2402. FLIGHT = true
  2403. GYRO = IT("BodyGyro", RootPart)
  2404. GYRO.D = 75
  2405. GYRO.P = 40000
  2406. GYRO.MaxTorque = VT(40000, 40000, 40000)
  2407. GYRO.cframe = CF(RootPart.Position, RootPart.CFrame * CF(0, 0, -1).p)
  2408. BODYPOS = Instance.new("BodyPosition", RootPart)
  2409. BODYPOS.D = 100
  2410. BODYPOS.P = 20000
  2411. BODYPOS.maxForce = Vector3.new(math.huge, math.huge, math.huge)
  2412. BODYPOS.position = RootPart.Position + VT(0, 3, 0)
  2413. do
  2414. local RING, WELD, MESH = MagicRing(Torso, CF(0, 0.5, 1) * ANGLES(RAD(-90), RAD(0), RAD(0)), "Pheonix")
  2415. FLIGHTRING = RING
  2416. coroutine.resume(coroutine.create(function()
  2417. for i = 1, 40 do
  2418. Swait()
  2419. MESH.Scale = MESH.Scale + VT(4, 0, 4)
  2420. end
  2421. end))
  2422. PheonixJump()
  2423. end
  2424. end
  2425. elseif FLIGHT == true then
  2426. if Key == "z" and ATTACK == false and VALUE2 == false then
  2427. ThreeShootingStars()
  2428. end
  2429. if Key == "b" and ATTACK == false and VALUE2 == false then
  2430. PheonixFlare()
  2431. end
  2432. if Key == "g" and ATTACK == false and VALUE2 == false then
  2433. DragonFirePillar()
  2434. end
  2435. if Key == "v" and ATTACK == false and VALUE2 == false then
  2436. PheonixTornado()
  2437. end
  2438. if Key == "x" and ATTACK == false and VALUE2 == false then
  2439. PheonixNuke()
  2440. end
  2441. if Key == "q" and ATTACK == false and VALUE2 == false then
  2442. FLIGHT = false
  2443. coroutine.resume(coroutine.create(function()
  2444. if FLIGHTRING then
  2445. local MSH = FLIGHTRING.Mesh
  2446. local RING = FLIGHTRING
  2447. for i = 1, 40 do
  2448. Swait()
  2449. MSH.Scale = MSH.Scale - VT(4, 0, 4)
  2450. end
  2451. RING:remove()
  2452. end
  2453. end))
  2454. end
  2455. if Key == "c" and ATTACK == false and VALUE2 == false then
  2456. PheonixJump()
  2457. end
  2458. if Key == "e" and ATTACK == false and VALUE2 == false then
  2459. PheonixFireballs()()
  2460. end
  2461. if Key == "w" and ATTACK == false and VALUE2 == false then
  2462. repeat
  2463. VALUE2 = true
  2464. Swait()
  2465. BODYPOS.Position = RootPart.CFrame * CF(0, 0, -2.5).p
  2466. until KEYHOLD == false
  2467. VALUE2 = false
  2468. end
  2469. end
  2470. end
  2471. if Key == "f" and ATTACK == false and FLIGHT == false then
  2472. if EQUIPPED == false then
  2473. EQUIPPED = true
  2474. EYE.Enabled = true
  2475. EYE2.Enabled = true
  2476. sick:Play()
  2477. sick.Pitch = 0.95
  2478. sick.Volume = .1
  2479.  
  2480. else
  2481. EQUIPPED = false
  2482. FLIGHT = false
  2483. EYE.Enabled = false
  2484. EYE2.Enabled = false
  2485. sick:Stop()
  2486. end
  2487. end
  2488. if string.byte(Key) == 50 and ATTACK == false then
  2489. if Speed == 16 then
  2490. Speed = 45
  2491. elseif Speed == 45 then
  2492. Speed = 16
  2493. end
  2494. end
  2495. end
  2496. function KeyUp(Key)
  2497. KEYHOLD = false
  2498. end
  2499. Mouse.Button1Down:connect(function(NEWKEY)
  2500. MouseDown(NEWKEY)
  2501. end)
  2502. Mouse.Button1Up:connect(function(NEWKEY)
  2503. MouseUp(NEWKEY)
  2504. end)
  2505. Mouse.KeyDown:connect(function(NEWKEY)
  2506. KeyDown(NEWKEY)
  2507. end)
  2508. Mouse.KeyUp:connect(function(NEWKEY)
  2509. KeyUp(NEWKEY)
  2510. end)
  2511. function unanchor()
  2512. if UNANCHOR == true then
  2513. g = Character:GetChildren()
  2514. for i = 1, #g do
  2515. if g[i].ClassName == "Part" then
  2516. g[i].Anchored = false
  2517. end
  2518. end
  2519. end
  2520. end
  2521. Humanoid.Changed:connect(function(Jump)
  2522. if Jump == "Jump" and Disable_Jump == true then
  2523. Humanoid.Jump = false
  2524. end
  2525. end)
  2526. local LOOP = 0
  2527. local TWIST = true
  2528. while true do
  2529. Swait()
  2530. script.Parent = WEAPONGUI
  2531. ANIMATE.Parent = nil
  2532. for _, v in next, Humanoid:GetPlayingAnimationTracks() do
  2533. v:Stop()
  2534. end
  2535. SINE = SINE + CHANGE
  2536. local TORSOVELOCITY = (RootPart.Velocity * VT(1, 0, 1)).magnitude
  2537. local TORSOVERTICALVELOCITY = RootPart.Velocity.y
  2538. local HITFLOOR = Raycast(RootPart.Position, CF(RootPart.Position, RootPart.Position + VT(0, -1, 0)).lookVector, 4, Character)
  2539. local WALKSPEEDVALUE = 5
  2540. if ANIM == "Walk" and TORSOVELOCITY > 1 and FLIGHT == false then
  2541. if Humanoid.WalkSpeed <= 20 then
  2542. RootJoint.C1 = Clerp(RootJoint.C1, ROOTC0 * CF(0, 0, -0.05 * COS(SINE / (WALKSPEEDVALUE / 2))) * ANGLES(RAD(0), RAD(0), RAD(0)), 2 / Animation_Speed)
  2543. 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)), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
  2544. 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), RAD(0), RAD(45 * COS(SINE / WALKSPEEDVALUE))), 0.5 / Animation_Speed)
  2545. 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), RAD(0), RAD(45 * COS(SINE / WALKSPEEDVALUE))), 0.5 / Animation_Speed)
  2546. else
  2547. RootJoint.C1 = Clerp(RootJoint.C1, ROOTC0 * CF(0, 0, -0.15 * COS(SINE / (WALKSPEEDVALUE / 2.6))) * ANGLES(RAD(0), RAD(0) - RootPart.RotVelocity.Y / 75, RAD(0)), 2 / Animation_Speed)
  2548. 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.6))), RAD(0), RAD(0) - Head.RotVelocity.Y / 30), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
  2549. RightHip.C1 = Clerp(RightHip.C1, CF(0.5, 0.875 - 0.125 * SIN(SINE / WALKSPEEDVALUE * 1.3) - 0.15 * COS(SINE / WALKSPEEDVALUE * 2.6), -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)
  2550. LeftHip.C1 = Clerp(LeftHip.C1, CF(-0.5, 0.875 + 0.125 * SIN(SINE / WALKSPEEDVALUE * 1.3) - 0.15 * COS(SINE / WALKSPEEDVALUE * 2.6), 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)
  2551. end
  2552. elseif ANIM ~= "Walk" or TORSOVELOCITY < 1 or FLIGHT == true then
  2553. RootJoint.C1 = Clerp(RootJoint.C1, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  2554. 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)
  2555. 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)
  2556. 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)
  2557. end
  2558. if FLIGHT == false then
  2559. if GYRO ~= nil then
  2560. GYRO:remove()
  2561. end
  2562. if BODYPOS ~= nil then
  2563. BODYPOS:remove()
  2564. end
  2565. if TORSOVERTICALVELOCITY > 1 and HITFLOOR == nil then
  2566. ANIM = "Jump"
  2567. if ATTACK == false then
  2568. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  2569. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(-20), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  2570. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(-40), RAD(0), RAD(20)) * RIGHTSHOULDERC0, 0.2 / Animation_Speed)
  2571. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-40), RAD(0), RAD(-20)) * LEFTSHOULDERC0, 0.2 / Animation_Speed)
  2572. 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)
  2573. 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)
  2574. end
  2575. elseif TORSOVERTICALVELOCITY < -1 and HITFLOOR == nil then
  2576. ANIM = "Fall"
  2577. if ATTACK == false then
  2578. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  2579. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(20), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  2580. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(60)) * RIGHTSHOULDERC0, 0.2 / Animation_Speed)
  2581. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-60)) * LEFTSHOULDERC0, 0.2 / Animation_Speed)
  2582. 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)
  2583. 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)
  2584. end
  2585. elseif TORSOVELOCITY < 1 and HITFLOOR ~= nil then
  2586. ANIM = "Idle"
  2587. if ATTACK == false then
  2588. 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)
  2589. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  2590. 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)
  2591. 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)
  2592. 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)
  2593. 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)
  2594. end
  2595. elseif TORSOVELOCITY > 1 and HITFLOOR ~= nil then
  2596. ANIM = "Walk"
  2597. if ATTACK == false then
  2598. if Humanoid.WalkSpeed <= 30 then
  2599. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, -0.1) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  2600. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  2601. 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)
  2602. 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)
  2603. 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)
  2604. 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)
  2605. elseif Humanoid.WalkSpeed > 30 then
  2606. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, -0.1) * ANGLES(RAD(35), RAD(0), RAD(0)), 1 / Animation_Speed)
  2607. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(-35), RAD(0), RAD(0)), 1 / Animation_Speed)
  2608. 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)
  2609. 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)
  2610. 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)
  2611. 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)
  2612. end
  2613. end
  2614. end
  2615. elseif FLIGHT == true then
  2616. if APPLYGYRO == true then
  2617. if VALUE2 == false and DIRECTTURN == false then
  2618. if GYRO ~= nil then
  2619. GYRO.MaxTorque = VT(0, 40000, 0)
  2620. GYRO.cframe = CF(RootPart.Position, Mouse.Hit.p)
  2621. end
  2622. elseif GYRO ~= nil then
  2623. GYRO.MaxTorque = VT(40000, 40000, 40000)
  2624. GYRO.cframe = CF(RootPart.Position, Mouse.Hit.p)
  2625. end
  2626. end
  2627. if VALUE2 == false and ATTACK == false then
  2628. ANIM = "IdleFlight"
  2629. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 + 1 * SIN(SINE / 24)) * ANGLES(RAD(0), RAD(0), RAD(0)), 2 / Animation_Speed)
  2630. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(20), RAD(0), RAD(0)), 1 / Animation_Speed)
  2631. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(-15), RAD(25)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  2632. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(15), RAD(-25)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  2633. RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.5, -0.5) * ANGLES(RAD(0), RAD(75), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  2634. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  2635. elseif VALUE2 == true and ATTACK == false then
  2636. ANIM = "Flight"
  2637. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 + 1 * SIN(SINE / 24)) * ANGLES(RAD(65), RAD(0), RAD(0)), 1 / Animation_Speed)
  2638. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(-20), RAD(0), RAD(0)), 1 / Animation_Speed)
  2639. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(-15), RAD(0), RAD(15)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  2640. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-15), RAD(0), RAD(-15)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  2641. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(-15), RAD(65), RAD(0)) * ANGLES(RAD(-10), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  2642. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(-15), RAD(-65), RAD(0)) * ANGLES(RAD(-10), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  2643. end
  2644. end
  2645. local ACCEL1 = VT(10, 2 - 6 * COS(SINE / 24), -4 - 2 * COS(SINE / 24))
  2646. local ACCEL2 = VT(-10, 2 - 6 * COS(SINE / 24), -4 - 2 * COS(SINE / 24))
  2647. if PARTICLES == false then
  2648. WINGS1.Acceleration = ACCEL1
  2649. WINGS1B.Acceleration = ACCEL1
  2650. WINGS2.Acceleration = ACCEL2
  2651. WINGS2B.Acceleration = ACCEL2
  2652. end
  2653. if FLIGHT == true or WINGS == true then
  2654. WINGS1.Enabled = true
  2655. WINGS1B.Enabled = true
  2656. WINGS2.Enabled = true
  2657. WINGS2B.Enabled = true
  2658. else
  2659. WINGS1.Enabled = false
  2660. WINGS1B.Enabled = false
  2661. WINGS2.Enabled = false
  2662. WINGS2B.Enabled = false
  2663. end
  2664. unanchor()
  2665. TRAIL1.Enabled = FLIGHT
  2666. TRAIL2.Enabled = FLIGHT
  2667. LIGHT.Enabled = EQUIPPED
  2668. Humanoid.MaxHealth = "inf"
  2669. Humanoid.Health = "inf"
  2670. if Rooted == false and FLIGHT == false then
  2671. Disable_Jump = false
  2672. Humanoid.WalkSpeed = Speed
  2673. elseif Rooted == true or FLIGHT == true then
  2674. Disable_Jump = true
  2675. Humanoid.WalkSpeed = 0
  2676. end
  2677.  
  2678. if FLIGHT == true then
  2679. sick.Pitch = 1
  2680. sick.Volume = 1.5
  2681. LOOP = LOOP + 1
  2682. if LOOP >= 10 then
  2683. local HITFLOOR, HITPOS = Raycast(RootPart.Position, CF(RootPart.Position, RootPart.Position + VT(0, -1, 0)).lookVector, 15, Character)
  2684. if HITFLOOR then
  2685. local DISTANCE = (RootPart.Position - HITPOS).Magnitude
  2686. local SIZE = (26 - DISTANCE) * 2
  2687. if TWIST == true then
  2688. TWIST = false
  2689. WACKYEFFECT({
  2690. Time = 25,
  2691. EffectType = "Wave",
  2692. Size = VT(SIZE / 2, 0, SIZE / 2),
  2693. Size2 = VT(SIZE, 6, SIZE),
  2694. Transparency = 0.6,
  2695. Transparency2 = 1,
  2696. CFrame = CF(HITPOS) * ANGLES(RAD(0), RAD(MRANDOM(0, 360)), RAD(0)) * ANGLES(RAD(MRANDOM(-5, 5)), RAD(0), RAD(MRANDOM(-5, 5))),
  2697. MoveToPos = nil,
  2698. RotationX = 0,
  2699. RotationY = 15,
  2700. RotationZ = 0,
  2701. Material = "Neon",
  2702. Color = C3(1, (205 + 35 * SIN(SINE / 24)) / 255, 0.5 + 0.5 * SIN(SINE / 24)),
  2703. SoundID = nil,
  2704. SoundPitch = nil,
  2705. SoundVolume = nil
  2706. })
  2707. else
  2708. TWIST = true
  2709. WACKYEFFECT({
  2710. Time = 25,
  2711. EffectType = "Wave",
  2712. Size = VT(SIZE / 2, 0, SIZE / 2),
  2713. Size2 = VT(SIZE, 6, SIZE),
  2714. Transparency = 0.6,
  2715. Transparency2 = 1,
  2716. CFrame = CF(HITPOS) * ANGLES(RAD(0), RAD(MRANDOM(0, 360)), RAD(0)) * ANGLES(RAD(MRANDOM(-5, 5)), RAD(0), RAD(MRANDOM(-5, 5))),
  2717. MoveToPos = nil,
  2718. RotationX = 0,
  2719. RotationY = -15,
  2720. RotationZ = 0,
  2721. Material = "Neon",
  2722. Color = C3(1, (205 + 35 * SIN(SINE / 24)) / 255, 0.5 + 0.5 * SIN(SINE / 24)),
  2723. SoundID = nil,
  2724. SoundPitch = nil,
  2725. SoundVolume = nil
  2726. })
  2727. end
  2728. LOOP = 0
  2729. end
  2730. end
  2731. else
  2732. end
  2733. sick.Parent = Character
  2734. Humanoid.Name = "WarPheonix"
  2735. end
  2736.  
  2737. end))
  2738. ParticleEmitter1.Name = "RingEmit"
  2739. ParticleEmitter1.Parent = LocalScript0
  2740. ParticleEmitter1.Transparency = NumberSequence.new(1,0.12568306922913,0,0,0.41530054807663,1)
  2741. ParticleEmitter1.Rotation = NumberRange.new(0, 360)
  2742. ParticleEmitter1.Size = NumberSequence.new(0,6.2841534614563,5.027322769165,2.8961749076843,0)
  2743. ParticleEmitter1.Enabled = false
  2744. ParticleEmitter1.LightEmission = 1
  2745. ParticleEmitter1.Texture = "rbxassetid://1493478120"
  2746. ParticleEmitter1.ZOffset = 1
  2747. ParticleEmitter1.Lifetime = NumberRange.new(0.60000002384186, 0.60000002384186)
  2748. ParticleEmitter1.Rate = 5
  2749. ParticleEmitter1.Speed = NumberRange.new(0, 0)
  2750. ParticleEmitter2.Name = "Wing1"
  2751. ParticleEmitter2.Parent = LocalScript0
  2752. ParticleEmitter2.Transparency = NumberSequence.new(1,0.58469945192337,0.24590164422989,0,0.22950822114944,0.62841534614563,1)
  2753. ParticleEmitter2.Rotation = NumberRange.new(0, 360)
  2754. ParticleEmitter2.Size = NumberSequence.new(0,0.062499642372131,0.81250011920929,2.6875,3.3125,2.5624995231628,2.3125,1.8124997615814)
  2755. ParticleEmitter2.Enabled = false
  2756. ParticleEmitter2.LightEmission = 1
  2757. ParticleEmitter2.Texture = "rbxassetid://296874871"
  2758. ParticleEmitter2.Acceleration = Vector3.new(5, 4, -4)
  2759. ParticleEmitter2.Lifetime = NumberRange.new(2, 2)
  2760. ParticleEmitter2.Rate = 300
  2761. ParticleEmitter2.RotSpeed = NumberRange.new(-56, 56)
  2762. ParticleEmitter2.Speed = NumberRange.new(4, 4)
  2763. ParticleEmitter2.VelocitySpread = 35
  2764. ParticleEmitter3.Name = "SunFireball"
  2765. ParticleEmitter3.Parent = LocalScript0
  2766. ParticleEmitter3.Transparency = NumberSequence.new(0.47540986537933,0.37704920768738,0.25683063268661,0.4426229596138,0.62841534614563,1)
  2767. ParticleEmitter3.Rotation = NumberRange.new(0, 360)
  2768. ParticleEmitter3.Size = NumberSequence.new(10,8.125,5.6875,1.1250001192093,0)
  2769. ParticleEmitter3.Color = ColorSequence.new(Color3.new(1, 0.666667, 0),Color3.new(1, 0.666667, 0))
  2770. ParticleEmitter3.Enabled = false
  2771. ParticleEmitter3.LightEmission = 0.75
  2772. ParticleEmitter3.Texture = "rbxassetid://296874871"
  2773. ParticleEmitter3.ZOffset = 0.20000000298023
  2774. ParticleEmitter3.Acceleration = Vector3.new(0, 5, 0)
  2775. ParticleEmitter3.Lifetime = NumberRange.new(1, 1)
  2776. ParticleEmitter3.Rate = 300
  2777. ParticleEmitter3.RotSpeed = NumberRange.new(-56, 56)
  2778. ParticleEmitter3.Speed = NumberRange.new(3, 3)
  2779. ParticleEmitter3.VelocitySpread = 360
  2780. ParticleEmitter3.Color = ColorSequence.new(Color3.new(1, 0.666667, 0),Color3.new(1, 0.666667, 0))
  2781. ParticleEmitter4.Name = "SunExplosion"
  2782. ParticleEmitter4.Parent = LocalScript0
  2783. ParticleEmitter4.Transparency = NumberSequence.new(0.47540986537933,0.37704920768738,0.25683063268661,0.4426229596138,0.62841534614563,1)
  2784. ParticleEmitter4.Rotation = NumberRange.new(0, 360)
  2785. ParticleEmitter4.Size = NumberSequence.new(5,7.875,7.875,5.3125,0)
  2786. ParticleEmitter4.Color = ColorSequence.new(Color3.new(1, 0.666667, 0),Color3.new(1, 0.666667, 0))
  2787. ParticleEmitter4.Enabled = false
  2788. ParticleEmitter4.LightEmission = 0.75
  2789. ParticleEmitter4.Texture = "rbxassetid://296874871"
  2790. ParticleEmitter4.ZOffset = 0.20000000298023
  2791. ParticleEmitter4.Acceleration = Vector3.new(0, 5, 0)
  2792. ParticleEmitter4.Lifetime = NumberRange.new(0, 3)
  2793. ParticleEmitter4.Rate = 300
  2794. ParticleEmitter4.RotSpeed = NumberRange.new(-56, 56)
  2795. ParticleEmitter4.Speed = NumberRange.new(150, 350)
  2796. ParticleEmitter4.VelocitySpread = 360
  2797. ParticleEmitter4.Color = ColorSequence.new(Color3.new(1, 0.666667, 0),Color3.new(1, 0.666667, 0))
  2798. ParticleEmitter5.Name = "SunBurn"
  2799. ParticleEmitter5.Parent = LocalScript0
  2800. ParticleEmitter5.Transparency = NumberSequence.new(0.47540986537933,0.37704920768738,0.25683063268661,0.4426229596138,0.62841534614563,1)
  2801. ParticleEmitter5.Rotation = NumberRange.new(0, 360)
  2802. ParticleEmitter5.Size = NumberSequence.new(0.81250011920929,0.81250011920929,0)
  2803. ParticleEmitter5.Color = ColorSequence.new(Color3.new(1, 0.666667, 0),Color3.new(1, 0.666667, 0))
  2804. ParticleEmitter5.Enabled = false
  2805. ParticleEmitter5.LightEmission = 0.75
  2806. ParticleEmitter5.Texture = "rbxassetid://296874871"
  2807. ParticleEmitter5.ZOffset = 0.5
  2808. ParticleEmitter5.Acceleration = Vector3.new(0, 5, 0)
  2809. ParticleEmitter5.Lifetime = NumberRange.new(1, 1)
  2810. ParticleEmitter5.Rate = 300
  2811. ParticleEmitter5.RotSpeed = NumberRange.new(-56, 56)
  2812. ParticleEmitter5.Speed = NumberRange.new(1, 1)
  2813. ParticleEmitter5.VelocitySpread = 360
  2814. ParticleEmitter5.Color = ColorSequence.new(Color3.new(1, 0.666667, 0),Color3.new(1, 0.666667, 0))
  2815. ParticleEmitter6.Name = "PheonixBurn"
  2816. ParticleEmitter6.Parent = LocalScript0
  2817. ParticleEmitter6.Transparency = NumberSequence.new(0.47540986537933,0.37704920768738,0.25683063268661,0.4426229596138,0.62841534614563,1)
  2818. ParticleEmitter6.Rotation = NumberRange.new(0, 360)
  2819. ParticleEmitter6.Size = NumberSequence.new(0.81250011920929,0.81250011920929,0)
  2820. ParticleEmitter6.Enabled = false
  2821. ParticleEmitter6.LightEmission = 1
  2822. ParticleEmitter6.Texture = "rbxassetid://296874871"
  2823. ParticleEmitter6.ZOffset = 0.5
  2824. ParticleEmitter6.Acceleration = Vector3.new(0, 8, 0)
  2825. ParticleEmitter6.Lifetime = NumberRange.new(1, 1)
  2826. ParticleEmitter6.Rate = 300
  2827. ParticleEmitter6.RotSpeed = NumberRange.new(-56, 56)
  2828. ParticleEmitter6.Speed = NumberRange.new(1, 1)
  2829. ParticleEmitter6.VelocitySpread = 360
  2830. ParticleEmitter7.Name = "PheonixExplosion1"
  2831. ParticleEmitter7.Parent = LocalScript0
  2832. ParticleEmitter7.Transparency = NumberSequence.new(0.47540986537933,0.37704920768738,0.25683063268661,0.4426229596138,0.62841534614563,1)
  2833. ParticleEmitter7.Rotation = NumberRange.new(0, 360)
  2834. ParticleEmitter7.Size = NumberSequence.new(1.3124996423721,4.8125,5.6875,3.4999995231628,0)
  2835. ParticleEmitter7.Enabled = false
  2836. ParticleEmitter7.LightEmission = 1
  2837. ParticleEmitter7.Texture = "rbxassetid://296874871"
  2838. ParticleEmitter7.ZOffset = 0.20000000298023
  2839. ParticleEmitter7.Acceleration = Vector3.new(0, 5, 0)
  2840. ParticleEmitter7.Lifetime = NumberRange.new(0, 3)
  2841. ParticleEmitter7.Rate = 600
  2842. ParticleEmitter7.RotSpeed = NumberRange.new(-56, 56)
  2843. ParticleEmitter7.Speed = NumberRange.new(50, 50)
  2844. ParticleEmitter7.VelocitySpread = 360
  2845. ParticleEmitter8.Name = "PheonixExplosion2"
  2846. ParticleEmitter8.Parent = LocalScript0
  2847. ParticleEmitter8.Transparency = NumberSequence.new(0.47540986537933,0.37704920768738,0.25683063268661,0.4426229596138,0.62841534614563,1)
  2848. ParticleEmitter8.Rotation = NumberRange.new(0, 360)
  2849. ParticleEmitter8.Size = NumberSequence.new(4,4)
  2850. ParticleEmitter8.Color = ColorSequence.new(Color3.new(1, 0.666667, 0),Color3.new(1, 0.666667, 0))
  2851. ParticleEmitter8.Enabled = false
  2852. ParticleEmitter8.LightEmission = 0.69999998807907
  2853. ParticleEmitter8.ZOffset = 0.20000000298023
  2854. ParticleEmitter8.Acceleration = Vector3.new(0, 5, 0)
  2855. ParticleEmitter8.Lifetime = NumberRange.new(0, 3)
  2856. ParticleEmitter8.Rate = 300
  2857. ParticleEmitter8.RotSpeed = NumberRange.new(-56, 56)
  2858. ParticleEmitter8.Speed = NumberRange.new(70, 70)
  2859. ParticleEmitter8.VelocitySpread = 360
  2860. ParticleEmitter8.Color = ColorSequence.new(Color3.new(1, 0.666667, 0),Color3.new(1, 0.666667, 0))
  2861. LocalScript9.Name = "CamShake"
  2862. LocalScript9.Parent = LocalScript0
  2863. LocalScript9.Disabled = true
  2864. NumberValue10.Name = "Timer"
  2865. NumberValue10.Parent = LocalScript9
  2866. NumberValue10.Value = 35
  2867. NumberValue11.Name = "Shake"
  2868. NumberValue11.Parent = LocalScript9
  2869. NumberValue11.Value = 5
  2870. BoolValue12.Name = "DoesFade"
  2871. BoolValue12.Parent = LocalScript9
  2872. ParticleEmitter13.Name = "Gale"
  2873. ParticleEmitter13.Parent = LocalScript0
  2874. ParticleEmitter13.Transparency = NumberSequence.new(1,0.91256833076477,0.83606559038162,0.81967210769653,1)
  2875. ParticleEmitter13.Rotation = NumberRange.new(0, 360)
  2876. ParticleEmitter13.Size = NumberSequence.new(8,6)
  2877. ParticleEmitter13.Enabled = false
  2878. ParticleEmitter13.Texture = "rbxassetid://1614893149"
  2879. ParticleEmitter13.Lifetime = NumberRange.new(1, 1)
  2880. ParticleEmitter13.Rate = 50
  2881. ParticleEmitter13.Speed = NumberRange.new(0, 0)
  2882. ParticleEmitter14.Name = "PheonixFireball1"
  2883. ParticleEmitter14.Parent = LocalScript0
  2884. ParticleEmitter14.Transparency = NumberSequence.new(0.47540986537933,0.37704920768738,0.25683063268661,0.4426229596138,0.62841534614563,1)
  2885. ParticleEmitter14.Rotation = NumberRange.new(0, 360)
  2886. ParticleEmitter14.Size = NumberSequence.new(6.625,4.625,3.4375,1.3124996423721,0)
  2887. ParticleEmitter14.Enabled = false
  2888. ParticleEmitter14.LightEmission = 1
  2889. ParticleEmitter14.Texture = "rbxassetid://296874871"
  2890. ParticleEmitter14.ZOffset = 0.5
  2891. ParticleEmitter14.Lifetime = NumberRange.new(0.60000002384186, 0.60000002384186)
  2892. ParticleEmitter14.Rate = 1000
  2893. ParticleEmitter14.RotSpeed = NumberRange.new(-56, 56)
  2894. ParticleEmitter14.Speed = NumberRange.new(4, 4)
  2895. ParticleEmitter14.VelocitySpread = 360
  2896. ParticleEmitter15.Name = "PheonixFireball2"
  2897. ParticleEmitter15.Parent = LocalScript0
  2898. ParticleEmitter15.Transparency = NumberSequence.new(0.47540986537933,0.37704920768738,0.25683063268661,0.4426229596138,0.62841534614563,1)
  2899. ParticleEmitter15.Rotation = NumberRange.new(0, 360)
  2900. ParticleEmitter15.Size = NumberSequence.new(4.3125,4.1530055999756,2.8961749076843,1.1475414037704,0)
  2901. ParticleEmitter15.Color = ColorSequence.new(Color3.new(1, 0.666667, 0),Color3.new(1, 0.666667, 0))
  2902. ParticleEmitter15.Enabled = false
  2903. ParticleEmitter15.LightEmission = 0.69999998807907
  2904. ParticleEmitter15.ZOffset = 1
  2905. ParticleEmitter15.Lifetime = NumberRange.new(0.60000002384186, 0.60000002384186)
  2906. ParticleEmitter15.Rate = 300
  2907. ParticleEmitter15.RotSpeed = NumberRange.new(-56, 56)
  2908. ParticleEmitter15.Speed = NumberRange.new(4, 4)
  2909. ParticleEmitter15.VelocitySpread = 360
  2910. ParticleEmitter15.Color = ColorSequence.new(Color3.new(1, 0.666667, 0),Color3.new(1, 0.666667, 0))
  2911. ParticleEmitter16.Name = "Wing2"
  2912. ParticleEmitter16.Parent = LocalScript0
  2913. ParticleEmitter16.Transparency = NumberSequence.new(1,0.58469945192337,0.24590164422989,0,0.22950822114944,0.62841534614563,1)
  2914. ParticleEmitter16.Rotation = NumberRange.new(0, 360)
  2915. ParticleEmitter16.Size = NumberSequence.new(0,0.062499642372131,0.81250011920929,2.6875,3.3125,2.5624995231628,2.3125,1.8124997615814)
  2916. ParticleEmitter16.Enabled = false
  2917. ParticleEmitter16.LightEmission = 1
  2918. ParticleEmitter16.Texture = "rbxassetid://296874871"
  2919. ParticleEmitter16.Acceleration = Vector3.new(-5, 4, -4)
  2920. ParticleEmitter16.Lifetime = NumberRange.new(2, 2)
  2921. ParticleEmitter16.Rate = 300
  2922. ParticleEmitter16.RotSpeed = NumberRange.new(-56, 56)
  2923. ParticleEmitter16.Speed = NumberRange.new(4, 4)
  2924. ParticleEmitter16.VelocitySpread = 35
  2925. ParticleEmitter17.Name = "Wing1B"
  2926. ParticleEmitter17.Parent = LocalScript0
  2927. ParticleEmitter17.Transparency = NumberSequence.new(1,0.58469945192337,0.24590164422989,0,0.20765030384064,0.5956284403801,1)
  2928. ParticleEmitter17.Rotation = NumberRange.new(0, 360)
  2929. ParticleEmitter17.Size = NumberSequence.new(0,0,1.8579238653183,2.4043715000153,1.8124997615814,0)
  2930. ParticleEmitter17.Color = ColorSequence.new(Color3.new(1, 0.666667, 0),Color3.new(1, 0.666667, 0))
  2931. ParticleEmitter17.Enabled = false
  2932. ParticleEmitter17.LightEmission = 0.69999998807907
  2933. ParticleEmitter17.ZOffset = 0.20000000298023
  2934. ParticleEmitter17.Acceleration = Vector3.new(5, 4, -4)
  2935. ParticleEmitter17.Lifetime = NumberRange.new(1.9500000476837, 1.9500000476837)
  2936. ParticleEmitter17.Rate = 150
  2937. ParticleEmitter17.RotSpeed = NumberRange.new(-56, 56)
  2938. ParticleEmitter17.Speed = NumberRange.new(4, 4)
  2939. ParticleEmitter17.VelocitySpread = 35
  2940. ParticleEmitter17.Color = ColorSequence.new(Color3.new(1, 0.666667, 0),Color3.new(1, 0.666667, 0))
  2941. ParticleEmitter18.Name = "Eye1"
  2942. ParticleEmitter18.EmissionDirection="Right"
  2943. ParticleEmitter18.Parent = LocalScript0
  2944. ParticleEmitter18.Transparency = NumberSequence.new(0.55737709999084,0.37704920768738,0.4426229596138,0.62841534614563,1)
  2945. ParticleEmitter18.Rotation = NumberRange.new(0, 360)
  2946. ParticleEmitter18.Size = NumberSequence.new(0.40000000596046,0.12499988079071,0)
  2947. ParticleEmitter18.Enabled = false
  2948. ParticleEmitter18.LightEmission = 0.75
  2949. ParticleEmitter18.Texture = "rbxassetid://296874871"
  2950. ParticleEmitter18.ZOffset = 0.20000000298023
  2951. ParticleEmitter18.Acceleration = Vector3.new(0, 5, 6)
  2952. ParticleEmitter18.Lifetime = NumberRange.new(1, 1)
  2953. ParticleEmitter18.Rate = 300
  2954. ParticleEmitter18.RotSpeed = NumberRange.new(-56, 56)
  2955. ParticleEmitter18.VelocitySpread = 5
  2956. ParticleEmitter19.Name = "Eye2"
  2957. ParticleEmitter19.Parent = LocalScript0
  2958. ParticleEmitter19.EmissionDirection="Right"
  2959. ParticleEmitter19.Transparency = NumberSequence.new(0.71584701538086,0.68306010961533,0.37704920768738,0.4426229596138,0.62841534614563,1)
  2960. ParticleEmitter19.Rotation = NumberRange.new(0, 360)
  2961. ParticleEmitter19.Size = NumberSequence.new(0.65573811531067,0.2732241153717,0)
  2962. ParticleEmitter19.Color = ColorSequence.new(Color3.new(1, 0.666667, 0),Color3.new(1, 0.666667, 0))
  2963. ParticleEmitter19.Enabled = false
  2964. ParticleEmitter19.LightEmission = 0.75
  2965. ParticleEmitter19.ZOffset = 0.30000001192093
  2966. ParticleEmitter19.Acceleration = Vector3.new(0, 5, 6)
  2967. ParticleEmitter19.Lifetime = NumberRange.new(0.5, 0.5)
  2968. ParticleEmitter19.Rate = 300
  2969. ParticleEmitter19.RotSpeed = NumberRange.new(-56, 56)
  2970. ParticleEmitter19.VelocitySpread = 5
  2971. ParticleEmitter19.Color = ColorSequence.new(Color3.new(1, 0.666667, 0),Color3.new(1, 0.666667, 0))
  2972. ParticleEmitter20.Name = "Wing2B"
  2973. ParticleEmitter20.Parent = LocalScript0
  2974. ParticleEmitter20.Transparency = NumberSequence.new(1,0.58469945192337,0.24590164422989,0,0.20765030384064,0.5956284403801,1)
  2975. ParticleEmitter20.Rotation = NumberRange.new(0, 360)
  2976. ParticleEmitter20.Size = NumberSequence.new(0,0,1.8579238653183,2.4043715000153,1.8124997615814,0)
  2977. ParticleEmitter20.Color = ColorSequence.new(Color3.new(1, 0.666667, 0),Color3.new(1, 0.666667, 0))
  2978. ParticleEmitter20.Enabled = false
  2979. ParticleEmitter20.LightEmission = 0.69999998807907
  2980. ParticleEmitter20.ZOffset = 0.20000000298023
  2981. ParticleEmitter20.Acceleration = Vector3.new(-5, 4, -4)
  2982. ParticleEmitter20.Lifetime = NumberRange.new(1.9500000476837, 1.9500000476837)
  2983. ParticleEmitter20.Rate = 150
  2984. ParticleEmitter20.RotSpeed = NumberRange.new(-56, 56)
  2985. ParticleEmitter20.Speed = NumberRange.new(4, 4)
  2986. ParticleEmitter20.VelocitySpread = 35
  2987. ParticleEmitter20.Color = ColorSequence.new(Color3.new(1, 0.666667, 0),Color3.new(1, 0.666667, 0))
  2988. ParticleEmitter21.Name = "Burn"
  2989. ParticleEmitter21.Parent = LocalScript0
  2990. ParticleEmitter21.Transparency = NumberSequence.new(0.47540986537933,0.37704920768738,0.25683063268661,0.4426229596138,0.62841534614563,1)
  2991. ParticleEmitter21.Rotation = NumberRange.new(0, 360)
  2992. ParticleEmitter21.Size = NumberSequence.new(0.98360657691956,0.32786905765533,0)
  2993. ParticleEmitter21.Color = ColorSequence.new(Color3.new(1, 0.333333, 0),Color3.new(1, 0.333333, 0))
  2994. ParticleEmitter21.Enabled = false
  2995. ParticleEmitter21.LightEmission = 0.75
  2996. ParticleEmitter21.Texture = "rbxassetid://296874871"
  2997. ParticleEmitter21.ZOffset = 0.5
  2998. ParticleEmitter21.Acceleration = Vector3.new(0, 5, 0)
  2999. ParticleEmitter21.Lifetime = NumberRange.new(1, 1)
  3000. ParticleEmitter21.Rate = 300
  3001. ParticleEmitter21.RotSpeed = NumberRange.new(-56, 56)
  3002. ParticleEmitter21.Speed = NumberRange.new(1, 1)
  3003. ParticleEmitter21.VelocitySpread = 360--https://github.com/Mokiros/roblox-FE-compatibility
  3004. if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
  3005. local Player,Mouse,mouse,UserInputService,ContextActionService = owner
  3006. local RealPlayer = Player
  3007. do print("FE Compatibility code by Mokiros")local a=RealPlayer;script.Parent=a.Character;local b=Instance.new("RemoteEvent")b.Name="UserInput_Event"local function c()local d={_fakeEvent=true,Functions={},Connect=function(self,e)table.insert(self.Functions,e)end}d.connect=d.Connect;return d end;local f={Target=nil,Hit=CFrame.new(),KeyUp=c(),KeyDown=c(),Button1Up=c(),Button1Down=c(),Button2Up=c(),Button2Down=c()}local g={InputBegan=c(),InputEnded=c()}local CAS={Actions={},BindAction=function(self,h,i,j,...)CAS.Actions[h]=i and{Name=h,Function=i,Keys={...}}or nil end}CAS.UnbindAction=CAS.BindAction;local function k(self,l,...)local d=f[l]if d and d._fakeEvent then for m,e in pairs(d.Functions)do e(...)end end end;f.TrigEvent=k;g.TrigEvent=k;b.OnServerEvent:Connect(function(n,o)if n~=a then return end;f.Target=o.Target;f.Hit=o.Hit;if not o.isMouse then local p=o.UserInputState==Enum.UserInputState.Begin;if o.UserInputType==Enum.UserInputType.MouseButton1 then return f:TrigEvent(p and"Button1Down"or"Button1Up")end;if o.UserInputType==Enum.UserInputType.MouseButton2 then return f:TrigEvent(p and"Button2Down"or"Button2Up")end;for m,d in pairs(CAS.Actions)do for m,q in pairs(d.Keys)do if q==o.KeyCode then d.Function(d.Name,o.UserInputState,o)end end end;f:TrigEvent(p and"KeyDown"or"KeyUp",o.KeyCode.Name:lower())g:TrigEvent(p and"InputBegan"or"InputEnded",o,false)end end)b.Parent=NLS([==[local a=game:GetService("Players").LocalPlayer;local b=script:WaitForChild("UserInput_Event")local c=a:GetMouse()local d=game:GetService("UserInputService")local e=function(f,g)if g then return end;b:FireServer({KeyCode=f.KeyCode,UserInputType=f.UserInputType,UserInputState=f.UserInputState,Hit=c.Hit,Target=c.Target})end;d.InputBegan:Connect(e)d.InputEnded:Connect(e)local h,i;while wait(1/30)do if h~=c.Hit or i~=c.Target then h,i=c.Hit,c.Target;b:FireServer({isMouse=true,Target=i,Hit=h})end end]==],Player.Character)local r=game;local s={__index=function(self,q)local t=rawget(self,"_RealService")if t then return typeof(t[q])=="function"and function(m,...)return t[q](t,...)end or t[q]end end,__newindex=function(self,q,u)local t=rawget(self,"_RealService")if t then t[q]=u end end}local function v(d,w)d._RealService=typeof(w)=="string"and r:GetService(w)or w;return setmetatable(d,s)end;local x={GetService=function(self,t)return rawget(self,t)or r:GetService(t)end,Players=v({LocalPlayer=v({GetMouse=function(self)return f end},Player)},"Players"),UserInputService=v(g,"UserInputService"),ContextActionService=v(CAS,"ContextActionService"),RunService=v({_btrs={},RenderStepped=r:GetService("RunService").Heartbeat,BindToRenderStep=function(self,h,m,i)self._btrs[h]=self.Heartbeat:Connect(i)end,UnbindFromRenderStep=function(self,h)self._btrs[h]:Disconnect()end},"RunService")}rawset(x.Players,"localPlayer",x.Players.LocalPlayer)x.service=x.GetService;v(x,game)game,owner=x,x.Players.LocalPlayer end
  3008. Character = game.Players.LocalPlayer.Character
  3009. Head = Character.Head
  3010.  
  3011. --Converted with ttyyuu12345's model to script plugin v4
  3012. function sandbox(var,func)
  3013. local env = getfenv(func)
  3014. local newenv = setmetatable({},{
  3015. __index = function(self,k)
  3016. if k=="script" then
  3017. return var
  3018. else
  3019. return env[k]
  3020. end
  3021. end,
  3022. })
  3023. setfenv(func,newenv)
  3024. return func
  3025. end
  3026. cors = {}
  3027. mas = Instance.new("Model",game:GetService("Lighting"))
  3028. LocalScript0 = Instance.new("LocalScript")
  3029. ParticleEmitter1 = Instance.new("ParticleEmitter")
  3030. ParticleEmitter2 = Instance.new("ParticleEmitter")
  3031. ParticleEmitter3 = Instance.new("ParticleEmitter")
  3032. ParticleEmitter4 = Instance.new("ParticleEmitter")
  3033. ParticleEmitter5 = Instance.new("ParticleEmitter")
  3034. ParticleEmitter6 = Instance.new("ParticleEmitter")
  3035. ParticleEmitter7 = Instance.new("ParticleEmitter")
  3036. ParticleEmitter8 = Instance.new("ParticleEmitter")
  3037. LocalScript9 = Instance.new("LocalScript")
  3038. NumberValue10 = Instance.new("NumberValue")
  3039. NumberValue11 = Instance.new("NumberValue")
  3040. BoolValue12 = Instance.new("BoolValue")
  3041. ParticleEmitter13 = Instance.new("ParticleEmitter")
  3042. ParticleEmitter14 = Instance.new("ParticleEmitter")
  3043. ParticleEmitter15 = Instance.new("ParticleEmitter")
  3044. ParticleEmitter16 = Instance.new("ParticleEmitter")
  3045. ParticleEmitter17 = Instance.new("ParticleEmitter")
  3046. ParticleEmitter18 = Instance.new("ParticleEmitter")
  3047. ParticleEmitter19 = Instance.new("ParticleEmitter")
  3048. ParticleEmitter20 = Instance.new("ParticleEmitter")
  3049. ParticleEmitter21 = Instance.new("ParticleEmitter")
  3050. ParticleEmitter22 = Instance.new("ParticleEmitter")
  3051. LocalScript0.Name = "WarPheonix"
  3052. LocalScript0.Parent = mas
  3053. table.insert(cors,sandbox(LocalScript0,function()
  3054.  
  3055. wait(0.2)
  3056. Player = game:GetService("Players").LocalPlayer
  3057. PlayerGui = Player.PlayerGui
  3058. Cam = workspace.CurrentCamera
  3059. Backpack = Player.Backpack
  3060. Character = Player.Character
  3061. Humanoid = Character.Humanoid
  3062. Mouse = Player:GetMouse()
  3063. RootPart = Character.HumanoidRootPart
  3064. Torso = Character.Torso
  3065. Head = Character.Head
  3066. RightArm = Character["Right Arm"]
  3067. LeftArm = Character["Left Arm"]
  3068. RightLeg = Character["Right Leg"]
  3069. LeftLeg = Character["Left Leg"]
  3070. RootJoint = RootPart.RootJoint
  3071. Neck = Torso.Neck
  3072. RightShoulder = Torso["Right Shoulder"]
  3073. LeftShoulder = Torso["Left Shoulder"]
  3074. RightHip = Torso["Right Hip"]
  3075. LeftHip = Torso["Left Hip"]
  3076. local sick = Instance.new("Sound", Character)
  3077. sick.SoundId = "rbxassetid://1604456093"
  3078. sick.Looped = true
  3079. IT = Instance.new
  3080. CF = CFrame.new
  3081. VT = Vector3.new
  3082. RAD = math.rad
  3083. C3 = Color3.new
  3084. UD2 = UDim2.new
  3085. BRICKC = BrickColor.new
  3086. ANGLES = CFrame.Angles
  3087. EULER = CFrame.fromEulerAnglesXYZ
  3088. COS = math.cos
  3089. ACOS = math.acos
  3090. SIN = math.sin
  3091. ASIN = math.asin
  3092. ABS = math.abs
  3093. MRANDOM = math.random
  3094. FLOOR = math.floor
  3095.  
  3096. local naeeym2 = Instance.new("BillboardGui",Character)
  3097. naeeym2.AlwaysOnTop = true
  3098. naeeym2.Size = UDim2.new(5,35,2,35)
  3099. naeeym2.StudsOffset = Vector3.new(0,4.5,0)
  3100. naeeym2.Adornee = Character.Head
  3101. naeeym2.Name = "Name"
  3102. naeeym2.MaxDistance = 200
  3103. local tecks2 = Instance.new("TextLabel",naeeym2)
  3104. tecks2.BackgroundTransparency = 1
  3105. tecks2.TextScaled = true
  3106. tecks2.BorderSizePixel = 0
  3107. tecks2.Text = "The War Phoenix"
  3108. tecks2.Font = "Fantasy"
  3109. tecks2.TextSize = 48
  3110. tecks2.TextStrokeTransparency = 0
  3111. tecks2.TextColor3 = Color3.new(255,255,255)
  3112. tecks2.TextStrokeColor3 = Color3.new(188/255, 155/255, 93/255)
  3113. tecks2.Size = UDim2.new(1,0,0.5,0)
  3114. tecks2.Parent = naeeym2
  3115.  
  3116. local naeeym3 = Instance.new("BillboardGui",Character)
  3117. naeeym3.AlwaysOnTop = true
  3118. naeeym3.Size = UDim2.new(5,35,2,35)
  3119. naeeym3.StudsOffset = Vector3.new(0,3,0)
  3120. naeeym3.Adornee = Character.Head
  3121. naeeym3.Name = "Name"
  3122. naeeym3.MaxDistance = 200
  3123. local tecks3 = Instance.new("TextLabel",naeeym2)
  3124. tecks3.BackgroundTransparency = 1
  3125. tecks3.TextScaled = true
  3126. tecks3.BorderSizePixel = 0
  3127. tecks3.Text = Player.Name
  3128. tecks3.Font = "Fantasy"
  3129. tecks3.TextSize = 32
  3130. tecks3.TextStrokeTransparency = 1
  3131. tecks3.TextColor3 = Color3.new(125/255,125/255,125/255)
  3132. tecks3.TextStrokeColor3 = Color3.new(125/255,125/255,125/255)
  3133. tecks3.Size = UDim2.new(1,0,0.5,0)
  3134. tecks3.Parent = naeeym3
  3135.  
  3136.  
  3137. Animation_Speed = 3
  3138. Frame_Speed = 0.016666666666666666
  3139. local Speed = 16
  3140. local ROOTC0 = CF(0, 0, 0) * ANGLES(RAD(-90), RAD(0), RAD(180))
  3141. local NECKC0 = CF(0, 1, 0) * ANGLES(RAD(-90), RAD(0), RAD(180))
  3142. local RIGHTSHOULDERC0 = CF(-0.5, 0, 0) * ANGLES(RAD(0), RAD(90), RAD(0))
  3143. local LEFTSHOULDERC0 = CF(0.5, 0, 0) * ANGLES(RAD(0), RAD(-90), RAD(0))
  3144. local DAMAGEMULTIPLIER = 1
  3145. local ANIM = "Idle"
  3146. local ATTACK = false
  3147. local EQUIPPED = false
  3148. local HOLD = false
  3149. local COMBO = 1
  3150. local Rooted = false
  3151. local SINE = 0
  3152. local KEYHOLD = false
  3153. local CHANGE = 2 / Animation_Speed
  3154. local WALKINGANIM = false
  3155. local VALUE1 = false
  3156. local VALUE2 = false
  3157. local ROBLOXIDLEANIMATION = IT("Animation")
  3158. ROBLOXIDLEANIMATION.Name = "Roblox Idle Animation"
  3159. ROBLOXIDLEANIMATION.AnimationId = "http://www.roblox.com/asset/?id=180435571"
  3160. local WEAPONGUI = IT("ScreenGui", PlayerGui)
  3161. WEAPONGUI.Name = "Weapon GUI"
  3162. local Effects = IT("Folder", Character)
  3163. Effects.Name = "Effects"
  3164. local ANIMATOR = Humanoid.Animator
  3165. local ANIMATE = Character.Animate
  3166. local UNANCHOR = true
  3167. local FLIGHT = false
  3168. local BODYPOS, GYRO, FLIGHTRING
  3169. local PARTICLES = false
  3170. local WINGS = false
  3171. local APPLYGYRO = true
  3172. local DIRECTTURN = false
  3173. local PHEONIXCOLOR = C3(0.9, 0.9, 0.9)
  3174. ArtificialHB = Instance.new("BindableEvent", script)
  3175. ArtificialHB.Name = "ArtificialHB"
  3176. script:WaitForChild("ArtificialHB")
  3177. frame = Frame_Speed
  3178. tf = 0
  3179. allowframeloss = false
  3180. tossremainder = false
  3181. lastframe = tick()
  3182. script.ArtificialHB:Fire()
  3183. game:GetService("RunService").Heartbeat:connect(function(s, p)
  3184. tf = tf + s
  3185. if tf >= frame then
  3186. if allowframeloss then
  3187. script.ArtificialHB:Fire()
  3188. lastframe = tick()
  3189. else
  3190. for i = 1, math.floor(tf / frame) do
  3191. script.ArtificialHB:Fire()
  3192. end
  3193. lastframe = tick()
  3194. end
  3195. if tossremainder then
  3196. tf = 0
  3197. else
  3198. tf = tf - frame * math.floor(tf / frame)
  3199. end
  3200. end
  3201. end)
  3202. function Raycast(POSITION, DIRECTION, RANGE, IGNOREDECENDANTS)
  3203. return workspace:FindPartOnRay(Ray.new(POSITION, DIRECTION.unit * RANGE), IGNOREDECENDANTS)
  3204. end
  3205. function PositiveAngle(NUMBER)
  3206. if NUMBER >= 0 then
  3207. NUMBER = 0
  3208. end
  3209. return NUMBER
  3210. end
  3211. function NegativeAngle(NUMBER)
  3212. if NUMBER <= 0 then
  3213. NUMBER = 0
  3214. end
  3215. return NUMBER
  3216. end
  3217. function Swait(NUMBER)
  3218. if NUMBER == 0 or NUMBER == nil then
  3219. ArtificialHB.Event:wait()
  3220. else
  3221. for i = 1, NUMBER do
  3222. ArtificialHB.Event:wait()
  3223. end
  3224. end
  3225. end
  3226. function CreateMesh(MESH, PARENT, MESHTYPE, MESHID, TEXTUREID, SCALE, OFFSET)
  3227. local NEWMESH = IT(MESH)
  3228. if MESH == "SpecialMesh" then
  3229. NEWMESH.MeshType = MESHTYPE
  3230. if MESHID ~= "nil" and MESHID ~= "" then
  3231. NEWMESH.MeshId = "http://www.roblox.com/asset/?id=" .. MESHID
  3232. end
  3233. if TEXTUREID ~= "nil" and TEXTUREID ~= "" then
  3234. NEWMESH.TextureId = "http://www.roblox.com/asset/?id=" .. TEXTUREID
  3235. end
  3236. end
  3237. NEWMESH.Offset = OFFSET or VT(0, 0, 0)
  3238. NEWMESH.Scale = SCALE
  3239. NEWMESH.Parent = PARENT
  3240. return NEWMESH
  3241. end
  3242. function CreatePart(FORMFACTOR, PARENT, MATERIAL, REFLECTANCE, TRANSPARENCY, BRICKCOLOR, NAME, SIZE, ANCHOR)
  3243. local NEWPART = IT("Part")
  3244. NEWPART.formFactor = FORMFACTOR
  3245. NEWPART.Reflectance = REFLECTANCE
  3246. NEWPART.Transparency = TRANSPARENCY
  3247. NEWPART.CanCollide = false
  3248. NEWPART.Locked = true
  3249. NEWPART.Anchored = true
  3250. if ANCHOR == false then
  3251. NEWPART.Anchored = false
  3252. end
  3253. NEWPART.BrickColor = BRICKC(tostring(BRICKCOLOR))
  3254. NEWPART.Name = NAME
  3255. NEWPART.Size = SIZE
  3256. NEWPART.Position = Torso.Position
  3257. NEWPART.Material = MATERIAL
  3258. NEWPART:BreakJoints()
  3259. NEWPART.Parent = PARENT
  3260. return NEWPART
  3261. end
  3262. local weldBetween = function(a, b)
  3263. local weldd = Instance.new("ManualWeld")
  3264. weldd.Part0 = a
  3265. weldd.Part1 = b
  3266. weldd.C0 = CFrame.new()
  3267. weldd.C1 = b.CFrame:inverse() * a.CFrame
  3268. weldd.Parent = a
  3269. return weldd
  3270. end
  3271. function QuaternionFromCFrame(cf)
  3272. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  3273. local trace = m00 + m11 + m22
  3274. if trace > 0 then
  3275. local s = math.sqrt(1 + trace)
  3276. local recip = 0.5 / s
  3277. return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5
  3278. else
  3279. local i = 0
  3280. if m00 < m11 then
  3281. i = 1
  3282. end
  3283. if m22 > (i == 0 and m00 or m11) then
  3284. i = 2
  3285. end
  3286. if i == 0 then
  3287. local s = math.sqrt(m00 - m11 - m22 + 1)
  3288. local recip = 0.5 / s
  3289. return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip
  3290. elseif i == 1 then
  3291. local s = math.sqrt(m11 - m22 - m00 + 1)
  3292. local recip = 0.5 / s
  3293. return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip
  3294. elseif i == 2 then
  3295. local s = math.sqrt(m22 - m00 - m11 + 1)
  3296. local recip = 0.5 / s
  3297. return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip
  3298. end
  3299. end
  3300. end
  3301. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  3302. local xs, ys, zs = x + x, y + y, z + z
  3303. local wx, wy, wz = w * xs, w * ys, w * zs
  3304. local xx = x * xs
  3305. local xy = x * ys
  3306. local xz = x * zs
  3307. local yy = y * ys
  3308. local yz = y * zs
  3309. local zz = z * zs
  3310. 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))
  3311. end
  3312. function QuaternionSlerp(a, b, t)
  3313. local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4]
  3314. local startInterp, finishInterp
  3315. if cosTheta >= 1.0E-4 then
  3316. if 1 - cosTheta > 1.0E-4 then
  3317. local theta = ACOS(cosTheta)
  3318. local invSinTheta = 1 / SIN(theta)
  3319. startInterp = SIN((1 - t) * theta) * invSinTheta
  3320. finishInterp = SIN(t * theta) * invSinTheta
  3321. else
  3322. startInterp = 1 - t
  3323. finishInterp = t
  3324. end
  3325. elseif 1 + cosTheta > 1.0E-4 then
  3326. local theta = ACOS(-cosTheta)
  3327. local invSinTheta = 1 / SIN(theta)
  3328. startInterp = SIN((t - 1) * theta) * invSinTheta
  3329. finishInterp = SIN(t * theta) * invSinTheta
  3330. else
  3331. startInterp = t - 1
  3332. finishInterp = t
  3333. end
  3334. 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
  3335. end
  3336. function Clerp(a, b, t)
  3337. local qa = {
  3338. QuaternionFromCFrame(a)
  3339. }
  3340. local qb = {
  3341. QuaternionFromCFrame(b)
  3342. }
  3343. local ax, ay, az = a.x, a.y, a.z
  3344. local bx, by, bz = b.x, b.y, b.z
  3345. local _t = 1 - t
  3346. return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t))
  3347. end
  3348. function CreateFrame(PARENT, TRANSPARENCY, BORDERSIZEPIXEL, POSITION, SIZE, COLOR, BORDERCOLOR, NAME)
  3349. local frame = IT("Frame")
  3350. frame.BackgroundTransparency = TRANSPARENCY
  3351. frame.BorderSizePixel = BORDERSIZEPIXEL
  3352. frame.Position = POSITION
  3353. frame.Size = SIZE
  3354. frame.BackgroundColor3 = COLOR
  3355. frame.BorderColor3 = BORDERCOLOR
  3356. frame.Name = NAME
  3357. frame.Parent = PARENT
  3358. return frame
  3359. end
  3360. function CreateLabel(PARENT, TEXT, TEXTCOLOR, TEXTFONTSIZE, TEXTFONT, TRANSPARENCY, BORDERSIZEPIXEL, STROKETRANSPARENCY, NAME)
  3361. local label = IT("TextLabel")
  3362. label.BackgroundTransparency = 1
  3363. label.Size = UD2(1, 0, 1, 0)
  3364. label.Position = UD2(0, 0, 0, 0)
  3365. label.TextColor3 = TEXTCOLOR
  3366. label.TextStrokeTransparency = STROKETRANSPARENCY
  3367. label.TextTransparency = TRANSPARENCY
  3368. label.FontSize = TEXTFONTSIZE
  3369. label.Font = TEXTFONT
  3370. label.BorderSizePixel = BORDERSIZEPIXEL
  3371. label.TextScaled = false
  3372. label.Text = TEXT
  3373. label.Name = NAME
  3374. label.Parent = PARENT
  3375. return label
  3376. end
  3377. function NoOutlines(PART)
  3378. PART.TopSurface, PART.BottomSurface, PART.LeftSurface, PART.RightSurface, PART.FrontSurface, PART.BackSurface = 10, 10, 10, 10, 10, 10
  3379. end
  3380. function CreateWeldOrSnapOrMotor(TYPE, PARENT, PART0, PART1, C0, C1)
  3381. local NEWWELD = IT(TYPE)
  3382. NEWWELD.Part0 = PART0
  3383. NEWWELD.Part1 = PART1
  3384. NEWWELD.C0 = C0
  3385. NEWWELD.C1 = C1
  3386. NEWWELD.Parent = PARENT
  3387. return NEWWELD
  3388. end
  3389. local S = IT("Sound")
  3390. function CreateSound(ID, PARENT, VOLUME, PITCH, DOESLOOP)
  3391. local NEWSOUND
  3392. coroutine.resume(coroutine.create(function()
  3393. NEWSOUND = S:Clone()
  3394. NEWSOUND.Parent = PARENT
  3395. NEWSOUND.Volume = VOLUME
  3396. NEWSOUND.Pitch = PITCH
  3397. NEWSOUND.SoundId = "http://www.roblox.com/asset/?id=608726256"
  3398. NEWSOUND:play()
  3399. if DOESLOOP == true then
  3400. NEWSOUND.Looped = true
  3401. else
  3402. repeat
  3403. wait(1)
  3404. until NEWSOUND.Playing == false
  3405. NEWSOUND:remove()
  3406. end
  3407. end))
  3408. return NEWSOUND
  3409. end
  3410. function CFrameFromTopBack(at, top, back)
  3411. local right = top:Cross(back)
  3412. 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)
  3413. end
  3414. function WACKYEFFECT(Table)
  3415. local TYPE = Table.EffectType or "Sphere"
  3416. local SIZE = Table.Size or VT(1, 1, 1)
  3417. local ENDSIZE = Table.Size2 or VT(0, 0, 0)
  3418. local TRANSPARENCY = Table.Transparency or 0
  3419. local ENDTRANSPARENCY = Table.Transparency2 or 1
  3420. local CFRAME = Table.CFrame or Torso.CFrame
  3421. local MOVEDIRECTION = Table.MoveToPos or nil
  3422. local ROTATION1 = Table.RotationX or 0
  3423. local ROTATION2 = Table.RotationY or 0
  3424. local ROTATION3 = Table.RotationZ or 0
  3425. local MATERIAL = Table.Material or "Neon"
  3426. local COLOR = Table.Color or C3(1, 1, 1)
  3427. local TIME = Table.Time or 45
  3428. local SOUNDID = Table.SoundID or nil
  3429. local SOUNDPITCH = Table.SoundPitch or nil
  3430. local SOUNDVOLUME = Table.SoundVolume or nil
  3431. coroutine.resume(coroutine.create(function()
  3432. local PLAYSSOUND = false
  3433. local SOUND
  3434. local EFFECT = CreatePart(3, Effects, MATERIAL, 0, TRANSPARENCY, BRICKC("Pearl"), "Effect", VT(1, 1, 1), true)
  3435. if SOUNDID ~= nil and SOUNDPITCH ~= nil and SOUNDVOLUME ~= nil then
  3436. PLAYSSOUND = true
  3437. SOUND = CreateSound(SOUNDID, EFFECT, SOUNDVOLUME, SOUNDPITCH, false)
  3438. end
  3439. EFFECT.Color = COLOR
  3440. local MSH
  3441. if TYPE == "Sphere" then
  3442. MSH = CreateMesh("SpecialMesh", EFFECT, "Sphere", "", "", SIZE, VT(0, 0, 0))
  3443. elseif TYPE == "Block" then
  3444. MSH = IT("BlockMesh", EFFECT)
  3445. MSH.Scale = VT(SIZE.X, SIZE.X, SIZE.X)
  3446. elseif TYPE == "Wave" then
  3447. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "20329976", "", SIZE, VT(0, 0, -SIZE.X / 8))
  3448. elseif TYPE == "Ring" then
  3449. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "559831844", "", VT(SIZE.X, SIZE.X, 0.1), VT(0, 0, 0))
  3450. elseif TYPE == "Slash" then
  3451. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662586858", "", VT(SIZE.X / 10, 0, SIZE.X / 10), VT(0, 0, 0))
  3452. elseif TYPE == "Round Slash" then
  3453. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662585058", "", VT(SIZE.X / 10, 0, SIZE.X / 10), VT(0, 0, 0))
  3454. elseif TYPE == "Swirl" then
  3455. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "1051557", "", SIZE, VT(0, 0, 0))
  3456. elseif TYPE == "Skull" then
  3457. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "4770583", "", SIZE, VT(0, 0, 0))
  3458. elseif TYPE == "Crystal" then
  3459. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "9756362", "", SIZE, VT(0, 0, 0))
  3460. end
  3461. if MSH ~= nil then
  3462. local MOVESPEED
  3463. if MOVEDIRECTION ~= nil then
  3464. MOVESPEED = (CFRAME.p - MOVEDIRECTION).Magnitude / TIME
  3465. end
  3466. local GROWTH = SIZE - ENDSIZE
  3467. local TRANS = TRANSPARENCY - ENDTRANSPARENCY
  3468. if TYPE == "Block" then
  3469. EFFECT.CFrame = CFRAME * ANGLES(RAD(MRANDOM(0, 360)), RAD(MRANDOM(0, 360)), RAD(MRANDOM(0, 360)))
  3470. else
  3471. EFFECT.CFrame = CFRAME
  3472. end
  3473. for LOOP = 1, TIME + 1 do
  3474. Swait()
  3475. MSH.Scale = MSH.Scale - GROWTH / TIME
  3476. if TYPE == "Wave" then
  3477. MSH.Offset = VT(0, 0, -MSH.Scale.X / 8)
  3478. end
  3479. EFFECT.Transparency = EFFECT.Transparency - TRANS / TIME
  3480. if TYPE == "Block" then
  3481. EFFECT.CFrame = CFRAME * ANGLES(RAD(MRANDOM(0, 360)), RAD(MRANDOM(0, 360)), RAD(MRANDOM(0, 360)))
  3482. else
  3483. EFFECT.CFrame = EFFECT.CFrame * ANGLES(RAD(ROTATION1), RAD(ROTATION2), RAD(ROTATION3))
  3484. end
  3485. if MOVEDIRECTION ~= nil then
  3486. local ORI = EFFECT.Orientation
  3487. EFFECT.CFrame = CF(EFFECT.Position, MOVEDIRECTION) * CF(0, 0, -MOVESPEED)
  3488. EFFECT.Orientation = ORI
  3489. end
  3490. end
  3491. if PLAYSSOUND == false then
  3492. EFFECT:remove()
  3493. else
  3494. repeat
  3495. Swait()
  3496. until SOUND.Playing == false
  3497. EFFECT:remove()
  3498. end
  3499. elseif PLAYSSOUND == false then
  3500. EFFECT:remove()
  3501. else
  3502. repeat
  3503. Swait()
  3504. until SOUND.Playing == false
  3505. EFFECT:remove()
  3506. end
  3507. end))
  3508. end
  3509. function MakeForm(PART, TYPE)
  3510. if TYPE == "Cyl" then
  3511. local MSH = IT("CylinderMesh", PART)
  3512. elseif TYPE == "Ball" then
  3513. local MSH = IT("SpecialMesh", PART)
  3514. MSH.MeshType = "Sphere"
  3515. elseif TYPE == "Wedge" then
  3516. local MSH = IT("SpecialMesh", PART)
  3517. MSH.MeshType = "Wedge"
  3518. end
  3519. end
  3520. Debris = game:GetService("Debris")
  3521. function CastProperRay(StartPos, EndPos, Distance, Ignore)
  3522. local DIRECTION = CF(StartPos, EndPos).lookVector
  3523. return Raycast(StartPos, DIRECTION, Distance, Ignore)
  3524. end
  3525. function turnto(position)
  3526. RootPart.CFrame = CFrame.new(RootPart.CFrame.p, VT(position.X, RootPart.Position.Y, position.Z)) * CFrame.new(0, 0, 0)
  3527. end
  3528. local DECAL = IT("Decal", nil)
  3529. function MagicRing(PART, CFRAME, VARIANT)
  3530. if VARIANT == "Pheonix" or VARIANT == "Sun" or VARIANT == "Fire" then
  3531. local RING = CreatePart(3, Effects, "Granite", 0, 1, "Maroon", "MagicRing", VT(0, 0, 0), false)
  3532. local WELD = CreateWeldOrSnapOrMotor("Weld", PART, PART, RING, CFRAME, CF(0, 0, 0))
  3533. local MESH = IT("BlockMesh", RING)
  3534. local BOTTOMTEXTURE = DECAL:Clone()
  3535. BOTTOMTEXTURE.Parent = RING
  3536. BOTTOMTEXTURE.Face = "Bottom"
  3537. BOTTOMTEXTURE.Name = "BottomTexture"
  3538. local TOPTEXTURE = DECAL:Clone()
  3539. TOPTEXTURE.Parent = RING
  3540. TOPTEXTURE.Face = "Top"
  3541. TOPTEXTURE.Name = "TopTexture"
  3542. local T = script.RingEmit:Clone()
  3543. T.Parent = RING
  3544. local LIGHT = IT("PointLight", RING)
  3545. if VARIANT == "Pheonix" then
  3546. BOTTOMTEXTURE.Texture = "http://www.roblox.com/asset/?id=1617574752"
  3547. TOPTEXTURE.Texture = "http://www.roblox.com/asset/?id=1617575377"
  3548. T.Color = ColorSequence.new(PHEONIXCOLOR)
  3549. CreateSound(462809305, RING, 5, 1, false)
  3550. elseif VARIANT == "Sun" then
  3551. BOTTOMTEXTURE.Texture = "http://www.roblox.com/asset/?id=1217786509"
  3552. TOPTEXTURE.Texture = "http://www.roblox.com/asset/?id=1217788749"
  3553. T.Color = ColorSequence.new(BRICKC("Bright orange").Color)
  3554. CreateSound(462809305, RING, 5, 1, false)
  3555. LIGHT.Color = BRICKC("Bright orange").Color
  3556. elseif VARIANT == "Fire" then
  3557. BOTTOMTEXTURE.Texture = "http://www.roblox.com/asset/?id=1222222911"
  3558. TOPTEXTURE.Texture = "http://www.roblox.com/asset/?id=1222223218"
  3559. T.Color = ColorSequence.new(BRICKC("Bright orange").Color)
  3560. CreateSound(343211019, RING, 5, 1, false)
  3561. LIGHT.Color = C3(1, 0.3333333333333333, 0)
  3562. end
  3563. T.LightEmission = 1
  3564. T:Emit(5)
  3565. Debris:AddItem(T, 5)
  3566. return RING, WELD, MESH
  3567. end
  3568. end
  3569. function AddChildrenToTable(FROM, PARENT, DIST, TABLE)
  3570. for _, c in pairs(PARENT:GetDescendants()) do
  3571. if c.ClassName == "Model" and c ~= Character and c:FindFirstChildOfClass("Humanoid") and (c:FindFirstChild("Torso") or c:FindFirstChild("UpperTorso")) then
  3572. local HUMANOID = c:FindFirstChildOfClass("Humanoid")
  3573. local TORSO = c:FindFirstChild("Torso") or c:FindFirstChild("UpperTorso")
  3574. if DIST > (TORSO.Position - FROM).Magnitude then
  3575. table.insert(TABLE, c)
  3576. end
  3577. end
  3578. end
  3579. end
  3580. local BACKATTACHMENT1 = IT("Attachment", Torso)
  3581. BACKATTACHMENT1.Position = VT(0.5, 0.5, 0.75)
  3582. local BACKATTACHMENT2 = IT("Attachment", Torso)
  3583. BACKATTACHMENT2.Position = VT(-0.5, 0.5, 0.75)
  3584. local WINGS1 = script.Wing1
  3585. WINGS1.EmissionDirection="Right"
  3586. WINGS1.Size=NumberSequence.new(2)
  3587. local WINGS1B = script.Wing1B
  3588. WINGS1B.EmissionDirection="Right"
  3589. WINGS1B.Size=NumberSequence.new(2)
  3590. local WINGS2 = script.Wing2
  3591. WINGS2.EmissionDirection="Left"
  3592. WINGS2.Size=NumberSequence.new(2)
  3593. local WINGS2B = script.Wing2B
  3594. WINGS2B.EmissionDirection="Left"
  3595. WINGS2B.Size=NumberSequence.new(2)
  3596. WINGS1.Parent = BACKATTACHMENT1
  3597. WINGS1.LockedToPart=true
  3598. WINGS1B.Parent = BACKATTACHMENT1
  3599. WINGS1B.LockedToPart=true
  3600. WINGS2.Parent = BACKATTACHMENT2
  3601. WINGS2.LockedToPart=true
  3602. WINGS2B.Parent = BACKATTACHMENT2
  3603. WINGS2B.LockedToPart=true
  3604. local FACEATTACHMENT = IT("Attachment", Head)
  3605. FACEATTACHMENT.Position = VT(0.167, 0.272, -0.5)
  3606. FACEATTACHMENT.Orientation = VT(0, 35, 0)
  3607. local EYE = script.Eye1
  3608. EYE.LockedToPart=true
  3609. EYE.Parent = FACEATTACHMENT
  3610. local EYE2 = script.Eye2
  3611. EYE2.Parent = FACEATTACHMENT
  3612. EYE2.LockedToPart=true
  3613. local TRAIL1 = script.PheonixTrail:Clone()
  3614. TRAIL1.LockedToPart=true
  3615. TRAIL1.Size=NumberSequence.new(.01)
  3616. TRAIL1.Parent = BACKATTACHMENT1
  3617. local TRAIL2 = script.PheonixTrail:Clone()
  3618. TRAIL2.LockedToPart=true
  3619. TRAIL2.Parent = BACKATTACHMENT2
  3620. TRAIL2.Size=NumberSequence.new(.01)
  3621. local LIGHT = IT("PointLight", FACEATTACHMENT)
  3622. LIGHT.Enabled = false
  3623. LIGHT.Brightness = 5
  3624. LIGHT.Range = 6
  3625. Humanoid.Died:connect(function()
  3626. ATTACK = true
  3627. end)
  3628. function ApplyDamage(Humanoid, Damage, TorsoPart, Time, AfterBurn, Variant)
  3629. local defence = Instance.new("BoolValue", Humanoid.Parent)
  3630. defence.Name = "HitBy" .. Player.Name
  3631. game:GetService("Debris"):AddItem(defence, 0.001)
  3632. Damage = Damage * DAMAGEMULTIPLIER
  3633. if Humanoid.Health ~= 0 then
  3634. local CritChance = MRANDOM(1, 100)
  3635. if Damage > Humanoid.Health then
  3636. Damage = math.ceil(Humanoid.Health)
  3637. if Damage == 0 then
  3638. Damage = 0.1
  3639. end
  3640. end
  3641. Humanoid.Health = Humanoid.Health - Damage
  3642. if AfterBurn == true then
  3643. Afterburn(Humanoid, Time, Damage / 5, Variant)
  3644. end
  3645. end
  3646. end
  3647. function Afterburn(Human, Time, Damage, Variant)
  3648. coroutine.resume(coroutine.create(function()
  3649. if Human and (Human.Parent:FindFirstChild("Torso") or Human.Parent:FindFirstChild("UpperTorso")) then
  3650. local Torso = Human.Parent:FindFirstChild("Torso") or Human.Parent:FindFirstChild("UpperTorso")
  3651. local FIRE
  3652. if Variant == "Pheonix" then
  3653. FIRE = script.PheonixBurn:Clone()
  3654. FIRE.Parent = Torso
  3655. FIRE.Enabled = true
  3656. elseif Variant == "Sun" then
  3657. FIRE = script.SunBurn:Clone()
  3658. FIRE.Parent = Torso
  3659. FIRE.Enabled = true
  3660. elseif Variant == "Fire" then
  3661. FIRE = script.Burn:Clone()
  3662. FIRE.Parent = Torso
  3663. FIRE.Enabled = true
  3664. end
  3665. for i = 1, Time do
  3666. wait(0.5)
  3667. Human.Health = Human.Health - Damage
  3668. end
  3669. wait(0.25)
  3670. FIRE.Enabled = false
  3671. Debris:AddItem(FIRE, 1.5)
  3672. end
  3673. end))
  3674. end
  3675. function ApplyAoE(POSITION, RANGE, MINDMG, MAXDMG, FLING, AFTERBURN, TIME, VARIANT, DOESCAMSHAKE, CAMVALUES)
  3676. local CHILDREN = workspace:GetChildren()
  3677. for index, CHILD in pairs(CHILDREN) do
  3678. if CHILD.ClassName == "Model" and CHILD ~= Character then
  3679. local HUM = CHILD:FindFirstChildOfClass("Humanoid")
  3680. if HUM then
  3681. local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso")
  3682. if TORSO and RANGE >= (TORSO.Position - POSITION).Magnitude then
  3683. local DMG = MRANDOM(MINDMG, MAXDMG)
  3684. ApplyDamage(HUM, DMG, TORSO, TIME, AFTERBURN, VARIANT)
  3685. if HUM.MaxHealth == math.huge then
  3686. CHILD:BreakJoints()
  3687. end
  3688. if DOESCAMSHAKE == true then
  3689. local CAMSHAKER = script.CamShake:Clone()
  3690. CAMSHAKER.Shake.Value = CAMVALUES.SHAKE
  3691. CAMSHAKER.Timer.Value = CAMVALUES.TIMER
  3692. CAMSHAKER.DoesFade.Value = CAMVALUES.DOESFADE
  3693. CAMSHAKER.Parent = CHILD
  3694. CAMSHAKER.Disabled = false
  3695. end
  3696. if FLING > 0 then
  3697. for _, c in pairs(CHILD:GetChildren()) do
  3698. if c:IsA("BasePart") then
  3699. local bv = Instance.new("BodyVelocity")
  3700. bv.maxForce = Vector3.new(1000000000, 1000000000, 1000000000)
  3701. bv.velocity = CF(POSITION, TORSO.Position).lookVector * FLING
  3702. bv.Parent = c
  3703. Debris:AddItem(bv, 0.05)
  3704. end
  3705. end
  3706. end
  3707. end
  3708. end
  3709. end
  3710. end
  3711. end
  3712. function ShootingStar()
  3713. ATTACK = true
  3714. Rooted = false
  3715. local GYRO = IT("BodyGyro", RootPart)
  3716. GYRO.D = 20
  3717. GYRO.P = 4000
  3718. GYRO.MaxTorque = VT(0, 40000, 0)
  3719. local RING, WELD, MESH = MagicRing(RightArm, CF(0, -1.2, 0), "Sun")
  3720. coroutine.resume(coroutine.create(function()
  3721. for i = 1, 35 do
  3722. Swait()
  3723. MESH.Scale = MESH.Scale + VT(2.6, 0, 2.6)
  3724. end
  3725. end))
  3726. for i = 0, 1.8, 0.1 / Animation_Speed do
  3727. GYRO.CFrame = CF(RootPart.Position, Mouse.Hit.p)
  3728. Swait()
  3729. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(74)), 2 / Animation_Speed)
  3730. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(20), RAD(0), RAD(-74)), 1 / Animation_Speed)
  3731. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.25, 0.5, -0.3) * ANGLES(RAD(90), RAD(0), RAD(74)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  3732. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.45, 0.1, -0.3) * ANGLES(RAD(0), RAD(45), RAD(0)) * ANGLES(RAD(165), RAD(0), RAD(0)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  3733. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(0), RAD(65), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  3734. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  3735. end
  3736. coroutine.resume(coroutine.create(function()
  3737. local POSITION = Mouse.Hit.p
  3738. local FIREBALL = CreatePart(3, Effects, "Neon", 0, 1, "New Yeller", "Fire", VT(3, 3, 3))
  3739. FIREBALL.CFrame = RightArm.CFrame * CF(0, -3, 0)
  3740. local FIRE = script.SunFireball:Clone()
  3741. FIRE.Parent = FIREBALL
  3742. FIRE.Enabled = true
  3743. local EXPLOSION = script.SunExplosion:Clone()
  3744. EXPLOSION.Parent = FIREBALL
  3745. CreateSound(463598785, FIREBALL, 5, 1, false)
  3746. local DISTANCE = (RootPart.Position - POSITION).Magnitude
  3747. local FRAME = CF(VT(POSITION.X + MRANDOM(-45, 45) / 3, RootPart.Position.Y, POSITION.Z + MRANDOM(-45, 45) / 3), RootPart.Position + VT(0, 145, 0)) * CF(0, 0, -DISTANCE / 2)
  3748. for i = 1, 75 do
  3749. Swait()
  3750. FIREBALL.CFrame = Clerp(FIREBALL.CFrame, FRAME, 0.5 / Animation_Speed)
  3751. end
  3752. FIREBALL.CFrame = CF(FIREBALL.Position, POSITION)
  3753. for i = 1, 300 do
  3754. Swait()
  3755. FIREBALL.CFrame = FIREBALL.CFrame * CF(0, 0, -4)
  3756. local HITFLOOR, HITPOS = Raycast(FIREBALL.Position, FIREBALL.CFrame.lookVector, 4.2, Character)
  3757. if HITFLOOR ~= nil then
  3758. FIRE.Enabled = false
  3759. EXPLOSION:Emit(500)
  3760. CreateSound(416328540, FIREBALL, 5, 1, false)
  3761. ApplyAoE(FIREBALL.Position, 75, 25, 35, 65, true, MRANDOM(5, 15), "Sun", true, {
  3762. SHAKE = 1,
  3763. TIMER = 6,
  3764. DOESFADE = true
  3765. })
  3766. WACKYEFFECT({
  3767. EffectType = "Sphere",
  3768. Size = VT(0, 0, 0),
  3769. Size2 = VT(150, 150, 150),
  3770. Transparency = 0,
  3771. Transparency2 = 1,
  3772. CFrame = CF(FIREBALL.Position),
  3773. MoveToPos = nil,
  3774. RotationX = 0,
  3775. RotationY = 0,
  3776. RotationZ = 0,
  3777. Material = "Neon",
  3778. Color = C3(1, 0.6666666666666666, 0),
  3779. SoundID = nil,
  3780. SoundPitch = nil,
  3781. SoundVolume = nil
  3782. })
  3783. wait(5)
  3784. break
  3785. end
  3786. end
  3787. FIREBALL:remove()
  3788. end))
  3789. GYRO:remove()
  3790. RING.Anchored = true
  3791. WELD:remove()
  3792. coroutine.resume(coroutine.create(function()
  3793. for i = 1, 35 do
  3794. Swait()
  3795. MESH.Scale = MESH.Scale - VT(2.6, 0, 2.6)
  3796. end
  3797. RING:remove()
  3798. end))
  3799. ATTACK = false
  3800. Rooted = false
  3801. end
  3802. function PheonixRage()
  3803. ATTACK = true
  3804. Rooted = true
  3805. local A = false
  3806. local B = false
  3807. local RING, WELD, MESH = MagicRing(RootPart, CF(0, -3, 0), "Pheonix")
  3808. WELD:remove()
  3809. RING.Anchored = true
  3810. coroutine.resume(coroutine.create(function()
  3811. for i = 1, 45 do
  3812. Swait()
  3813. MESH.Scale = MESH.Scale + VT(15, 0, 15)
  3814. end
  3815. end))
  3816. coroutine.resume(coroutine.create(function()
  3817. repeat
  3818. Swait()
  3819. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  3820. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(15 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
  3821. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.15, 0.5, -0.5) * ANGLES(RAD(15), RAD(0), RAD(-90)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  3822. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.15, 0.25, -0.5) * ANGLES(RAD(-15), RAD(0), RAD(90)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  3823. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(70), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 1 / Animation_Speed)
  3824. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-70), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 1 / Animation_Speed)
  3825. until A == true
  3826. repeat
  3827. Swait()
  3828. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(-25), RAD(0), RAD(0)), 1 / Animation_Speed)
  3829. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
  3830. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(45)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  3831. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-45)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  3832. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(-35), RAD(80), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 1 / Animation_Speed)
  3833. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(-35), RAD(-80), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 1 / Animation_Speed)
  3834. until B == true
  3835. for i = 1, 45 do
  3836. Swait()
  3837. MESH.Scale = MESH.Scale - VT(15, 0, 15)
  3838. end
  3839. RING:remove()
  3840. end))
  3841. wait(1)
  3842. for i = 1, 4 do
  3843. WACKYEFFECT({
  3844. EffectType = "Sphere",
  3845. Size = VT(45, 45, 45),
  3846. Size2 = VT(0, 0, 0),
  3847. Transparency = 1,
  3848. Transparency2 = 0.8,
  3849. CFrame = CF(Torso.Position),
  3850. MoveToPos = nil,
  3851. RotationX = 0,
  3852. RotationY = 0,
  3853. RotationZ = 0,
  3854. Material = "Neon",
  3855. Color = PHEONIXCOLOR,
  3856. SoundID = nil,
  3857. SoundPitch = nil,
  3858. SoundVolume = nil
  3859. })
  3860. wait(0.5)
  3861. end
  3862. A = true
  3863. ApplyAoE(Torso.Position, 80, 45, 50, 35, true, MRANDOM(12, 16), "Pheonix", true, {
  3864. SHAKE = 2,
  3865. TIMER = 25,
  3866. DOESFADE = true
  3867. })
  3868. WACKYEFFECT({
  3869. Time = 60,
  3870. EffectType = "Sphere",
  3871. Size = VT(40, 40, 40),
  3872. Size2 = VT(140, 140, 140),
  3873. Transparency = 0,
  3874. Transparency2 = 1,
  3875. CFrame = CF(Torso.Position),
  3876. MoveToPos = nil,
  3877. RotationX = 0,
  3878. RotationY = 0,
  3879. RotationZ = 0,
  3880. Material = "Neon",
  3881. Color = C3(1, 0.6666666666666666, 0),
  3882. SoundID = nil,
  3883. SoundPitch = nil,
  3884. SoundVolume = nil
  3885. })
  3886. WACKYEFFECT({
  3887. Time = 60,
  3888. EffectType = "Sphere",
  3889. Size = VT(50, 50, 50),
  3890. Size2 = VT(150, 150, 150),
  3891. Transparency = 0.5,
  3892. Transparency2 = 1,
  3893. CFrame = CF(Torso.Position),
  3894. MoveToPos = nil,
  3895. RotationX = 0,
  3896. RotationY = 0,
  3897. RotationZ = 0,
  3898. Material = "Neon",
  3899. Color = PHEONIXCOLOR,
  3900. SoundID = 462692971,
  3901. SoundPitch = 0.8,
  3902. SoundVolume = 6
  3903. })
  3904. local EXPLOSION = script.PheonixExplosion1:Clone()
  3905. EXPLOSION.Parent = Torso
  3906. EXPLOSION.Enabled = true
  3907. local EXPLOSION2 = script.PheonixExplosion2:Clone()
  3908. EXPLOSION2.Parent = Torso
  3909. EXPLOSION2.Enabled = true
  3910. wait(0.3)
  3911. EXPLOSION.Enabled = false
  3912. EXPLOSION2.Enabled = false
  3913. Debris:AddItem(EXPLOSION, 5)
  3914. Debris:AddItem(EXPLOSION2, 5)
  3915. wait(1)
  3916. B = true
  3917. ATTACK = false
  3918. Rooted = false
  3919. end
  3920. function Breath()
  3921. ATTACK = true
  3922. local POSITION = IT("BodyPosition", RootPart)
  3923. POSITION.Position = RootPart.CFrame * CF(0, 35, 35).p
  3924. POSITION.D = 1250
  3925. POSITION.P = 40000
  3926. POSITION.maxForce = Vector3.new(math.huge, math.huge, math.huge)
  3927. WINGS = true
  3928. local RING, WELD, MESH = MagicRing(Torso, CF(0, 0.5, 0.6) * ANGLES(RAD(-90), RAD(0), RAD(0)), "Pheonix")
  3929. coroutine.resume(coroutine.create(function()
  3930. for i = 1, 20 do
  3931. Swait()
  3932. MESH.Scale = MESH.Scale + VT(4, 0, 4)
  3933. end
  3934. end))
  3935. for i = 1, 25 do
  3936. Swait()
  3937. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(-14.4 * i), RAD(0), RAD(0)), 1 / Animation_Speed)
  3938. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(-20), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  3939. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.25, 0.5, -1) * ANGLES(RAD(0), RAD(0), RAD(-90)) * RIGHTSHOULDERC0, 0.2 / Animation_Speed)
  3940. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25, 0.5, -1) * ANGLES(RAD(0), RAD(0), RAD(90)) * LEFTSHOULDERC0, 0.2 / Animation_Speed)
  3941. RightHip.C0 = Clerp(RightHip.C0, CF(1, 0, -0.5) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(-20)), 0.2 / Animation_Speed)
  3942. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, 0, -0.5) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(20)), 0.2 / Animation_Speed)
  3943. end
  3944. local GYRO = IT("BodyGyro", RootPart)
  3945. GYRO.D = 20
  3946. GYRO.P = 4000
  3947. GYRO.MaxTorque = VT(0, 40000, 0)
  3948. coroutine.resume(coroutine.create(function()
  3949. repeat
  3950. Swait()
  3951. GYRO.CFrame = CF(RootPart.Position, Mouse.Hit.p)
  3952. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 + 1 * SIN(SINE / 24)) * ANGLES(RAD(0), RAD(0), RAD(24)), 2 / Animation_Speed)
  3953. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(20), RAD(0), RAD(-24)), 1 / Animation_Speed)
  3954. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.25, 0.5, -0.3) * ANGLES(RAD(90), RAD(0), RAD(24)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  3955. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.45, 0.1, -0.3) * ANGLES(RAD(0), RAD(45), RAD(0)) * ANGLES(RAD(165), RAD(0), RAD(0)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  3956. RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.5, -0.5) * ANGLES(RAD(0), RAD(75), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  3957. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  3958. until ATTACK == false
  3959. POSITION:remove()
  3960. GYRO:remove()
  3961. for i = 1, 20 do
  3962. Swait()
  3963. MESH.Scale = MESH.Scale - VT(4, 0, 4)
  3964. end
  3965. RING:remove()
  3966. end))
  3967. local RING, WELD, MESH = MagicRing(RightArm, CF(0, -1.2, 0) * ANGLES(RAD(0), RAD(180), RAD(0)), "Pheonix")
  3968. for i = 1, 35 do
  3969. Swait()
  3970. MESH.Scale = MESH.Scale + VT(2.6, 0, 2.6)
  3971. end
  3972. wait(0.3)
  3973. coroutine.resume(coroutine.create(function()
  3974. local FIREBALL = CreatePart(3, Effects, "Neon", 0, 1, "Cyan", "Flight", VT(5, 5, 5))
  3975. FIREBALL.CFrame = CF(RING.Position, Mouse.Hit.p)
  3976. local PARTICLES1 = script.PheonixFireball1:Clone()
  3977. PARTICLES1.Parent = FIREBALL
  3978. PARTICLES1.Enabled = true
  3979. local PARTICLES2 = script.PheonixFireball2:Clone()
  3980. PARTICLES2.Parent = FIREBALL
  3981. PARTICLES2.Enabled = true
  3982. CreateSound(463593339, FIREBALL, 6, 1, false)
  3983. for i = 1, 250 do
  3984. Swait()
  3985. local HIT, HITPOS = Raycast(FIREBALL.Position, FIREBALL.CFrame.lookVector, 2.5, Character)
  3986. FIREBALL.CFrame = FIREBALL.CFrame * CF(0, 0, -2)
  3987. if HIT then
  3988. ApplyAoE(FIREBALL.Position, 50, 45, 50, 35, true, MRANDOM(12, 16), "Pheonix", true, {
  3989. SHAKE = 2,
  3990. TIMER = 25,
  3991. DOESFADE = true
  3992. })
  3993. WACKYEFFECT({
  3994. Time = 60,
  3995. EffectType = "Sphere",
  3996. Size = VT(0, 0, 0),
  3997. Size2 = VT(100, 100, 100),
  3998. Transparency = 0,
  3999. Transparency2 = 1,
  4000. CFrame = CF(FIREBALL.Position),
  4001. MoveToPos = nil,
  4002. RotationX = 0,
  4003. RotationY = 0,
  4004. RotationZ = 0,
  4005. Material = "Neon",
  4006. Color = C3(1, 0.6666666666666666, 0),
  4007. SoundID = nil,
  4008. SoundPitch = nil,
  4009. SoundVolume = nil
  4010. })
  4011. WACKYEFFECT({
  4012. Time = 60,
  4013. EffectType = "Sphere",
  4014. Size = VT(0, 0, 0),
  4015. Size2 = VT(120, 120, 120),
  4016. Transparency = 0.5,
  4017. Transparency2 = 1,
  4018. CFrame = CF(FIREBALL.Position),
  4019. MoveToPos = nil,
  4020. RotationX = 0,
  4021. RotationY = 0,
  4022. RotationZ = 0,
  4023. Material = "Neon",
  4024. Color = PHEONIXCOLOR,
  4025. SoundID = 462692971,
  4026. SoundPitch = 1,
  4027. SoundVolume = 6
  4028. })
  4029. PARTICLES1.Enabled = false
  4030. PARTICLES2.Enabled = false
  4031. local EXPLOSION = script.PheonixExplosion1:Clone()
  4032. EXPLOSION.Parent = FIREBALL
  4033. EXPLOSION.Enabled = true
  4034. local EXPLOSION2 = script.PheonixExplosion2:Clone()
  4035. EXPLOSION2.Parent = FIREBALL
  4036. EXPLOSION2.Enabled = true
  4037. wait(0.3)
  4038. EXPLOSION.Enabled = false
  4039. EXPLOSION2.Enabled = false
  4040. break
  4041. end
  4042. end
  4043. PARTICLES1.Enabled = false
  4044. PARTICLES2.Enabled = false
  4045. Debris:AddItem(FIREBALL, 7)
  4046. end))
  4047. wait(0.3)
  4048. coroutine.resume(coroutine.create(function()
  4049. WELD:remove()
  4050. RING.Anchored = true
  4051. for i = 1, 35 do
  4052. Swait()
  4053. MESH.Scale = MESH.Scale - VT(2.6, 0, 2.6)
  4054. end
  4055. RING:remove()
  4056. end))
  4057. WINGS = false
  4058. ATTACK = false
  4059. end
  4060. function ThreeShootingStars()
  4061. ATTACK = true
  4062. Rooted = false
  4063. local POS1, POS2, POS3
  4064. local RING, WELD, MESH = MagicRing(RightArm, CF(0, -1.2, 0), "Sun")
  4065. coroutine.resume(coroutine.create(function()
  4066. for i = 1, 35 do
  4067. Swait()
  4068. MESH.Scale = MESH.Scale + VT(2.6, 0, 2.6)
  4069. end
  4070. end))
  4071. coroutine.resume(coroutine.create(function()
  4072. repeat
  4073. Swait()
  4074. if POS1 then
  4075. coroutine.resume(coroutine.create(function()
  4076. local POSITION = POS1
  4077. local FIREBALL = CreatePart(3, Effects, "Neon", 0, 1, "New Yeller", "Fire", VT(3, 3, 3))
  4078. FIREBALL.CFrame = RightArm.CFrame * CF(0, -3, 0)
  4079. local FIRE = script.SunFireball:Clone()
  4080. FIRE.Parent = FIREBALL
  4081. FIRE.Enabled = true
  4082. local EXPLOSION = script.SunExplosion:Clone()
  4083. EXPLOSION.Parent = FIREBALL
  4084. CreateSound(463598785, FIREBALL, 5, 1, false)
  4085. local DISTANCE = (RootPart.Position - POSITION).Magnitude
  4086. local FRAME = CF(VT(POSITION.X + MRANDOM(-45, 45) / 3, RootPart.Position.Y, POSITION.Z + MRANDOM(-45, 45) / 3), RootPart.Position + VT(0, 45, 0)) * CF(0, 0, -DISTANCE / 2)
  4087. for i = 1, 75 do
  4088. Swait()
  4089. FIREBALL.CFrame = Clerp(FIREBALL.CFrame, FRAME, 0.5 / Animation_Speed)
  4090. end
  4091. FIREBALL.CFrame = CF(FIREBALL.Position, POSITION)
  4092. for i = 1, 300 do
  4093. Swait()
  4094. FIREBALL.CFrame = FIREBALL.CFrame * CF(0, 0, -4)
  4095. local HITFLOOR, HITPOS = Raycast(FIREBALL.Position, FIREBALL.CFrame.lookVector, 4.2, Character)
  4096. if HITFLOOR ~= nil then
  4097. FIRE.Enabled = false
  4098. EXPLOSION:Emit(500)
  4099. CreateSound(416328540, FIREBALL, 5, 1, false)
  4100. ApplyAoE(FIREBALL.Position, 75, 25, 35, 65, true, MRANDOM(5, 15), "Sun", true, {
  4101. SHAKE = 1,
  4102. TIMER = 6,
  4103. DOESFADE = true
  4104. })
  4105. WACKYEFFECT({
  4106. EffectType = "Sphere",
  4107. Size = VT(0, 0, 0),
  4108. Size2 = VT(150, 150, 150),
  4109. Transparency = 0,
  4110. Transparency2 = 1,
  4111. CFrame = CF(FIREBALL.Position),
  4112. MoveToPos = nil,
  4113. RotationX = 0,
  4114. RotationY = 0,
  4115. RotationZ = 0,
  4116. Material = "Neon",
  4117. Color = C3(1, 0.6666666666666666, 0),
  4118. SoundID = nil,
  4119. SoundPitch = nil,
  4120. SoundVolume = nil
  4121. })
  4122. wait(5)
  4123. break
  4124. end
  4125. end
  4126. FIREBALL:remove()
  4127. end))
  4128. POS1 = nil
  4129. end
  4130. if POS2 then
  4131. coroutine.resume(coroutine.create(function()
  4132. local POSITION = POS2
  4133. local FIREBALL = CreatePart(3, Effects, "Neon", 0, 1, "New Yeller", "Fire", VT(3, 3, 3))
  4134. FIREBALL.CFrame = RightArm.CFrame * CF(0, -3, 0)
  4135. local FIRE = script.SunFireball:Clone()
  4136. FIRE.Parent = FIREBALL
  4137. FIRE.Enabled = true
  4138. local EXPLOSION = script.SunExplosion:Clone()
  4139. EXPLOSION.Parent = FIREBALL
  4140. CreateSound(463598785, FIREBALL, 5, 1, false)
  4141. local DISTANCE = (RootPart.Position - POSITION).Magnitude
  4142. local FRAME = CF(VT(POSITION.X + MRANDOM(-45, 45) / 3, RootPart.Position.Y, POSITION.Z + MRANDOM(-45, 45) / 3), RootPart.Position + VT(0, 45, 0)) * CF(0, 0, -DISTANCE / 2)
  4143. for i = 1, 75 do
  4144. Swait()
  4145. FIREBALL.CFrame = Clerp(FIREBALL.CFrame, FRAME, 0.5 / Animation_Speed)
  4146. end
  4147. FIREBALL.CFrame = CF(FIREBALL.Position, POSITION)
  4148. for i = 1, 300 do
  4149. Swait()
  4150. FIREBALL.CFrame = FIREBALL.CFrame * CF(0, 0, -4)
  4151. local HITFLOOR, HITPOS = Raycast(FIREBALL.Position, FIREBALL.CFrame.lookVector, 4.2, Character)
  4152. if HITFLOOR ~= nil then
  4153. FIRE.Enabled = false
  4154. EXPLOSION:Emit(500)
  4155. CreateSound(416328540, FIREBALL, 5, 1, false)
  4156. ApplyAoE(FIREBALL.Position, 75, 25, 35, 65, true, MRANDOM(5, 15), "Sun", true, {
  4157. SHAKE = 1,
  4158. TIMER = 6,
  4159. DOESFADE = true
  4160. })
  4161. WACKYEFFECT({
  4162. EffectType = "Sphere",
  4163. Size = VT(0, 0, 0),
  4164. Size2 = VT(150, 150, 150),
  4165. Transparency = 0,
  4166. Transparency2 = 1,
  4167. CFrame = CF(FIREBALL.Position),
  4168. MoveToPos = nil,
  4169. RotationX = 0,
  4170. RotationY = 0,
  4171. RotationZ = 0,
  4172. Material = "Neon",
  4173. Color = C3(1, 0.6666666666666666, 0),
  4174. SoundID = nil,
  4175. SoundPitch = nil,
  4176. SoundVolume = nil
  4177. })
  4178. wait(5)
  4179. break
  4180. end
  4181. end
  4182. FIREBALL:remove()
  4183. end))
  4184. POS2 = nil
  4185. end
  4186. if POS3 then
  4187. coroutine.resume(coroutine.create(function()
  4188. local POSITION = POS3
  4189. local FIREBALL = CreatePart(3, Effects, "Neon", 0, 1, "New Yeller", "Fire", VT(3, 3, 3))
  4190. FIREBALL.CFrame = RightArm.CFrame * CF(0, -3, 0)
  4191. local FIRE = script.SunFireball:Clone()
  4192. FIRE.Parent = FIREBALL
  4193. FIRE.Enabled = true
  4194. local EXPLOSION = script.SunExplosion:Clone()
  4195. EXPLOSION.Parent = FIREBALL
  4196. CreateSound(463598785, FIREBALL, 5, 1, false)
  4197. local DISTANCE = (RootPart.Position - POSITION).Magnitude
  4198. local FRAME = CF(VT(POSITION.X + MRANDOM(-45, 45) / 3, RootPart.Position.Y, POSITION.Z + MRANDOM(-45, 45) / 3), RootPart.Position + VT(0, 45, 0)) * CF(0, 0, -DISTANCE / 2)
  4199. for i = 1, 75 do
  4200. Swait()
  4201. FIREBALL.CFrame = Clerp(FIREBALL.CFrame, FRAME, 0.5 / Animation_Speed)
  4202. end
  4203. FIREBALL.CFrame = CF(FIREBALL.Position, POSITION)
  4204. for i = 1, 300 do
  4205. Swait()
  4206. FIREBALL.CFrame = FIREBALL.CFrame * CF(0, 0, -4)
  4207. local HITFLOOR, HITPOS = Raycast(FIREBALL.Position, FIREBALL.CFrame.lookVector, 4.2, Character)
  4208. if HITFLOOR ~= nil then
  4209. FIRE.Enabled = false
  4210. EXPLOSION:Emit(500)
  4211. CreateSound(416328540, FIREBALL, 5, 1, false)
  4212. ApplyAoE(FIREBALL.Position, 75, 25, 35, 65, true, MRANDOM(5, 15), "Sun", true, {
  4213. SHAKE = 1,
  4214. TIMER = 6,
  4215. DOESFADE = true
  4216. })
  4217. WACKYEFFECT({
  4218. EffectType = "Sphere",
  4219. Size = VT(0, 0, 0),
  4220. Size2 = VT(150, 150, 150),
  4221. Transparency = 0,
  4222. Transparency2 = 1,
  4223. CFrame = CF(FIREBALL.Position),
  4224. MoveToPos = nil,
  4225. RotationX = 0,
  4226. RotationY = 0,
  4227. RotationZ = 0,
  4228. Material = "Neon",
  4229. Color = C3(1, 0.6666666666666666, 0),
  4230. SoundID = nil,
  4231. SoundPitch = nil,
  4232. SoundVolume = nil
  4233. })
  4234. wait(5)
  4235. break
  4236. end
  4237. end
  4238. FIREBALL:remove()
  4239. end))
  4240. POS3 = nil
  4241. end
  4242. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 + 1 * SIN(SINE / 24)) * ANGLES(RAD(0), RAD(0), RAD(74)), 2 / Animation_Speed)
  4243. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(20), RAD(0), RAD(-74)), 1 / Animation_Speed)
  4244. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.25, 0.5, -0.3) * ANGLES(RAD(90), RAD(0), RAD(74)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  4245. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.45, 0.1, -0.3) * ANGLES(RAD(0), RAD(45), RAD(0)) * ANGLES(RAD(165), RAD(0), RAD(0)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  4246. RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.5, -0.5) * ANGLES(RAD(0), RAD(75), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  4247. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  4248. until ATTACK == false
  4249. end))
  4250. wait(0.4)
  4251. POS1 = Mouse.Hit.p
  4252. wait(0.5)
  4253. POS2 = Mouse.Hit.p
  4254. wait(0.6)
  4255. POS3 = Mouse.Hit.p
  4256. wait(0.3)
  4257. RING.Anchored = true
  4258. WELD:remove()
  4259. coroutine.resume(coroutine.create(function()
  4260. for i = 1, 35 do
  4261. Swait()
  4262. MESH.Scale = MESH.Scale - VT(2.6, 0, 2.6)
  4263. end
  4264. RING:remove()
  4265. end))
  4266. ATTACK = false
  4267. Rooted = false
  4268. end
  4269. function PheonixFlare()
  4270. ATTACK = true
  4271. Rooted = false
  4272. PARTICLES = true
  4273. coroutine.resume(coroutine.create(function()
  4274. repeat
  4275. Swait()
  4276. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 + 1 * SIN(SINE / 24)) * ANGLES(RAD(0), RAD(0), RAD(0)), 2 / Animation_Speed)
  4277. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(20), RAD(0), RAD(0)), 1 / Animation_Speed)
  4278. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(-15), RAD(25)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  4279. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(15), RAD(-25)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  4280. RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.5, -0.5) * ANGLES(RAD(0), RAD(75), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  4281. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  4282. until ATTACK == false
  4283. end))
  4284. CreateSound(462676772, Torso, 7, 1, false)
  4285. WINGS1.Acceleration = VT(9, 0, -12)
  4286. WINGS1B.Acceleration = VT(9, 0, -12)
  4287. WINGS2.Acceleration = VT(-9, 0, -12)
  4288. WINGS2B.Acceleration = VT(-9, 0, -12)
  4289. wait(0.25)
  4290. coroutine.resume(coroutine.create(function()
  4291. local WIND = CreatePart(3, Effects, "Neon", 0, 1, "Cyan", "Flight", VT(0, 0, 0))
  4292. WIND.CFrame = CF(RootPart.Position, Mouse.Hit.p)
  4293. local PARTICLES = script.Gale:Clone()
  4294. PARTICLES.Parent = WIND
  4295. PARTICLES.Enabled = true
  4296. CreateSound(376218535, WIND, 6, 1, false)
  4297. for i = 1, 250 do
  4298. Swait()
  4299. local HIT, HITPOS = Raycast(WIND.Position, WIND.CFrame.lookVector, 3, Character)
  4300. WIND.CFrame = WIND.CFrame * CF(0, 0, -2)
  4301. if HIT then
  4302. ApplyAoE(WIND.Position, 45, 10, 30, 135, false, MRANDOM(12, 16), "Nul", true, {
  4303. SHAKE = 3,
  4304. TIMER = 7,
  4305. DOESFADE = true
  4306. })
  4307. CreateSound(260430117, WIND, 3, 1, false)
  4308. WACKYEFFECT({
  4309. Time = 25,
  4310. EffectType = "Wave",
  4311. Size = VT(20, 0, 20),
  4312. Size2 = VT(60, 8, 60),
  4313. Transparency = 0.9,
  4314. Transparency2 = 1,
  4315. CFrame = WIND.CFrame * ANGLES(RAD(90), RAD(0), RAD(0)) * ANGLES(RAD(0), RAD(45), RAD(0)),
  4316. MoveToPos = nil,
  4317. RotationX = 0,
  4318. RotationY = 0,
  4319. RotationZ = 0,
  4320. Material = "Neon",
  4321. Color = C3(0.8, 0.8, 0.8),
  4322. SoundID = nil,
  4323. SoundPitch = nil,
  4324. SoundVolume = nil
  4325. })
  4326. WACKYEFFECT({
  4327. Time = 25,
  4328. EffectType = "Wave",
  4329. Size = VT(20, 0, 20),
  4330. Size2 = VT(60, 8, 60),
  4331. Transparency = 0.9,
  4332. Transparency2 = 1,
  4333. CFrame = WIND.CFrame * ANGLES(RAD(90), RAD(0), RAD(0)),
  4334. MoveToPos = nil,
  4335. RotationX = 0,
  4336. RotationY = 0,
  4337. RotationZ = 0,
  4338. Material = "Neon",
  4339. Color = C3(0.8, 0.8, 0.8),
  4340. SoundID = nil,
  4341. SoundPitch = nil,
  4342. SoundVolume = nil
  4343. })
  4344. break
  4345. end
  4346. end
  4347. PARTICLES.Enabled = false
  4348. Debris:AddItem(WIND, 7)
  4349. end))
  4350. wait(1)
  4351. CreateSound(462676772, Torso, 7, 1, false)
  4352. WINGS1.Acceleration = VT(9, 1, 4)
  4353. WINGS1B.Acceleration = VT(9, 1, 4)
  4354. WINGS2.Acceleration = VT(-9, 1, 4)
  4355. WINGS2B.Acceleration = VT(-9, 1, 4)
  4356. wait(0.25)
  4357. coroutine.resume(coroutine.create(function()
  4358. local FIREBALL = CreatePart(3, Effects, "Neon", 0, 1, "Cyan", "Flight", VT(5, 5, 5))
  4359. FIREBALL.CFrame = CF(RootPart.Position, Mouse.Hit.p)
  4360. local PARTICLES1 = script.PheonixFireball1:Clone()
  4361. PARTICLES1.Parent = FIREBALL
  4362. PARTICLES1.Enabled = true
  4363. local PARTICLES2 = script.PheonixFireball2:Clone()
  4364. PARTICLES2.Parent = FIREBALL
  4365. PARTICLES2.Enabled = true
  4366. CreateSound(463593339, FIREBALL, 6, 1, false)
  4367. for i = 1, 250 do
  4368. Swait()
  4369. local HIT, HITPOS = Raycast(FIREBALL.Position, FIREBALL.CFrame.lookVector, 2.5, Character)
  4370. FIREBALL.CFrame = FIREBALL.CFrame * CF(0, 0, -2)
  4371. if HIT then
  4372. ApplyAoE(FIREBALL.Position, 70, 45, 50, 35, true, MRANDOM(12, 16), "Pheonix", true, {
  4373. SHAKE = 2,
  4374. TIMER = 25,
  4375. DOESFADE = true
  4376. })
  4377. WACKYEFFECT({
  4378. Time = 60,
  4379. EffectType = "Sphere",
  4380. Size = VT(0, 0, 0),
  4381. Size2 = VT(120, 120, 120),
  4382. Transparency = 0,
  4383. Transparency2 = 1,
  4384. CFrame = CF(FIREBALL.Position),
  4385. MoveToPos = nil,
  4386. RotationX = 0,
  4387. RotationY = 0,
  4388. RotationZ = 0,
  4389. Material = "Neon",
  4390. Color = C3(1, 0.6666666666666666, 0),
  4391. SoundID = nil,
  4392. SoundPitch = nil,
  4393. SoundVolume = nil
  4394. })
  4395. WACKYEFFECT({
  4396. Time = 60,
  4397. EffectType = "Sphere",
  4398. Size = VT(0, 0, 0),
  4399. Size2 = VT(140, 140, 140),
  4400. Transparency = 0.5,
  4401. Transparency2 = 1,
  4402. CFrame = CF(FIREBALL.Position),
  4403. MoveToPos = nil,
  4404. RotationX = 0,
  4405. RotationY = 0,
  4406. RotationZ = 0,
  4407. Material = "Neon",
  4408. Color = PHEONIXCOLOR,
  4409. SoundID = 462692971,
  4410. SoundPitch = 1,
  4411. SoundVolume = 6
  4412. })
  4413. PARTICLES1.Enabled = false
  4414. PARTICLES2.Enabled = false
  4415. local EXPLOSION = script.PheonixExplosion1:Clone()
  4416. EXPLOSION.Parent = FIREBALL
  4417. EXPLOSION.Enabled = true
  4418. local EXPLOSION2 = script.PheonixExplosion2:Clone()
  4419. EXPLOSION2.Parent = FIREBALL
  4420. EXPLOSION2.Enabled = true
  4421. wait(0.3)
  4422. EXPLOSION.Enabled = false
  4423. EXPLOSION2.Enabled = false
  4424. break
  4425. end
  4426. end
  4427. PARTICLES1.Enabled = false
  4428. PARTICLES2.Enabled = false
  4429. Debris:AddItem(FIREBALL, 7)
  4430. end))
  4431. wait(0.5)
  4432. PARTICLES = false
  4433. ATTACK = false
  4434. Rooted = false
  4435. end
  4436. function PheonixFireballs()
  4437. ATTACK = true
  4438. local POWER = 1
  4439. DIRECTTURN = true
  4440. coroutine.resume(coroutine.create(function()
  4441. repeat
  4442. Swait()
  4443. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 + 1 * SIN(SINE / 24)) * ANGLES(RAD(0), RAD(0), RAD(24)), 2 / Animation_Speed)
  4444. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(20), RAD(0), RAD(-24)), 1 / Animation_Speed)
  4445. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.25, 0.5, -0.3) * ANGLES(RAD(90), RAD(0), RAD(24)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  4446. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.45, 0.1, -0.3) * ANGLES(RAD(0), RAD(45), RAD(0)) * ANGLES(RAD(165), RAD(0), RAD(0)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  4447. RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.5, -0.5) * ANGLES(RAD(0), RAD(75), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  4448. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  4449. until ATTACK == false
  4450. end))
  4451. local RING1, WELD1, MESH1 = MagicRing(RightArm, CF(0, -1.2, 0) * ANGLES(RAD(0), RAD(180), RAD(0)), "Pheonix")
  4452. local RING2, WELD2, MESH2 = MagicRing(RightArm, CF(0, -1.6, 0) * ANGLES(RAD(0), RAD(180), RAD(0)), "Pheonix")
  4453. for i = 1, 35 do
  4454. Swait()
  4455. MESH1.Scale = MESH1.Scale + VT(6, 0, 6)
  4456. MESH2.Scale = MESH2.Scale + VT(3, 0, 3)
  4457. end
  4458. repeat
  4459. wait()
  4460. POWER = POWER + 1
  4461. until KEYHOLD == false
  4462. if POWER <= 30 then
  4463. for i = 1, 15 do
  4464. wait(0.1)
  4465. coroutine.resume(coroutine.create(function()
  4466. local FIREBALL = CreatePart(3, Effects, "Neon", 0, 1, "Cyan", "Flight", VT(2, 2, 2))
  4467. FIREBALL.CFrame = CF(RootPart.Position, Mouse.Hit.p)
  4468. local PARTICLES1 = script.PheonixFireball1:Clone()
  4469. PARTICLES1.Parent = FIREBALL
  4470. PARTICLES1.Enabled = true
  4471. local PARTICLES2 = script.PheonixFireball2:Clone()
  4472. PARTICLES2.Parent = FIREBALL
  4473. PARTICLES2.Enabled = true
  4474. PARTICLES1.Size = NumberSequence.new(3, 0)
  4475. PARTICLES2.Size = NumberSequence.new(3, 0)
  4476. CreateSound(463593339, FIREBALL, 6, 1, false)
  4477. for i = 1, 250 do
  4478. Swait()
  4479. local HIT, HITPOS = Raycast(FIREBALL.Position, FIREBALL.CFrame.lookVector, 4.5, Character)
  4480. FIREBALL.CFrame = FIREBALL.CFrame * CF(0, 0, -4)
  4481. if HIT then
  4482. ApplyAoE(FIREBALL.Position, 25, 5, 15, 5, true, MRANDOM(5, 6), "Pheonix", true, {
  4483. SHAKE = 2,
  4484. TIMER = 25,
  4485. DOESFADE = true
  4486. })
  4487. WACKYEFFECT({
  4488. Time = 60,
  4489. EffectType = "Sphere",
  4490. Size = VT(0, 0, 0),
  4491. Size2 = VT(50, 50, 50),
  4492. Transparency = 0,
  4493. Transparency2 = 1,
  4494. CFrame = CF(FIREBALL.Position),
  4495. MoveToPos = nil,
  4496. RotationX = 0,
  4497. RotationY = 0,
  4498. RotationZ = 0,
  4499. Material = "Neon",
  4500. Color = C3(1, 0.6666666666666666, 0),
  4501. SoundID = nil,
  4502. SoundPitch = nil,
  4503. SoundVolume = nil
  4504. })
  4505. WACKYEFFECT({
  4506. Time = 60,
  4507. EffectType = "Sphere",
  4508. Size = VT(0, 0, 0),
  4509. Size2 = VT(60, 60, 60),
  4510. Transparency = 0.5,
  4511. Transparency2 = 1,
  4512. CFrame = CF(FIREBALL.Position),
  4513. MoveToPos = nil,
  4514. RotationX = 0,
  4515. RotationY = 0,
  4516. RotationZ = 0,
  4517. Material = "Neon",
  4518. Color = PHEONIXCOLOR,
  4519. SoundID = 462692971,
  4520. SoundPitch = 1,
  4521. SoundVolume = 6
  4522. })
  4523. PARTICLES1.Enabled = false
  4524. PARTICLES2.Enabled = false
  4525. local EXPLOSION = script.PheonixExplosion1:Clone()
  4526. EXPLOSION.Parent = FIREBALL
  4527. EXPLOSION.Enabled = true
  4528. local EXPLOSION2 = script.PheonixExplosion2:Clone()
  4529. EXPLOSION2.Parent = FIREBALL
  4530. EXPLOSION2.Enabled = true
  4531. wait(0.3)
  4532. EXPLOSION.Enabled = false
  4533. EXPLOSION2.Enabled = false
  4534. break
  4535. end
  4536. end
  4537. PARTICLES1.Enabled = false
  4538. PARTICLES2.Enabled = false
  4539. Debris:AddItem(FIREBALL, 7)
  4540. end))
  4541. end
  4542. else
  4543. for E = 1, 5 do
  4544. do
  4545. local OFFSET = ANGLES(RAD(72 * E), RAD(72 * E), RAD(0)) * CF(0, 0, 75)
  4546. coroutine.resume(coroutine.create(function()
  4547. local FIREBALL = CreatePart(3, Effects, "Neon", 0, 1, "Cyan", "Flight", VT(5, 5, 5))
  4548. FIREBALL.CFrame = CF(RootPart.Position, CF(Mouse.Hit.p, RootPart.Position) * OFFSET.p)
  4549. local PARTICLES1 = script.PheonixFireball1:Clone()
  4550. PARTICLES1.Parent = FIREBALL
  4551. PARTICLES1.Enabled = true
  4552. local PARTICLES2 = script.PheonixFireball2:Clone()
  4553. PARTICLES2.Parent = FIREBALL
  4554. PARTICLES2.Enabled = true
  4555. CreateSound(463593339, FIREBALL, 6, 1, false)
  4556. for i = 1, 650 do
  4557. Swait()
  4558. local HIT, HITPOS = Raycast(FIREBALL.Position, FIREBALL.CFrame.lookVector, 2.5, Character)
  4559. FIREBALL.CFrame = FIREBALL.CFrame * CF(0, 0, -2)
  4560. if HIT then
  4561. ApplyAoE(FIREBALL.Position, 70, 45, 50, 35, true, MRANDOM(12, 16), "Pheonix", true, {
  4562. SHAKE = 2,
  4563. TIMER = 25,
  4564. DOESFADE = true
  4565. })
  4566. WACKYEFFECT({
  4567. Time = 60,
  4568. EffectType = "Sphere",
  4569. Size = VT(0, 0, 0),
  4570. Size2 = VT(120, 120, 120),
  4571. Transparency = 0,
  4572. Transparency2 = 1,
  4573. CFrame = CF(FIREBALL.Position),
  4574. MoveToPos = nil,
  4575. RotationX = 0,
  4576. RotationY = 0,
  4577. RotationZ = 0,
  4578. Material = "Neon",
  4579. Color = C3(1, 0.6666666666666666, 0),
  4580. SoundID = nil,
  4581. SoundPitch = nil,
  4582. SoundVolume = nil
  4583. })
  4584. WACKYEFFECT({
  4585. Time = 60,
  4586. EffectType = "Sphere",
  4587. Size = VT(0, 0, 0),
  4588. Size2 = VT(140, 140, 140),
  4589. Transparency = 0.5,
  4590. Transparency2 = 1,
  4591. CFrame = CF(FIREBALL.Position),
  4592. MoveToPos = nil,
  4593. RotationX = 0,
  4594. RotationY = 0,
  4595. RotationZ = 0,
  4596. Material = "Neon",
  4597. Color = PHEONIXCOLOR,
  4598. SoundID = 462692971,
  4599. SoundPitch = 1,
  4600. SoundVolume = 6
  4601. })
  4602. PARTICLES1.Enabled = false
  4603. PARTICLES2.Enabled = false
  4604. local EXPLOSION = script.PheonixExplosion1:Clone()
  4605. EXPLOSION.Parent = FIREBALL
  4606. EXPLOSION.Enabled = true
  4607. local EXPLOSION2 = script.PheonixExplosion2:Clone()
  4608. EXPLOSION2.Parent = FIREBALL
  4609. EXPLOSION2.Enabled = true
  4610. wait(0.3)
  4611. EXPLOSION.Enabled = false
  4612. EXPLOSION2.Enabled = false
  4613. break
  4614. end
  4615. end
  4616. PARTICLES1.Enabled = false
  4617. PARTICLES2.Enabled = false
  4618. Debris:AddItem(FIREBALL, 7)
  4619. end))
  4620. end
  4621. end
  4622. end
  4623. wait(0.5)
  4624. WELD1:remove()
  4625. WELD2:remove()
  4626. RING1.Anchored = true
  4627. RING2.Anchored = true
  4628. coroutine.resume(coroutine.create(function()
  4629. for i = 1, 35 do
  4630. Swait()
  4631. MESH1.Scale = MESH1.Scale - VT(6, 0, 6)
  4632. MESH2.Scale = MESH2.Scale - VT(3, 0, 3)
  4633. end
  4634. RING1:remove()
  4635. RING2:remove()
  4636. end))
  4637. DIRECTTURN = false
  4638. ATTACK = false
  4639. end
  4640. function PheonixJump()
  4641. local DONE = false
  4642. local STRENGTH = 15
  4643. local UP = 5
  4644. ATTACK = true
  4645. DIRECTTURN = true
  4646. local RING, WELD, MESH = MagicRing(RootPart, CF(0, -3.5, 0) * ANGLES(RAD(0), RAD(180), RAD(0)), "Pheonix")
  4647. for i = 1, 30 do
  4648. Swait()
  4649. MESH.Scale = MESH.Scale + VT(12, 0, 12)
  4650. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, -1.4) * ANGLES(RAD(0), RAD(-5), RAD(-15)), 2 / Animation_Speed)
  4651. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(15), RAD(0), RAD(15)), 0.5 / Animation_Speed)
  4652. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5 + 0.05 * COS(SINE / 12), 0) * ANGLES(RAD(15), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 2 / Animation_Speed)
  4653. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 2 / Animation_Speed)
  4654. RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.35, -0.25) * ANGLES(RAD(35), RAD(35), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(0)), 2 / Animation_Speed)
  4655. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1.5, -0.4) * ANGLES(RAD(0), RAD(-75), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(90)), 2 / Animation_Speed)
  4656. end
  4657. local KEYDOWN = Mouse.KeyDown:connect(function(NEWKEY)
  4658. if NEWKEY == "w" and VALUE2 == false then
  4659. coroutine.resume(coroutine.create(function()
  4660. ApplyAoE(RING.Position, 35, 15, 20, 35, true, MRANDOM(12, 16), "Pheonix", true, {
  4661. SHAKE = 2,
  4662. TIMER = 15,
  4663. DOESFADE = true
  4664. })
  4665. WACKYEFFECT({
  4666. EffectType = "Sphere",
  4667. Size = VT(0, 0, 0),
  4668. Size2 = VT(50, 50, 50),
  4669. Transparency = 0,
  4670. Transparency2 = 1,
  4671. CFrame = CF(RING.Position),
  4672. MoveToPos = nil,
  4673. RotationX = 0,
  4674. RotationY = 0,
  4675. RotationZ = 0,
  4676. Material = "Neon",
  4677. Color = C3(1, 0.6666666666666666, 0),
  4678. SoundID = nil,
  4679. SoundPitch = nil,
  4680. SoundVolume = nil
  4681. })
  4682. WACKYEFFECT({
  4683. EffectType = "Sphere",
  4684. Size = VT(0, 0, 0),
  4685. Size2 = VT(70, 70, 70),
  4686. Transparency = 0.5,
  4687. Transparency2 = 1,
  4688. CFrame = CF(RING.Position),
  4689. MoveToPos = nil,
  4690. RotationX = 0,
  4691. RotationY = 0,
  4692. RotationZ = 0,
  4693. Material = "Neon",
  4694. Color = PHEONIXCOLOR,
  4695. SoundID = 462692971,
  4696. SoundPitch = 1.2,
  4697. SoundVolume = 6
  4698. })
  4699. local EXPLOSION = script.PheonixExplosion1:Clone()
  4700. EXPLOSION.Parent = RING
  4701. EXPLOSION.Enabled = true
  4702. local EXPLOSION2 = script.PheonixExplosion2:Clone()
  4703. EXPLOSION2.Parent = RING
  4704. EXPLOSION2.Enabled = true
  4705. wait(0.3)
  4706. EXPLOSION.Enabled = false
  4707. EXPLOSION2.Enabled = false
  4708. Debris:AddItem(RING, 3)
  4709. end))
  4710. CreateSound(462676772, Torso, 8, 1, false)
  4711. coroutine.resume(coroutine.create(function()
  4712. for i = 1, 25 do
  4713. Swait()
  4714. ApplyAoE(Torso.Position, 15, 15, 20, 75, true, MRANDOM(4, 5), "Pheonix", false, {
  4715. SHAKE = 4,
  4716. TIMER = 5,
  4717. DOESFADE = true
  4718. })
  4719. WACKYEFFECT({
  4720. Time = 10,
  4721. EffectType = "Wave",
  4722. Size = VT(45, 5, 45) / 3,
  4723. Size2 = VT(35, 200, 35) / 5,
  4724. Transparency = 0.8,
  4725. Transparency2 = 1,
  4726. CFrame = Torso.CFrame * ANGLES(RAD(180), RAD(0), RAD(0)),
  4727. MoveToPos = nil,
  4728. RotationX = 0,
  4729. RotationY = 5,
  4730. RotationZ = 0,
  4731. Material = "Neon",
  4732. Color = C3(1, 0.6666666666666666, 0),
  4733. SoundID = nil,
  4734. SoundPitch = nil,
  4735. SoundVolume = nil
  4736. })
  4737. WACKYEFFECT({
  4738. Time = 10,
  4739. EffectType = "Wave",
  4740. Size = VT(55, 5, 55) / 3,
  4741. Size2 = VT(45, 200, 45) / 5,
  4742. Transparency = 0.8,
  4743. Transparency2 = 1,
  4744. CFrame = Torso.CFrame * ANGLES(RAD(180), RAD(0), RAD(0)),
  4745. MoveToPos = nil,
  4746. RotationX = 0,
  4747. RotationY = -5,
  4748. RotationZ = 0,
  4749. Material = "Neon",
  4750. Color = PHEONIXCOLOR,
  4751. SoundID = nil,
  4752. SoundPitch = nil,
  4753. SoundVolume = nil
  4754. })
  4755. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 + 1 * SIN(SINE / 24)) * ANGLES(RAD(65), RAD(0), RAD(28.8 * i)), 2 / Animation_Speed)
  4756. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(-20), RAD(0), RAD(0)), 1 / Animation_Speed)
  4757. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(-15), RAD(0), RAD(15)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  4758. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-15), RAD(0), RAD(-15)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  4759. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(-15), RAD(65), RAD(0)) * ANGLES(RAD(-10), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  4760. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(-15), RAD(-65), RAD(0)) * ANGLES(RAD(-10), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  4761. end
  4762. ATTACK = false
  4763. end))
  4764. repeat
  4765. VALUE2 = true
  4766. Swait()
  4767. BODYPOS.Position = RootPart.CFrame * CF(0, UP, -STRENGTH).p
  4768. if STRENGTH > 2.5 then
  4769. STRENGTH = STRENGTH - 0.1
  4770. else
  4771. STRENGTH = 2.5
  4772. end
  4773. if UP > 0 then
  4774. UP = UP - 0.15
  4775. else
  4776. UP = 0
  4777. end
  4778. until KEYHOLD == false and STRENGTH < 5 and ATTACK == false
  4779. DONE = true
  4780. end
  4781. end)
  4782. repeat
  4783. Swait()
  4784. if STRENGTH < 50 then
  4785. STRENGTH = STRENGTH + 0.15
  4786. MESH.Scale = MESH.Scale + VT(0.5, 0, 0.5)
  4787. end
  4788. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, -1.4) * ANGLES(RAD(0), RAD(-5), RAD(-15)), 2 / Animation_Speed)
  4789. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(15), RAD(0), RAD(15)), 0.5 / Animation_Speed)
  4790. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5 + 0.05 * COS(SINE / 12), 0) * ANGLES(RAD(15), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 2 / Animation_Speed)
  4791. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 2 / Animation_Speed)
  4792. RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.35, -0.25) * ANGLES(RAD(35), RAD(35), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(0)), 2 / Animation_Speed)
  4793. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1.5, -0.4) * ANGLES(RAD(0), RAD(-75), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(90)), 2 / Animation_Speed)
  4794. until VALUE2 == true
  4795. DIRECTTURN = false
  4796. WELD:remove()
  4797. RING.Anchored = true
  4798. local SIZE = MESH.Scale.X
  4799. coroutine.resume(coroutine.create(function()
  4800. for i = 1, 30 do
  4801. Swait()
  4802. MESH.Scale = MESH.Scale - VT(SIZE, 0, SIZE) / 30
  4803. end
  4804. RING:remove()
  4805. end))
  4806. repeat
  4807. wait()
  4808. until DONE == true
  4809. KEYDOWN:disconnect()
  4810. VALUE2 = false
  4811. end
  4812. function DragonFirePillar()
  4813. ATTACK = true
  4814. local POS = Mouse.Hit.p
  4815. APPLYGYRO = false
  4816. local RING, WELD, MESH = MagicRing(RightArm, CF(0, -1.2, 0) * ANGLES(RAD(0), RAD(180), RAD(0)), "Fire")
  4817. coroutine.resume(coroutine.create(function()
  4818. repeat
  4819. Swait()
  4820. GYRO.CFrame = CF(RootPart.Position, POS)
  4821. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 + 1 * SIN(SINE / 24)) * ANGLES(RAD(0), RAD(0), RAD(24)), 2 / Animation_Speed)
  4822. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(20), RAD(0), RAD(-24)), 1 / Animation_Speed)
  4823. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.25, 0.5, -0.3) * ANGLES(RAD(90), RAD(0), RAD(24)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  4824. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.45, 0.1, -0.3) * ANGLES(RAD(0), RAD(45), RAD(0)) * ANGLES(RAD(165), RAD(0), RAD(0)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  4825. RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.5, -0.5) * ANGLES(RAD(0), RAD(75), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  4826. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  4827. until ATTACK == false
  4828. end))
  4829. for i = 1, 40 do
  4830. MESH.Scale = MESH.Scale + VT(4, 0, 4)
  4831. Swait()
  4832. end
  4833. for i = 1, 6 do
  4834. WACKYEFFECT({
  4835. EffectType = "Sphere",
  4836. Size = VT(35, 35, 35),
  4837. Size2 = VT(0, 0, 0),
  4838. Transparency = 1,
  4839. Transparency2 = 0.5,
  4840. CFrame = CF(POS),
  4841. MoveToPos = nil,
  4842. RotationX = 0,
  4843. RotationY = 0,
  4844. RotationZ = 0,
  4845. Material = "Neon",
  4846. Color = C3(1, 0.3333333333333333, 0),
  4847. SoundID = nil,
  4848. SoundPitch = nil,
  4849. SoundVolume = nil
  4850. })
  4851. wait(1)
  4852. end
  4853. coroutine.resume(coroutine.create(function()
  4854. coroutine.resume(coroutine.create(function()
  4855. for i = 1, 30 do
  4856. Swait()
  4857. MESH.Scale = MESH.Scale - VT(4, 0, 4)
  4858. end
  4859. RING:remove()
  4860. end))
  4861. WACKYEFFECT({
  4862. Time = 640,
  4863. EffectType = "Sphere",
  4864. Size = VT(15, 500, 15),
  4865. Size2 = VT(10, 700, 10),
  4866. Transparency = 0,
  4867. Transparency2 = 1,
  4868. CFrame = CF(POS),
  4869. MoveToPos = nil,
  4870. RotationX = 0,
  4871. RotationY = 0,
  4872. RotationZ = 0,
  4873. Material = "Neon",
  4874. Color = C3(1, 0.3333333333333333, 0),
  4875. SoundID = nil,
  4876. SoundPitch = nil,
  4877. SoundVolume = nil
  4878. })
  4879. for i = 1, 15 do
  4880. ApplyAoE(POS, 35, 20, 30, 15, true, MRANDOM(3, 4), "Fire", true, {
  4881. SHAKE = 5,
  4882. TIMER = 6,
  4883. DOESFADE = true
  4884. })
  4885. WACKYEFFECT({
  4886. Time = 125,
  4887. EffectType = "Wave",
  4888. Size = VT(0, 5, 0),
  4889. Size2 = VT(250, 35, 250),
  4890. Transparency = 0.4,
  4891. Transparency2 = 1,
  4892. CFrame = CF(POS) * ANGLES(RAD(0), RAD(MRANDOM(0, 360)), RAD(0)),
  4893. MoveToPos = nil,
  4894. RotationX = 0,
  4895. RotationY = MRANDOM(-5, 5) * 2,
  4896. RotationZ = 0,
  4897. Material = "Neon",
  4898. Color = C3(1, 0.3333333333333333, 0),
  4899. SoundID = nil,
  4900. SoundPitch = MRANDOM(9, 11) / 10,
  4901. SoundVolume = 4
  4902. })
  4903. WACKYEFFECT({
  4904. Time = 75,
  4905. EffectType = "Swirl",
  4906. Size = VT(20, 20, 20),
  4907. Size2 = VT(65, 500, 65),
  4908. Transparency = 0.4,
  4909. Transparency2 = 1,
  4910. CFrame = CF(POS) * ANGLES(RAD(0), RAD(MRANDOM(0, 360)), RAD(0)),
  4911. MoveToPos = nil,
  4912. RotationX = 0,
  4913. RotationY = MRANDOM(-5, 5) * 6,
  4914. RotationZ = 0,
  4915. Material = "Neon",
  4916. Color = C3(1, 0.3333333333333333, 0),
  4917. SoundID = nil,
  4918. SoundPitch = MRANDOM(9, 11) / 10,
  4919. SoundVolume = 4
  4920. })
  4921. WACKYEFFECT({
  4922. Time = 75,
  4923. EffectType = "Swirl",
  4924. Size = VT(20, 20, 20),
  4925. Size2 = VT(45, 600, 45),
  4926. Transparency = 0.4,
  4927. Transparency2 = 1,
  4928. CFrame = CF(POS) * ANGLES(RAD(0), RAD(MRANDOM(0, 360)), RAD(0)),
  4929. MoveToPos = nil,
  4930. RotationX = 0,
  4931. RotationY = MRANDOM(-5, 5) * 6,
  4932. RotationZ = 0,
  4933. Material = "Neon",
  4934. Color = C3(1, 0.3333333333333333, 0),
  4935. SoundID = 304529688,
  4936. SoundPitch = MRANDOM(9, 11) / 10,
  4937. SoundVolume = 4
  4938. })
  4939. wait(0.6)
  4940. end
  4941. end))
  4942. APPLYGYRO = true
  4943. ATTACK = false
  4944. end
  4945. function PheonixTornado()
  4946. ATTACK = true
  4947. local BUILDUP = true
  4948. local HITS = {}
  4949. PARTICLES = true
  4950. coroutine.resume(coroutine.create(function()
  4951. repeat
  4952. Swait()
  4953. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 + 1 * SIN(SINE / 24)) * ANGLES(RAD(0), RAD(0), RAD(0)), 2 / Animation_Speed)
  4954. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(20), RAD(0), RAD(0)), 1 / Animation_Speed)
  4955. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(-15), RAD(25)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  4956. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(15), RAD(-25)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  4957. RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.5, -0.5) * ANGLES(RAD(0), RAD(75), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  4958. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  4959. until BUILDUP == false
  4960. end))
  4961. WINGS1.Acceleration = VT(9, 0, -12)
  4962. WINGS1B.Acceleration = VT(9, 0, -12)
  4963. WINGS2.Acceleration = VT(-9, 0, -12)
  4964. WINGS2B.Acceleration = VT(-9, 0, -12)
  4965. wait(1)
  4966. CreateSound(462676772, Torso, 7, 1, false)
  4967. WINGS1.Acceleration = VT(9, 1, 4)
  4968. WINGS1B.Acceleration = VT(9, 1, 4)
  4969. WINGS2.Acceleration = VT(-9, 1, 4)
  4970. WINGS2B.Acceleration = VT(-9, 1, 4)
  4971. wait(0.25)
  4972. AddChildrenToTable(Torso.Position, workspace, 35, HITS)
  4973. WACKYEFFECT({
  4974. Time = 40,
  4975. EffectType = "Swirl",
  4976. Size = VT(50, 5, 50),
  4977. Size2 = VT(50, 60, 50),
  4978. Transparency = 0.8,
  4979. Transparency2 = 1,
  4980. CFrame = Torso.CFrame * ANGLES(RAD(180), RAD(0), RAD(0)),
  4981. MoveToPos = nil,
  4982. RotationX = 0,
  4983. RotationY = -5,
  4984. RotationZ = 0,
  4985. Material = "Neon",
  4986. Color = C3(0.8, 0.8, 0.8),
  4987. SoundID = nil,
  4988. SoundPitch = nil,
  4989. SoundVolume = nil
  4990. })
  4991. BUILDUP = false
  4992. PARTICLES = false
  4993. if #HITS > 0 then
  4994. do
  4995. local BODIES = {}
  4996. if #HITS == 1 then
  4997. for i = 1, #HITS do
  4998. local TORSO = HITS[i]:FindFirstChild("HumanoidRootPart") or HITS[i]:FindFirstChild("Torso") or HITS[i]:FindFirstChild("UpperTorso")
  4999. local HUM = HITS[i]:FindFirstChildOfClass("Humanoid")
  5000. if HUM and TORSO and 0 < HUM.Health then
  5001. local POSITION = IT("BodyPosition", TORSO)
  5002. POSITION.Position = RootPart.CFrame * CF(0, 45, -35).p
  5003. POSITION.D = 15
  5004. POSITION.P = 4000000
  5005. table.insert(BODIES, POSITION)
  5006. end
  5007. end
  5008. else
  5009. for i = 1, #HITS do
  5010. local TORSO = HITS[i]:FindFirstChild("HumanoidRootPart") or HITS[i]:FindFirstChild("Torso") or HITS[i]:FindFirstChild("UpperTorso")
  5011. local HUM = HITS[i]:FindFirstChildOfClass("Humanoid")
  5012. if HUM and TORSO and 0 < HUM.Health then
  5013. local POSITION = IT("BodyPosition", TORSO)
  5014. POSITION.Position = RootPart.CFrame * CF(0, 35, -35) * ANGLES(RAD(0), RAD(360 / #HITS * i), RAD(0)) * CF(0, 0, 10).p
  5015. POSITION.D = 450
  5016. POSITION.P = 40000
  5017. POSITION.maxForce = Vector3.new(math.huge, math.huge, math.huge)
  5018. table.insert(BODIES, POSITION)
  5019. end
  5020. end
  5021. end
  5022. local POS = RootPart.CFrame * CF(0, 35, -35).p
  5023. wait(1.75)
  5024. BODYPOS.D = 450
  5025. BODYPOS.Position = POS
  5026. wait(0.5)
  5027. APPLYGYRO = false
  5028. local E = 0
  5029. CreateSound(1417056081, RootPart, 10, 0.5, false)
  5030. for i = 1, 50 do
  5031. Swait()
  5032. E = E + 1
  5033. WACKYEFFECT({
  5034. Time = 25,
  5035. EffectType = "Wave",
  5036. Size = VT(45, 5, 45) / 3,
  5037. Size2 = VT(35, 200, 35) / 5,
  5038. Transparency = 0.8,
  5039. Transparency2 = 1,
  5040. CFrame = Torso.CFrame * ANGLES(RAD(180), RAD(0), RAD(0)),
  5041. MoveToPos = nil,
  5042. RotationX = 0,
  5043. RotationY = 5,
  5044. RotationZ = 0,
  5045. Material = "Neon",
  5046. Color = C3(1, 0.6666666666666666, 0),
  5047. SoundID = nil,
  5048. SoundPitch = nil,
  5049. SoundVolume = nil
  5050. })
  5051. WACKYEFFECT({
  5052. Time = 25,
  5053. EffectType = "Wave",
  5054. Size = VT(55, 5, 55) / 3,
  5055. Size2 = VT(45, 200, 45) / 5,
  5056. Transparency = 0.8,
  5057. Transparency2 = 1,
  5058. CFrame = Torso.CFrame * ANGLES(RAD(180), RAD(0), RAD(0)),
  5059. MoveToPos = nil,
  5060. RotationX = 0,
  5061. RotationY = -5,
  5062. RotationZ = 0,
  5063. Material = "Neon",
  5064. Color = PHEONIXCOLOR,
  5065. SoundID = nil,
  5066. SoundPitch = nil,
  5067. SoundVolume = nil
  5068. })
  5069. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 + 1 * SIN(SINE / 24)) * ANGLES(RAD(0), RAD(0), RAD(-E * 10)) * CF(45, 0, 0) * ANGLES(RAD(65), RAD(0), RAD(0)), 2 / Animation_Speed)
  5070. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(-20), RAD(0), RAD(0)), 1 / Animation_Speed)
  5071. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(-15), RAD(0), RAD(15)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  5072. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-15), RAD(0), RAD(-15)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  5073. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(-15), RAD(65), RAD(0)) * ANGLES(RAD(-10), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  5074. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(-15), RAD(-65), RAD(0)) * ANGLES(RAD(-10), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  5075. end
  5076. local TORNADO = CreatePart(3, Effects, "Neon", 0, 1, "Really red", "Tornado", VT(0, 0, 0))
  5077. TORNADO.CFrame = CF(POS)
  5078. local MESH = CreateMesh("SpecialMesh", TORNADO, "FileMesh", "102638417", "", VT(25, 25, 25), VT(0, 0, 0))
  5079. local DECAL = IT("Decal", TORNADO)
  5080. DECAL.Texture = "rbxassetid://559849514"
  5081. DECAL.Transparency = 1
  5082. DECAL.Color3 = BRICKC("Deep orange").Color
  5083. local LOOP = 0
  5084. for i = 1, 250 do
  5085. Swait()
  5086. E = E + 1
  5087. LOOP = LOOP + 1
  5088. if LOOP == 10 then
  5089. LOOP = 0
  5090. ApplyAoE(TORNADO.Position, 35, 2, 2, 0, true, MRANDOM(3, 4), "Pheonix", true, {
  5091. SHAKE = 2,
  5092. TIMER = 4,
  5093. DOESFADE = true
  5094. })
  5095. end
  5096. TORNADO.CFrame = CF(POS) * ANGLES(RAD(0), RAD(-E * 10), RAD(0))
  5097. DECAL.Transparency = DECAL.Transparency - 0.002
  5098. WACKYEFFECT({
  5099. Time = 25,
  5100. EffectType = "Wave",
  5101. Size = VT(45, 5, 45) / 3,
  5102. Size2 = VT(35, 200, 35) / 5,
  5103. Transparency = 0.8,
  5104. Transparency2 = 1,
  5105. CFrame = Torso.CFrame * ANGLES(RAD(180), RAD(0), RAD(0)),
  5106. MoveToPos = nil,
  5107. RotationX = 0,
  5108. RotationY = 5,
  5109. RotationZ = 0,
  5110. Material = "Neon",
  5111. Color = C3(1, 0.6666666666666666, 0),
  5112. SoundID = nil,
  5113. SoundPitch = nil,
  5114. SoundVolume = nil
  5115. })
  5116. WACKYEFFECT({
  5117. Time = 25,
  5118. EffectType = "Wave",
  5119. Size = VT(55, 5, 55) / 3,
  5120. Size2 = VT(45, 200, 45) / 5,
  5121. Transparency = 0.9,
  5122. Transparency2 = 1,
  5123. CFrame = Torso.CFrame * ANGLES(RAD(180), RAD(0), RAD(0)),
  5124. MoveToPos = nil,
  5125. RotationX = 0,
  5126. RotationY = -5,
  5127. RotationZ = 0,
  5128. Material = "Neon",
  5129. Color = PHEONIXCOLOR,
  5130. SoundID = nil,
  5131. SoundPitch = nil,
  5132. SoundVolume = nil
  5133. })
  5134. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 + 1 * SIN(SINE / 24)) * ANGLES(RAD(0), RAD(0), RAD(-E * 10)) * CF(45, 0, 0) * ANGLES(RAD(65), RAD(0), RAD(0)), 2 / Animation_Speed)
  5135. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(-20), RAD(0), RAD(0)), 1 / Animation_Speed)
  5136. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(-15), RAD(0), RAD(15)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  5137. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-15), RAD(0), RAD(-15)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  5138. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(-15), RAD(65), RAD(0)) * ANGLES(RAD(-10), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  5139. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(-15), RAD(-65), RAD(0)) * ANGLES(RAD(-10), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  5140. end
  5141. for i = 1, #BODIES do
  5142. BODIES[i]:remove()
  5143. end
  5144. coroutine.resume(coroutine.create(function()
  5145. for i = 1, 25 do
  5146. Swait()
  5147. DECAL.Transparency = DECAL.Transparency + 0.02
  5148. TORNADO.CFrame = CF(POS) * ANGLES(RAD(0), RAD(-E * 10), RAD(0))
  5149. end
  5150. TORNADO:remove()
  5151. end))
  5152. for i = 1, 75 do
  5153. Swait()
  5154. E = E + 1
  5155. LOOP = LOOP + 1
  5156. TORNADO.CFrame = CF(POS) * ANGLES(RAD(0), RAD(-E * 15), RAD(0))
  5157. DECAL.Transparency = DECAL.Transparency - 0.002
  5158. WACKYEFFECT({
  5159. Time = 25,
  5160. EffectType = "Wave",
  5161. Size = VT(45, 5, 45) / 3,
  5162. Size2 = VT(35, 200, 35) / 5,
  5163. Transparency = 0.8,
  5164. Transparency2 = 1,
  5165. CFrame = Torso.CFrame * ANGLES(RAD(180), RAD(0), RAD(0)),
  5166. MoveToPos = nil,
  5167. RotationX = 0,
  5168. RotationY = 5,
  5169. RotationZ = 0,
  5170. Material = "Neon",
  5171. Color = C3(1, 0.6666666666666666, 0),
  5172. SoundID = nil,
  5173. SoundPitch = nil,
  5174. SoundVolume = nil
  5175. })
  5176. WACKYEFFECT({
  5177. Time = 25,
  5178. EffectType = "Wave",
  5179. Size = VT(55, 5, 55) / 3,
  5180. Size2 = VT(45, 200, 45) / 5,
  5181. Transparency = 0.8,
  5182. Transparency2 = 1,
  5183. CFrame = Torso.CFrame * ANGLES(RAD(180), RAD(0), RAD(0)),
  5184. MoveToPos = nil,
  5185. RotationX = 0,
  5186. RotationY = -5,
  5187. RotationZ = 0,
  5188. Material = "Neon",
  5189. Color = PHEONIXCOLOR,
  5190. SoundID = nil,
  5191. SoundPitch = nil,
  5192. SoundVolume = nil
  5193. })
  5194. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 + 1 * SIN(SINE / 24)) * ANGLES(RAD(0), RAD(0), RAD(-E * 10)) * CF(45 - 0.6 * i, 0, 0) * ANGLES(RAD(65), RAD(0), RAD(0)), 2 / Animation_Speed)
  5195. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(-20), RAD(0), RAD(0)), 1 / Animation_Speed)
  5196. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(-15), RAD(0), RAD(15)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  5197. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-15), RAD(0), RAD(-15)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  5198. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(-15), RAD(65), RAD(0)) * ANGLES(RAD(-10), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  5199. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(-15), RAD(-65), RAD(0)) * ANGLES(RAD(-10), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  5200. end
  5201. BODYPOS.D = 75
  5202. end
  5203. end
  5204. APPLYGYRO = true
  5205. ATTACK = false
  5206. end
  5207. function PheonixNuke()
  5208. if Mouse.Target ~= nil then
  5209. ATTACK = true
  5210. Rooted = false
  5211. BODYPOS.Position = Mouse.Hit.p + VT(0, 6, 0)
  5212. BODYPOS.D = 700
  5213. coroutine.resume(coroutine.create(function()
  5214. repeat
  5215. Swait()
  5216. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 + 1 * SIN(SINE / 24)) * ANGLES(RAD(0), RAD(0), RAD(0)), 2 / Animation_Speed)
  5217. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(20), RAD(0), RAD(0)), 1 / Animation_Speed)
  5218. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(-15), RAD(25)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  5219. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(15), RAD(-25)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  5220. RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.5, -0.5) * ANGLES(RAD(0), RAD(75), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  5221. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  5222. until ATTACK == false
  5223. end))
  5224. wait(1.5)
  5225. for i = 1, 4 do
  5226. WACKYEFFECT({
  5227. EffectType = "Sphere",
  5228. Size = VT(125, 125, 125),
  5229. Size2 = VT(0, 0, 0),
  5230. Transparency = 1,
  5231. Transparency2 = 0.8,
  5232. CFrame = CF(Torso.Position),
  5233. MoveToPos = nil,
  5234. RotationX = 0,
  5235. RotationY = 0,
  5236. RotationZ = 0,
  5237. Material = "Neon",
  5238. Color = PHEONIXCOLOR,
  5239. SoundID = nil,
  5240. SoundPitch = nil,
  5241. SoundVolume = nil
  5242. })
  5243. wait(0.7)
  5244. end
  5245. PARTICLES = true
  5246. WINGS1.Acceleration = VT(9, 3, 4)
  5247. WINGS1B.Acceleration = VT(9, 3, 4)
  5248. WINGS2.Acceleration = VT(-9, 3, 4)
  5249. WINGS2B.Acceleration = VT(-9, 3, 4)
  5250. wait(2)
  5251. CreateSound(462676772, Torso, 8, 1, false)
  5252. WINGS1.Acceleration = VT(9, -2, -12)
  5253. WINGS1B.Acceleration = VT(9, -2, -12)
  5254. WINGS2.Acceleration = VT(-9, -2, -12)
  5255. WINGS2B.Acceleration = VT(-9, -2, -12)
  5256. wait(1)
  5257. for i = 1, 5 do
  5258. local HITFLOOR, HITPOS = Raycast(RootPart.Position, CF(RootPart.Position, RootPart.Position + VT(0, -1, 0)).lookVector, 25, Character)
  5259. ApplyAoE(Torso.Position, 240, 25, 30, 165, true, MRANDOM(5, 7), "Pheonix", true, {
  5260. SHAKE = 8,
  5261. TIMER = 25,
  5262. DOESFADE = true
  5263. })
  5264. for i = 1, 5 do
  5265. WACKYEFFECT({
  5266. Time = 120,
  5267. EffectType = "Swirl",
  5268. Size = VT(20, 20, 20),
  5269. Size2 = (VT(180, 180, 180) + VT(50, 50, 50) * i) * 2,
  5270. Transparency = 0.8,
  5271. Transparency2 = 1,
  5272. CFrame = CF(Torso.Position) * ANGLES(RAD(0), RAD(i * 15), RAD(0)),
  5273. MoveToPos = nil,
  5274. RotationX = 0,
  5275. RotationY = 6 + i,
  5276. RotationZ = 0,
  5277. Material = "Neon",
  5278. Color = PHEONIXCOLOR,
  5279. SoundID = nil,
  5280. SoundPitch = nil,
  5281. SoundVolume = nil
  5282. })
  5283. end
  5284. WACKYEFFECT({
  5285. Time = 80,
  5286. EffectType = "Sphere",
  5287. Size = VT(40, 40, 40),
  5288. Size2 = VT(240, 240, 240) * 2,
  5289. Transparency = 0,
  5290. Transparency2 = 1,
  5291. CFrame = CF(Torso.Position),
  5292. MoveToPos = nil,
  5293. RotationX = 0,
  5294. RotationY = 0,
  5295. RotationZ = 0,
  5296. Material = "Neon",
  5297. Color = C3(1, 0.6666666666666666, 0),
  5298. SoundID = nil,
  5299. SoundPitch = 1,
  5300. SoundVolume = 8
  5301. })
  5302. WACKYEFFECT({
  5303. Time = 80,
  5304. EffectType = "Sphere",
  5305. Size = VT(50, 50, 50),
  5306. Size2 = VT(250, 250, 250) * 2,
  5307. Transparency = 0.5,
  5308. Transparency2 = 1,
  5309. CFrame = CF(Torso.Position),
  5310. MoveToPos = nil,
  5311. RotationX = 0,
  5312. RotationY = 0,
  5313. RotationZ = 0,
  5314. Material = "Neon",
  5315. Color = PHEONIXCOLOR,
  5316. SoundID = nil,
  5317. SoundPitch = 0.7,
  5318. SoundVolume = 10
  5319. })
  5320. local EXPLOSION = script.PheonixExplosion1:Clone()
  5321. EXPLOSION.Parent = Torso
  5322. EXPLOSION.Enabled = true
  5323. local EXPLOSION2 = script.PheonixExplosion2:Clone()
  5324. EXPLOSION2.Parent = Torso
  5325. EXPLOSION2.Enabled = true
  5326. EXPLOSION.Drag = -5
  5327. EXPLOSION2.Drag = -5
  5328. EXPLOSION:Emit(100)
  5329. EXPLOSION2:Emit(100)
  5330. CreateSound(462692971, Effects, 2, 1, false)
  5331. for i = 1, 5 do
  5332. wait()
  5333. WACKYEFFECT({
  5334. Time = 40,
  5335. EffectType = "Wave",
  5336. Size = VT(20, 0, 20),
  5337. Size2 = (VT(160, 6, 160) + VT(50, 4, 50) * i) * 2,
  5338. Transparency = 0.8,
  5339. Transparency2 = 1,
  5340. CFrame = CF(HITPOS) * ANGLES(RAD(0), RAD(i * 15), RAD(0)),
  5341. MoveToPos = nil,
  5342. RotationX = 0,
  5343. RotationY = -12 + i,
  5344. RotationZ = 0,
  5345. Material = "Neon",
  5346. Color = C3(1, 0.6666666666666666, 0),
  5347. SoundID = nil,
  5348. SoundPitch = nil,
  5349. SoundVolume = nil
  5350. })
  5351. WACKYEFFECT({
  5352. Time = 40,
  5353. EffectType = "Wave",
  5354. Size = VT(20, 0, 20),
  5355. Size2 = (VT(180, 6, 180) + VT(50, 5, 50) * i) * 2,
  5356. Transparency = 0.8,
  5357. Transparency2 = 1,
  5358. CFrame = CF(HITPOS) * ANGLES(RAD(0), RAD(i * 15), RAD(0)),
  5359. MoveToPos = nil,
  5360. RotationX = 0,
  5361. RotationY = -12 + i,
  5362. RotationZ = 0,
  5363. Material = "Neon",
  5364. Color = PHEONIXCOLOR,
  5365. SoundID = nil,
  5366. SoundPitch = nil,
  5367. SoundVolume = nil
  5368. })
  5369. end
  5370. EXPLOSION.Enabled = false
  5371. EXPLOSION2.Enabled = false
  5372. Debris:AddItem(EXPLOSION, 5)
  5373. Debris:AddItem(EXPLOSION2, 5)
  5374. wait(0.4)
  5375. end
  5376. wait(0.6)
  5377. PARTICLES = false
  5378. BODYPOS.D = 75
  5379. ATTACK = false
  5380. Rooted = false
  5381. end
  5382. end
  5383. function MouseDown(Mouse)
  5384. if ATTACK == false then
  5385. end
  5386. end
  5387. function MouseUp(Mouse)
  5388. HOLD = false
  5389. end
  5390. function KeyDown(Key)
  5391. KEYHOLD = true
  5392. if EQUIPPED == true then
  5393. if FLIGHT == false then
  5394. if Key == "z" and ATTACK == false then
  5395. ShootingStar()
  5396. end
  5397. if Key == "b" and ATTACK == false then
  5398. Breath()
  5399. end
  5400. if Key == "c" and ATTACK == false then
  5401. PheonixRage()
  5402. end
  5403. if Key == "q" and ATTACK == false then
  5404. FLIGHT = true
  5405. GYRO = IT("BodyGyro", RootPart)
  5406. GYRO.D = 75
  5407. GYRO.P = 40000
  5408. GYRO.MaxTorque = VT(40000, 40000, 40000)
  5409. GYRO.cframe = CF(RootPart.Position, RootPart.CFrame * CF(0, 0, -1).p)
  5410. BODYPOS = Instance.new("BodyPosition", RootPart)
  5411. BODYPOS.D = 100
  5412. BODYPOS.P = 20000
  5413. BODYPOS.maxForce = Vector3.new(math.huge, math.huge, math.huge)
  5414. BODYPOS.position = RootPart.Position + VT(0, 3, 0)
  5415. do
  5416. local RING, WELD, MESH = MagicRing(Torso, CF(0, 0.5, 1) * ANGLES(RAD(-90), RAD(0), RAD(0)), "Pheonix")
  5417. FLIGHTRING = RING
  5418. coroutine.resume(coroutine.create(function()
  5419. for i = 1, 40 do
  5420. Swait()
  5421. MESH.Scale = MESH.Scale + VT(4, 0, 4)
  5422. end
  5423. end))
  5424. PheonixJump()
  5425. end
  5426. end
  5427. elseif FLIGHT == true then
  5428. if Key == "z" and ATTACK == false and VALUE2 == false then
  5429. ThreeShootingStars()
  5430. end
  5431. if Key == "b" and ATTACK == false and VALUE2 == false then
  5432. PheonixFlare()
  5433. end
  5434. if Key == "g" and ATTACK == false and VALUE2 == false then
  5435. DragonFirePillar()
  5436. end
  5437. if Key == "v" and ATTACK == false and VALUE2 == false then
  5438. PheonixTornado()
  5439. end
  5440. if Key == "x" and ATTACK == false and VALUE2 == false then
  5441. PheonixNuke()
  5442. end
  5443. if Key == "q" and ATTACK == false and VALUE2 == false then
  5444. FLIGHT = false
  5445. coroutine.resume(coroutine.create(function()
  5446. if FLIGHTRING then
  5447. local MSH = FLIGHTRING.Mesh
  5448. local RING = FLIGHTRING
  5449. for i = 1, 40 do
  5450. Swait()
  5451. MSH.Scale = MSH.Scale - VT(4, 0, 4)
  5452. end
  5453. RING:remove()
  5454. end
  5455. end))
  5456. end
  5457. if Key == "c" and ATTACK == false and VALUE2 == false then
  5458. PheonixJump()
  5459. end
  5460. if Key == "e" and ATTACK == false and VALUE2 == false then
  5461. PheonixFireballs()()
  5462. end
  5463. if Key == "w" and ATTACK == false and VALUE2 == false then
  5464. repeat
  5465. VALUE2 = true
  5466. Swait()
  5467. BODYPOS.Position = RootPart.CFrame * CF(0, 0, -2.5).p
  5468. until KEYHOLD == false
  5469. VALUE2 = false
  5470. end
  5471. end
  5472. end
  5473. if Key == "f" and ATTACK == false and FLIGHT == false then
  5474. if EQUIPPED == false then
  5475. EQUIPPED = true
  5476. EYE.Enabled = true
  5477. EYE2.Enabled = true
  5478. sick:Play()
  5479. sick.Pitch = 0.95
  5480. sick.Volume = .1
  5481.  
  5482. else
  5483. EQUIPPED = false
  5484. FLIGHT = false
  5485. EYE.Enabled = false
  5486. EYE2.Enabled = false
  5487. sick:Stop()
  5488. end
  5489. end
  5490. if string.byte(Key) == 50 and ATTACK == false then
  5491. if Speed == 16 then
  5492. Speed = 45
  5493. elseif Speed == 45 then
  5494. Speed = 16
  5495. end
  5496. end
  5497. end
  5498. function KeyUp(Key)
  5499. KEYHOLD = false
  5500. end
  5501. Mouse.Button1Down:connect(function(NEWKEY)
  5502. MouseDown(NEWKEY)
  5503. end)
  5504. Mouse.Button1Up:connect(function(NEWKEY)
  5505. MouseUp(NEWKEY)
  5506. end)
  5507. Mouse.KeyDown:connect(function(NEWKEY)
  5508. KeyDown(NEWKEY)
  5509. end)
  5510. Mouse.KeyUp:connect(function(NEWKEY)
  5511. KeyUp(NEWKEY)
  5512. end)
  5513. function unanchor()
  5514. if UNANCHOR == true then
  5515. g = Character:GetChildren()
  5516. for i = 1, #g do
  5517. if g[i].ClassName == "Part" then
  5518. g[i].Anchored = false
  5519. end
  5520. end
  5521. end
  5522. end
  5523. Humanoid.Changed:connect(function(Jump)
  5524. if Jump == "Jump" and Disable_Jump == true then
  5525. Humanoid.Jump = false
  5526. end
  5527. end)
  5528. local LOOP = 0
  5529. local TWIST = true
  5530. while true do
  5531. Swait()
  5532. script.Parent = WEAPONGUI
  5533. ANIMATE.Parent = nil
  5534. for _, v in next, Humanoid:GetPlayingAnimationTracks() do
  5535. v:Stop()
  5536. end
  5537. SINE = SINE + CHANGE
  5538. local TORSOVELOCITY = (RootPart.Velocity * VT(1, 0, 1)).magnitude
  5539. local TORSOVERTICALVELOCITY = RootPart.Velocity.y
  5540. local HITFLOOR = Raycast(RootPart.Position, CF(RootPart.Position, RootPart.Position + VT(0, -1, 0)).lookVector, 4, Character)
  5541. local WALKSPEEDVALUE = 5
  5542. if ANIM == "Walk" and TORSOVELOCITY > 1 and FLIGHT == false then
  5543. if Humanoid.WalkSpeed <= 20 then
  5544. RootJoint.C1 = Clerp(RootJoint.C1, ROOTC0 * CF(0, 0, -0.05 * COS(SINE / (WALKSPEEDVALUE / 2))) * ANGLES(RAD(0), RAD(0), RAD(0)), 2 / Animation_Speed)
  5545. 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)), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
  5546. 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), RAD(0), RAD(45 * COS(SINE / WALKSPEEDVALUE))), 0.5 / Animation_Speed)
  5547. 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), RAD(0), RAD(45 * COS(SINE / WALKSPEEDVALUE))), 0.5 / Animation_Speed)
  5548. else
  5549. RootJoint.C1 = Clerp(RootJoint.C1, ROOTC0 * CF(0, 0, -0.15 * COS(SINE / (WALKSPEEDVALUE / 2.6))) * ANGLES(RAD(0), RAD(0) - RootPart.RotVelocity.Y / 75, RAD(0)), 2 / Animation_Speed)
  5550. 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.6))), RAD(0), RAD(0) - Head.RotVelocity.Y / 30), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
  5551. RightHip.C1 = Clerp(RightHip.C1, CF(0.5, 0.875 - 0.125 * SIN(SINE / WALKSPEEDVALUE * 1.3) - 0.15 * COS(SINE / WALKSPEEDVALUE * 2.6), -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)
  5552. LeftHip.C1 = Clerp(LeftHip.C1, CF(-0.5, 0.875 + 0.125 * SIN(SINE / WALKSPEEDVALUE * 1.3) - 0.15 * COS(SINE / WALKSPEEDVALUE * 2.6), 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)
  5553. end
  5554. elseif ANIM ~= "Walk" or TORSOVELOCITY < 1 or FLIGHT == true then
  5555. RootJoint.C1 = Clerp(RootJoint.C1, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  5556. 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)
  5557. 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)
  5558. 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)
  5559. end
  5560. if FLIGHT == false then
  5561. if GYRO ~= nil then
  5562. GYRO:remove()
  5563. end
  5564. if BODYPOS ~= nil then
  5565. BODYPOS:remove()
  5566. end
  5567. if TORSOVERTICALVELOCITY > 1 and HITFLOOR == nil then
  5568. ANIM = "Jump"
  5569. if ATTACK == false then
  5570. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  5571. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(-20), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  5572. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(-40), RAD(0), RAD(20)) * RIGHTSHOULDERC0, 0.2 / Animation_Speed)
  5573. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-40), RAD(0), RAD(-20)) * LEFTSHOULDERC0, 0.2 / Animation_Speed)
  5574. 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)
  5575. 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)
  5576. end
  5577. elseif TORSOVERTICALVELOCITY < -1 and HITFLOOR == nil then
  5578. ANIM = "Fall"
  5579. if ATTACK == false then
  5580. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  5581. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(20), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  5582. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(60)) * RIGHTSHOULDERC0, 0.2 / Animation_Speed)
  5583. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-60)) * LEFTSHOULDERC0, 0.2 / Animation_Speed)
  5584. 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)
  5585. 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)
  5586. end
  5587. elseif TORSOVELOCITY < 1 and HITFLOOR ~= nil then
  5588. ANIM = "Idle"
  5589. if ATTACK == false then
  5590. 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)
  5591. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  5592. 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)
  5593. 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)
  5594. 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)
  5595. 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)
  5596. end
  5597. elseif TORSOVELOCITY > 1 and HITFLOOR ~= nil then
  5598. ANIM = "Walk"
  5599. if ATTACK == false then
  5600. if Humanoid.WalkSpeed <= 30 then
  5601. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, -0.1) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  5602. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  5603. 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)
  5604. 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)
  5605. 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)
  5606. 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)
  5607. elseif Humanoid.WalkSpeed > 30 then
  5608. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, -0.1) * ANGLES(RAD(35), RAD(0), RAD(0)), 1 / Animation_Speed)
  5609. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(-35), RAD(0), RAD(0)), 1 / Animation_Speed)
  5610. 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)
  5611. 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)
  5612. 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)
  5613. 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)
  5614. end
  5615. end
  5616. end
  5617. elseif FLIGHT == true then
  5618. if APPLYGYRO == true then
  5619. if VALUE2 == false and DIRECTTURN == false then
  5620. if GYRO ~= nil then
  5621. GYRO.MaxTorque = VT(0, 40000, 0)
  5622. GYRO.cframe = CF(RootPart.Position, Mouse.Hit.p)
  5623. end
  5624. elseif GYRO ~= nil then
  5625. GYRO.MaxTorque = VT(40000, 40000, 40000)
  5626. GYRO.cframe = CF(RootPart.Position, Mouse.Hit.p)
  5627. end
  5628. end
  5629. if VALUE2 == false and ATTACK == false then
  5630. ANIM = "IdleFlight"
  5631. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 + 1 * SIN(SINE / 24)) * ANGLES(RAD(0), RAD(0), RAD(0)), 2 / Animation_Speed)
  5632. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(20), RAD(0), RAD(0)), 1 / Animation_Speed)
  5633. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(-15), RAD(25)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  5634. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(15), RAD(-25)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  5635. RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.5, -0.5) * ANGLES(RAD(0), RAD(75), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  5636. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  5637. elseif VALUE2 == true and ATTACK == false then
  5638. ANIM = "Flight"
  5639. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 + 1 * SIN(SINE / 24)) * ANGLES(RAD(65), RAD(0), RAD(0)), 1 / Animation_Speed)
  5640. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(-20), RAD(0), RAD(0)), 1 / Animation_Speed)
  5641. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(-15), RAD(0), RAD(15)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  5642. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-15), RAD(0), RAD(-15)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  5643. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(-15), RAD(65), RAD(0)) * ANGLES(RAD(-10), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  5644. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(-15), RAD(-65), RAD(0)) * ANGLES(RAD(-10), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  5645. end
  5646. end
  5647. local ACCEL1 = VT(10, 2 - 6 * COS(SINE / 24), -4 - 2 * COS(SINE / 24))
  5648. local ACCEL2 = VT(-10, 2 - 6 * COS(SINE / 24), -4 - 2 * COS(SINE / 24))
  5649. if PARTICLES == false then
  5650. WINGS1.Acceleration = ACCEL1
  5651. WINGS1B.Acceleration = ACCEL1
  5652. WINGS2.Acceleration = ACCEL2
  5653. WINGS2B.Acceleration = ACCEL2
  5654. end
  5655. if FLIGHT == true or WINGS == true then
  5656. WINGS1.Enabled = true
  5657. WINGS1B.Enabled = true
  5658. WINGS2.Enabled = true
  5659. WINGS2B.Enabled = true
  5660. else
  5661. WINGS1.Enabled = false
  5662. WINGS1B.Enabled = false
  5663. WINGS2.Enabled = false
  5664. WINGS2B.Enabled = false
  5665. end
  5666. unanchor()
  5667. TRAIL1.Enabled = FLIGHT
  5668. TRAIL2.Enabled = FLIGHT
  5669. LIGHT.Enabled = EQUIPPED
  5670. Humanoid.MaxHealth = "inf"
  5671. Humanoid.Health = "inf"
  5672. if Rooted == false and FLIGHT == false then
  5673. Disable_Jump = false
  5674. Humanoid.WalkSpeed = Speed
  5675. elseif Rooted == true or FLIGHT == true then
  5676. Disable_Jump = true
  5677. Humanoid.WalkSpeed = 0
  5678. end
  5679.  
  5680. if FLIGHT == true then
  5681. sick.Pitch = 1
  5682. sick.Volume = 1.5
  5683. LOOP = LOOP + 1
  5684. if LOOP >= 10 then
  5685. local HITFLOOR, HITPOS = Raycast(RootPart.Position, CF(RootPart.Position, RootPart.Position + VT(0, -1, 0)).lookVector, 15, Character)
  5686. if HITFLOOR then
  5687. local DISTANCE = (RootPart.Position - HITPOS).Magnitude
  5688. local SIZE = (26 - DISTANCE) * 2
  5689. if TWIST == true then
  5690. TWIST = false
  5691. WACKYEFFECT({
  5692. Time = 25,
  5693. EffectType = "Wave",
  5694. Size = VT(SIZE / 2, 0, SIZE / 2),
  5695. Size2 = VT(SIZE, 6, SIZE),
  5696. Transparency = 0.6,
  5697. Transparency2 = 1,
  5698. CFrame = CF(HITPOS) * ANGLES(RAD(0), RAD(MRANDOM(0, 360)), RAD(0)) * ANGLES(RAD(MRANDOM(-5, 5)), RAD(0), RAD(MRANDOM(-5, 5))),
  5699. MoveToPos = nil,
  5700. RotationX = 0,
  5701. RotationY = 15,
  5702. RotationZ = 0,
  5703. Material = "Neon",
  5704. Color = C3(1, (205 + 35 * SIN(SINE / 24)) / 255, 0.5 + 0.5 * SIN(SINE / 24)),
  5705. SoundID = nil,
  5706. SoundPitch = nil,
  5707. SoundVolume = nil
  5708. })
  5709. else
  5710. TWIST = true
  5711. WACKYEFFECT({
  5712. Time = 25,
  5713. EffectType = "Wave",
  5714. Size = VT(SIZE / 2, 0, SIZE / 2),
  5715. Size2 = VT(SIZE, 6, SIZE),
  5716. Transparency = 0.6,
  5717. Transparency2 = 1,
  5718. CFrame = CF(HITPOS) * ANGLES(RAD(0), RAD(MRANDOM(0, 360)), RAD(0)) * ANGLES(RAD(MRANDOM(-5, 5)), RAD(0), RAD(MRANDOM(-5, 5))),
  5719. MoveToPos = nil,
  5720. RotationX = 0,
  5721. RotationY = -15,
  5722. RotationZ = 0,
  5723. Material = "Neon",
  5724. Color = C3(1, (205 + 35 * SIN(SINE / 24)) / 255, 0.5 + 0.5 * SIN(SINE / 24)),
  5725. SoundID = nil,
  5726. SoundPitch = nil,
  5727. SoundVolume = nil
  5728. })
  5729. end
  5730. LOOP = 0
  5731. end
  5732. end
  5733. else
  5734. end
  5735. sick.Parent = Character
  5736. Humanoid.Name = "WarPheonix"
  5737. end
  5738.  
  5739. end))
  5740. ParticleEmitter1.Name = "RingEmit"
  5741. ParticleEmitter1.Parent = LocalScript0
  5742. ParticleEmitter1.Transparency = NumberSequence.new(1,0.12568306922913,0,0,0.41530054807663,1)
  5743. ParticleEmitter1.Rotation = NumberRange.new(0, 360)
  5744. ParticleEmitter1.Size = NumberSequence.new(0,6.2841534614563,5.027322769165,2.8961749076843,0)
  5745. ParticleEmitter1.Enabled = false
  5746. ParticleEmitter1.LightEmission = 1
  5747. ParticleEmitter1.Texture = "rbxassetid://1493478120"
  5748. ParticleEmitter1.ZOffset = 1
  5749. ParticleEmitter1.Lifetime = NumberRange.new(0.60000002384186, 0.60000002384186)
  5750. ParticleEmitter1.Rate = 5
  5751. ParticleEmitter1.Speed = NumberRange.new(0, 0)
  5752. ParticleEmitter2.Name = "Wing1"
  5753. ParticleEmitter2.Parent = LocalScript0
  5754. ParticleEmitter2.Transparency = NumberSequence.new(1,0.58469945192337,0.24590164422989,0,0.22950822114944,0.62841534614563,1)
  5755. ParticleEmitter2.Rotation = NumberRange.new(0, 360)
  5756. ParticleEmitter2.Size = NumberSequence.new(0,0.062499642372131,0.81250011920929,2.6875,3.3125,2.5624995231628,2.3125,1.8124997615814)
  5757. ParticleEmitter2.Enabled = false
  5758. ParticleEmitter2.LightEmission = 1
  5759. ParticleEmitter2.Texture = "rbxassetid://296874871"
  5760. ParticleEmitter2.Acceleration = Vector3.new(5, 4, -4)
  5761. ParticleEmitter2.Lifetime = NumberRange.new(2, 2)
  5762. ParticleEmitter2.Rate = 300
  5763. ParticleEmitter2.RotSpeed = NumberRange.new(-56, 56)
  5764. ParticleEmitter2.Speed = NumberRange.new(4, 4)
  5765. ParticleEmitter2.VelocitySpread = 35
  5766. ParticleEmitter3.Name = "SunFireball"
  5767. ParticleEmitter3.Parent = LocalScript0
  5768. ParticleEmitter3.Transparency = NumberSequence.new(0.47540986537933,0.37704920768738,0.25683063268661,0.4426229596138,0.62841534614563,1)
  5769. ParticleEmitter3.Rotation = NumberRange.new(0, 360)
  5770. ParticleEmitter3.Size = NumberSequence.new(10,8.125,5.6875,1.1250001192093,0)
  5771. ParticleEmitter3.Color = ColorSequence.new(Color3.new(1, 0.666667, 0),Color3.new(1, 0.666667, 0))
  5772. ParticleEmitter3.Enabled = false
  5773. ParticleEmitter3.LightEmission = 0.75
  5774. ParticleEmitter3.Texture = "rbxassetid://296874871"
  5775. ParticleEmitter3.ZOffset = 0.20000000298023
  5776. ParticleEmitter3.Acceleration = Vector3.new(0, 5, 0)
  5777. ParticleEmitter3.Lifetime = NumberRange.new(1, 1)
  5778. ParticleEmitter3.Rate = 300
  5779. ParticleEmitter3.RotSpeed = NumberRange.new(-56, 56)
  5780. ParticleEmitter3.Speed = NumberRange.new(3, 3)
  5781. ParticleEmitter3.VelocitySpread = 360
  5782. ParticleEmitter3.Color = ColorSequence.new(Color3.new(1, 0.666667, 0),Color3.new(1, 0.666667, 0))
  5783. ParticleEmitter4.Name = "SunExplosion"
  5784. ParticleEmitter4.Parent = LocalScript0
  5785. ParticleEmitter4.Transparency = NumberSequence.new(0.47540986537933,0.37704920768738,0.25683063268661,0.4426229596138,0.62841534614563,1)
  5786. ParticleEmitter4.Rotation = NumberRange.new(0, 360)
  5787. ParticleEmitter4.Size = NumberSequence.new(5,7.875,7.875,5.3125,0)
  5788. ParticleEmitter4.Color = ColorSequence.new(Color3.new(1, 0.666667, 0),Color3.new(1, 0.666667, 0))
  5789. ParticleEmitter4.Enabled = false
  5790. ParticleEmitter4.LightEmission = 0.75
  5791. ParticleEmitter4.Texture = "rbxassetid://296874871"
  5792. ParticleEmitter4.ZOffset = 0.20000000298023
  5793. ParticleEmitter4.Acceleration = Vector3.new(0, 5, 0)
  5794. ParticleEmitter4.Lifetime = NumberRange.new(0, 3)
  5795. ParticleEmitter4.Rate = 300
  5796. ParticleEmitter4.RotSpeed = NumberRange.new(-56, 56)
  5797. ParticleEmitter4.Speed = NumberRange.new(150, 350)
  5798. ParticleEmitter4.VelocitySpread = 360
  5799. ParticleEmitter4.Color = ColorSequence.new(Color3.new(1, 0.666667, 0),Color3.new(1, 0.666667, 0))
  5800. ParticleEmitter5.Name = "SunBurn"
  5801. ParticleEmitter5.Parent = LocalScript0
  5802. ParticleEmitter5.Transparency = NumberSequence.new(0.47540986537933,0.37704920768738,0.25683063268661,0.4426229596138,0.62841534614563,1)
  5803. ParticleEmitter5.Rotation = NumberRange.new(0, 360)
  5804. ParticleEmitter5.Size = NumberSequence.new(0.81250011920929,0.81250011920929,0)
  5805. ParticleEmitter5.Color = ColorSequence.new(Color3.new(1, 0.666667, 0),Color3.new(1, 0.666667, 0))
  5806. ParticleEmitter5.Enabled = false
  5807. ParticleEmitter5.LightEmission = 0.75
  5808. ParticleEmitter5.Texture = "rbxassetid://296874871"
  5809. ParticleEmitter5.ZOffset = 0.5
  5810. ParticleEmitter5.Acceleration = Vector3.new(0, 5, 0)
  5811. ParticleEmitter5.Lifetime = NumberRange.new(1, 1)
  5812. ParticleEmitter5.Rate = 300
  5813. ParticleEmitter5.RotSpeed = NumberRange.new(-56, 56)
  5814. ParticleEmitter5.Speed = NumberRange.new(1, 1)
  5815. ParticleEmitter5.VelocitySpread = 360
  5816. ParticleEmitter5.Color = ColorSequence.new(Color3.new(1, 0.666667, 0),Color3.new(1, 0.666667, 0))
  5817. ParticleEmitter6.Name = "PheonixBurn"
  5818. ParticleEmitter6.Parent = LocalScript0
  5819. ParticleEmitter6.Transparency = NumberSequence.new(0.47540986537933,0.37704920768738,0.25683063268661,0.4426229596138,0.62841534614563,1)
  5820. ParticleEmitter6.Rotation = NumberRange.new(0, 360)
  5821. ParticleEmitter6.Size = NumberSequence.new(0.81250011920929,0.81250011920929,0)
  5822. ParticleEmitter6.Enabled = false
  5823. ParticleEmitter6.LightEmission = 1
  5824. ParticleEmitter6.Texture = "rbxassetid://296874871"
  5825. ParticleEmitter6.ZOffset = 0.5
  5826. ParticleEmitter6.Acceleration = Vector3.new(0, 8, 0)
  5827. ParticleEmitter6.Lifetime = NumberRange.new(1, 1)
  5828. ParticleEmitter6.Rate = 300
  5829. ParticleEmitter6.RotSpeed = NumberRange.new(-56, 56)
  5830. ParticleEmitter6.Speed = NumberRange.new(1, 1)
  5831. ParticleEmitter6.VelocitySpread = 360
  5832. ParticleEmitter7.Name = "PheonixExplosion1"
  5833. ParticleEmitter7.Parent = LocalScript0
  5834. ParticleEmitter7.Transparency = NumberSequence.new(0.47540986537933,0.37704920768738,0.25683063268661,0.4426229596138,0.62841534614563,1)
  5835. ParticleEmitter7.Rotation = NumberRange.new(0, 360)
  5836. ParticleEmitter7.Size = NumberSequence.new(1.3124996423721,4.8125,5.6875,3.4999995231628,0)
  5837. ParticleEmitter7.Enabled = false
  5838. ParticleEmitter7.LightEmission = 1
  5839. ParticleEmitter7.Texture = "rbxassetid://296874871"
  5840. ParticleEmitter7.ZOffset = 0.20000000298023
  5841. ParticleEmitter7.Acceleration = Vector3.new(0, 5, 0)
  5842. ParticleEmitter7.Lifetime = NumberRange.new(0, 3)
  5843. ParticleEmitter7.Rate = 600
  5844. ParticleEmitter7.RotSpeed = NumberRange.new(-56, 56)
  5845. ParticleEmitter7.Speed = NumberRange.new(50, 50)
  5846. ParticleEmitter7.VelocitySpread = 360
  5847. ParticleEmitter8.Name = "PheonixExplosion2"
  5848. ParticleEmitter8.Parent = LocalScript0
  5849. ParticleEmitter8.Transparency = NumberSequence.new(0.47540986537933,0.37704920768738,0.25683063268661,0.4426229596138,0.62841534614563,1)
  5850. ParticleEmitter8.Rotation = NumberRange.new(0, 360)
  5851. ParticleEmitter8.Size = NumberSequence.new(4,4)
  5852. ParticleEmitter8.Color = ColorSequence.new(Color3.new(1, 0.666667, 0),Color3.new(1, 0.666667, 0))
  5853. ParticleEmitter8.Enabled = false
  5854. ParticleEmitter8.LightEmission = 0.69999998807907
  5855. ParticleEmitter8.ZOffset = 0.20000000298023
  5856. ParticleEmitter8.Acceleration = Vector3.new(0, 5, 0)
  5857. ParticleEmitter8.Lifetime = NumberRange.new(0, 3)
  5858. ParticleEmitter8.Rate = 300
  5859. ParticleEmitter8.RotSpeed = NumberRange.new(-56, 56)
  5860. ParticleEmitter8.Speed = NumberRange.new(70, 70)
  5861. ParticleEmitter8.VelocitySpread = 360
  5862. ParticleEmitter8.Color = ColorSequence.new(Color3.new(1, 0.666667, 0),Color3.new(1, 0.666667, 0))
  5863. LocalScript9.Name = "CamShake"
  5864. LocalScript9.Parent = LocalScript0
  5865. LocalScript9.Disabled = true
  5866. NumberValue10.Name = "Timer"
  5867. NumberValue10.Parent = LocalScript9
  5868. NumberValue10.Value = 35
  5869. NumberValue11.Name = "Shake"
  5870. NumberValue11.Parent = LocalScript9
  5871. NumberValue11.Value = 5
  5872. BoolValue12.Name = "DoesFade"
  5873. BoolValue12.Parent = LocalScript9
  5874. ParticleEmitter13.Name = "Gale"
  5875. ParticleEmitter13.Parent = LocalScript0
  5876. ParticleEmitter13.Transparency = NumberSequence.new(1,0.91256833076477,0.83606559038162,0.81967210769653,1)
  5877. ParticleEmitter13.Rotation = NumberRange.new(0, 360)
  5878. ParticleEmitter13.Size = NumberSequence.new(8,6)
  5879. ParticleEmitter13.Enabled = false
  5880. ParticleEmitter13.Texture = "rbxassetid://1614893149"
  5881. ParticleEmitter13.Lifetime = NumberRange.new(1, 1)
  5882. ParticleEmitter13.Rate = 50
  5883. ParticleEmitter13.Speed = NumberRange.new(0, 0)
  5884. ParticleEmitter14.Name = "PheonixFireball1"
  5885. ParticleEmitter14.Parent = LocalScript0
  5886. ParticleEmitter14.Transparency = NumberSequence.new(0.47540986537933,0.37704920768738,0.25683063268661,0.4426229596138,0.62841534614563,1)
  5887. ParticleEmitter14.Rotation = NumberRange.new(0, 360)
  5888. ParticleEmitter14.Size = NumberSequence.new(6.625,4.625,3.4375,1.3124996423721,0)
  5889. ParticleEmitter14.Enabled = false
  5890. ParticleEmitter14.LightEmission = 1
  5891. ParticleEmitter14.Texture = "rbxassetid://296874871"
  5892. ParticleEmitter14.ZOffset = 0.5
  5893. ParticleEmitter14.Lifetime = NumberRange.new(0.60000002384186, 0.60000002384186)
  5894. ParticleEmitter14.Rate = 1000
  5895. ParticleEmitter14.RotSpeed = NumberRange.new(-56, 56)
  5896. ParticleEmitter14.Speed = NumberRange.new(4, 4)
  5897. ParticleEmitter14.VelocitySpread = 360
  5898. ParticleEmitter15.Name = "PheonixFireball2"
  5899. ParticleEmitter15.Parent = LocalScript0
  5900. ParticleEmitter15.Transparency = NumberSequence.new(0.47540986537933,0.37704920768738,0.25683063268661,0.4426229596138,0.62841534614563,1)
  5901. ParticleEmitter15.Rotation = NumberRange.new(0, 360)
  5902. ParticleEmitter15.Size = NumberSequence.new(4.3125,4.1530055999756,2.8961749076843,1.1475414037704,0)
  5903. ParticleEmitter15.Color = ColorSequence.new(Color3.new(1, 0.666667, 0),Color3.new(1, 0.666667, 0))
  5904. ParticleEmitter15.Enabled = false
  5905. ParticleEmitter15.LightEmission = 0.69999998807907
  5906. ParticleEmitter15.ZOffset = 1
  5907. ParticleEmitter15.Lifetime = NumberRange.new(0.60000002384186, 0.60000002384186)
  5908. ParticleEmitter15.Rate = 300
  5909. ParticleEmitter15.RotSpeed = NumberRange.new(-56, 56)
  5910. ParticleEmitter15.Speed = NumberRange.new(4, 4)
  5911. ParticleEmitter15.VelocitySpread = 360
  5912. ParticleEmitter15.Color = ColorSequence.new(Color3.new(1, 0.666667, 0),Color3.new(1, 0.666667, 0))
  5913. ParticleEmitter16.Name = "Wing2"
  5914. ParticleEmitter16.Parent = LocalScript0
  5915. ParticleEmitter16.Transparency = NumberSequence.new(1,0.58469945192337,0.24590164422989,0,0.22950822114944,0.62841534614563,1)
  5916. ParticleEmitter16.Rotation = NumberRange.new(0, 360)
  5917. ParticleEmitter16.Size = NumberSequence.new(0,0.062499642372131,0.81250011920929,2.6875,3.3125,2.5624995231628,2.3125,1.8124997615814)
  5918. ParticleEmitter16.Enabled = false
  5919. ParticleEmitter16.LightEmission = 1
  5920. ParticleEmitter16.Texture = "rbxassetid://296874871"
  5921. ParticleEmitter16.Acceleration = Vector3.new(-5, 4, -4)
  5922. ParticleEmitter16.Lifetime = NumberRange.new(2, 2)
  5923. ParticleEmitter16.Rate = 300
  5924. ParticleEmitter16.RotSpeed = NumberRange.new(-56, 56)
  5925. ParticleEmitter16.Speed = NumberRange.new(4, 4)
  5926. ParticleEmitter16.VelocitySpread = 35
  5927. ParticleEmitter17.Name = "Wing1B"
  5928. ParticleEmitter17.Parent = LocalScript0
  5929. ParticleEmitter17.Transparency = NumberSequence.new(1,0.58469945192337,0.24590164422989,0,0.20765030384064,0.5956284403801,1)
  5930. ParticleEmitter17.Rotation = NumberRange.new(0, 360)
  5931. ParticleEmitter17.Size = NumberSequence.new(0,0,1.8579238653183,2.4043715000153,1.8124997615814,0)
  5932. ParticleEmitter17.Color = ColorSequence.new(Color3.new(1, 0.666667, 0),Color3.new(1, 0.666667, 0))
  5933. ParticleEmitter17.Enabled = false
  5934. ParticleEmitter17.LightEmission = 0.69999998807907
  5935. ParticleEmitter17.ZOffset = 0.20000000298023
  5936. ParticleEmitter17.Acceleration = Vector3.new(5, 4, -4)
  5937. ParticleEmitter17.Lifetime = NumberRange.new(1.9500000476837, 1.9500000476837)
  5938. ParticleEmitter17.Rate = 150
  5939. ParticleEmitter17.RotSpeed = NumberRange.new(-56, 56)
  5940. ParticleEmitter17.Speed = NumberRange.new(4, 4)
  5941. ParticleEmitter17.VelocitySpread = 35
  5942. ParticleEmitter17.Color = ColorSequence.new(Color3.new(1, 0.666667, 0),Color3.new(1, 0.666667, 0))
  5943. ParticleEmitter18.Name = "Eye1"
  5944. ParticleEmitter18.EmissionDirection="Right"
  5945. ParticleEmitter18.Parent = LocalScript0
  5946. ParticleEmitter18.Transparency = NumberSequence.new(0.55737709999084,0.37704920768738,0.4426229596138,0.62841534614563,1)
  5947. ParticleEmitter18.Rotation = NumberRange.new(0, 360)
  5948. ParticleEmitter18.Size = NumberSequence.new(0.40000000596046,0.12499988079071,0)
  5949. ParticleEmitter18.Enabled = false
  5950. ParticleEmitter18.LightEmission = 0.75
  5951. ParticleEmitter18.Texture = "rbxassetid://296874871"
  5952. ParticleEmitter18.ZOffset = 0.20000000298023
  5953. ParticleEmitter18.Acceleration = Vector3.new(0, 5, 6)
  5954. ParticleEmitter18.Lifetime = NumberRange.new(1, 1)
  5955. ParticleEmitter18.Rate = 300
  5956. ParticleEmitter18.RotSpeed = NumberRange.new(-56, 56)
  5957. ParticleEmitter18.VelocitySpread = 5
  5958. ParticleEmitter19.Name = "Eye2"
  5959. ParticleEmitter19.Parent = LocalScript0
  5960. ParticleEmitter19.EmissionDirection="Right"
  5961. ParticleEmitter19.Transparency = NumberSequence.new(0.71584701538086,0.68306010961533,0.37704920768738,0.4426229596138,0.62841534614563,1)
  5962. ParticleEmitter19.Rotation = NumberRange.new(0, 360)
  5963. ParticleEmitter19.Size = NumberSequence.new(0.65573811531067,0.2732241153717,0)
  5964. ParticleEmitter19.Color = ColorSequence.new(Color3.new(1, 0.666667, 0),Color3.new(1, 0.666667, 0))
  5965. ParticleEmitter19.Enabled = false
  5966. ParticleEmitter19.LightEmission = 0.75
  5967. ParticleEmitter19.ZOffset = 0.30000001192093
  5968. ParticleEmitter19.Acceleration = Vector3.new(0, 5, 6)
  5969. ParticleEmitter19.Lifetime = NumberRange.new(0.5, 0.5)
  5970. ParticleEmitter19.Rate = 300
  5971. ParticleEmitter19.RotSpeed = NumberRange.new(-56, 56)
  5972. ParticleEmitter19.VelocitySpread = 5
  5973. ParticleEmitter19.Color = ColorSequence.new(Color3.new(1, 0.666667, 0),Color3.new(1, 0.666667, 0))
  5974. ParticleEmitter20.Name = "Wing2B"
  5975. ParticleEmitter20.Parent = LocalScript0
  5976. ParticleEmitter20.Transparency = NumberSequence.new(1,0.58469945192337,0.24590164422989,0,0.20765030384064,0.5956284403801,1)
  5977. ParticleEmitter20.Rotation = NumberRange.new(0, 360)
  5978. ParticleEmitter20.Size = NumberSequence.new(0,0,1.8579238653183,2.4043715000153,1.8124997615814,0)
  5979. ParticleEmitter20.Color = ColorSequence.new(Color3.new(1, 0.666667, 0),Color3.new(1, 0.666667, 0))
  5980. ParticleEmitter20.Enabled = false
  5981. ParticleEmitter20.LightEmission = 0.69999998807907
  5982. ParticleEmitter20.ZOffset = 0.20000000298023
  5983. ParticleEmitter20.Acceleration = Vector3.new(-5, 4, -4)
  5984. ParticleEmitter20.Lifetime = NumberRange.new(1.9500000476837, 1.9500000476837)
  5985. ParticleEmitter20.Rate = 150
  5986. ParticleEmitter20.RotSpeed = NumberRange.new(-56, 56)
  5987. ParticleEmitter20.Speed = NumberRange.new(4, 4)
  5988. ParticleEmitter20.VelocitySpread = 35
  5989. ParticleEmitter20.Color = ColorSequence.new(Color3.new(1, 0.666667, 0),Color3.new(1, 0.666667, 0))
  5990. ParticleEmitter21.Name = "Burn"
  5991. ParticleEmitter21.Parent = LocalScript0
  5992. ParticleEmitter21.Transparency = NumberSequence.new(0.47540986537933,0.37704920768738,0.25683063268661,0.4426229596138,0.62841534614563,1)
  5993. ParticleEmitter21.Rotation = NumberRange.new(0, 360)
  5994. ParticleEmitter21.Size = NumberSequence.new(0.98360657691956,0.32786905765533,0)
  5995. ParticleEmitter21.Color = ColorSequence.new(Color3.new(1, 0.333333, 0),Color3.new(1, 0.333333, 0))
  5996. ParticleEmitter21.Enabled = false
  5997. ParticleEmitter21.LightEmission = 0.75
  5998. ParticleEmitter21.Texture = "rbxassetid://296874871"
  5999. ParticleEmitter21.ZOffset = 0.5
  6000. ParticleEmitter21.Acceleration = Vector3.new(0, 5, 0)
  6001. ParticleEmitter21.Lifetime = NumberRange.new(1, 1)
  6002. ParticleEmitter21.Rate = 300
  6003. ParticleEmitter21.RotSpeed = NumberRange.new(-56, 56)
  6004. ParticleEmitter21.Speed = NumberRange.new(1, 1)
  6005. ParticleEmitter21.VelocitySpread = 360
  6006. ParticleEmitter21.Color = ColorSequence.new(Color3.new(1, 0.333333, 0),Color3.new(1, 0.333333, 0))
  6007. ParticleEmitter22.Name = "PheonixTrail"
  6008. ParticleEmitter22.Parent = LocalScript0
  6009. ParticleEmitter22.Transparency = NumberSequence.new(0.47540986537933,0.37704920768738,0.25683063268661,0.4426229596138,0.62841534614563,1)
  6010. ParticleEmitter22.Rotation = NumberRange.new(0, 360)
  6011. ParticleEmitter22.Size = NumberSequence.new(0.49180328845978,0.4371589422226,0)
  6012. ParticleEmitter22.Color = ColorSequence.new(Color3.new(1, 1, 1),Color3.new(1, 0.835294, 0))
  6013. ParticleEmitter22.Enabled = false
  6014. ParticleEmitter22.LightEmission = 0.75
  6015. ParticleEmitter22.Texture = "rbxassetid://296874871"
  6016. ParticleEmitter22.ZOffset = 0.5
  6017. ParticleEmitter22.Lifetime = NumberRange.new(1, 1)
  6018. ParticleEmitter22.Rate = 300
  6019. ParticleEmitter22.RotSpeed = NumberRange.new(-56, 56)
  6020. ParticleEmitter22.Speed = NumberRange.new(0, 0)
  6021. ParticleEmitter22.VelocitySpread = 360
  6022. ParticleEmitter22.Color = ColorSequence.new(Color3.new(1, 1, 1),Color3.new(1, 0.835294, 0))
  6023. for i,v in pairs(mas:GetChildren()) do
  6024. v.Parent = game:GetService("Lighting")
  6025. pcall(function() v:MakeJoints() end)
  6026. end
  6027. mas:Destroy()
  6028. for i,v in pairs(cors) do
  6029. spawn(function()
  6030. pcall(v)
  6031. end)
  6032. end
  6033. ParticleEmitter21.Color = ColorSequence.new(Color3.new(1, 0.333333, 0),Color3.new(1, 0.333333, 0))
  6034. ParticleEmitter22.Name = "PheonixTrail"
  6035. ParticleEmitter22.Parent = LocalScript0
  6036. ParticleEmitter22.Transparency = NumberSequence.new(0.47540986537933,0.37704920768738,0.25683063268661,0.4426229596138,0.62841534614563,1)
  6037. ParticleEmitter22.Rotation = NumberRange.new(0, 360)
  6038. ParticleEmitter22.Size = NumberSequence.new(0.49180328845978,0.4371589422226,0)
  6039. ParticleEmitter22.Color = ColorSequence.new(Color3.new(1, 1, 1),Color3.new(1, 0.835294, 0))
  6040. ParticleEmitter22.Enabled = false
  6041. ParticleEmitter22.LightEmission = 0.75
  6042. ParticleEmitter22.Texture = "rbxassetid://296874871"
  6043. ParticleEmitter22.ZOffset = 0.5
  6044. ParticleEmitter22.Lifetime = NumberRange.new(1, 1)
  6045. ParticleEmitter22.Rate = 300
  6046. ParticleEmitter22.RotSpeed = NumberRange.new(-56, 56)
  6047. ParticleEmitter22.Speed = NumberRange.new(0, 0)
  6048. ParticleEmitter22.VelocitySpread = 360
  6049. ParticleEmitter22.Color = ColorSequence.new(Color3.new(1, 1, 1),Color3.new(1, 0.835294, 0))
  6050. for i,v in pairs(mas:GetChildren()) do
  6051. v.Parent = game:GetService("Lighting")
  6052. pcall(function() v:MakeJoints() end)
  6053. end
  6054. mas:Destroy()
  6055. for i,v in pairs(cors) do
  6056. spawn(function()
  6057. pcall(v)
  6058. end)
  6059. end
Advertisement
Add Comment
Please, Sign In to add comment