EmeraldIT

Untitled

Aug 26th, 2018
155
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 133.96 KB | None | 0 0
  1. if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
  2. local Player,game,owner = owner,game
  3. local RealPlayer = Player
  4. do
  5. print("FE Compatibility code by Mokiros")
  6. local rp = RealPlayer
  7. script.Parent = rp.Character
  8.  
  9. --RemoteEvent for communicating
  10. local Event = Instance.new("RemoteEvent")
  11. Event.Name = "UserInput_Event"
  12.  
  13. --Fake event to make stuff like Mouse.KeyDown work
  14. local function fakeEvent()
  15. local t = {_fakeEvent=true,Functions={},Connect=function(self,f)table.insert(self.Functions,f) end}
  16. t.connect = t.Connect
  17. return t
  18. end
  19.  
  20. --Creating fake input objects with fake variables
  21. local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()}
  22. local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
  23. local CAS = {Actions={},BindAction=function(self,name,fun,touch,...)
  24. CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil
  25. end}
  26. --Merged 2 functions into one by checking amount of arguments
  27. CAS.UnbindAction = CAS.BindAction
  28.  
  29. --This function will trigger the events that have been :Connect()'ed
  30. local function te(self,ev,...)
  31. local t = m[ev]
  32. if t and t._fakeEvent then
  33. for _,f in pairs(t.Functions) do
  34. f(...)
  35. end
  36. end
  37. end
  38. m.TrigEvent = te
  39. UIS.TrigEvent = te
  40.  
  41. Event.OnServerEvent:Connect(function(plr,io)
  42. if plr~=rp then return end
  43. m.Target = io.Target
  44. m.Hit = io.Hit
  45. if not io.isMouse then
  46. local b = io.UserInputState == Enum.UserInputState.Begin
  47. if io.UserInputType == Enum.UserInputType.MouseButton1 then
  48. return m:TrigEvent(b and "Button1Down" or "Button1Up")
  49. end
  50. for _,t in pairs(CAS.Actions) do
  51. for _,k in pairs(t.Keys) do
  52. if k==io.KeyCode then
  53. t.Function(t.Name,io.UserInputState,io)
  54. end
  55. end
  56. end
  57. m:TrigEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower())
  58. UIS:TrigEvent(b and "InputBegan" or "InputEnded",io,false)
  59. end
  60. end)
  61. Event.Parent = NLS([==[
  62. local Player = game:GetService("Players").LocalPlayer
  63. local Event = script:WaitForChild("UserInput_Event")
  64.  
  65. local Mouse = Player:GetMouse()
  66. local UIS = game:GetService("UserInputService")
  67. local input = function(io,a)
  68. if a then return end
  69. --Since InputObject is a client-side instance, we create and pass table instead
  70. Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState,Hit=Mouse.Hit,Target=Mouse.Target})
  71. end
  72. UIS.InputBegan:Connect(input)
  73. UIS.InputEnded:Connect(input)
  74.  
  75. local h,t
  76. --Give the server mouse data 30 times every second, but only if the values changed
  77. --If player is not moving their mouse, client won't fire events
  78. while wait(1/30) do
  79. if h~=Mouse.Hit or t~=Mouse.Target then
  80. h,t=Mouse.Hit,Mouse.Target
  81. Event:FireServer({isMouse=true,Target=t,Hit=h})
  82. end
  83. end]==],Player.Character)
  84.  
  85. ----Sandboxed game object that allows the usage of client-side methods and services
  86. --Real game object
  87. local _rg = game
  88.  
  89. --Metatable for fake service
  90. local fsmt = {
  91. __index = function(self,k)
  92. local s = rawget(self,"_RealService")
  93. if s then return s[k] end
  94. end,
  95. __newindex = function(self,k,v)
  96. local s = rawget(self,"_RealService")
  97. if s then s[k]=v end
  98. end,
  99. __call = function(self,...)
  100. local s = rawget(self,"_RealService")
  101. if s then return s(...) end
  102. end
  103. }
  104. local function FakeService(t,RealService)
  105. t._RealService = typeof(RealService)=="string" and _rg:GetService(RealService) or RealService
  106. return setmetatable(t,fsmt)
  107. end
  108.  
  109. --Fake game object
  110. local g = {
  111. GetService = function(self,s)
  112. return self[s]
  113. end,
  114. Players = FakeService({
  115. LocalPlayer = FakeService({GetMouse=function(self)return m end},Player)
  116. },"Players"),
  117. UserInputService = FakeService(UIS,"UserInputService"),
  118. ContextActionService = FakeService(CAS,"ContextActionService"),
  119. }
  120. rawset(g.Players,"localPlayer",g.Players.LocalPlayer)
  121. g.service = g.GetService
  122.  
  123. g.RunService = FakeService({
  124. RenderStepped = _rg:GetService("RunService").Heartbeat,
  125. BindToRenderStep = function(self,name,_,fun)
  126.  
  127. end,
  128. UnbindFromRenderStep = function(self,name)
  129. self._btrs[name]:Disconnect()
  130. end,
  131. },"RunService")
  132.  
  133. setmetatable(g,{
  134. __index=function(self,s)
  135. return _rg:GetService(s) or typeof(_rg[s])=="function"
  136. and function(_,...)return _rg[s](_rg,...)end or _rg[s]
  137. end,
  138. __newindex = fsmt.__newindex,
  139. __call = fsmt.__call
  140. })
  141. --Changing owner to fake player object to support owner:GetMouse()
  142. game,owner = g,g.Players.LocalPlayer
  143. end
  144. --Converted with ttyyuu12345's model to script plugin v4
  145. function sandbox(var,func)
  146. local env = getfenv(func)
  147. local newenv = setmetatable({},{
  148. __index = function(self,k)
  149. if k=="script" then
  150. return var
  151. else
  152. return env[k]
  153. end
  154. end,
  155. })
  156. setfenv(func,newenv)
  157. return func
  158. end
  159. cors = {}
  160. mas = Instance.new("Model",game:GetService("Lighting"))
  161. LocalScript0 = Instance.new("LocalScript")
  162. ParticleEmittera = Instance.new("ParticleEmitter")
  163. ParticleEmitter1 = Instance.new("ParticleEmitter")
  164. ParticleEmitter2 = Instance.new("ParticleEmitter")
  165. ParticleEmitter3 = Instance.new("ParticleEmitter")
  166. ParticleEmitter4 = Instance.new("ParticleEmitter")
  167. ParticleEmitter5 = Instance.new("ParticleEmitter")
  168. ParticleEmitter6 = Instance.new("ParticleEmitter")
  169. ParticleEmitter7 = Instance.new("ParticleEmitter")
  170. ParticleEmitter8 = Instance.new("ParticleEmitter")
  171. LocalScript9 = Instance.new("LocalScript")
  172. NumberValue10 = Instance.new("NumberValue")
  173. NumberValue11 = Instance.new("NumberValue")
  174. BoolValue12 = Instance.new("BoolValue")
  175. ParticleEmitter13 = Instance.new("ParticleEmitter")
  176. ParticleEmitter14 = Instance.new("ParticleEmitter")
  177. ParticleEmitter15 = Instance.new("ParticleEmitter")
  178. ParticleEmitter16 = Instance.new("ParticleEmitter")
  179. ParticleEmitter17 = Instance.new("ParticleEmitter")
  180. ParticleEmitter18 = Instance.new("ParticleEmitter")
  181. ParticleEmitter19 = Instance.new("ParticleEmitter")
  182. ParticleEmitter20 = Instance.new("ParticleEmitter")
  183. ParticleEmitter21 = Instance.new("ParticleEmitter")
  184. ParticleEmitter22 = Instance.new("ParticleEmitter")
  185. LocalScript0.Name = "WarPheonix"
  186. LocalScript0.Parent = mas
  187. local Color = BrickColor.new("White").Color
  188. local Color2 = BrickColor.new("New Yeller").Color
  189. table.insert(cors,sandbox(LocalScript0,function()
  190.  
  191. wait(0.2)
  192. Player = owner
  193. PlayerGui = Player.PlayerGui
  194. Cam = workspace.CurrentCamera
  195. Backpack = Player.Backpack
  196. Character = Player.Character
  197. Humanoid = Character.Humanoid
  198. Mouse = Player:GetMouse()
  199. RootPart = Character.HumanoidRootPart
  200. Torso = Character.Torso
  201. Head = Character.Head
  202. RightArm = Character["Right Arm"]
  203. LeftArm = Character["Left Arm"]
  204. RightLeg = Character["Right Leg"]
  205. LeftLeg = Character["Left Leg"]
  206. RootJoint = RootPart.RootJoint
  207. Neck = Torso.Neck
  208. RightShoulder = Torso["Right Shoulder"]
  209. LeftShoulder = Torso["Left Shoulder"]
  210. RightHip = Torso["Right Hip"]
  211. LeftHip = Torso["Left Hip"]
  212. local sick = Instance.new("Sound", Character)
  213. sick.SoundId = "rbxassetid://1604456093"
  214. sick.Looped = true
  215. IT = Instance.new
  216. CF = CFrame.new
  217. VT = Vector3.new
  218. RAD = math.rad
  219. C3 = Color3.new
  220. UD2 = UDim2.new
  221. BRICKC = BrickColor.new
  222. ANGLES = CFrame.Angles
  223. EULER = CFrame.fromEulerAnglesXYZ
  224. COS = math.cos
  225. ACOS = math.acos
  226. SIN = math.sin
  227. ASIN = math.asin
  228. ABS = math.abs
  229. MRANDOM = math.random
  230. FLOOR = math.floor
  231.  
  232. local naeeym2 = Instance.new("BillboardGui",Character)
  233. naeeym2.AlwaysOnTop = true
  234. naeeym2.Size = UDim2.new(5,35,2,35)
  235. naeeym2.StudsOffset = Vector3.new(0,4.5,0)
  236. naeeym2.Adornee = Character.Head
  237. naeeym2.Name = "Name"
  238. naeeym2.MaxDistance = 200
  239. local tecks2 = Instance.new("TextLabel",naeeym2)
  240. tecks2.BackgroundTransparency = 1
  241. tecks2.TextScaled = true
  242. tecks2.BorderSizePixel = 0
  243. tecks2.Text = "The War Phoenix [UNLEASHED]"
  244. tecks2.Font = "Fantasy"
  245. tecks2.TextSize = 48
  246. tecks2.TextStrokeTransparency = 0
  247. tecks2.TextColor3 = Color3.new(255,255,255)
  248. tecks2.TextStrokeColor3 = Color3.new(255, 255, 0)
  249. tecks2.Size = UDim2.new(1,0,0.5,0)
  250. tecks2.Parent = naeeym2
  251.  
  252. local naeeym3 = Instance.new("BillboardGui",Character)
  253. naeeym3.AlwaysOnTop = true
  254. naeeym3.Size = UDim2.new(5,35,2,35)
  255. naeeym3.StudsOffset = Vector3.new(0,3,0)
  256. naeeym3.Adornee = Character.Head
  257. naeeym3.Name = "Name"
  258. naeeym3.MaxDistance = 200
  259. local tecks3 = Instance.new("TextLabel",naeeym2)
  260. tecks3.BackgroundTransparency = 1
  261. tecks3.TextScaled = true
  262. tecks3.BorderSizePixel = 0
  263. tecks3.Text = Player.Name
  264. tecks3.Font = "Fantasy"
  265. tecks3.TextSize = 32
  266. tecks3.TextStrokeTransparency = 1
  267. tecks3.TextColor3 = Color3.new(125/255,125/255,125/255)
  268. tecks3.TextStrokeColor3 = Color3.new(125/255,125/255,125/255)
  269. tecks3.Size = UDim2.new(1,0,0.5,0)
  270. tecks3.Parent = naeeym3
  271.  
  272.  
  273. Animation_Speed = 3
  274. Frame_Speed = 0.016666666666666666
  275. local Speed = 16
  276. local ROOTC0 = CF(0, 0, 0) * ANGLES(RAD(-90), RAD(0), RAD(180))
  277. local NECKC0 = CF(0, 1, 0) * ANGLES(RAD(-90), RAD(0), RAD(180))
  278. local RIGHTSHOULDERC0 = CF(-0.5, 0, 0) * ANGLES(RAD(0), RAD(90), RAD(0))
  279. local LEFTSHOULDERC0 = CF(0.5, 0, 0) * ANGLES(RAD(0), RAD(-90), RAD(0))
  280. local DAMAGEMULTIPLIER = 1
  281. local ANIM = "Idle"
  282. local ATTACK = false
  283. local EQUIPPED = false
  284. local HOLD = false
  285. local COMBO = 1
  286. local Rooted = false
  287. local SINE = 0
  288. local KEYHOLD = false
  289. local CHANGE = 2 / Animation_Speed
  290. local WALKINGANIM = false
  291. local VALUE1 = false
  292. local VALUE2 = false
  293. local ROBLOXIDLEANIMATION = IT("Animation")
  294. ROBLOXIDLEANIMATION.Name = "Roblox Idle Animation"
  295. ROBLOXIDLEANIMATION.AnimationId = "http://www.roblox.com/asset/?id=180435571"
  296. local WEAPONGUI = IT("ScreenGui", PlayerGui)
  297. WEAPONGUI.Name = "Weapon GUI"
  298. local Effects = IT("Folder", Character)
  299. Effects.Name = "Effects"
  300. local ANIMATOR = Humanoid.Animator
  301. local ANIMATE = Character.Animate
  302. local UNANCHOR = true
  303. local FLIGHT = false
  304. local BODYPOS, GYRO, FLIGHTRING
  305. local PARTICLES = false
  306. local WINGS = false
  307. local APPLYGYRO = true
  308. local DIRECTTURN = false
  309. local PHEONIXCOLOR = C3(0.9, 0.9, 0.9)
  310. local MOONOSUNO = C3(0.9, 0.9, 0.9)
  311. local intro = true
  312. ArtificialHB = Instance.new("BindableEvent", script)
  313. ArtificialHB.Name = "ArtificialHB"
  314. script:WaitForChild("ArtificialHB")
  315. frame = Frame_Speed
  316. tf = 0
  317. allowframeloss = false
  318. tossremainder = false
  319. lastframe = tick()
  320. script.ArtificialHB:Fire()
  321. game:GetService("RunService").Heartbeat:connect(function(s, p)
  322. tf = tf + s
  323. if tf >= frame then
  324. if allowframeloss then
  325. script.ArtificialHB:Fire()
  326. lastframe = tick()
  327. else
  328. for i = 1, math.floor(tf / frame) do
  329. script.ArtificialHB:Fire()
  330. end
  331. lastframe = tick()
  332. end
  333. if tossremainder then
  334. tf = 0
  335. else
  336. tf = tf - frame * math.floor(tf / frame)
  337. end
  338. end
  339. end)
  340. function Raycast(POSITION, DIRECTION, RANGE, IGNOREDECENDANTS)
  341. return workspace:FindPartOnRay(Ray.new(POSITION, DIRECTION.unit * RANGE), IGNOREDECENDANTS)
  342. end
  343. function PositiveAngle(NUMBER)
  344. if NUMBER >= 0 then
  345. NUMBER = 0
  346. end
  347. return NUMBER
  348. end
  349. function NegativeAngle(NUMBER)
  350. if NUMBER <= 0 then
  351. NUMBER = 0
  352. end
  353. return NUMBER
  354. end
  355. function Swait(NUMBER)
  356. if NUMBER == 0 or NUMBER == nil then
  357. ArtificialHB.Event:wait()
  358. else
  359. for i = 1, NUMBER do
  360. ArtificialHB.Event:wait()
  361. end
  362. end
  363. end
  364. function CreateMesh(MESH, PARENT, MESHTYPE, MESHID, TEXTUREID, SCALE, OFFSET)
  365. local NEWMESH = IT(MESH)
  366. if MESH == "SpecialMesh" then
  367. NEWMESH.MeshType = MESHTYPE
  368. if MESHID ~= "nil" and MESHID ~= "" then
  369. NEWMESH.MeshId = "http://www.roblox.com/asset/?id=" .. MESHID
  370. end
  371. if TEXTUREID ~= "nil" and TEXTUREID ~= "" then
  372. NEWMESH.TextureId = "http://www.roblox.com/asset/?id=" .. TEXTUREID
  373. end
  374. end
  375. NEWMESH.Offset = OFFSET or VT(0, 0, 0)
  376. NEWMESH.Scale = SCALE
  377. NEWMESH.Parent = PARENT
  378. return NEWMESH
  379. end
  380. function CreatePart(FORMFACTOR, PARENT, MATERIAL, REFLECTANCE, TRANSPARENCY, BRICKCOLOR, NAME, SIZE, ANCHOR)
  381. local NEWPART = IT("Part")
  382. NEWPART.formFactor = FORMFACTOR
  383. NEWPART.Reflectance = REFLECTANCE
  384. NEWPART.Transparency = TRANSPARENCY
  385. NEWPART.CanCollide = false
  386. NEWPART.Locked = true
  387. NEWPART.Anchored = true
  388. if ANCHOR == false then
  389. NEWPART.Anchored = false
  390. end
  391. NEWPART.BrickColor = BRICKC(tostring(BRICKCOLOR))
  392. NEWPART.Name = NAME
  393. NEWPART.Size = SIZE
  394. NEWPART.Position = Torso.Position
  395. NEWPART.Material = MATERIAL
  396. NEWPART:BreakJoints()
  397. NEWPART.Parent = PARENT
  398. return NEWPART
  399. end
  400. local weldBetween = function(a, b)
  401. local weldd = Instance.new("ManualWeld")
  402. weldd.Part0 = a
  403. weldd.Part1 = b
  404. weldd.C0 = CFrame.new()
  405. weldd.C1 = b.CFrame:inverse() * a.CFrame
  406. weldd.Parent = a
  407. return weldd
  408. end
  409. function QuaternionFromCFrame(cf)
  410. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  411. local trace = m00 + m11 + m22
  412. if trace > 0 then
  413. local s = math.sqrt(1 + trace)
  414. local recip = 0.5 / s
  415. return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5
  416. else
  417. local i = 0
  418. if m00 < m11 then
  419. i = 1
  420. end
  421. if m22 > (i == 0 and m00 or m11) then
  422. i = 2
  423. end
  424. if i == 0 then
  425. local s = math.sqrt(m00 - m11 - m22 + 1)
  426. local recip = 0.5 / s
  427. return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip
  428. elseif i == 1 then
  429. local s = math.sqrt(m11 - m22 - m00 + 1)
  430. local recip = 0.5 / s
  431. return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip
  432. elseif i == 2 then
  433. local s = math.sqrt(m22 - m00 - m11 + 1)
  434. local recip = 0.5 / s
  435. return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip
  436. end
  437. end
  438. end
  439. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  440. local xs, ys, zs = x + x, y + y, z + z
  441. local wx, wy, wz = w * xs, w * ys, w * zs
  442. local xx = x * xs
  443. local xy = x * ys
  444. local xz = x * zs
  445. local yy = y * ys
  446. local yz = y * zs
  447. local zz = z * zs
  448. 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))
  449. end
  450. function QuaternionSlerp(a, b, t)
  451. local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4]
  452. local startInterp, finishInterp
  453. if cosTheta >= 1.0E-4 then
  454. if 1 - cosTheta > 1.0E-4 then
  455. local theta = ACOS(cosTheta)
  456. local invSinTheta = 1 / SIN(theta)
  457. startInterp = SIN((1 - t) * theta) * invSinTheta
  458. finishInterp = SIN(t * theta) * invSinTheta
  459. else
  460. startInterp = 1 - t
  461. finishInterp = t
  462. end
  463. elseif 1 + cosTheta > 1.0E-4 then
  464. local theta = ACOS(-cosTheta)
  465. local invSinTheta = 1 / SIN(theta)
  466. startInterp = SIN((t - 1) * theta) * invSinTheta
  467. finishInterp = SIN(t * theta) * invSinTheta
  468. else
  469. startInterp = t - 1
  470. finishInterp = t
  471. end
  472. 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
  473. end
  474. function Clerp(a, b, t)
  475. local qa = {
  476. QuaternionFromCFrame(a)
  477. }
  478. local qb = {
  479. QuaternionFromCFrame(b)
  480. }
  481. local ax, ay, az = a.x, a.y, a.z
  482. local bx, by, bz = b.x, b.y, b.z
  483. local _t = 1 - t
  484. return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t))
  485. end
  486. function CreateFrame(PARENT, TRANSPARENCY, BORDERSIZEPIXEL, POSITION, SIZE, COLOR, BORDERCOLOR, NAME)
  487. local frame = IT("Frame")
  488. frame.BackgroundTransparency = TRANSPARENCY
  489. frame.BorderSizePixel = BORDERSIZEPIXEL
  490. frame.Position = POSITION
  491. frame.Size = SIZE
  492. frame.BackgroundColor3 = COLOR
  493. frame.BorderColor3 = BORDERCOLOR
  494. frame.Name = NAME
  495. frame.Parent = PARENT
  496. return frame
  497. end
  498. function CreateLabel(PARENT, TEXT, TEXTCOLOR, TEXTFONTSIZE, TEXTFONT, TRANSPARENCY, BORDERSIZEPIXEL, STROKETRANSPARENCY, NAME)
  499. local label = IT("TextLabel")
  500. label.BackgroundTransparency = 1
  501. label.Size = UD2(1, 0, 1, 0)
  502. label.Position = UD2(0, 0, 0, 0)
  503. label.TextColor3 = TEXTCOLOR
  504. label.TextStrokeTransparency = STROKETRANSPARENCY
  505. label.TextTransparency = TRANSPARENCY
  506. label.FontSize = TEXTFONTSIZE
  507. label.Font = TEXTFONT
  508. label.BorderSizePixel = BORDERSIZEPIXEL
  509. label.TextScaled = false
  510. label.Text = TEXT
  511. label.Name = NAME
  512. label.Parent = PARENT
  513. return label
  514. end
  515. function NoOutlines(PART)
  516. PART.TopSurface, PART.BottomSurface, PART.LeftSurface, PART.RightSurface, PART.FrontSurface, PART.BackSurface = 10, 10, 10, 10, 10, 10
  517. end
  518. function CreateWeldOrSnapOrMotor(TYPE, PARENT, PART0, PART1, C0, C1)
  519. local NEWWELD = IT(TYPE)
  520. NEWWELD.Part0 = PART0
  521. NEWWELD.Part1 = PART1
  522. NEWWELD.C0 = C0
  523. NEWWELD.C1 = C1
  524. NEWWELD.Parent = PARENT
  525. return NEWWELD
  526. end
  527. local S = IT("Sound")
  528. function CreateSound(ID, PARENT, VOLUME, PITCH, DOESLOOP)
  529. local NEWSOUND
  530. coroutine.resume(coroutine.create(function()
  531. NEWSOUND = S:Clone()
  532. NEWSOUND.Parent = PARENT
  533. NEWSOUND.Volume = VOLUME
  534. NEWSOUND.Pitch = PITCH
  535. NEWSOUND.SoundId = "http://www.roblox.com/asset/?id=" .. ID
  536. NEWSOUND:play()
  537. if DOESLOOP == true then
  538. NEWSOUND.Looped = true
  539. else
  540. repeat
  541. wait(1)
  542. until NEWSOUND.Playing == false
  543. NEWSOUND:remove()
  544. end
  545. end))
  546. return NEWSOUND
  547. end
  548. function CFrameFromTopBack(at, top, back)
  549. local right = top:Cross(back)
  550. 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)
  551. end
  552. function WACKYEFFECT(Table)
  553. local TYPE = Table.EffectType or "Sphere"
  554. local SIZE = Table.Size or VT(1, 1, 1)
  555. local ENDSIZE = Table.Size2 or VT(0, 0, 0)
  556. local TRANSPARENCY = Table.Transparency or 0
  557. local ENDTRANSPARENCY = Table.Transparency2 or 1
  558. local CFRAME = Table.CFrame or Torso.CFrame
  559. local MOVEDIRECTION = Table.MoveToPos or nil
  560. local ROTATION1 = Table.RotationX or 0
  561. local ROTATION2 = Table.RotationY or 0
  562. local ROTATION3 = Table.RotationZ or 0
  563. local MATERIAL = Table.Material or "Neon"
  564. local COLOR = Table.Color or C3(1, 1, 1)
  565. local TIME = Table.Time or 45
  566. local SOUNDID = Table.SoundID or nil
  567. local SOUNDPITCH = Table.SoundPitch or nil
  568. local SOUNDVOLUME = Table.SoundVolume or nil
  569. coroutine.resume(coroutine.create(function()
  570. local PLAYSSOUND = false
  571. local SOUND
  572. local EFFECT = CreatePart(3, Effects, MATERIAL, 0, TRANSPARENCY, BRICKC("Pearl"), "Effect", VT(1, 1, 1), true)
  573. if SOUNDID ~= nil and SOUNDPITCH ~= nil and SOUNDVOLUME ~= nil then
  574. PLAYSSOUND = true
  575. SOUND = CreateSound(SOUNDID, EFFECT, SOUNDVOLUME, SOUNDPITCH, false)
  576. end
  577. EFFECT.Color = COLOR
  578. local MSH
  579. if TYPE == "Sphere" then
  580. MSH = CreateMesh("SpecialMesh", EFFECT, "Sphere", "", "", SIZE, VT(0, 0, 0))
  581. elseif TYPE == "Block" then
  582. MSH = IT("BlockMesh", EFFECT)
  583. MSH.Scale = VT(SIZE.X, SIZE.X, SIZE.X)
  584. elseif TYPE == "Wave" then
  585. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "20329976", "", SIZE, VT(0, 0, -SIZE.X / 8))
  586. elseif TYPE == "Ring" then
  587. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "559831844", "", VT(SIZE.X, SIZE.X, 0.1), VT(0, 0, 0))
  588. elseif TYPE == "Slash" then
  589. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662586858", "", VT(SIZE.X / 10, 0, SIZE.X / 10), VT(0, 0, 0))
  590. elseif TYPE == "Round Slash" then
  591. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662585058", "", VT(SIZE.X / 10, 0, SIZE.X / 10), VT(0, 0, 0))
  592. elseif TYPE == "Swirl" then
  593. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "1051557", "", SIZE, VT(0, 0, 0))
  594. elseif TYPE == "Skull" then
  595. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "4770583", "", SIZE, VT(0, 0, 0))
  596. elseif TYPE == "Crystal" then
  597. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "9756362", "", SIZE, VT(0, 0, 0))
  598. end
  599. if MSH ~= nil then
  600. local MOVESPEED
  601. if MOVEDIRECTION ~= nil then
  602. MOVESPEED = (CFRAME.p - MOVEDIRECTION).Magnitude / TIME
  603. end
  604. local GROWTH = SIZE - ENDSIZE
  605. local TRANS = TRANSPARENCY - ENDTRANSPARENCY
  606. if TYPE == "Block" then
  607. EFFECT.CFrame = CFRAME * ANGLES(RAD(MRANDOM(0, 360)), RAD(MRANDOM(0, 360)), RAD(MRANDOM(0, 360)))
  608. else
  609. EFFECT.CFrame = CFRAME
  610. end
  611. for LOOP = 1, TIME + 1 do
  612. Swait()
  613. MSH.Scale = MSH.Scale - GROWTH / TIME
  614. if TYPE == "Wave" then
  615. MSH.Offset = VT(0, 0, -MSH.Scale.X / 8)
  616. end
  617. EFFECT.Transparency = EFFECT.Transparency - TRANS / TIME
  618. if TYPE == "Block" then
  619. EFFECT.CFrame = CFRAME * ANGLES(RAD(MRANDOM(0, 360)), RAD(MRANDOM(0, 360)), RAD(MRANDOM(0, 360)))
  620. else
  621. EFFECT.CFrame = EFFECT.CFrame * ANGLES(RAD(ROTATION1), RAD(ROTATION2), RAD(ROTATION3))
  622. end
  623. if MOVEDIRECTION ~= nil then
  624. local ORI = EFFECT.Orientation
  625. EFFECT.CFrame = CF(EFFECT.Position, MOVEDIRECTION) * CF(0, 0, -MOVESPEED)
  626. EFFECT.Orientation = ORI
  627. end
  628. end
  629. if PLAYSSOUND == false then
  630. EFFECT:remove()
  631. else
  632. repeat
  633. Swait()
  634. until SOUND.Playing == false
  635. EFFECT:remove()
  636. end
  637. elseif PLAYSSOUND == false then
  638. EFFECT:remove()
  639. else
  640. repeat
  641. Swait()
  642. until SOUND.Playing == false
  643. EFFECT:remove()
  644. end
  645. end))
  646. end
  647. function MakeForm(PART, TYPE)
  648. if TYPE == "Cyl" then
  649. local MSH = IT("CylinderMesh", PART)
  650. elseif TYPE == "Ball" then
  651. local MSH = IT("SpecialMesh", PART)
  652. MSH.MeshType = "Sphere"
  653. elseif TYPE == "Wedge" then
  654. local MSH = IT("SpecialMesh", PART)
  655. MSH.MeshType = "Wedge"
  656. end
  657. end
  658. Debris = game:GetService("Debris")
  659. function CastProperRay(StartPos, EndPos, Distance, Ignore)
  660. local DIRECTION = CF(StartPos, EndPos).lookVector
  661. return Raycast(StartPos, DIRECTION, Distance, Ignore)
  662. end
  663. function turnto(position)
  664. RootPart.CFrame = CFrame.new(RootPart.CFrame.p, VT(position.X, RootPart.Position.Y, position.Z)) * CFrame.new(0, 0, 0)
  665. end
  666. local DECAL = IT("Decal", nil)
  667. function MagicRing(PART, CFRAME, VARIANT)
  668. if VARIANT == "Pheonix" or VARIANT == "Sun" or VARIANT == "Fire" then
  669. local RING = CreatePart(3, Effects, "Granite", 0, 1, "Maroon", "MagicRing", VT(0, 0, 0), false)
  670. local WELD = CreateWeldOrSnapOrMotor("Weld", PART, PART, RING, CFRAME, CF(0, 0, 0))
  671. local MESH = IT("BlockMesh", RING)
  672. local BOTTOMTEXTURE = DECAL:Clone()
  673. BOTTOMTEXTURE.Parent = RING
  674. BOTTOMTEXTURE.Face = "Bottom"
  675. BOTTOMTEXTURE.Name = "BottomTexture"
  676. local TOPTEXTURE = DECAL:Clone()
  677. TOPTEXTURE.Parent = RING
  678. TOPTEXTURE.Face = "Top"
  679. TOPTEXTURE.Name = "TopTexture"
  680. local T = script.RingEmit:Clone()
  681. T.Parent = RING
  682. local LIGHT = IT("PointLight", RING)
  683. if VARIANT == "Pheonix" then
  684. BOTTOMTEXTURE.Texture = "http://www.roblox.com/asset/?id=1617574752"
  685. TOPTEXTURE.Texture = "http://www.roblox.com/asset/?id=1617575377"
  686. T.Color = ColorSequence.new(PHEONIXCOLOR)
  687. CreateSound(462809305, RING, 5, 1, false)
  688. elseif VARIANT == "Sun" then
  689. BOTTOMTEXTURE.Texture = "http://www.roblox.com/asset/?id=1217786509"
  690. TOPTEXTURE.Texture = "http://www.roblox.com/asset/?id=1217788749"
  691. T.Color = ColorSequence.new(BRICKC("Bright orange").Color)
  692. CreateSound(462809305, RING, 5, 1, false)
  693. LIGHT.Color = BRICKC("Bright orange").Color
  694. elseif VARIANT == "Fire" then
  695. BOTTOMTEXTURE.Texture = "http://www.roblox.com/asset/?id=1222222911"
  696. TOPTEXTURE.Texture = "http://www.roblox.com/asset/?id=1222223218"
  697. T.Color = ColorSequence.new(BRICKC("Bright orange").Color)
  698. CreateSound(343211019, RING, 5, 1, false)
  699. LIGHT.Color = C3(1, 0.3333333333333333, 0)
  700. end
  701. T.LightEmission = 1
  702. T:Emit(5)
  703. Debris:AddItem(T, 5)
  704. return RING, WELD, MESH
  705. end
  706. end
  707. function AddChildrenToTable(FROM, PARENT, DIST, TABLE)
  708. for _, c in pairs(PARENT:GetDescendants()) do
  709. if c.ClassName == "Model" and c ~= Character and c:FindFirstChildOfClass("Humanoid") and (c:FindFirstChild("Torso") or c:FindFirstChild("UpperTorso")) then
  710. local HUMANOID = c:FindFirstChildOfClass("Humanoid")
  711. local TORSO = c:FindFirstChild("Torso") or c:FindFirstChild("UpperTorso")
  712. if DIST > (TORSO.Position - FROM).Magnitude then
  713. table.insert(TABLE, c)
  714. end
  715. end
  716. end
  717. end
  718. local BACKATTACHMENT1 = IT("Attachment", Torso)
  719. BACKATTACHMENT1.Position = VT(0.5, 0.5, 0.75)
  720. local BACKATTACHMENT2 = IT("Attachment", Torso)
  721. BACKATTACHMENT2.Position = VT(-0.5, 0.5, 0.75)
  722. local WINGS1 = script.Wing1
  723. WINGS1.EmissionDirection="Right"
  724. WINGS1.Size=NumberSequence.new(2)
  725. local WINGS1B = script.Wing1B
  726. WINGS1B.EmissionDirection="Right"
  727. WINGS1B.Size=NumberSequence.new(2)
  728. local WINGS2 = script.Wing2
  729. WINGS2.EmissionDirection="Left"
  730. WINGS2.Size=NumberSequence.new(2)
  731. local WINGS2B = script.Wing2B
  732. WINGS2B.EmissionDirection="Left"
  733. WINGS2B.Size=NumberSequence.new(2)
  734. WINGS1.Parent = BACKATTACHMENT1
  735. WINGS1.LockedToPart=true
  736. WINGS1B.Parent = BACKATTACHMENT1
  737. WINGS1B.LockedToPart=true
  738. WINGS2.Parent = BACKATTACHMENT2
  739. WINGS2.LockedToPart=true
  740. WINGS2B.Parent = BACKATTACHMENT2
  741. WINGS2B.LockedToPart=true
  742. local FACEATTACHMENT = IT("Attachment", Head)
  743. FACEATTACHMENT.Position = VT(0.167, 0.272, -0.5)
  744. FACEATTACHMENT.Orientation = VT(0, 35, 0)
  745. local EYE = script.Eye1
  746. EYE.LockedToPart=true
  747. EYE.Parent = FACEATTACHMENT
  748. local EYE2 = script.Eye2
  749. EYE2.Parent = FACEATTACHMENT
  750. EYE2.LockedToPart=true
  751. local TRAIL1 = script.PheonixTrail:Clone()
  752. TRAIL1.LockedToPart=true
  753. TRAIL1.Size=NumberSequence.new(.01)
  754. TRAIL1.Parent = BACKATTACHMENT1
  755. local TRAIL2 = script.PheonixTrail:Clone()
  756. TRAIL2.LockedToPart=true
  757. TRAIL2.Parent = BACKATTACHMENT2
  758. TRAIL2.Size=NumberSequence.new(.01)
  759. local LIGHT = IT("PointLight", FACEATTACHMENT)
  760. LIGHT.Enabled = false
  761. LIGHT.Brightness = 5
  762. LIGHT.Range = 6
  763. Humanoid.Died:connect(function()
  764. ATTACK = true
  765. end)
  766.  
  767. New = function(Object, Parent, Name, Data)
  768. local Object = Instance.new(Object)
  769. for Index, Value in pairs(Data or {}) do
  770. Object[Index] = Value
  771. end
  772. Object.Parent = Parent
  773. Object.Name = Name
  774. return Object
  775. end
  776.  
  777. local Deadly = New("Model",Torso,"Deadly",{})
  778. local Sun = New("Part",Deadly,"Sun",{BrickColor = BrickColor.new("New Yeller"),Material = Enum.Material.Neon,Size = Vector3.new(0.5, 0.5, 0.5),CFrame = CFrame.new(-128.325043, 6.92500401, -88.5550079, 1, 0, 0, 0, 1, 0, 0, 0, 1),CanCollide = false,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(1, 1, 0),})
  779. local SunWeld = New("Weld",Sun,"Weld",{Part0 = Sun,Part1 = Torso,C0 = CFrame.new(0,10,-10)})
  780. local Mesh = New("SpecialMesh",Sun,"Mesh",{Scale = Vector3.new(0.05, 0.05, 0.05),MeshType = Enum.MeshType.Sphere,})
  781. Sun.Transparency = 1
  782.  
  783. function Sunshine()
  784. script.SunEmit.Parent = Sun
  785. Sun.SunEmit.Enabled = true
  786. light = Instance.new("PointLight",Sun)
  787. light.Brightness = 1000
  788. light.Range = 1000
  789. Humanoid.Health = 100000
  790. Humanoid.MaxHealth = 100000
  791. end
  792.  
  793. function Nightmode()
  794. Color2 = C3(.2,0,1)
  795. PHEONIXCOLOR = C3(0,0,1)
  796. chatfunc("i knew i was strong but... not this strong..")
  797. wait(4)
  798. chatfunc("this is the power of the celestial body known as the moon!")
  799. wait(4)
  800. chatfunc("Heh.. This Is going to be.. fun.")
  801. for i = 1, 20 do
  802. WACKYEFFECT({
  803. Time = 60,
  804. EffectType = "Sphere",
  805. Size = VT(0, 0, 0),
  806. Size2 = VT(200, 200, 200),
  807. Transparency = 0,
  808. Transparency2 = 1,
  809. CFrame = CF(Torso.Position),
  810. MoveToPos = nil,
  811. RotationX = 0,
  812. RotationY = 0,
  813. RotationZ = 0,
  814. Material = "Neon",
  815. Color = C3(1, 0.6666666666666666, 0),
  816. SoundID = nil,
  817. SoundPitch = nil,
  818. SoundVolume = nil
  819. })
  820. WACKYEFFECT({
  821. Time = 60,
  822. EffectType = "Sphere",
  823. Size = VT(0, 0, 0),
  824. Size2 = VT(220, 220, 220),
  825. Transparency = 0.5,
  826. Transparency2 = 1,
  827. CFrame = CF(Torso.Position),
  828. MoveToPos = nil,
  829. RotationX = 0,
  830. RotationY = 0,
  831. RotationZ = 0,
  832. Material = "Neon",
  833. Color = PHEONIXCOLOR,
  834. SoundID = 462692971,
  835. SoundPitch = 1,
  836. SoundVolume = 6
  837. })
  838. wait()
  839. end
  840. game.Lighting.ClockTime = 0
  841. end
  842.  
  843. function Sunmode()
  844. Color2 = C3(1,1,0)
  845. PHEONIXCOLOR = C3(0.6,0.6,0.6)
  846.  
  847. chatfunc("Ah the power of the sun.")
  848. wait(4)
  849. chatfunc("the celestial body of my powers.")
  850. wait(4)
  851. chatfunc("This is the power that i will use to strike you down.")
  852. game.Lighting.ClockTime = 12
  853. wait(4)
  854. for i = 1, 20 do
  855. WACKYEFFECT({
  856. Time = 60,
  857. EffectType = "Sphere",
  858. Size = VT(0, 0, 0),
  859. Size2 = VT(200, 200, 200),
  860. Transparency = 0,
  861. Transparency2 = 1,
  862. CFrame = CF(Torso.Position),
  863. MoveToPos = nil,
  864. RotationX = 0,
  865. RotationY = 0,
  866. RotationZ = 0,
  867. Material = "Neon",
  868. Color = C3(1, 0.6666666666666666, 0),
  869. SoundID = nil,
  870. SoundPitch = nil,
  871. SoundVolume = nil
  872. })
  873. WACKYEFFECT({
  874. Time = 60,
  875. EffectType = "Sphere",
  876. Size = VT(0, 0, 0),
  877. Size2 = VT(220, 220, 220),
  878. Transparency = 0.5,
  879. Transparency2 = 1,
  880. CFrame = CF(Torso.Position),
  881. MoveToPos = nil,
  882. RotationX = 0,
  883. RotationY = 0,
  884. RotationZ = 0,
  885. Material = "Neon",
  886. Color = PHEONIXCOLOR,
  887. SoundID = 462692971,
  888. SoundPitch = 1,
  889. SoundVolume = 6
  890. })
  891. wait()
  892. end
  893. end
  894.  
  895. function ApplyDamage(Humanoid, Damage, TorsoPart, Time, AfterBurn, Variant)
  896. local defence = Instance.new("BoolValue", Humanoid.Parent)
  897. defence.Name = "HitBy" .. Player.Name
  898. game:GetService("Debris"):AddItem(defence, 0.001)
  899. Damage = Damage * DAMAGEMULTIPLIER
  900. if Humanoid.Health ~= 0 then
  901. local CritChance = MRANDOM(1, 100)
  902. if Damage > Humanoid.Health then
  903. Damage = math.ceil(Humanoid.Health)
  904. if Damage == 0 then
  905. Damage = 0.1
  906. end
  907. end
  908. Humanoid.Health = Humanoid.Health - Damage
  909. if AfterBurn == true then
  910. Afterburn(Humanoid, Time, Damage / 5, Variant)
  911. end
  912. end
  913. end
  914. function Afterburn(Human, Time, Damage, Variant)
  915. coroutine.resume(coroutine.create(function()
  916. if Human and (Human.Parent:FindFirstChild("Torso") or Human.Parent:FindFirstChild("UpperTorso")) then
  917. local Torso = Human.Parent:FindFirstChild("Torso") or Human.Parent:FindFirstChild("UpperTorso")
  918. local FIRE
  919. if Variant == "Pheonix" then
  920. FIRE = script.PheonixBurn:Clone()
  921. FIRE.Parent = Torso
  922. FIRE.Enabled = true
  923. elseif Variant == "Sun" then
  924. FIRE = script.SunBurn:Clone()
  925. FIRE.Parent = Torso
  926. FIRE.Enabled = true
  927. elseif Variant == "Fire" then
  928. FIRE = script.Burn:Clone()
  929. FIRE.Parent = Torso
  930. FIRE.Enabled = true
  931. end
  932. for i = 1, Time do
  933. wait(0.5)
  934. Human.Health = Human.Health - Damage
  935. end
  936. wait(0.25)
  937. FIRE.Enabled = false
  938. Debris:AddItem(FIRE, 1.5)
  939. end
  940. end))
  941. end
  942. function ApplyAoE(POSITION, RANGE, MINDMG, MAXDMG, FLING, AFTERBURN, TIME, VARIANT, DOESCAMSHAKE, CAMVALUES)
  943. local CHILDREN = workspace:GetChildren()
  944. for index, CHILD in pairs(CHILDREN) do
  945. if CHILD.ClassName == "Model" and CHILD ~= Character then
  946. local HUM = CHILD:FindFirstChildOfClass("Humanoid")
  947. if HUM then
  948. local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso")
  949. if TORSO and RANGE >= (TORSO.Position - POSITION).Magnitude then
  950. local DMG = MRANDOM(MINDMG, MAXDMG)
  951. ApplyDamage(HUM, DMG, TORSO, TIME, AFTERBURN, VARIANT)
  952. if HUM.MaxHealth == math.huge then
  953. CHILD:BreakJoints()
  954. end
  955. if DOESCAMSHAKE == true then
  956. local CAMSHAKER = script.CamShake:Clone()
  957. CAMSHAKER.Shake.Value = CAMVALUES.SHAKE
  958. CAMSHAKER.Timer.Value = CAMVALUES.TIMER
  959. CAMSHAKER.DoesFade.Value = CAMVALUES.DOESFADE
  960. CAMSHAKER.Parent = CHILD
  961. CAMSHAKER.Disabled = false
  962. end
  963. if FLING > 0 then
  964. for _, c in pairs(CHILD:GetChildren()) do
  965. if c:IsA("BasePart") then
  966. local bv = Instance.new("BodyVelocity")
  967. bv.maxForce = Vector3.new(1000000000, 1000000000, 1000000000)
  968. bv.velocity = CF(POSITION, TORSO.Position).lookVector * FLING
  969. bv.Parent = c
  970. Debris:AddItem(bv, 0.05)
  971. end
  972. end
  973. end
  974. end
  975. end
  976. end
  977. end
  978. end
  979. function ShootingStar()
  980. ATTACK = true
  981. Rooted = false
  982. local GYRO = IT("BodyGyro", RootPart)
  983. GYRO.D = 20
  984. GYRO.P = 4000
  985. GYRO.MaxTorque = VT(0, 40000, 0)
  986. local RING, WELD, MESH = MagicRing(RightArm, CF(0, -1.2, 0), "Sun")
  987. coroutine.resume(coroutine.create(function()
  988. for i = 1, 35 do
  989. Swait()
  990. MESH.Scale = MESH.Scale + VT(2.6, 0, 2.6)
  991. end
  992. end))
  993. for i = 0, 1.8, 0.1 / Animation_Speed do
  994. GYRO.CFrame = CF(RootPart.Position, Mouse.Hit.p)
  995. Swait()
  996. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(74)), 2 / Animation_Speed)
  997. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(20), RAD(0), RAD(-74)), 1 / Animation_Speed)
  998. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.25, 0.5, -0.3) * ANGLES(RAD(90), RAD(0), RAD(74)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  999. 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)
  1000. 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)
  1001. 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)
  1002. end
  1003. coroutine.resume(coroutine.create(function()
  1004. local POSITION = Mouse.Hit.p
  1005. local FIREBALL = CreatePart(3, Effects, "Neon", 0, 1, "New Yeller", "Fire", VT(10, 10, 10))
  1006. FIREBALL.CFrame = RightArm.CFrame * CF(0, -3, 0)
  1007. local FIRE = script.SunFireball:Clone()
  1008. FIRE.Parent = FIREBALL
  1009. FIRE.Enabled = true
  1010. local EXPLOSION = script.SunExplosion:Clone()
  1011. EXPLOSION.Parent = FIREBALL
  1012. CreateSound(463598785, FIREBALL, 5, 1, false)
  1013. local DISTANCE = (RootPart.Position - POSITION).Magnitude
  1014. 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)
  1015. for i = 1, 75 do
  1016. Swait()
  1017. FIREBALL.CFrame = Clerp(FIREBALL.CFrame, FRAME, 0.5 / Animation_Speed)
  1018. end
  1019. FIREBALL.CFrame = CF(FIREBALL.Position, POSITION)
  1020. for i = 1, 300 do
  1021. Swait()
  1022. FIREBALL.CFrame = FIREBALL.CFrame * CF(0, 0, -4)
  1023. local HITFLOOR, HITPOS = Raycast(FIREBALL.Position, FIREBALL.CFrame.lookVector, 4.2, Character)
  1024. if HITFLOOR ~= nil then
  1025. FIRE.Enabled = false
  1026. EXPLOSION:Emit(600)
  1027. CreateSound(416328540, FIREBALL, 5, 1, false)
  1028. ApplyAoE(FIREBALL.Position, 75, 25, 35, 65, true, MRANDOM(500, 1500), "Sun", true, {
  1029. SHAKE = 1,
  1030. TIMER = 6,
  1031. DOESFADE = true
  1032. })
  1033. WACKYEFFECT({
  1034. EffectType = "Sphere",
  1035. Size = VT(0, 0, 0),
  1036. Size2 = VT(250, 250, 250),
  1037. Transparency = 0,
  1038. Transparency2 = 1,
  1039. CFrame = CF(FIREBALL.Position),
  1040. MoveToPos = nil,
  1041. RotationX = 0,
  1042. RotationY = 0,
  1043. RotationZ = 0,
  1044. Material = "Neon",
  1045. Color = C3(1, 0.6666666666666666, 0),
  1046. SoundID = nil,
  1047. SoundPitch = nil,
  1048. SoundVolume = nil
  1049. })
  1050. wait(5)
  1051. break
  1052. end
  1053. end
  1054. FIREBALL:remove()
  1055. end))
  1056. GYRO:remove()
  1057. RING.Anchored = true
  1058. WELD:remove()
  1059. coroutine.resume(coroutine.create(function()
  1060. for i = 1, 35 do
  1061. Swait()
  1062. MESH.Scale = MESH.Scale - VT(2.6, 0, 2.6)
  1063. end
  1064. RING:remove()
  1065. end))
  1066. ATTACK = false
  1067. Rooted = false
  1068. end
  1069. function PheonixRage()
  1070. ATTACK = true
  1071. Rooted = true
  1072. local A = false
  1073. local B = false
  1074. local RING, WELD, MESH = MagicRing(RootPart, CF(0, -3, 0), "Pheonix")
  1075. WELD:remove()
  1076. RING.Anchored = true
  1077. coroutine.resume(coroutine.create(function()
  1078. for i = 1, 45 do
  1079. Swait()
  1080. MESH.Scale = MESH.Scale + VT(15, 0, 15)
  1081. end
  1082. end))
  1083. coroutine.resume(coroutine.create(function()
  1084. repeat
  1085. Swait()
  1086. 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)
  1087. 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)
  1088. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.15, 0.5, -0.5) * ANGLES(RAD(15), RAD(0), RAD(-90)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  1089. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.15, 0.25, -0.5) * ANGLES(RAD(-15), RAD(0), RAD(90)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  1090. 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)
  1091. 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)
  1092. until A == true
  1093. repeat
  1094. Swait()
  1095. 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)
  1096. 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)
  1097. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(45)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  1098. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-45)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  1099. 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)
  1100. 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)
  1101. until B == true
  1102. for i = 1, 45 do
  1103. Swait()
  1104. MESH.Scale = MESH.Scale - VT(15, 0, 15)
  1105. end
  1106. RING:remove()
  1107. end))
  1108. wait(1)
  1109. for i = 1, 4 do
  1110. WACKYEFFECT({
  1111. EffectType = "Sphere",
  1112. Size = VT(85, 85, 85),
  1113. Size2 = VT(0, 0, 0),
  1114. Transparency = 1,
  1115. Transparency2 = 0.8,
  1116. CFrame = CF(Torso.Position),
  1117. MoveToPos = nil,
  1118. RotationX = 0,
  1119. RotationY = 0,
  1120. RotationZ = 0,
  1121. Material = "Neon",
  1122. Color = PHEONIXCOLOR,
  1123. SoundID = nil,
  1124. SoundPitch = nil,
  1125. SoundVolume = nil
  1126. })
  1127. wait(0.5)
  1128. end
  1129. A = true
  1130. ApplyAoE(Torso.Position, 80, 45, 50, 35, true, MRANDOM(70, 170), "Pheonix", true, {
  1131. SHAKE = 2,
  1132. TIMER = 25,
  1133. DOESFADE = true
  1134. })
  1135. WACKYEFFECT({
  1136. Time = 60,
  1137. EffectType = "Sphere",
  1138. Size = VT(140, 140, 140),
  1139. Size2 = VT(240, 240, 240),
  1140. Transparency = 0,
  1141. Transparency2 = 1,
  1142. CFrame = CF(Torso.Position),
  1143. MoveToPos = nil,
  1144. RotationX = 0,
  1145. RotationY = 0,
  1146. RotationZ = 0,
  1147. Material = "Neon",
  1148. Color = C3(1, 0.6666666666666666, 0),
  1149. SoundID = nil,
  1150. SoundPitch = nil,
  1151. SoundVolume = nil
  1152. })
  1153. WACKYEFFECT({
  1154. Time = 60,
  1155. EffectType = "Sphere",
  1156. Size = VT(150, 150, 150),
  1157. Size2 = VT(250, 250, 250),
  1158. Transparency = 0.5,
  1159. Transparency2 = 1,
  1160. CFrame = CF(Torso.Position),
  1161. MoveToPos = nil,
  1162. RotationX = 0,
  1163. RotationY = 0,
  1164. RotationZ = 0,
  1165. Material = "Neon",
  1166. Color = PHEONIXCOLOR,
  1167. SoundID = 462692971,
  1168. SoundPitch = 0.8,
  1169. SoundVolume = 6
  1170. })
  1171. local EXPLOSION = script.PheonixExplosion1:Clone()
  1172. EXPLOSION.Parent = Torso
  1173. EXPLOSION.Enabled = true
  1174. local EXPLOSION2 = script.PheonixExplosion2:Clone()
  1175. EXPLOSION2.Parent = Torso
  1176. EXPLOSION2.Enabled = true
  1177. wait(0.3)
  1178. EXPLOSION.Enabled = false
  1179. EXPLOSION2.Enabled = false
  1180. Debris:AddItem(EXPLOSION, 5)
  1181. Debris:AddItem(EXPLOSION2, 5)
  1182. wait(1)
  1183. B = true
  1184. ATTACK = false
  1185. Rooted = false
  1186. end
  1187. function off()
  1188. local Search = Character:GetChildren()
  1189. for i = 1, #Search do
  1190. if Search[i].Name == "WIng_1" then
  1191. Search[i].Fire.Enabled = false
  1192. end
  1193. end
  1194. local Search = Character.Torso:GetChildren()
  1195. for i = 1, #Search do
  1196. if Search[i].Name == "WIng_1" then
  1197. Search[i].Fire.Enabled = false
  1198. end
  1199. end
  1200. end
  1201. function intro()
  1202. chatfunc("W-What is this feeling?")
  1203. wait(3)
  1204. chatfunc("Why do i suddenly feel so much.. stronger!")
  1205. wait(4)
  1206. chatfunc("Maybe..")
  1207. wait(2)
  1208. chatfunc("Maybe this is my... true ..UNLEASHED POWER!")
  1209. wait(4)
  1210. chatfunc("The Sun AND moon.. i feel both their powers now!")
  1211. wait(4)
  1212. chatfunc("i Know now. i must be the chosen one... i am the true ruler of fire")
  1213. wait(4)
  1214. local Search = Character:GetChildren()
  1215. for i = 1, #Search do
  1216. if Search[i].Name == "WIng_1" then
  1217. Search[i].Fire.Enabled = true
  1218. end
  1219. end
  1220. local Search = Character.Torso:GetChildren()
  1221. for i = 1, #Search do
  1222. if Search[i].Name == "WIng_1" then
  1223. Search[i].Fire.Enabled = true
  1224. end
  1225. end
  1226. chatfunc("I Am Now Unleashed!")
  1227. for i = 1, 20 do
  1228. WACKYEFFECT({
  1229. Time = 60,
  1230. EffectType = "Sphere",
  1231. Size = VT(0, 0, 0),
  1232. Size2 = VT(200, 200, 200),
  1233. Transparency = 0,
  1234. Transparency2 = 1,
  1235. CFrame = CF(Torso.Position),
  1236. MoveToPos = nil,
  1237. RotationX = 0,
  1238. RotationY = 0,
  1239. RotationZ = 0,
  1240. Material = "Neon",
  1241. Color = C3(1, 0.6666666666666666, 0),
  1242. SoundID = nil,
  1243. SoundPitch = nil,
  1244. SoundVolume = nil
  1245. })
  1246. WACKYEFFECT({
  1247. Time = 60,
  1248. EffectType = "Sphere",
  1249. Size = VT(0, 0, 0),
  1250. Size2 = VT(220, 220, 220),
  1251. Transparency = 0.5,
  1252. Transparency2 = 1,
  1253. CFrame = CF(Torso.Position),
  1254. MoveToPos = nil,
  1255. RotationX = 0,
  1256. RotationY = 0,
  1257. RotationZ = 0,
  1258. Material = "Neon",
  1259. Color = PHEONIXCOLOR,
  1260. SoundID = 462692971,
  1261. SoundPitch = 1,
  1262. SoundVolume = 6
  1263. })
  1264. wait()
  1265. end
  1266. end
  1267. function chatfunc(text)
  1268. local chat = coroutine.wrap(function()
  1269. if Character:FindFirstChild("TalkingBillBoard")~= nil then
  1270. Character:FindFirstChild("TalkingBillBoard"):destroy()
  1271. end
  1272. local naeeym2 = Instance.new("BillboardGui",Character)
  1273. naeeym2.Size = UDim2.new(0,100,0,40)
  1274. naeeym2.StudsOffset = Vector3.new(0,3,0)
  1275. naeeym2.Adornee = Character.Head
  1276. naeeym2.Name = "TalkingBillBoard"
  1277. local tecks2 = Instance.new("TextLabel",naeeym2)
  1278. tecks2.BackgroundTransparency = 1
  1279. tecks2.BorderSizePixel = 0
  1280. tecks2.Text = ""
  1281. tecks2.Font = "SciFi"
  1282. tecks2.TextSize = 30
  1283. tecks2.TextStrokeTransparency = 0
  1284. tecks2.TextColor3 = PHEONIXCOLOR
  1285. tecks2.TextStrokeColor3 = Color3.new(1,1,0)
  1286. tecks2.Size = UDim2.new(1,0,0.5,0)
  1287. local tecks3 = Instance.new("TextLabel",naeeym2)
  1288. tecks3.BackgroundTransparency = 1
  1289. tecks3.BorderSizePixel = 0
  1290. tecks3.Text = ""
  1291. tecks3.Font = "SciFi"
  1292. tecks3.TextSize = 30
  1293. tecks3.TextStrokeTransparency = 0
  1294. tecks3.TextColor3 = PHEONIXCOLOR
  1295. tecks3.TextStrokeColor3 = Color3.new(1,1,0)
  1296. tecks3.Size = UDim2.new(1,0,0.5,0)
  1297. for i = 1,string.len(text),1 do
  1298. tecks2.Text = string.sub(text,1,i)
  1299. tecks3.Text = string.sub(text,1,i)
  1300. wait(0.01)
  1301. end
  1302. wait(2)
  1303. for i = 1, 50 do
  1304. Swait()
  1305. tecks2.Position = tecks2.Position - UDim2.new(math.random(-.4,.4),math.random(-5,5),.05,math.random(-5,5))
  1306. tecks2.Rotation = tecks2.Rotation - .8
  1307. tecks2.TextStrokeTransparency = tecks2.TextStrokeTransparency +.04
  1308. tecks2.TextTransparency = tecks2.TextTransparency + .04
  1309. tecks3.Position = tecks2.Position - UDim2.new(math.random(-.4,.4),math.random(-5,5),.05,math.random(-5,5))
  1310. tecks3.Rotation = tecks2.Rotation + .8
  1311. tecks3.TextStrokeTransparency = tecks2.TextStrokeTransparency +.04
  1312. tecks3.TextTransparency = tecks2.TextTransparency + .04
  1313. end
  1314. naeeym2:Destroy()
  1315. end)
  1316. chat()
  1317. end
  1318. function Breath()
  1319. ATTACK = true
  1320. local POSITION = IT("BodyPosition", RootPart)
  1321. POSITION.Position = RootPart.CFrame * CF(0, 35, 35).p
  1322. POSITION.D = 1250
  1323. POSITION.P = 40000
  1324. POSITION.maxForce = Vector3.new(math.huge, math.huge, math.huge)
  1325. WINGS = true
  1326. local RING, WELD, MESH = MagicRing(Torso, CF(0, 0.5, 0.6) * ANGLES(RAD(-90), RAD(0), RAD(0)), "Pheonix")
  1327. coroutine.resume(coroutine.create(function()
  1328. for i = 1, 20 do
  1329. Swait()
  1330. MESH.Scale = MESH.Scale + VT(4, 0, 4)
  1331. end
  1332. end))
  1333. for i = 1, 25 do
  1334. Swait()
  1335. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(-14.4 * i), RAD(0), RAD(0)), 1 / Animation_Speed)
  1336. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(-20), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1337. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.25, 0.5, -1) * ANGLES(RAD(0), RAD(0), RAD(-90)) * RIGHTSHOULDERC0, 0.2 / Animation_Speed)
  1338. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25, 0.5, -1) * ANGLES(RAD(0), RAD(0), RAD(90)) * LEFTSHOULDERC0, 0.2 / Animation_Speed)
  1339. 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)
  1340. 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)
  1341. end
  1342. local GYRO = IT("BodyGyro", RootPart)
  1343. GYRO.D = 20
  1344. GYRO.P = 4000
  1345. GYRO.MaxTorque = VT(0, 40000, 0)
  1346. coroutine.resume(coroutine.create(function()
  1347. repeat
  1348. Swait()
  1349. GYRO.CFrame = CF(RootPart.Position, Mouse.Hit.p)
  1350. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 + 1 * SIN(SINE / 24)) * ANGLES(RAD(0), RAD(0), RAD(24)), 2 / Animation_Speed)
  1351. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(20), RAD(0), RAD(-24)), 1 / Animation_Speed)
  1352. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.25, 0.5, -0.3) * ANGLES(RAD(90), RAD(0), RAD(24)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  1353. 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)
  1354. 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)
  1355. 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)
  1356. until ATTACK == false
  1357. POSITION:remove()
  1358. GYRO:remove()
  1359. for i = 1, 20 do
  1360. Swait()
  1361. MESH.Scale = MESH.Scale - VT(4, 0, 4)
  1362. end
  1363. RING:remove()
  1364. end))
  1365. local RING, WELD, MESH = MagicRing(RightArm, CF(0, -1.2, 0) * ANGLES(RAD(0), RAD(180), RAD(0)), "Pheonix")
  1366. for i = 1, 35 do
  1367. Swait()
  1368. MESH.Scale = MESH.Scale + VT(2.6, 0, 2.6)
  1369. end
  1370. wait(0.3)
  1371. coroutine.resume(coroutine.create(function()
  1372. local FIREBALL = CreatePart(3, Effects, "Neon", 0, 1, "Cyan", "Flight", VT(10, 10, 10))
  1373. FIREBALL.CFrame = CF(RING.Position, Mouse.Hit.p)
  1374. local PARTICLES1 = script.PheonixFireball1:Clone()
  1375. PARTICLES1.Parent = FIREBALL
  1376. PARTICLES1.Enabled = true
  1377. local PARTICLES2 = script.PheonixFireball2:Clone()
  1378. PARTICLES2.Parent = FIREBALL
  1379. PARTICLES2.Enabled = true
  1380. CreateSound(463593339, FIREBALL, 6, 1, false)
  1381. for i = 1, 250 do
  1382. Swait()
  1383. local HIT, HITPOS = Raycast(FIREBALL.Position, FIREBALL.CFrame.lookVector, 2.5, Character)
  1384. FIREBALL.CFrame = FIREBALL.CFrame * CF(0, 0, -2)
  1385. if HIT then
  1386. ApplyAoE(FIREBALL.Position, 50, 45, 50, 35, true, MRANDOM(12, 16), "Pheonix", true, {
  1387. SHAKE = 2,
  1388. TIMER = 25,
  1389. DOESFADE = true
  1390. })
  1391. WACKYEFFECT({
  1392. Time = 60,
  1393. EffectType = "Sphere",
  1394. Size = VT(0, 0, 0),
  1395. Size2 = VT(200, 200, 200),
  1396. Transparency = 0,
  1397. Transparency2 = 1,
  1398. CFrame = CF(FIREBALL.Position),
  1399. MoveToPos = nil,
  1400. RotationX = 0,
  1401. RotationY = 0,
  1402. RotationZ = 0,
  1403. Material = "Neon",
  1404. Color = C3(1, 0.6666666666666666, 0),
  1405. SoundID = nil,
  1406. SoundPitch = nil,
  1407. SoundVolume = nil
  1408. })
  1409. WACKYEFFECT({
  1410. Time = 60,
  1411. EffectType = "Sphere",
  1412. Size = VT(0, 0, 0),
  1413. Size2 = VT(220, 220, 220),
  1414. Transparency = 0.5,
  1415. Transparency2 = 1,
  1416. CFrame = CF(FIREBALL.Position),
  1417. MoveToPos = nil,
  1418. RotationX = 0,
  1419. RotationY = 0,
  1420. RotationZ = 0,
  1421. Material = "Neon",
  1422. Color = PHEONIXCOLOR,
  1423. SoundID = 462692971,
  1424. SoundPitch = 1,
  1425. SoundVolume = 6
  1426. })
  1427. PARTICLES1.Enabled = false
  1428. PARTICLES2.Enabled = false
  1429. local EXPLOSION = script.PheonixExplosion1:Clone()
  1430. EXPLOSION.Parent = FIREBALL
  1431. EXPLOSION.Enabled = true
  1432. local EXPLOSION2 = script.PheonixExplosion2:Clone()
  1433. EXPLOSION2.Parent = FIREBALL
  1434. EXPLOSION2.Enabled = true
  1435. wait(0.3)
  1436. EXPLOSION.Enabled = false
  1437. EXPLOSION2.Enabled = false
  1438. break
  1439. end
  1440. end
  1441. PARTICLES1.Enabled = false
  1442. PARTICLES2.Enabled = false
  1443. Debris:AddItem(FIREBALL, 7)
  1444. end))
  1445. wait(0.3)
  1446. coroutine.resume(coroutine.create(function()
  1447. WELD:remove()
  1448. RING.Anchored = true
  1449. for i = 1, 35 do
  1450. Swait()
  1451. MESH.Scale = MESH.Scale - VT(2.6, 0, 2.6)
  1452. end
  1453. RING:remove()
  1454. end))
  1455. WINGS = false
  1456. ATTACK = false
  1457. end
  1458. function ThreeShootingStars()
  1459. ATTACK = true
  1460. Rooted = false
  1461. local POS1, POS2, POS3
  1462. local RING, WELD, MESH = MagicRing(RightArm, CF(0, -1.2, 0), "Sun")
  1463. coroutine.resume(coroutine.create(function()
  1464. for i = 1, 35 do
  1465. Swait()
  1466. MESH.Scale = MESH.Scale + VT(2.6, 0, 2.6)
  1467. end
  1468. end))
  1469. coroutine.resume(coroutine.create(function()
  1470. repeat
  1471. Swait()
  1472. if POS1 then
  1473. coroutine.resume(coroutine.create(function()
  1474. local POSITION = POS1
  1475. local FIREBALL = CreatePart(3, Effects, "Neon", 0, 1, "New Yeller", "Fire", VT(10, 10, 10))
  1476. FIREBALL.CFrame = RightArm.CFrame * CF(0, -3, 0)
  1477. local FIRE = script.SunFireball:Clone()
  1478. FIRE.Parent = FIREBALL
  1479. FIRE.Enabled = true
  1480. local EXPLOSION = script.SunExplosion:Clone()
  1481. EXPLOSION.Parent = FIREBALL
  1482. CreateSound(463598785, FIREBALL, 5, 1, false)
  1483. local DISTANCE = (RootPart.Position - POSITION).Magnitude
  1484. 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)
  1485. for i = 1, 75 do
  1486. Swait()
  1487. FIREBALL.CFrame = Clerp(FIREBALL.CFrame, FRAME, 0.5 / Animation_Speed)
  1488. end
  1489. FIREBALL.CFrame = CF(FIREBALL.Position, POSITION)
  1490. for i = 1, 300 do
  1491. Swait()
  1492. FIREBALL.CFrame = FIREBALL.CFrame * CF(0, 0, -4)
  1493. local HITFLOOR, HITPOS = Raycast(FIREBALL.Position, FIREBALL.CFrame.lookVector, 4.2, Character)
  1494. if HITFLOOR ~= nil then
  1495. FIRE.Enabled = false
  1496. EXPLOSION:Emit(600)
  1497. CreateSound(416328540, FIREBALL, 5, 1, false)
  1498. ApplyAoE(FIREBALL.Position, 75, 25, 35, 65, true, MRANDOM(50, 150), "Sun", true, {
  1499. SHAKE = 1,
  1500. TIMER = 6,
  1501. DOESFADE = true
  1502. })
  1503. WACKYEFFECT({
  1504. EffectType = "Sphere",
  1505. Size = VT(0, 0, 0),
  1506. Size2 = VT(250, 250, 250),
  1507. Transparency = 0,
  1508. Transparency2 = 1,
  1509. CFrame = CF(FIREBALL.Position),
  1510. MoveToPos = nil,
  1511. RotationX = 0,
  1512. RotationY = 0,
  1513. RotationZ = 0,
  1514. Material = "Neon",
  1515. Color = C3(1, 0.6666666666666666, 0),
  1516. SoundID = nil,
  1517. SoundPitch = nil,
  1518. SoundVolume = nil
  1519. })
  1520. wait(5)
  1521. break
  1522. end
  1523. end
  1524. FIREBALL:remove()
  1525. end))
  1526. POS1 = nil
  1527. end
  1528. if POS2 then
  1529. coroutine.resume(coroutine.create(function()
  1530. local POSITION = POS2
  1531. local FIREBALL = CreatePart(3, Effects, "Neon", 0, 1, "New Yeller", "Fire", VT(10, 10, 10))
  1532. FIREBALL.CFrame = RightArm.CFrame * CF(0, -3, 0)
  1533. local FIRE = script.SunFireball:Clone()
  1534. FIRE.Parent = FIREBALL
  1535. FIRE.Enabled = true
  1536. local EXPLOSION = script.SunExplosion:Clone()
  1537. EXPLOSION.Parent = FIREBALL
  1538. CreateSound(463598785, FIREBALL, 5, 1, false)
  1539. local DISTANCE = (RootPart.Position - POSITION).Magnitude
  1540. 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)
  1541. for i = 1, 75 do
  1542. Swait()
  1543. FIREBALL.CFrame = Clerp(FIREBALL.CFrame, FRAME, 0.5 / Animation_Speed)
  1544. end
  1545. FIREBALL.CFrame = CF(FIREBALL.Position, POSITION)
  1546. for i = 1, 300 do
  1547. Swait()
  1548. FIREBALL.CFrame = FIREBALL.CFrame * CF(0, 0, -4)
  1549. local HITFLOOR, HITPOS = Raycast(FIREBALL.Position, FIREBALL.CFrame.lookVector, 4.2, Character)
  1550. if HITFLOOR ~= nil then
  1551. FIRE.Enabled = false
  1552. EXPLOSION:Emit(500)
  1553. CreateSound(416328540, FIREBALL, 5, 1, false)
  1554. ApplyAoE(FIREBALL.Position, 75, 25, 35, 65, true, MRANDOM(50, 150), "Sun", true, {
  1555. SHAKE = 1,
  1556. TIMER = 6,
  1557. DOESFADE = true
  1558. })
  1559. WACKYEFFECT({
  1560. EffectType = "Sphere",
  1561. Size = VT(0, 0, 0),
  1562. Size2 = VT(250, 250, 250),
  1563. Transparency = 0,
  1564. Transparency2 = 1,
  1565. CFrame = CF(FIREBALL.Position),
  1566. MoveToPos = nil,
  1567. RotationX = 0,
  1568. RotationY = 0,
  1569. RotationZ = 0,
  1570. Material = "Neon",
  1571. Color = C3(1, 0.6666666666666666, 0),
  1572. SoundID = nil,
  1573. SoundPitch = nil,
  1574. SoundVolume = nil
  1575. })
  1576. wait(5)
  1577. break
  1578. end
  1579. end
  1580. FIREBALL:remove()
  1581. end))
  1582. POS2 = nil
  1583. end
  1584. if POS3 then
  1585. coroutine.resume(coroutine.create(function()
  1586. local POSITION = POS3
  1587. local FIREBALL = CreatePart(3, Effects, "Neon", 0, 1, "New Yeller", "Fire", VT(10, 10, 10))
  1588. FIREBALL.CFrame = RightArm.CFrame * CF(0, -3, 0)
  1589. local FIRE = script.SunFireball:Clone()
  1590. FIRE.Parent = FIREBALL
  1591. FIRE.Enabled = true
  1592. local EXPLOSION = script.SunExplosion:Clone()
  1593. EXPLOSION.Parent = FIREBALL
  1594. CreateSound(463598785, FIREBALL, 5, 1, false)
  1595. local DISTANCE = (RootPart.Position - POSITION).Magnitude
  1596. 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)
  1597. for i = 1, 75 do
  1598. Swait()
  1599. FIREBALL.CFrame = Clerp(FIREBALL.CFrame, FRAME, 0.5 / Animation_Speed)
  1600. end
  1601. FIREBALL.CFrame = CF(FIREBALL.Position, POSITION)
  1602. for i = 1, 300 do
  1603. Swait()
  1604. FIREBALL.CFrame = FIREBALL.CFrame * CF(0, 0, -4)
  1605. local HITFLOOR, HITPOS = Raycast(FIREBALL.Position, FIREBALL.CFrame.lookVector, 4.2, Character)
  1606. if HITFLOOR ~= nil then
  1607. FIRE.Enabled = false
  1608. EXPLOSION:Emit(500)
  1609. CreateSound(416328540, FIREBALL, 5, 1, false)
  1610. ApplyAoE(FIREBALL.Position, 75, 25, 35, 65, true, MRANDOM(50, 150), "Sun", true, {
  1611. SHAKE = 1,
  1612. TIMER = 6,
  1613. DOESFADE = true
  1614. })
  1615. WACKYEFFECT({
  1616. EffectType = "Sphere",
  1617. Size = VT(0, 0, 0),
  1618. Size2 = VT(150, 150, 150),
  1619. Transparency = 0,
  1620. Transparency2 = 1,
  1621. CFrame = CF(FIREBALL.Position),
  1622. MoveToPos = nil,
  1623. RotationX = 0,
  1624. RotationY = 0,
  1625. RotationZ = 0,
  1626. Material = "Neon",
  1627. Color = C3(1, 0.6666666666666666, 0),
  1628. SoundID = nil,
  1629. SoundPitch = nil,
  1630. SoundVolume = nil
  1631. })
  1632. wait(5)
  1633. break
  1634. end
  1635. end
  1636. FIREBALL:remove()
  1637. end))
  1638. POS3 = nil
  1639. end
  1640. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 + 1 * SIN(SINE / 24)) * ANGLES(RAD(0), RAD(0), RAD(74)), 2 / Animation_Speed)
  1641. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(20), RAD(0), RAD(-74)), 1 / Animation_Speed)
  1642. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.25, 0.5, -0.3) * ANGLES(RAD(90), RAD(0), RAD(74)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  1643. 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)
  1644. 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)
  1645. 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)
  1646. until ATTACK == false
  1647. end))
  1648. wait(0.4)
  1649. POS1 = Mouse.Hit.p
  1650. wait(0.5)
  1651. POS2 = Mouse.Hit.p
  1652. wait(0.6)
  1653. POS3 = Mouse.Hit.p
  1654. wait(0.3)
  1655. RING.Anchored = true
  1656. WELD:remove()
  1657. coroutine.resume(coroutine.create(function()
  1658. for i = 1, 35 do
  1659. Swait()
  1660. MESH.Scale = MESH.Scale - VT(2.6, 0, 2.6)
  1661. end
  1662. RING:remove()
  1663. end))
  1664. ATTACK = false
  1665. Rooted = false
  1666. end
  1667. function PheonixFlare()
  1668. ATTACK = true
  1669. Rooted = false
  1670. PARTICLES = true
  1671. coroutine.resume(coroutine.create(function()
  1672. repeat
  1673. Swait()
  1674. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 + 1 * SIN(SINE / 24)) * ANGLES(RAD(0), RAD(0), RAD(0)), 2 / Animation_Speed)
  1675. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(20), RAD(0), RAD(0)), 1 / Animation_Speed)
  1676. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(-15), RAD(25)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  1677. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(15), RAD(-25)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  1678. 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)
  1679. 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)
  1680. until ATTACK == false
  1681. end))
  1682. CreateSound(462676772, Torso, 7, 1, false)
  1683. local Search = Character.Torso:GetChildren()
  1684. for i = 1, #Search do
  1685. if Search[i].Name == "WIng_1" then
  1686. Search[i].Fire.Speed = NumberRange.new(10,10)
  1687. end
  1688. end
  1689. local Search = Character:GetChildren()
  1690. for i = 1, #Search do
  1691. if Search[i].Name == "WIng_1" then
  1692. Search[i].Fire.Speed = NumberRange.new(10,10)
  1693. end
  1694. end
  1695. wait(0.25)
  1696. coroutine.resume(coroutine.create(function()
  1697. local WIND = CreatePart(3, Effects, "Neon", 0, 1, "Cyan", "Flight", VT(0, 0, 0))
  1698. WIND.CFrame = CF(RootPart.Position, Mouse.Hit.p)
  1699. local PARTICLES = script.Gale:Clone()
  1700. PARTICLES.Parent = WIND
  1701. PARTICLES.Enabled = true
  1702. CreateSound(376218535, WIND, 6, 1, false)
  1703. for i = 1, 250 do
  1704. Swait()
  1705. local HIT, HITPOS = Raycast(WIND.Position, WIND.CFrame.lookVector, 3, Character)
  1706. WIND.CFrame = WIND.CFrame * CF(0, 0, -2)
  1707. if HIT then
  1708. ApplyAoE(WIND.Position, 45, 10, 30, 135, false, MRANDOM(12, 16), "Nul", true, {
  1709. SHAKE = 3,
  1710. TIMER = 7,
  1711. DOESFADE = true
  1712. })
  1713. CreateSound(260430117, WIND, 3, 1, false)
  1714. WACKYEFFECT({
  1715. Time = 25,
  1716. EffectType = "Wave",
  1717. Size = VT(20, 0, 20),
  1718. Size2 = VT(60, 8, 60),
  1719. Transparency = 0.9,
  1720. Transparency2 = 1,
  1721. CFrame = WIND.CFrame * ANGLES(RAD(90), RAD(0), RAD(0)) * ANGLES(RAD(0), RAD(45), RAD(0)),
  1722. MoveToPos = nil,
  1723. RotationX = 0,
  1724. RotationY = 0,
  1725. RotationZ = 0,
  1726. Material = "Neon",
  1727. Color = C3(0.8, 0.8, 0.8),
  1728. SoundID = nil,
  1729. SoundPitch = nil,
  1730. SoundVolume = nil
  1731. })
  1732. WACKYEFFECT({
  1733. Time = 25,
  1734. EffectType = "Wave",
  1735. Size = VT(20, 0, 20),
  1736. Size2 = VT(60, 8, 60),
  1737. Transparency = 0.9,
  1738. Transparency2 = 1,
  1739. CFrame = WIND.CFrame * ANGLES(RAD(90), RAD(0), RAD(0)),
  1740. MoveToPos = nil,
  1741. RotationX = 0,
  1742. RotationY = 0,
  1743. RotationZ = 0,
  1744. Material = "Neon",
  1745. Color = C3(0.8, 0.8, 0.8),
  1746. SoundID = nil,
  1747. SoundPitch = nil,
  1748. SoundVolume = nil
  1749. })
  1750. break
  1751. end
  1752. end
  1753. PARTICLES.Enabled = false
  1754. Debris:AddItem(WIND, 7)
  1755. end))
  1756. wait(1)
  1757. CreateSound(462676772, Torso, 7, 1, false)
  1758. local Search = Character.Torso:GetChildren()
  1759. for i = 1, #Search do
  1760. if Search[i].Name == "WIng_1" then
  1761. Search[i].Fire.Speed = NumberRange.new(10,10)
  1762. end
  1763. end
  1764. local Search = Character:GetChildren()
  1765. for i = 1, #Search do
  1766. if Search[i].Name == "WIng_1" then
  1767. Search[i].Fire.Speed = NumberRange.new(10,10)
  1768. end
  1769. end
  1770. wait(0.25)
  1771. coroutine.resume(coroutine.create(function()
  1772. local FIREBALL = CreatePart(3, Effects, "Neon", 0, 1, "Cyan", "Flight", VT(5, 5, 5))
  1773. FIREBALL.CFrame = CF(RootPart.Position, Mouse.Hit.p)
  1774. local PARTICLES1 = script.PheonixFireball1:Clone()
  1775. PARTICLES1.Parent = FIREBALL
  1776. PARTICLES1.Enabled = true
  1777. local PARTICLES2 = script.PheonixFireball2:Clone()
  1778. PARTICLES2.Parent = FIREBALL
  1779. PARTICLES2.Enabled = true
  1780. CreateSound(463593339, FIREBALL, 6, 1, false)
  1781. for i = 1, 250 do
  1782. Swait()
  1783. local HIT, HITPOS = Raycast(FIREBALL.Position, FIREBALL.CFrame.lookVector, 2.5, Character)
  1784. FIREBALL.CFrame = FIREBALL.CFrame * CF(0, 0, -2)
  1785. if HIT then
  1786. ApplyAoE(FIREBALL.Position, 70, 45, 50, 35, true, MRANDOM(12, 16), "Pheonix", true, {
  1787. SHAKE = 2,
  1788. TIMER = 25,
  1789. DOESFADE = true
  1790. })
  1791. WACKYEFFECT({
  1792. Time = 60,
  1793. EffectType = "Sphere",
  1794. Size = VT(0, 0, 0),
  1795. Size2 = VT(120, 120, 120),
  1796. Transparency = 0,
  1797. Transparency2 = 1,
  1798. CFrame = CF(FIREBALL.Position),
  1799. MoveToPos = nil,
  1800. RotationX = 0,
  1801. RotationY = 0,
  1802. RotationZ = 0,
  1803. Material = "Neon",
  1804. Color = C3(1, 0.6666666666666666, 0),
  1805. SoundID = nil,
  1806. SoundPitch = nil,
  1807. SoundVolume = nil
  1808. })
  1809. WACKYEFFECT({
  1810. Time = 60,
  1811. EffectType = "Sphere",
  1812. Size = VT(0, 0, 0),
  1813. Size2 = VT(140, 140, 140),
  1814. Transparency = 0.5,
  1815. Transparency2 = 1,
  1816. CFrame = CF(FIREBALL.Position),
  1817. MoveToPos = nil,
  1818. RotationX = 0,
  1819. RotationY = 0,
  1820. RotationZ = 0,
  1821. Material = "Neon",
  1822. Color = PHEONIXCOLOR,
  1823. SoundID = 462692971,
  1824. SoundPitch = 1,
  1825. SoundVolume = 6
  1826. })
  1827. PARTICLES1.Enabled = false
  1828. PARTICLES2.Enabled = false
  1829. local EXPLOSION = script.PheonixExplosion1:Clone()
  1830. EXPLOSION.Parent = FIREBALL
  1831. EXPLOSION.Enabled = true
  1832. local EXPLOSION2 = script.PheonixExplosion2:Clone()
  1833. EXPLOSION2.Parent = FIREBALL
  1834. EXPLOSION2.Enabled = true
  1835. wait(0.3)
  1836. EXPLOSION.Enabled = false
  1837. EXPLOSION2.Enabled = false
  1838. break
  1839. end
  1840. end
  1841. PARTICLES1.Enabled = false
  1842. PARTICLES2.Enabled = false
  1843. Debris:AddItem(FIREBALL, 7)
  1844. end))
  1845. wait(0.5)
  1846. PARTICLES = false
  1847. ATTACK = false
  1848. Rooted = false
  1849. end
  1850. function PheonixFireballs()
  1851. ATTACK = true
  1852. local POWER = 1
  1853. DIRECTTURN = true
  1854. coroutine.resume(coroutine.create(function()
  1855. repeat
  1856. Swait()
  1857. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 + 1 * SIN(SINE / 24)) * ANGLES(RAD(0), RAD(0), RAD(24)), 2 / Animation_Speed)
  1858. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(20), RAD(0), RAD(-24)), 1 / Animation_Speed)
  1859. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.25, 0.5, -0.3) * ANGLES(RAD(90), RAD(0), RAD(24)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  1860. 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)
  1861. 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)
  1862. 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)
  1863. until ATTACK == false
  1864. end))
  1865. local RING1, WELD1, MESH1 = MagicRing(RightArm, CF(0, -1.2, 0) * ANGLES(RAD(0), RAD(180), RAD(0)), "Pheonix")
  1866. local RING2, WELD2, MESH2 = MagicRing(RightArm, CF(0, -1.6, 0) * ANGLES(RAD(0), RAD(180), RAD(0)), "Pheonix")
  1867. for i = 1, 35 do
  1868. Swait()
  1869. MESH1.Scale = MESH1.Scale + VT(6, 0, 6)
  1870. MESH2.Scale = MESH2.Scale + VT(3, 0, 3)
  1871. end
  1872. repeat
  1873. wait()
  1874. POWER = POWER + 1
  1875. until KEYHOLD == false
  1876. if POWER <= 30 then
  1877. for i = 1, 15 do
  1878. wait(0.1)
  1879. coroutine.resume(coroutine.create(function()
  1880. local FIREBALL = CreatePart(3, Effects, "Neon", 0, 1, "Cyan", "Flight", VT(5, 5, 5))
  1881. FIREBALL.CFrame = CF(RootPart.Position, Mouse.Hit.p)
  1882. local PARTICLES1 = script.PheonixFireball1:Clone()
  1883. PARTICLES1.Parent = FIREBALL
  1884. PARTICLES1.Enabled = true
  1885. local PARTICLES2 = script.PheonixFireball2:Clone()
  1886. PARTICLES2.Parent = FIREBALL
  1887. PARTICLES2.Enabled = true
  1888. PARTICLES1.Size = NumberSequence.new(3, 0)
  1889. PARTICLES2.Size = NumberSequence.new(3, 0)
  1890. CreateSound(463593339, FIREBALL, 6, 1, false)
  1891. for i = 1, 250 do
  1892. Swait()
  1893. local HIT, HITPOS = Raycast(FIREBALL.Position, FIREBALL.CFrame.lookVector, 4.5, Character)
  1894. FIREBALL.CFrame = FIREBALL.CFrame * CF(0, 0, -4)
  1895. if HIT then
  1896. ApplyAoE(FIREBALL.Position, 25, 5, 15, 5, true, MRANDOM(5, 6), "Pheonix", true, {
  1897. SHAKE = 2,
  1898. TIMER = 25,
  1899. DOESFADE = true
  1900. })
  1901. WACKYEFFECT({
  1902. Time = 60,
  1903. EffectType = "Sphere",
  1904. Size = VT(0, 0, 0),
  1905. Size2 = VT(100, 100, 100),
  1906. Transparency = 0,
  1907. Transparency2 = 1,
  1908. CFrame = CF(FIREBALL.Position),
  1909. MoveToPos = nil,
  1910. RotationX = 0,
  1911. RotationY = 0,
  1912. RotationZ = 0,
  1913. Material = "Neon",
  1914. Color = C3(1, 0.6666666666666666, 0),
  1915. SoundID = nil,
  1916. SoundPitch = nil,
  1917. SoundVolume = nil
  1918. })
  1919. WACKYEFFECT({
  1920. Time = 60,
  1921. EffectType = "Sphere",
  1922. Size = VT(0, 0, 0),
  1923. Size2 = VT(160, 160, 160),
  1924. Transparency = 0.5,
  1925. Transparency2 = 1,
  1926. CFrame = CF(FIREBALL.Position),
  1927. MoveToPos = nil,
  1928. RotationX = 0,
  1929. RotationY = 0,
  1930. RotationZ = 0,
  1931. Material = "Neon",
  1932. Color = PHEONIXCOLOR,
  1933. SoundID = 462692971,
  1934. SoundPitch = 1,
  1935. SoundVolume = 6
  1936. })
  1937. PARTICLES1.Enabled = false
  1938. PARTICLES2.Enabled = false
  1939. local EXPLOSION = script.PheonixExplosion1:Clone()
  1940. EXPLOSION.Parent = FIREBALL
  1941. EXPLOSION.Enabled = true
  1942. local EXPLOSION2 = script.PheonixExplosion2:Clone()
  1943. EXPLOSION2.Parent = FIREBALL
  1944. EXPLOSION2.Enabled = true
  1945. wait(0.3)
  1946. EXPLOSION.Enabled = false
  1947. EXPLOSION2.Enabled = false
  1948. break
  1949. end
  1950. end
  1951. PARTICLES1.Enabled = false
  1952. PARTICLES2.Enabled = false
  1953. Debris:AddItem(FIREBALL, 7)
  1954. end))
  1955. end
  1956. else
  1957. for E = 1, 5 do
  1958. do
  1959. local OFFSET = ANGLES(RAD(72 * E), RAD(72 * E), RAD(0)) * CF(0, 0, 75)
  1960. coroutine.resume(coroutine.create(function()
  1961. local FIREBALL = CreatePart(3, Effects, "Neon", 0, 1, "Cyan", "Flight", VT(10, 10, 10))
  1962. FIREBALL.CFrame = CF(RootPart.Position, CF(Mouse.Hit.p, RootPart.Position) * OFFSET.p)
  1963. local PARTICLES1 = script.PheonixFireball1:Clone()
  1964. PARTICLES1.Parent = FIREBALL
  1965. PARTICLES1.Enabled = true
  1966. local PARTICLES2 = script.PheonixFireball2:Clone()
  1967. PARTICLES2.Parent = FIREBALL
  1968. PARTICLES2.Enabled = true
  1969. CreateSound(463593339, FIREBALL, 6, 1, false)
  1970. for i = 1, 650 do
  1971. Swait()
  1972. local HIT, HITPOS = Raycast(FIREBALL.Position, FIREBALL.CFrame.lookVector, 2.5, Character)
  1973. FIREBALL.CFrame = FIREBALL.CFrame * CF(0, 0, -2)
  1974. if HIT then
  1975. ApplyAoE(FIREBALL.Position, 70, 45, 50, 35, true, MRANDOM(12, 16), "Pheonix", true, {
  1976. SHAKE = 2,
  1977. TIMER = 25,
  1978. DOESFADE = true
  1979. })
  1980. WACKYEFFECT({
  1981. Time = 60,
  1982. EffectType = "Sphere",
  1983. Size = VT(0, 0, 0),
  1984. Size2 = VT(140, 140, 140),
  1985. Transparency = 0,
  1986. Transparency2 = 1,
  1987. CFrame = CF(FIREBALL.Position),
  1988. MoveToPos = nil,
  1989. RotationX = 0,
  1990. RotationY = 0,
  1991. RotationZ = 0,
  1992. Material = "Neon",
  1993. Color = C3(1, 0.6666666666666666, 0),
  1994. SoundID = nil,
  1995. SoundPitch = nil,
  1996. SoundVolume = nil
  1997. })
  1998. WACKYEFFECT({
  1999. Time = 60,
  2000. EffectType = "Sphere",
  2001. Size = VT(0, 0, 0),
  2002. Size2 = VT(180, 180, 180),
  2003. Transparency = 0.5,
  2004. Transparency2 = 1,
  2005. CFrame = CF(FIREBALL.Position),
  2006. MoveToPos = nil,
  2007. RotationX = 0,
  2008. RotationY = 0,
  2009. RotationZ = 0,
  2010. Material = "Neon",
  2011. Color = PHEONIXCOLOR,
  2012. SoundID = 462692971,
  2013. SoundPitch = 1,
  2014. SoundVolume = 6
  2015. })
  2016. PARTICLES1.Enabled = false
  2017. PARTICLES2.Enabled = false
  2018. local EXPLOSION = script.PheonixExplosion1:Clone()
  2019. EXPLOSION.Parent = FIREBALL
  2020. EXPLOSION.Enabled = true
  2021. local EXPLOSION2 = script.PheonixExplosion2:Clone()
  2022. EXPLOSION2.Parent = FIREBALL
  2023. EXPLOSION2.Enabled = true
  2024. wait(0.3)
  2025. EXPLOSION.Enabled = false
  2026. EXPLOSION2.Enabled = false
  2027. break
  2028. end
  2029. end
  2030. PARTICLES1.Enabled = false
  2031. PARTICLES2.Enabled = false
  2032. Debris:AddItem(FIREBALL, 7)
  2033. end))
  2034. end
  2035. end
  2036. end
  2037. wait(0.5)
  2038. WELD1:remove()
  2039. WELD2:remove()
  2040. RING1.Anchored = true
  2041. RING2.Anchored = true
  2042. coroutine.resume(coroutine.create(function()
  2043. for i = 1, 35 do
  2044. Swait()
  2045. MESH1.Scale = MESH1.Scale - VT(6, 0, 6)
  2046. MESH2.Scale = MESH2.Scale - VT(3, 0, 3)
  2047. end
  2048. RING1:remove()
  2049. RING2:remove()
  2050. end))
  2051. DIRECTTURN = false
  2052. ATTACK = false
  2053. end
  2054. function PheonixJump()
  2055. local DONE = false
  2056. local STRENGTH = 15
  2057. local UP = 5
  2058. ATTACK = true
  2059. DIRECTTURN = true
  2060. local RING, WELD, MESH = MagicRing(RootPart, CF(0, -3.5, 0) * ANGLES(RAD(0), RAD(180), RAD(0)), "Pheonix")
  2061. for i = 1, 30 do
  2062. Swait()
  2063. MESH.Scale = MESH.Scale + VT(12, 0, 12)
  2064. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, -1.4) * ANGLES(RAD(0), RAD(-5), RAD(-15)), 2 / Animation_Speed)
  2065. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(15), RAD(0), RAD(15)), 0.5 / Animation_Speed)
  2066. 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)
  2067. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 2 / Animation_Speed)
  2068. 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)
  2069. 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)
  2070. end
  2071. local KEYDOWN = Mouse.KeyDown:connect(function(NEWKEY)
  2072. if NEWKEY == "w" and VALUE2 == false then
  2073. coroutine.resume(coroutine.create(function()
  2074. ApplyAoE(RING.Position, 35, 15, 20, 35, true, MRANDOM(120, 160), "Pheonix", true, {
  2075. SHAKE = 2,
  2076. TIMER = 15,
  2077. DOESFADE = true
  2078. })
  2079. WACKYEFFECT({
  2080. EffectType = "Sphere",
  2081. Size = VT(0, 0, 0),
  2082. Size2 = VT(80, 80, 80),
  2083. Transparency = 0,
  2084. Transparency2 = 1,
  2085. CFrame = CF(RING.Position),
  2086. MoveToPos = nil,
  2087. RotationX = 0,
  2088. RotationY = 0,
  2089. RotationZ = 0,
  2090. Material = "Neon",
  2091. Color = C3(1, 0.6666666666666666, 0),
  2092. SoundID = nil,
  2093. SoundPitch = nil,
  2094. SoundVolume = nil
  2095. })
  2096. WACKYEFFECT({
  2097. EffectType = "Sphere",
  2098. Size = VT(0, 0, 0),
  2099. Size2 = VT(100, 100, 100),
  2100. Transparency = 0.5,
  2101. Transparency2 = 1,
  2102. CFrame = CF(RING.Position),
  2103. MoveToPos = nil,
  2104. RotationX = 0,
  2105. RotationY = 0,
  2106. RotationZ = 0,
  2107. Material = "Neon",
  2108. Color = PHEONIXCOLOR,
  2109. SoundID = 462692971,
  2110. SoundPitch = 1.2,
  2111. SoundVolume = 6
  2112. })
  2113. local EXPLOSION = script.PheonixExplosion1:Clone()
  2114. EXPLOSION.Parent = RING
  2115. EXPLOSION.Enabled = true
  2116. local EXPLOSION2 = script.PheonixExplosion2:Clone()
  2117. EXPLOSION2.Parent = RING
  2118. EXPLOSION2.Enabled = true
  2119. wait(0.3)
  2120. EXPLOSION.Enabled = false
  2121. EXPLOSION2.Enabled = false
  2122. Debris:AddItem(RING, 3)
  2123. end))
  2124. CreateSound(462676772, Torso, 8, 1, false)
  2125. coroutine.resume(coroutine.create(function()
  2126. for i = 1, 25 do
  2127. Swait()
  2128. ApplyAoE(Torso.Position, 15, 15, 20, 75, true, MRANDOM(40, 50), "Pheonix", false, {
  2129. SHAKE = 4,
  2130. TIMER = 5,
  2131. DOESFADE = true
  2132. })
  2133. WACKYEFFECT({
  2134. Time = 10,
  2135. EffectType = "Wave",
  2136. Size = VT(45, 5, 45) / 3,
  2137. Size2 = VT(35, 200, 35) / 5,
  2138. Transparency = 0.8,
  2139. Transparency2 = 1,
  2140. CFrame = Torso.CFrame * ANGLES(RAD(180), RAD(0), RAD(0)),
  2141. MoveToPos = nil,
  2142. RotationX = 0,
  2143. RotationY = 5,
  2144. RotationZ = 0,
  2145. Material = "Neon",
  2146. Color = C3(1, 0.6666666666666666, 0),
  2147. SoundID = nil,
  2148. SoundPitch = nil,
  2149. SoundVolume = nil
  2150. })
  2151. WACKYEFFECT({
  2152. Time = 10,
  2153. EffectType = "Wave",
  2154. Size = VT(55, 5, 55) / 3,
  2155. Size2 = VT(45, 200, 45) / 5,
  2156. Transparency = 0.8,
  2157. Transparency2 = 1,
  2158. CFrame = Torso.CFrame * ANGLES(RAD(180), RAD(0), RAD(0)),
  2159. MoveToPos = nil,
  2160. RotationX = 0,
  2161. RotationY = -5,
  2162. RotationZ = 0,
  2163. Material = "Neon",
  2164. Color = PHEONIXCOLOR,
  2165. SoundID = nil,
  2166. SoundPitch = nil,
  2167. SoundVolume = nil
  2168. })
  2169. 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)
  2170. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(-20), RAD(0), RAD(0)), 1 / Animation_Speed)
  2171. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(-15), RAD(0), RAD(15)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  2172. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-15), RAD(0), RAD(-15)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  2173. 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)
  2174. 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)
  2175. end
  2176. ATTACK = false
  2177. end))
  2178. repeat
  2179. VALUE2 = true
  2180. Swait()
  2181. BODYPOS.Position = RootPart.CFrame * CF(0, UP, -STRENGTH).p
  2182. if STRENGTH > 2.5 then
  2183. STRENGTH = STRENGTH - 0.1
  2184. else
  2185. STRENGTH = 2.5
  2186. end
  2187. if UP > 0 then
  2188. UP = UP - 0.15
  2189. else
  2190. UP = 0
  2191. end
  2192. until KEYHOLD == false and STRENGTH < 5 and ATTACK == false
  2193. DONE = true
  2194. end
  2195. end)
  2196. repeat
  2197. Swait()
  2198. if STRENGTH < 50 then
  2199. STRENGTH = STRENGTH + 0.15
  2200. MESH.Scale = MESH.Scale + VT(0.5, 0, 0.5)
  2201. end
  2202. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, -1.4) * ANGLES(RAD(0), RAD(-5), RAD(-15)), 2 / Animation_Speed)
  2203. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(15), RAD(0), RAD(15)), 0.5 / Animation_Speed)
  2204. 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)
  2205. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 2 / Animation_Speed)
  2206. 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)
  2207. 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)
  2208. until VALUE2 == true
  2209. DIRECTTURN = false
  2210. WELD:remove()
  2211. RING.Anchored = true
  2212. local SIZE = MESH.Scale.X
  2213. coroutine.resume(coroutine.create(function()
  2214. for i = 1, 30 do
  2215. Swait()
  2216. MESH.Scale = MESH.Scale - VT(SIZE, 0, SIZE) / 30
  2217. end
  2218. RING:remove()
  2219. end))
  2220. repeat
  2221. wait()
  2222. until DONE == true
  2223. KEYDOWN:disconnect()
  2224. VALUE2 = false
  2225. end
  2226. function DragonFirePillar()
  2227. ATTACK = true
  2228. local POS = Mouse.Hit.p
  2229. APPLYGYRO = false
  2230. local RING, WELD, MESH = MagicRing(RightArm, CF(0, -1.2, 0) * ANGLES(RAD(0), RAD(180), RAD(0)), "Pheonix")
  2231. coroutine.resume(coroutine.create(function()
  2232. repeat
  2233. Swait()
  2234. GYRO.CFrame = CF(RootPart.Position, POS)
  2235. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 + 1 * SIN(SINE / 24)) * ANGLES(RAD(0), RAD(0), RAD(24)), 2 / Animation_Speed)
  2236. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(20), RAD(0), RAD(-24)), 1 / Animation_Speed)
  2237. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.25, 0.5, -0.3) * ANGLES(RAD(90), RAD(0), RAD(24)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  2238. 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)
  2239. 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)
  2240. 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)
  2241. until ATTACK == false
  2242. end))
  2243. for i = 1, 40 do
  2244. MESH.Scale = MESH.Scale + VT(4, 0, 4)
  2245. Swait()
  2246. end
  2247. for i = 1, 6 do
  2248. WACKYEFFECT({
  2249. EffectType = "Sphere",
  2250. Size = VT(35, 35, 35),
  2251. Size2 = VT(0, 0, 0),
  2252. Transparency = 1,
  2253. Transparency2 = 0.5,
  2254. CFrame = CF(POS),
  2255. MoveToPos = nil,
  2256. RotationX = 0,
  2257. RotationY = 0,
  2258. RotationZ = 0,
  2259. Material = "Neon",
  2260. Color = C3(1, 0.3333333333333333, 0),
  2261. SoundID = nil,
  2262. SoundPitch = nil,
  2263. SoundVolume = nil
  2264. })
  2265. wait(1)
  2266. end
  2267. coroutine.resume(coroutine.create(function()
  2268. coroutine.resume(coroutine.create(function()
  2269. for i = 1, 30 do
  2270. Swait()
  2271. MESH.Scale = MESH.Scale - VT(4, 0, 4)
  2272. end
  2273. RING:remove()
  2274. end))
  2275. WACKYEFFECT({
  2276. Time = 640,
  2277. EffectType = "Sphere",
  2278. Size = VT(200, 2000, 200),
  2279. Size2 = VT(100, 1000, 100),
  2280. Transparency = 0,
  2281. Transparency2 = 1,
  2282. CFrame = CF(POS),
  2283. MoveToPos = nil,
  2284. RotationX = 0,
  2285. RotationY = 0,
  2286. RotationZ = 0,
  2287. Material = "Neon",
  2288. Color = C3(1, 1, 1),
  2289. SoundID = nil,
  2290. SoundPitch = nil,
  2291. SoundVolume = nil
  2292. })
  2293. for i = 1, 15 do
  2294. ApplyAoE(POS, 35, 20, 30, 15, true, MRANDOM(300, 400), "Pheonix", true, {
  2295. SHAKE = 5,
  2296. TIMER = 6,
  2297. DOESFADE = true
  2298. })
  2299. WACKYEFFECT({
  2300. Time = 125,
  2301. EffectType = "Wave",
  2302. Size = VT(0, 5, 0),
  2303. Size2 = VT(350, 35, 350),
  2304. Transparency = 0.4,
  2305. Transparency2 = 1,
  2306. CFrame = CF(POS) * ANGLES(RAD(0), RAD(MRANDOM(0, 360)), RAD(0)),
  2307. MoveToPos = nil,
  2308. RotationX = 0,
  2309. RotationY = MRANDOM(-5, 5) * 2,
  2310. RotationZ = 0,
  2311. Material = "Neon",
  2312. Color = C3(1, 0.666666666, 0),
  2313. SoundID = nil,
  2314. SoundPitch = MRANDOM(9, 11) / 10,
  2315. SoundVolume = 4
  2316. })
  2317. WACKYEFFECT({
  2318. Time = 75,
  2319. EffectType = "Swirl",
  2320. Size = VT(20, 20, 20),
  2321. Size2 = VT(85, 800, 85),
  2322. Transparency = 0.4,
  2323. Transparency2 = 1,
  2324. CFrame = CF(POS) * ANGLES(RAD(0), RAD(MRANDOM(0, 360)), RAD(0)),
  2325. MoveToPos = nil,
  2326. RotationX = 0,
  2327. RotationY = MRANDOM(-5, 5) * 6,
  2328. RotationZ = 0,
  2329. Material = "Neon",
  2330. Color = C3(1, 0.66666666666, 0),
  2331. SoundID = nil,
  2332. SoundPitch = MRANDOM(9, 11) / 10,
  2333. SoundVolume = 4
  2334. })
  2335. WACKYEFFECT({
  2336. Time = 75,
  2337. EffectType = "Swirl",
  2338. Size = VT(20, 20, 20),
  2339. Size2 = VT(105, 750, 105),
  2340. Transparency = 0.4,
  2341. Transparency2 = 1,
  2342. CFrame = CF(POS) * ANGLES(RAD(0), RAD(MRANDOM(0, 360)), RAD(0)),
  2343. MoveToPos = nil,
  2344. RotationX = 0,
  2345. RotationY = MRANDOM(-5, 5) * 6,
  2346. RotationZ = 0,
  2347. Material = "Neon",
  2348. Color = C3(1, 0.666666666666666, 0),
  2349. SoundID = 304529688,
  2350. SoundPitch = MRANDOM(9, 11) / 10,
  2351. SoundVolume = 4
  2352. })
  2353. wait(0.6)
  2354. end
  2355. end))
  2356. APPLYGYRO = true
  2357. ATTACK = false
  2358. end
  2359. function PheonixTornado()
  2360. ATTACK = true
  2361. local BUILDUP = true
  2362. local HITS = {}
  2363. PARTICLES = true
  2364. coroutine.resume(coroutine.create(function()
  2365. repeat
  2366. Swait()
  2367. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 + 1 * SIN(SINE / 24)) * ANGLES(RAD(0), RAD(0), RAD(0)), 2 / Animation_Speed)
  2368. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(20), RAD(0), RAD(0)), 1 / Animation_Speed)
  2369. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(-15), RAD(25)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  2370. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(15), RAD(-25)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  2371. 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)
  2372. 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)
  2373. until BUILDUP == false
  2374. end))
  2375. --put it here
  2376. wait(1)
  2377. CreateSound(462676772, Torso, 7, 1, false)
  2378. --put it here 2
  2379. wait(0.25)
  2380. AddChildrenToTable(Torso.Position, workspace, 35, HITS)
  2381. WACKYEFFECT({
  2382. Time = 40,
  2383. EffectType = "Swirl",
  2384. Size = VT(50, 5, 50),
  2385. Size2 = VT(60, 70, 60),
  2386. Transparency = 0.8,
  2387. Transparency2 = 1,
  2388. CFrame = Torso.CFrame * ANGLES(RAD(180), RAD(0), RAD(0)),
  2389. MoveToPos = nil,
  2390. RotationX = 0,
  2391. RotationY = -5,
  2392. RotationZ = 0,
  2393. Material = "Neon",
  2394. Color = C3(0.8, 0.8, 0.8),
  2395. SoundID = nil,
  2396. SoundPitch = nil,
  2397. SoundVolume = nil
  2398. })
  2399. BUILDUP = false
  2400. PARTICLES = false
  2401. if #HITS > 0 then
  2402. do
  2403. local BODIES = {}
  2404. if #HITS == 1 then
  2405. for i = 1, #HITS do
  2406. local TORSO = HITS[i]:FindFirstChild("HumanoidRootPart") or HITS[i]:FindFirstChild("Torso") or HITS[i]:FindFirstChild("UpperTorso")
  2407. local HUM = HITS[i]:FindFirstChildOfClass("Humanoid")
  2408. if HUM and TORSO and 0 < HUM.Health then
  2409. local POSITION = IT("BodyPosition", TORSO)
  2410. POSITION.Position = RootPart.CFrame * CF(0, 45, -35).p
  2411. POSITION.D = 15
  2412. POSITION.P = 4000000
  2413. table.insert(BODIES, POSITION)
  2414. end
  2415. end
  2416. else
  2417. for i = 1, #HITS do
  2418. local TORSO = HITS[i]:FindFirstChild("HumanoidRootPart") or HITS[i]:FindFirstChild("Torso") or HITS[i]:FindFirstChild("UpperTorso")
  2419. local HUM = HITS[i]:FindFirstChildOfClass("Humanoid")
  2420. if HUM and TORSO and 0 < HUM.Health then
  2421. local POSITION = IT("BodyPosition", TORSO)
  2422. POSITION.Position = RootPart.CFrame * CF(0, 35, -35) * ANGLES(RAD(0), RAD(360 / #HITS * i), RAD(0)) * CF(0, 0, 10).p
  2423. POSITION.D = 450
  2424. POSITION.P = 40000
  2425. POSITION.maxForce = Vector3.new(math.huge, math.huge, math.huge)
  2426. table.insert(BODIES, POSITION)
  2427. end
  2428. end
  2429. end
  2430. local POS = RootPart.CFrame * CF(0, 35, -35).p
  2431. wait(1.75)
  2432. BODYPOS.D = 450
  2433. BODYPOS.Position = POS
  2434. wait(0.5)
  2435. APPLYGYRO = false
  2436. local E = 0
  2437. CreateSound(1417056081, RootPart, 10, 0.5, false)
  2438. for i = 1, 50 do
  2439. Swait()
  2440. E = E + 1
  2441. WACKYEFFECT({
  2442. Time = 25,
  2443. EffectType = "Wave",
  2444. Size = VT(45, 5, 45) / 3,
  2445. Size2 = VT(35, 200, 35) / 5,
  2446. Transparency = 0.8,
  2447. Transparency2 = 1,
  2448. CFrame = Torso.CFrame * ANGLES(RAD(180), RAD(0), RAD(0)),
  2449. MoveToPos = nil,
  2450. RotationX = 0,
  2451. RotationY = 5,
  2452. RotationZ = 0,
  2453. Material = "Neon",
  2454. Color = C3(1, 0.6666666666666666, 0),
  2455. SoundID = nil,
  2456. SoundPitch = nil,
  2457. SoundVolume = nil
  2458. })
  2459. WACKYEFFECT({
  2460. Time = 25,
  2461. EffectType = "Wave",
  2462. Size = VT(55, 5, 55) / 3,
  2463. Size2 = VT(45, 200, 45) / 5,
  2464. Transparency = 0.8,
  2465. Transparency2 = 1,
  2466. CFrame = Torso.CFrame * ANGLES(RAD(180), RAD(0), RAD(0)),
  2467. MoveToPos = nil,
  2468. RotationX = 0,
  2469. RotationY = -5,
  2470. RotationZ = 0,
  2471. Material = "Neon",
  2472. Color = PHEONIXCOLOR,
  2473. SoundID = nil,
  2474. SoundPitch = nil,
  2475. SoundVolume = nil
  2476. })
  2477. 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)
  2478. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(-20), RAD(0), RAD(0)), 1 / Animation_Speed)
  2479. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(-15), RAD(0), RAD(15)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  2480. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-15), RAD(0), RAD(-15)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  2481. 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)
  2482. 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)
  2483. end
  2484. local TORNADO = CreatePart(3, Effects, "Neon", 0, 1, "Really red", "Tornado", VT(0, 0, 0))
  2485. TORNADO.CFrame = CF(POS)
  2486. local MESH = CreateMesh("SpecialMesh", TORNADO, "FileMesh", "102638417", "", VT(25, 25, 25), VT(0, 0, 0))
  2487. local DECAL = IT("Decal", TORNADO)
  2488. DECAL.Texture = "rbxassetid://559849514"
  2489. DECAL.Transparency = 1
  2490. DECAL.Color3 = BRICKC("Deep orange").Color
  2491. local LOOP = 0
  2492. for i = 1, 250 do
  2493. Swait()
  2494. E = E + 1
  2495. LOOP = LOOP + 1
  2496. if LOOP == 10 then
  2497. LOOP = 0
  2498. ApplyAoE(TORNADO.Position, 35, 2, 2, 0, true, MRANDOM(3, 4), "Pheonix", true, {
  2499. SHAKE = 2,
  2500. TIMER = 4,
  2501. DOESFADE = true
  2502. })
  2503. end
  2504. TORNADO.CFrame = CF(POS) * ANGLES(RAD(0), RAD(-E * 10), RAD(0))
  2505. DECAL.Transparency = DECAL.Transparency - 0.002
  2506. WACKYEFFECT({
  2507. Time = 25,
  2508. EffectType = "Wave",
  2509. Size = VT(45, 5, 45) / 3,
  2510. Size2 = VT(35, 200, 35) / 5,
  2511. Transparency = 0.8,
  2512. Transparency2 = 1,
  2513. CFrame = Torso.CFrame * ANGLES(RAD(180), RAD(0), RAD(0)),
  2514. MoveToPos = nil,
  2515. RotationX = 0,
  2516. RotationY = 5,
  2517. RotationZ = 0,
  2518. Material = "Neon",
  2519. Color = C3(1, 0.6666666666666666, 0),
  2520. SoundID = nil,
  2521. SoundPitch = nil,
  2522. SoundVolume = nil
  2523. })
  2524. WACKYEFFECT({
  2525. Time = 25,
  2526. EffectType = "Wave",
  2527. Size = VT(55, 5, 55) / 3,
  2528. Size2 = VT(45, 200, 45) / 5,
  2529. Transparency = 0.9,
  2530. Transparency2 = 1,
  2531. CFrame = Torso.CFrame * ANGLES(RAD(180), RAD(0), RAD(0)),
  2532. MoveToPos = nil,
  2533. RotationX = 0,
  2534. RotationY = -5,
  2535. RotationZ = 0,
  2536. Material = "Neon",
  2537. Color = PHEONIXCOLOR,
  2538. SoundID = nil,
  2539. SoundPitch = nil,
  2540. SoundVolume = nil
  2541. })
  2542. 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)
  2543. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(-20), RAD(0), RAD(0)), 1 / Animation_Speed)
  2544. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(-15), RAD(0), RAD(15)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  2545. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-15), RAD(0), RAD(-15)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  2546. 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)
  2547. 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)
  2548. end
  2549. for i = 1, #BODIES do
  2550. BODIES[i]:remove()
  2551. end
  2552. coroutine.resume(coroutine.create(function()
  2553. for i = 1, 25 do
  2554. Swait()
  2555. DECAL.Transparency = DECAL.Transparency + 0.02
  2556. TORNADO.CFrame = CF(POS) * ANGLES(RAD(0), RAD(-E * 10), RAD(0))
  2557. end
  2558. TORNADO:remove()
  2559. end))
  2560. for i = 1, 75 do
  2561. Swait()
  2562. E = E + 1
  2563. LOOP = LOOP + 1
  2564. TORNADO.CFrame = CF(POS) * ANGLES(RAD(0), RAD(-E * 15), RAD(0))
  2565. DECAL.Transparency = DECAL.Transparency - 0.002
  2566. WACKYEFFECT({
  2567. Time = 25,
  2568. EffectType = "Wave",
  2569. Size = VT(45, 5, 45) / 3,
  2570. Size2 = VT(35, 200, 35) / 5,
  2571. Transparency = 0.8,
  2572. Transparency2 = 1,
  2573. CFrame = Torso.CFrame * ANGLES(RAD(180), RAD(0), RAD(0)),
  2574. MoveToPos = nil,
  2575. RotationX = 0,
  2576. RotationY = 5,
  2577. RotationZ = 0,
  2578. Material = "Neon",
  2579. Color = C3(1, 0.6666666666666666, 0),
  2580. SoundID = nil,
  2581. SoundPitch = nil,
  2582. SoundVolume = nil
  2583. })
  2584. WACKYEFFECT({
  2585. Time = 25,
  2586. EffectType = "Wave",
  2587. Size = VT(55, 5, 55) / 3,
  2588. Size2 = VT(45, 200, 45) / 5,
  2589. Transparency = 0.8,
  2590. Transparency2 = 1,
  2591. CFrame = Torso.CFrame * ANGLES(RAD(180), RAD(0), RAD(0)),
  2592. MoveToPos = nil,
  2593. RotationX = 0,
  2594. RotationY = -5,
  2595. RotationZ = 0,
  2596. Material = "Neon",
  2597. Color = PHEONIXCOLOR,
  2598. SoundID = nil,
  2599. SoundPitch = nil,
  2600. SoundVolume = nil
  2601. })
  2602. 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)
  2603. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(-20), RAD(0), RAD(0)), 1 / Animation_Speed)
  2604. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(-15), RAD(0), RAD(15)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  2605. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-15), RAD(0), RAD(-15)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  2606. 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)
  2607. 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)
  2608. end
  2609. BODYPOS.D = 75
  2610. end
  2611. end
  2612. APPLYGYRO = true
  2613. ATTACK = false
  2614. end
  2615. function PheonixNuke()
  2616. if Mouse.Target ~= nil then
  2617. ATTACK = true
  2618. Rooted = false
  2619. BODYPOS.Position = Mouse.Hit.p + VT(0, 6, 0)
  2620. BODYPOS.D = 700
  2621. coroutine.resume(coroutine.create(function()
  2622. repeat
  2623. Swait()
  2624. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 + 1 * SIN(SINE / 24)) * ANGLES(RAD(0), RAD(0), RAD(0)), 2 / Animation_Speed)
  2625. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(20), RAD(0), RAD(0)), 1 / Animation_Speed)
  2626. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(-15), RAD(25)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  2627. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(15), RAD(-25)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  2628. 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)
  2629. 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)
  2630. until ATTACK == false
  2631. end))
  2632. wait(1.5)
  2633. for i = 1, 4 do
  2634. WACKYEFFECT({
  2635. EffectType = "Sphere",
  2636. Size = VT(225, 225, 225),
  2637. Size2 = VT(0, 0, 0),
  2638. Transparency = 1,
  2639. Transparency2 = 0.8,
  2640. CFrame = CF(Torso.Position),
  2641. MoveToPos = nil,
  2642. RotationX = 0,
  2643. RotationY = 0,
  2644. RotationZ = 0,
  2645. Material = "Neon",
  2646. Color = PHEONIXCOLOR,
  2647. SoundID = nil,
  2648. SoundPitch = nil,
  2649. SoundVolume = nil
  2650. })
  2651. wait(0.7)
  2652. end
  2653. PARTICLES = true
  2654. local Search = Character.Torso:GetChildren()
  2655. for i = 1, #Search do
  2656. if Search[i].Name == "WIng_1" then
  2657. Search[i].Fire.Speed = NumberRange.new(10,10)
  2658. end
  2659. end
  2660. local Search = Character:GetChildren()
  2661. for i = 1, #Search do
  2662. if Search[i].Name == "WIng_1" then
  2663. Search[i].Fire.Speed = NumberRange.new(10,10)
  2664. end
  2665. end
  2666. wait(2)
  2667. CreateSound(462676772, Torso, 8, 1, false)
  2668. local Search = Character.Torso:GetChildren()
  2669. for i = 1, #Search do
  2670. if Search[i].Name == "WIng_1" then
  2671. Search[i].Fire.Speed = NumberRange.new(10,10)
  2672. end
  2673. end
  2674. local Search = Character:GetChildren()
  2675. for i = 1, #Search do
  2676. if Search[i].Name == "WIng_1" then
  2677. Search[i].Fire.Speed = NumberRange.new(10,10)
  2678. end
  2679. end
  2680. wait(1)
  2681. for i = 1, 5 do
  2682. local HITFLOOR, HITPOS = Raycast(RootPart.Position, CF(RootPart.Position, RootPart.Position + VT(0, -1, 0)).lookVector, 25, Character)
  2683. ApplyAoE(Torso.Position, 240, 25, 30, 165, true, MRANDOM(500, 700), "Pheonix", true, {
  2684. SHAKE = 8,
  2685. TIMER = 25,
  2686. DOESFADE = true
  2687. })
  2688. for i = 1, 10 do
  2689. WACKYEFFECT({
  2690. Time = 120,
  2691. EffectType = "Swirl",
  2692. Size = VT(20, 20, 20),
  2693. Size2 = (VT(280, 280, 280) + VT(50, 50, 50) * i) * 2,
  2694. Transparency = 0.8,
  2695. Transparency2 = 1,
  2696. CFrame = CF(Torso.Position) * ANGLES(RAD(0), RAD(i * 15), RAD(0)),
  2697. MoveToPos = nil,
  2698. RotationX = 0,
  2699. RotationY = 6 + i,
  2700. RotationZ = 0,
  2701. Material = "Neon",
  2702. Color = PHEONIXCOLOR,
  2703. SoundID = nil,
  2704. SoundPitch = nil,
  2705. SoundVolume = nil
  2706. })
  2707. end
  2708. WACKYEFFECT({
  2709. Time = 80,
  2710. EffectType = "Sphere",
  2711. Size = VT(40, 40, 40),
  2712. Size2 = VT(340, 340, 340) * 2,
  2713. Transparency = 0,
  2714. Transparency2 = 1,
  2715. CFrame = CF(Torso.Position),
  2716. MoveToPos = nil,
  2717. RotationX = 0,
  2718. RotationY = 0,
  2719. RotationZ = 0,
  2720. Material = "Neon",
  2721. Color = C3(1, 0.6666666666666666, 0),
  2722. SoundID = nil,
  2723. SoundPitch = 1,
  2724. SoundVolume = 8
  2725. })
  2726. WACKYEFFECT({
  2727. Time = 80,
  2728. EffectType = "Sphere",
  2729. Size = VT(50, 50, 50),
  2730. Size2 = VT(350, 350, 350) * 2,
  2731. Transparency = 0.5,
  2732. Transparency2 = 1,
  2733. CFrame = CF(Torso.Position),
  2734. MoveToPos = nil,
  2735. RotationX = 0,
  2736. RotationY = 0,
  2737. RotationZ = 0,
  2738. Material = "Neon",
  2739. Color = PHEONIXCOLOR,
  2740. SoundID = nil,
  2741. SoundPitch = 0.7,
  2742. SoundVolume = 10
  2743. })
  2744. local EXPLOSION = script.PheonixExplosion1:Clone()
  2745. EXPLOSION.Parent = Torso
  2746. EXPLOSION.Enabled = true
  2747. local EXPLOSION2 = script.PheonixExplosion2:Clone()
  2748. EXPLOSION2.Parent = Torso
  2749. EXPLOSION2.Enabled = true
  2750. EXPLOSION.Drag = -5
  2751. EXPLOSION2.Drag = -5
  2752. EXPLOSION:Emit(100)
  2753. EXPLOSION2:Emit(100)
  2754. CreateSound(462692971, Effects, 2, 1, false)
  2755. for i = 1, 5 do
  2756. wait()
  2757. WACKYEFFECT({
  2758. Time = 40,
  2759. EffectType = "Wave",
  2760. Size = VT(20, 0, 20),
  2761. Size2 = (VT(260, 6, 260) + VT(50, 4, 50) * i) * 2,
  2762. Transparency = 0.8,
  2763. Transparency2 = 1,
  2764. CFrame = CF(HITPOS) * ANGLES(RAD(0), RAD(i * 15), RAD(0)),
  2765. MoveToPos = nil,
  2766. RotationX = 0,
  2767. RotationY = -12 + i,
  2768. RotationZ = 0,
  2769. Material = "Neon",
  2770. Color = C3(1, 0.6666666666666666, 0),
  2771. SoundID = nil,
  2772. SoundPitch = nil,
  2773. SoundVolume = nil
  2774. })
  2775. WACKYEFFECT({
  2776. Time = 40,
  2777. EffectType = "Wave",
  2778. Size = VT(20, 0, 20),
  2779. Size2 = (VT(280, 6, 280) + VT(50, 5, 50) * i) * 2,
  2780. Transparency = 0.8,
  2781. Transparency2 = 1,
  2782. CFrame = CF(HITPOS) * ANGLES(RAD(0), RAD(i * 15), RAD(0)),
  2783. MoveToPos = nil,
  2784. RotationX = 0,
  2785. RotationY = -12 + i,
  2786. RotationZ = 0,
  2787. Material = "Neon",
  2788. Color = PHEONIXCOLOR,
  2789. SoundID = nil,
  2790. SoundPitch = nil,
  2791. SoundVolume = nil
  2792. })
  2793. end
  2794. EXPLOSION.Enabled = false
  2795. EXPLOSION2.Enabled = false
  2796. Debris:AddItem(EXPLOSION, 5)
  2797. Debris:AddItem(EXPLOSION2, 5)
  2798. wait(0.4)
  2799. end
  2800. wait(0.6)
  2801. PARTICLES = false
  2802. BODYPOS.D = 75
  2803. ATTACK = false
  2804. Rooted = false
  2805. end
  2806. end
  2807. function MouseDown(Mouse)
  2808. if ATTACK == false then
  2809. end
  2810. end
  2811. function MouseUp(Mouse)
  2812. HOLD = false
  2813. end
  2814. function KeyDown(Key)
  2815. KEYHOLD = true
  2816. if EQUIPPED == true then
  2817. if FLIGHT == false then
  2818. if Key == "z" and ATTACK == false then
  2819. ShootingStar()
  2820. end
  2821. if Key == "b" and ATTACK == false then
  2822. Breath()
  2823. end
  2824. if Key == "c" and ATTACK == false then
  2825. PheonixRage()
  2826. end
  2827. if Key == "q" and ATTACK == false then
  2828. FLIGHT = true
  2829. GYRO = IT("BodyGyro", RootPart)
  2830. GYRO.D = 75
  2831. GYRO.P = 40000
  2832. GYRO.MaxTorque = VT(40000, 40000, 40000)
  2833. GYRO.cframe = CF(RootPart.Position, RootPart.CFrame * CF(0, 0, -1).p)
  2834. BODYPOS = Instance.new("BodyPosition", RootPart)
  2835. BODYPOS.D = 100
  2836. BODYPOS.P = 20000
  2837. BODYPOS.maxForce = Vector3.new(math.huge, math.huge, math.huge)
  2838. BODYPOS.position = RootPart.Position + VT(0, 3, 0)
  2839. do
  2840. local RING, WELD, MESH = MagicRing(Torso, CF(0, 0.5, 1) * ANGLES(RAD(-90), RAD(0), RAD(0)), "Pheonix")
  2841. FLIGHTRING = RING
  2842. coroutine.resume(coroutine.create(function()
  2843. for i = 1, 40 do
  2844. Swait()
  2845. MESH.Scale = MESH.Scale + VT(4, 0, 4)
  2846. end
  2847. end))
  2848. PheonixJump()
  2849. end
  2850. end
  2851. elseif FLIGHT == true then
  2852. if Key == "z" and ATTACK == false and VALUE2 == false then
  2853. ThreeShootingStars()
  2854. end
  2855. if Key == "p" and ATTACK == false and VALUE2 == false then
  2856. Sunshine()
  2857. end
  2858. if Key == "b" and ATTACK == false and VALUE2 == false then
  2859. PheonixFlare()
  2860. end
  2861. if Key == "g" and ATTACK == false and VALUE2 == false then
  2862. DragonFirePillar()
  2863. end
  2864. if Key == "v" and ATTACK == false and VALUE2 == false then
  2865. PheonixTornado()
  2866. end
  2867. if Key == "j" and ATTACK == false and VALUE2 == false then
  2868. Nightmode()
  2869. end
  2870. if Key == "m" and ATTACK == false and VALUE2 == false then
  2871. Sunmode()
  2872. end
  2873. if Key == "x" and ATTACK == false and VALUE2 == false then
  2874. PheonixNuke()
  2875. end
  2876. if Key == "q" and ATTACK == false and VALUE2 == false then
  2877. FLIGHT = false
  2878. off()
  2879. coroutine.resume(coroutine.create(function()
  2880. if FLIGHTRING then
  2881. local MSH = FLIGHTRING.Mesh
  2882. local RING = FLIGHTRING
  2883. for i = 1, 40 do
  2884. Swait()
  2885. MSH.Scale = MSH.Scale - VT(4, 0, 4)
  2886. end
  2887. RING:remove()
  2888. end
  2889. end))
  2890. end
  2891. if Key == "c" and ATTACK == false and VALUE2 == false then
  2892. PheonixJump()
  2893. end
  2894. if Key == "e" and ATTACK == false and VALUE2 == false then
  2895. PheonixFireballs()()
  2896. end
  2897. if Key == "w" and ATTACK == false and VALUE2 == false then
  2898. repeat
  2899. VALUE2 = true
  2900. Swait()
  2901. BODYPOS.Position = RootPart.CFrame * CF(0, 0, -2.5).p
  2902. until KEYHOLD == false
  2903. VALUE2 = false
  2904. end
  2905. end
  2906. end
  2907. if Key == "f" and ATTACK == false and FLIGHT == false then
  2908. if EQUIPPED == false then
  2909. EQUIPPED = true
  2910. intro()
  2911. EYE.Enabled = true
  2912. EYE2.Enabled = true
  2913. sick:Play()
  2914. sick.Pitch = 0.95
  2915. sick.Volume = .1
  2916. else
  2917. EQUIPPED = false
  2918. FLIGHT = false
  2919. EYE.Enabled = false
  2920. EYE2.Enabled = false
  2921. sick:Stop()
  2922. end
  2923. end
  2924. if string.byte(Key) == 50 and ATTACK == false then
  2925. if Speed == 16 then
  2926. Speed = 45
  2927. elseif Speed == 45 then
  2928. Speed = 16
  2929. end
  2930. end
  2931. end
  2932. function KeyUp(Key)
  2933. KEYHOLD = false
  2934. end
  2935. Mouse.Button1Down:connect(function(NEWKEY)
  2936. MouseDown(NEWKEY)
  2937. end)
  2938. Mouse.Button1Up:connect(function(NEWKEY)
  2939. MouseUp(NEWKEY)
  2940. end)
  2941. Mouse.KeyDown:connect(function(NEWKEY)
  2942. KeyDown(NEWKEY)
  2943. end)
  2944. Mouse.KeyUp:connect(function(NEWKEY)
  2945. KeyUp(NEWKEY)
  2946. end)
  2947. function unanchor()
  2948. if UNANCHOR == true then
  2949. g = Character:GetChildren()
  2950. for i = 1, #g do
  2951. if g[i].ClassName == "Part" then
  2952. g[i].Anchored = false
  2953. end
  2954. end
  2955. end
  2956. end
  2957. Humanoid.Changed:connect(function(Jump)
  2958. if Jump == "Jump" and Disable_Jump == true then
  2959. Humanoid.Jump = false
  2960. end
  2961. end)
  2962. local LOOP = 0
  2963. local TWIST = true
  2964. while true do
  2965. Swait()
  2966. script.Parent = WEAPONGUI
  2967. ANIMATE.Parent = nil
  2968. for _, v in next, Humanoid:GetPlayingAnimationTracks() do
  2969. v:Stop()
  2970. end
  2971. SINE = SINE + CHANGE
  2972. local TORSOVELOCITY = (RootPart.Velocity * VT(1, 0, 1)).magnitude
  2973. local TORSOVERTICALVELOCITY = RootPart.Velocity.y
  2974. local HITFLOOR = Raycast(RootPart.Position, CF(RootPart.Position, RootPart.Position + VT(0, -1, 0)).lookVector, 4, Character)
  2975. local WALKSPEEDVALUE = 5
  2976. if ANIM == "Walk" and TORSOVELOCITY > 1 and FLIGHT == false then
  2977. if Humanoid.WalkSpeed <= 20 then
  2978. 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)
  2979. 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)
  2980. 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)
  2981. 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)
  2982. else
  2983. 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)
  2984. 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)
  2985. 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)
  2986. 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)
  2987. end
  2988. elseif ANIM ~= "Walk" or TORSOVELOCITY < 1 or FLIGHT == true then
  2989. RootJoint.C1 = Clerp(RootJoint.C1, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  2990. 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)
  2991. 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)
  2992. 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)
  2993. end
  2994. if FLIGHT == false then
  2995. if GYRO ~= nil then
  2996. GYRO:remove()
  2997. end
  2998. if BODYPOS ~= nil then
  2999. BODYPOS:remove()
  3000. end
  3001. if TORSOVERTICALVELOCITY > 1 and HITFLOOR == nil then
  3002. ANIM = "Jump"
  3003. if ATTACK == false then
  3004. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  3005. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(-20), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  3006. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(-40), RAD(0), RAD(20)) * RIGHTSHOULDERC0, 0.2 / Animation_Speed)
  3007. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-40), RAD(0), RAD(-20)) * LEFTSHOULDERC0, 0.2 / Animation_Speed)
  3008. 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)
  3009. 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)
  3010. end
  3011. elseif TORSOVERTICALVELOCITY < -1 and HITFLOOR == nil then
  3012. ANIM = "Fall"
  3013. if ATTACK == false then
  3014. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  3015. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(20), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  3016. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(60)) * RIGHTSHOULDERC0, 0.2 / Animation_Speed)
  3017. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-60)) * LEFTSHOULDERC0, 0.2 / Animation_Speed)
  3018. 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)
  3019. 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)
  3020. end
  3021. elseif TORSOVELOCITY < 1 and HITFLOOR ~= nil then
  3022. ANIM = "Idle"
  3023. if ATTACK == false then
  3024. 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)
  3025. 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)
  3026. 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)
  3027. 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)
  3028. 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)
  3029. 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)
  3030. end
  3031. elseif TORSOVELOCITY > 1 and HITFLOOR ~= nil then
  3032. ANIM = "Walk"
  3033. if ATTACK == false then
  3034. if Humanoid.WalkSpeed <= 30 then
  3035. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, -0.1) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  3036. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  3037. 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)
  3038. 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)
  3039. 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)
  3040. 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)
  3041. elseif Humanoid.WalkSpeed > 30 then
  3042. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, -0.1) * ANGLES(RAD(35), RAD(0), RAD(0)), 1 / Animation_Speed)
  3043. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(-35), RAD(0), RAD(0)), 1 / Animation_Speed)
  3044. 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)
  3045. 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)
  3046. 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)
  3047. 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)
  3048. end
  3049. end
  3050. end
  3051. elseif FLIGHT == true then
  3052. if APPLYGYRO == true then
  3053. if VALUE2 == false and DIRECTTURN == false then
  3054. if GYRO ~= nil then
  3055. GYRO.MaxTorque = VT(0, 40000, 0)
  3056. GYRO.cframe = CF(RootPart.Position, Mouse.Hit.p)
  3057. end
  3058. elseif GYRO ~= nil then
  3059. GYRO.MaxTorque = VT(40000, 40000, 40000)
  3060. GYRO.cframe = CF(RootPart.Position, Mouse.Hit.p)
  3061. end
  3062. end
  3063. if VALUE2 == false and ATTACK == false then
  3064. ANIM = "IdleFlight"
  3065. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 + 1 * SIN(SINE / 24)) * ANGLES(RAD(0), RAD(0), RAD(0)), 2 / Animation_Speed)
  3066. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(20), RAD(0), RAD(0)), 1 / Animation_Speed)
  3067. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(-15), RAD(25)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  3068. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(15), RAD(-25)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  3069. 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)
  3070. 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)
  3071. elseif VALUE2 == true and ATTACK == false then
  3072. ANIM = "Flight"
  3073. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 + 1 * SIN(SINE / 24)) * ANGLES(RAD(65), RAD(0), RAD(0)), 1 / Animation_Speed)
  3074. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(-20), RAD(0), RAD(0)), 1 / Animation_Speed)
  3075. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(-15), RAD(0), RAD(15)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  3076. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-15), RAD(0), RAD(-15)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  3077. 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)
  3078. 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)
  3079. end
  3080. end
  3081. local ACCEL1 = VT(10, 2 - 6 * COS(SINE / 24), -4 - 2 * COS(SINE / 24))
  3082. local ACCEL2 = VT(-10, 2 - 6 * COS(SINE / 24), -4 - 2 * COS(SINE / 24))
  3083. if PARTICLES == false then
  3084. --put it here 4
  3085. end
  3086. if FLIGHT == true or WINGS == true then
  3087. --put it here3
  3088. else
  3089. --put it here3
  3090. end
  3091. unanchor()
  3092. TRAIL1.Enabled = FLIGHT
  3093. TRAIL2.Enabled = FLIGHT
  3094. LIGHT.Enabled = EQUIPPED
  3095. Humanoid.MaxHealth = "inf"
  3096. Humanoid.Health = "inf"
  3097. if Rooted == false and FLIGHT == false then
  3098. Disable_Jump = false
  3099. Humanoid.WalkSpeed = Speed
  3100. elseif Rooted == true or FLIGHT == true then
  3101. Disable_Jump = true
  3102. Humanoid.WalkSpeed = 0
  3103. end
  3104.  
  3105. if FLIGHT == true then
  3106. sick.Pitch = 1
  3107. sick.Volume = 1.5
  3108. LOOP = LOOP + 1
  3109. if LOOP >= 10 then
  3110. local HITFLOOR, HITPOS = Raycast(RootPart.Position, CF(RootPart.Position, RootPart.Position + VT(0, -1, 0)).lookVector, 15, Character)
  3111. if HITFLOOR then
  3112. local DISTANCE = (RootPart.Position - HITPOS).Magnitude
  3113. local SIZE = (26 - DISTANCE) * 2
  3114. if TWIST == true then
  3115. TWIST = false
  3116. WACKYEFFECT({
  3117. Time = 25,
  3118. EffectType = "Wave",
  3119. Size = VT(SIZE / 2, 0, SIZE / 2),
  3120. Size2 = VT(SIZE, 6, SIZE),
  3121. Transparency = 0.6,
  3122. Transparency2 = 1,
  3123. CFrame = CF(HITPOS) * ANGLES(RAD(0), RAD(MRANDOM(0, 360)), RAD(0)) * ANGLES(RAD(MRANDOM(-5, 5)), RAD(0), RAD(MRANDOM(-5, 5))),
  3124. MoveToPos = nil,
  3125. RotationX = 0,
  3126. RotationY = 15,
  3127. RotationZ = 0,
  3128. Material = "Neon",
  3129. Color = C3(1, (205 + 35 * SIN(SINE / 24)) / 255, 0.5 + 0.5 * SIN(SINE / 24)),
  3130. SoundID = nil,
  3131. SoundPitch = nil,
  3132. SoundVolume = nil
  3133. })
  3134. else
  3135. TWIST = true
  3136. WACKYEFFECT({
  3137. Time = 25,
  3138. EffectType = "Wave",
  3139. Size = VT(SIZE / 2, 0, SIZE / 2),
  3140. Size2 = VT(SIZE, 6, SIZE),
  3141. Transparency = 0.6,
  3142. Transparency2 = 1,
  3143. CFrame = CF(HITPOS) * ANGLES(RAD(0), RAD(MRANDOM(0, 360)), RAD(0)) * ANGLES(RAD(MRANDOM(-5, 5)), RAD(0), RAD(MRANDOM(-5, 5))),
  3144. MoveToPos = nil,
  3145. RotationX = 0,
  3146. RotationY = -15,
  3147. RotationZ = 0,
  3148. Material = "Neon",
  3149. Color = C3(1, (205 + 35 * SIN(SINE / 24)) / 255, 0.5 + 0.5 * SIN(SINE / 24)),
  3150. SoundID = nil,
  3151. SoundPitch = nil,
  3152. SoundVolume = nil
  3153. })
  3154. end
  3155. LOOP = 0
  3156. end
  3157. end
  3158. else
  3159. end
  3160. sick.Parent = Character
  3161. Humanoid.Name = "WarPheonix"
  3162. end
  3163.  
  3164. end))
  3165.  
  3166. ParticleEmitter1.Name = "RingEmit"
  3167. ParticleEmitter1.Parent = LocalScript0
  3168. ParticleEmitter1.Transparency = NumberSequence.new(1,0.12568306922913,0,0,0.41530054807663,1)
  3169. ParticleEmitter1.Rotation = NumberRange.new(0, 360)
  3170. ParticleEmitter1.Size = NumberSequence.new(0,6.2841534614563,5.027322769165,2.8961749076843,0)
  3171. ParticleEmitter1.Enabled = false
  3172. ParticleEmitter1.LightEmission = 1
  3173. ParticleEmitter1.Texture = "rbxassetid://1493478120"
  3174. ParticleEmitter1.ZOffset = 1
  3175. ParticleEmitter1.Lifetime = NumberRange.new(0.60000002384186, 0.60000002384186)
  3176. ParticleEmitter1.Rate = 5
  3177. ParticleEmitter1.Speed = NumberRange.new(0, 0)
  3178. ParticleEmittera.Name = "SunEmit"
  3179. ParticleEmittera.Parent = LocalScript0
  3180. ParticleEmittera.Transparency = NumberSequence.new(1,0.12568306922913,0,0,0.41530054807663,1)
  3181. ParticleEmittera.Rotation = NumberRange.new(0, 360)
  3182. ParticleEmittera.Size = NumberSequence.new(20,20)
  3183. ParticleEmittera.Enabled = false
  3184. ParticleEmittera.RotSpeed = NumberRange.new(-6, 6)
  3185. ParticleEmittera.LightEmission = 1
  3186. ParticleEmittera.Texture = "rbxassetid://1493478120"
  3187. ParticleEmittera.ZOffset = 1
  3188. ParticleEmittera.Lifetime = NumberRange.new(0.60000002384186, 0.60000002384186)
  3189. ParticleEmittera.Rate = 50
  3190. ParticleEmittera.Color = ColorSequence.new(BrickColor.new("Bright yellow").Color)
  3191. ParticleEmittera.Speed = NumberRange.new(0, 0)
  3192. ParticleEmitter2.Name = "Wing1"
  3193. ParticleEmitter2.Parent = LocalScript0
  3194. ParticleEmitter2.Transparency = NumberSequence.new(1,0.58469945192337,0.24590164422989,0,0.22950822114944,0.62841534614563,1)
  3195. ParticleEmitter2.Rotation = NumberRange.new(0, 360)
  3196. ParticleEmitter2.Size = NumberSequence.new(0,0.062499642372131,0.81250011920929,2.6875,3.3125,2.5624995231628,2.3125,1.8124997615814)
  3197. ParticleEmitter2.Enabled = false
  3198. ParticleEmitter2.LightEmission = 1
  3199. ParticleEmitter2.Texture = "rbxassetid://296874871"
  3200. ParticleEmitter2.Acceleration = Vector3.new(5, 4, -4)
  3201. ParticleEmitter2.Lifetime = NumberRange.new(2, 2)
  3202. ParticleEmitter2.Rate = 300
  3203. ParticleEmitter2.RotSpeed = NumberRange.new(-56, 56)
  3204. ParticleEmitter2.Speed = NumberRange.new(4, 4)
  3205. ParticleEmitter2.VelocitySpread = 35
  3206. ParticleEmitter3.Name = "SunFireball"
  3207. ParticleEmitter3.Parent = LocalScript0
  3208. ParticleEmitter3.Transparency = NumberSequence.new(0.47540986537933,0.37704920768738,0.25683063268661,0.4426229596138,0.62841534614563,1)
  3209. ParticleEmitter3.Rotation = NumberRange.new(0, 360)
  3210. ParticleEmitter3.Size = NumberSequence.new(10,8.125,5.6875,1.1250001192093,0)
  3211. ParticleEmitter3.Color = ColorSequence.new(Color3.new(1, 0.666667, 0),Color3.new(1, 0.666667, 0))
  3212. ParticleEmitter3.Enabled = false
  3213. ParticleEmitter3.LightEmission = 0.75
  3214. ParticleEmitter3.Texture = "rbxassetid://296874871"
  3215. ParticleEmitter3.ZOffset = 0.20000000298023
  3216. ParticleEmitter3.Acceleration = Vector3.new(0, 5, 0)
  3217. ParticleEmitter3.Lifetime = NumberRange.new(1, 1)
  3218. ParticleEmitter3.Rate = 300
  3219. ParticleEmitter3.RotSpeed = NumberRange.new(-56, 56)
  3220. ParticleEmitter3.Speed = NumberRange.new(3, 3)
  3221. ParticleEmitter3.VelocitySpread = 360
  3222. ParticleEmitter3.Color = ColorSequence.new(Color3.new(1, 0.666667, 0),Color3.new(1, 0.666667, 0))
  3223. ParticleEmitter4.Name = "SunExplosion"
  3224. ParticleEmitter4.Parent = LocalScript0
  3225. ParticleEmitter4.Transparency = NumberSequence.new(0.47540986537933,0.37704920768738,0.25683063268661,0.4426229596138,0.62841534614563,1)
  3226. ParticleEmitter4.Rotation = NumberRange.new(0, 360)
  3227. ParticleEmitter4.Size = NumberSequence.new(5,7.875,7.875,5.3125,0)
  3228. ParticleEmitter4.Color = ColorSequence.new(Color3.new(1, 0.666667, 0),Color3.new(1, 0.666667, 0))
  3229. ParticleEmitter4.Enabled = false
  3230. ParticleEmitter4.LightEmission = 0.75
  3231. ParticleEmitter4.Texture = "rbxassetid://296874871"
  3232. ParticleEmitter4.ZOffset = 0.20000000298023
  3233. ParticleEmitter4.Acceleration = Vector3.new(0, 5, 0)
  3234. ParticleEmitter4.Lifetime = NumberRange.new(0, 3)
  3235. ParticleEmitter4.Rate = 300
  3236. ParticleEmitter4.RotSpeed = NumberRange.new(-56, 56)
  3237. ParticleEmitter4.Speed = NumberRange.new(150, 350)
  3238. ParticleEmitter4.VelocitySpread = 360
  3239. ParticleEmitter4.Color = ColorSequence.new(Color3.new(1, 0.666667, 0),Color3.new(1, 0.666667, 0))
  3240. ParticleEmitter5.Name = "SunBurn"
  3241. ParticleEmitter5.Parent = LocalScript0
  3242. ParticleEmitter5.Transparency = NumberSequence.new(0.47540986537933,0.37704920768738,0.25683063268661,0.4426229596138,0.62841534614563,1)
  3243. ParticleEmitter5.Rotation = NumberRange.new(0, 360)
  3244. ParticleEmitter5.Size = NumberSequence.new(0.81250011920929,0.81250011920929,0)
  3245. ParticleEmitter5.Color = ColorSequence.new(Color3.new(1, 0.666667, 0),Color3.new(1, 0.666667, 0))
  3246. ParticleEmitter5.Enabled = false
  3247. ParticleEmitter5.LightEmission = 0.75
  3248. ParticleEmitter5.Texture = "rbxassetid://296874871"
  3249. ParticleEmitter5.ZOffset = 0.5
  3250. ParticleEmitter5.Acceleration = Vector3.new(0, 5, 0)
  3251. ParticleEmitter5.Lifetime = NumberRange.new(1, 1)
  3252. ParticleEmitter5.Rate = 300
  3253. ParticleEmitter5.RotSpeed = NumberRange.new(-56, 56)
  3254. ParticleEmitter5.Speed = NumberRange.new(1, 1)
  3255. ParticleEmitter5.VelocitySpread = 360
  3256. ParticleEmitter5.Color = ColorSequence.new(Color3.new(1, 0.666667, 0),Color3.new(1, 0.666667, 0))
  3257. ParticleEmitter6.Name = "PheonixBurn"
  3258. ParticleEmitter6.Parent = LocalScript0
  3259. ParticleEmitter6.Transparency = NumberSequence.new(0.47540986537933,0.37704920768738,0.25683063268661,0.4426229596138,0.62841534614563,1)
  3260. ParticleEmitter6.Rotation = NumberRange.new(0, 360)
  3261. ParticleEmitter6.Size = NumberSequence.new(0.81250011920929,0.81250011920929,0)
  3262. ParticleEmitter6.Enabled = false
  3263. ParticleEmitter6.LightEmission = 1
  3264. ParticleEmitter6.Texture = "rbxassetid://296874871"
  3265. ParticleEmitter6.ZOffset = 0.5
  3266. ParticleEmitter6.Acceleration = Vector3.new(0, 8, 0)
  3267. ParticleEmitter6.Lifetime = NumberRange.new(1, 1)
  3268. ParticleEmitter6.Rate = 300
  3269. ParticleEmitter6.RotSpeed = NumberRange.new(-56, 56)
  3270. ParticleEmitter6.Speed = NumberRange.new(1, 1)
  3271. ParticleEmitter6.VelocitySpread = 360
  3272. ParticleEmitter7.Name = "PheonixExplosion1"
  3273. ParticleEmitter7.Parent = LocalScript0
  3274. ParticleEmitter7.Transparency = NumberSequence.new(0.47540986537933,0.37704920768738,0.25683063268661,0.4426229596138,0.62841534614563,1)
  3275. ParticleEmitter7.Rotation = NumberRange.new(0, 360)
  3276. ParticleEmitter7.Size = NumberSequence.new(10.3124996423721,14.8125,15.6875,13.4999995231628,0)
  3277. ParticleEmitter7.Enabled = false
  3278. ParticleEmitter7.LightEmission = 1
  3279. ParticleEmitter7.Texture = "rbxassetid://296874871"
  3280. ParticleEmitter7.ZOffset = 0.20000000298023
  3281. ParticleEmitter7.Acceleration = Vector3.new(0, 5, 0)
  3282. ParticleEmitter7.Lifetime = NumberRange.new(0, 3)
  3283. ParticleEmitter7.Rate = 600
  3284. ParticleEmitter7.RotSpeed = NumberRange.new(-56, 56)
  3285. ParticleEmitter7.Speed = NumberRange.new(50, 50)
  3286. ParticleEmitter7.VelocitySpread = 360
  3287. ParticleEmitter8.Name = "PheonixExplosion2"
  3288. ParticleEmitter8.Parent = LocalScript0
  3289. ParticleEmitter8.Transparency = NumberSequence.new(0.47540986537933,0.37704920768738,0.25683063268661,0.4426229596138,0.62841534614563,1)
  3290. ParticleEmitter8.Rotation = NumberRange.new(0, 360)
  3291. ParticleEmitter8.Size = NumberSequence.new(14,14)
  3292. ParticleEmitter8.Color = ColorSequence.new(Color3.new(1, 0.666667, 0),Color3.new(1, 0.666667, 0))
  3293. ParticleEmitter8.Enabled = false
  3294. ParticleEmitter8.LightEmission = 0.69999998807907
  3295. ParticleEmitter8.ZOffset = 0.20000000298023
  3296. ParticleEmitter8.Acceleration = Vector3.new(0, 5, 0)
  3297. ParticleEmitter8.Lifetime = NumberRange.new(0, 3)
  3298. ParticleEmitter8.Rate = 300
  3299. ParticleEmitter8.RotSpeed = NumberRange.new(-56, 56)
  3300. ParticleEmitter8.Speed = NumberRange.new(70, 70)
  3301. ParticleEmitter8.VelocitySpread = 360
  3302. ParticleEmitter8.Color = ColorSequence.new(Color3.new(1, 0.666667, 0),Color3.new(1, 0.666667, 0))
  3303. LocalScript9.Name = "CamShake"
  3304. LocalScript9.Parent = LocalScript0
  3305. LocalScript9.Disabled = true
  3306. NumberValue10.Name = "Timer"
  3307. NumberValue10.Parent = LocalScript9
  3308. NumberValue10.Value = 35
  3309. NumberValue11.Name = "Shake"
  3310. NumberValue11.Parent = LocalScript9
  3311. NumberValue11.Value = 5
  3312. BoolValue12.Name = "DoesFade"
  3313. BoolValue12.Parent = LocalScript9
  3314. ParticleEmitter13.Name = "Gale"
  3315. ParticleEmitter13.Parent = LocalScript0
  3316. ParticleEmitter13.Transparency = NumberSequence.new(1,0.91256833076477,0.83606559038162,0.81967210769653,1)
  3317. ParticleEmitter13.Rotation = NumberRange.new(0, 360)
  3318. ParticleEmitter13.Size = NumberSequence.new(20,10)
  3319. ParticleEmitter13.Enabled = false
  3320. ParticleEmitter13.Texture = "rbxassetid://1614893149"
  3321. ParticleEmitter13.Lifetime = NumberRange.new(1, 1)
  3322. ParticleEmitter13.Rate = 50
  3323. ParticleEmitter13.Speed = NumberRange.new(0, 0)
  3324. ParticleEmitter14.Name = "PheonixFireball1"
  3325. ParticleEmitter14.Parent = LocalScript0
  3326. ParticleEmitter14.Transparency = NumberSequence.new(0.47540986537933,0.37704920768738,0.25683063268661,0.4426229596138,0.62841534614563,1)
  3327. ParticleEmitter14.Rotation = NumberRange.new(0, 360)
  3328. ParticleEmitter14.Size = NumberSequence.new(10.625,8.625,6.4375,4.3124996423721,0)
  3329. ParticleEmitter14.Enabled = false
  3330. ParticleEmitter14.LightEmission = 1
  3331. ParticleEmitter14.Texture = "rbxassetid://296874871"
  3332. ParticleEmitter14.ZOffset = 0.5
  3333. ParticleEmitter14.Lifetime = NumberRange.new(0.60000002384186, 0.60000002384186)
  3334. ParticleEmitter14.Rate = 1000
  3335. ParticleEmitter14.RotSpeed = NumberRange.new(-56, 56)
  3336. ParticleEmitter14.Speed = NumberRange.new(4, 4)
  3337. ParticleEmitter14.VelocitySpread = 360
  3338. ParticleEmitter15.Name = "PheonixFireball2"
  3339. ParticleEmitter15.Parent = LocalScript0
  3340. ParticleEmitter15.Transparency = NumberSequence.new(0.47540986537933,0.37704920768738,0.25683063268661,0.4426229596138,0.62841534614563,1)
  3341. ParticleEmitter15.Rotation = NumberRange.new(0, 360)
  3342. ParticleEmitter15.Size = NumberSequence.new(10.3125,8.1530055999756,6.8961749076843,4.1475414037704,0)
  3343. ParticleEmitter15.Color = ColorSequence.new(Color3.new(1, 0.666667, 0),Color3.new(1, 0.666667, 0))
  3344. ParticleEmitter15.Enabled = false
  3345. ParticleEmitter15.LightEmission = 0.69999998807907
  3346. ParticleEmitter15.ZOffset = 1
  3347. ParticleEmitter15.Lifetime = NumberRange.new(0.60000002384186, 0.60000002384186)
  3348. ParticleEmitter15.Rate = 300
  3349. ParticleEmitter15.RotSpeed = NumberRange.new(-56, 56)
  3350. ParticleEmitter15.Speed = NumberRange.new(4, 4)
  3351. ParticleEmitter15.VelocitySpread = 360
  3352. ParticleEmitter15.Color = ColorSequence.new(Color3.new(1, 0.666667, 0),Color3.new(1, 0.666667, 0))
  3353. ParticleEmitter16.Name = "Wing2"
  3354. ParticleEmitter16.Parent = LocalScript0
  3355. ParticleEmitter16.Transparency = NumberSequence.new(1,0.58469945192337,0.24590164422989,0,0.22950822114944,0.62841534614563,1)
  3356. ParticleEmitter16.Rotation = NumberRange.new(0, 360)
  3357. ParticleEmitter16.Size = NumberSequence.new(0,0.062499642372131,0.81250011920929,2.6875,3.3125,2.5624995231628,2.3125,1.8124997615814)
  3358. ParticleEmitter16.Enabled = false
  3359. ParticleEmitter16.LightEmission = 1
  3360. ParticleEmitter16.Texture = "rbxassetid://296874871"
  3361. ParticleEmitter16.Acceleration = Vector3.new(-5, 4, -4)
  3362. ParticleEmitter16.Lifetime = NumberRange.new(2, 2)
  3363. ParticleEmitter16.Rate = 300
  3364. ParticleEmitter16.RotSpeed = NumberRange.new(-56, 56)
  3365. ParticleEmitter16.Speed = NumberRange.new(4, 4)
  3366. ParticleEmitter16.VelocitySpread = 35
  3367. ParticleEmitter17.Name = "Wing1B"
  3368. ParticleEmitter17.Parent = LocalScript0
  3369. ParticleEmitter17.Transparency = NumberSequence.new(1,0.58469945192337,0.24590164422989,0,0.20765030384064,0.5956284403801,1)
  3370. ParticleEmitter17.Rotation = NumberRange.new(0, 360)
  3371. ParticleEmitter17.Size = NumberSequence.new(0,0,1.8579238653183,2.4043715000153,1.8124997615814,0)
  3372. ParticleEmitter17.Color = ColorSequence.new(Color3.new(1, 0.666667, 0),Color3.new(1, 0.666667, 0))
  3373. ParticleEmitter17.Enabled = false
  3374. ParticleEmitter17.LightEmission = 0.69999998807907
  3375. ParticleEmitter17.ZOffset = 0.20000000298023
  3376. ParticleEmitter17.Acceleration = Vector3.new(5, 4, -4)
  3377. ParticleEmitter17.Lifetime = NumberRange.new(1.9500000476837, 1.9500000476837)
  3378. ParticleEmitter17.Rate = 150
  3379. ParticleEmitter17.RotSpeed = NumberRange.new(-56, 56)
  3380. ParticleEmitter17.Speed = NumberRange.new(4, 4)
  3381. ParticleEmitter17.VelocitySpread = 35
  3382. ParticleEmitter17.Color = ColorSequence.new(Color3.new(1, 0.666667, 0),Color3.new(1, 0.666667, 0))
  3383. ParticleEmitter18.Name = "Eye1"
  3384. ParticleEmitter18.EmissionDirection="Right"
  3385. ParticleEmitter18.Parent = LocalScript0
  3386. ParticleEmitter18.Transparency = NumberSequence.new(0.55737709999084,0.37704920768738,0.4426229596138,0.62841534614563,1)
  3387. ParticleEmitter18.Rotation = NumberRange.new(0, 360)
  3388. ParticleEmitter18.Size = NumberSequence.new(0.40000000596046,0.12499988079071,0)
  3389. ParticleEmitter18.Enabled = false
  3390. ParticleEmitter18.LightEmission = 0.75
  3391. ParticleEmitter18.Texture = "rbxassetid://296874871"
  3392. ParticleEmitter18.ZOffset = 0.20000000298023
  3393. ParticleEmitter18.Acceleration = Vector3.new(0, 5, 6)
  3394. ParticleEmitter18.Lifetime = NumberRange.new(1, 1)
  3395. ParticleEmitter18.Rate = 300
  3396. ParticleEmitter18.RotSpeed = NumberRange.new(-56, 56)
  3397. ParticleEmitter18.VelocitySpread = 5
  3398. ParticleEmitter19.Name = "Eye2"
  3399. ParticleEmitter19.Parent = LocalScript0
  3400. ParticleEmitter19.EmissionDirection="Right"
  3401. ParticleEmitter19.Transparency = NumberSequence.new(0.71584701538086,0.68306010961533,0.37704920768738,0.4426229596138,0.62841534614563,1)
  3402. ParticleEmitter19.Rotation = NumberRange.new(0, 360)
  3403. ParticleEmitter19.Size = NumberSequence.new(0.65573811531067,0.2732241153717,0)
  3404. ParticleEmitter19.Color = ColorSequence.new(Color3.new(1, 0.666667, 0),Color3.new(1, 0.666667, 0))
  3405. ParticleEmitter19.Enabled = false
  3406. ParticleEmitter19.LightEmission = 0.75
  3407. ParticleEmitter19.ZOffset = 0.30000001192093
  3408. ParticleEmitter19.Acceleration = Vector3.new(0, 5, 6)
  3409. ParticleEmitter19.Lifetime = NumberRange.new(0.5, 0.5)
  3410. ParticleEmitter19.Rate = 300
  3411. ParticleEmitter19.RotSpeed = NumberRange.new(-56, 56)
  3412. ParticleEmitter19.VelocitySpread = 5
  3413. ParticleEmitter19.Color = ColorSequence.new(Color3.new(1, 0.666667, 0),Color3.new(1, 0.666667, 0))
  3414. ParticleEmitter20.Name = "Wing2B"
  3415. ParticleEmitter20.Parent = LocalScript0
  3416. ParticleEmitter20.Transparency = NumberSequence.new(1,0.58469945192337,0.24590164422989,0,0.20765030384064,0.5956284403801,1)
  3417. ParticleEmitter20.Rotation = NumberRange.new(0, 360)
  3418. ParticleEmitter20.Size = NumberSequence.new(0,0,1.8579238653183,2.4043715000153,1.8124997615814,0)
  3419. ParticleEmitter20.Color = ColorSequence.new(Color3.new(1, 0.666667, 0),Color3.new(1, 0.666667, 0))
  3420. ParticleEmitter20.Enabled = false
  3421. ParticleEmitter20.LightEmission = 0.69999998807907
  3422. ParticleEmitter20.ZOffset = 0.20000000298023
  3423. ParticleEmitter20.Acceleration = Vector3.new(-5, 4, -4)
  3424. ParticleEmitter20.Lifetime = NumberRange.new(1.9500000476837, 1.9500000476837)
  3425. ParticleEmitter20.Rate = 150
  3426. ParticleEmitter20.RotSpeed = NumberRange.new(-56, 56)
  3427. ParticleEmitter20.Speed = NumberRange.new(4, 4)
  3428. ParticleEmitter20.VelocitySpread = 35
  3429. ParticleEmitter20.Color = ColorSequence.new(Color3.new(1, 0.666667, 0),Color3.new(1, 0.666667, 0))
  3430. ParticleEmitter21.Name = "Burn"
  3431. ParticleEmitter21.Parent = LocalScript0
  3432. ParticleEmitter21.Transparency = NumberSequence.new(0.47540986537933,0.37704920768738,0.25683063268661,0.4426229596138,0.62841534614563,1)
  3433. ParticleEmitter21.Rotation = NumberRange.new(0, 360)
  3434. ParticleEmitter21.Size = NumberSequence.new(0.98360657691956,0.32786905765533,0)
  3435. ParticleEmitter21.Color = ColorSequence.new(Color3.new(1, 0.333333, 0),Color3.new(1, 0.333333, 0))
  3436. ParticleEmitter21.Enabled = false
  3437. ParticleEmitter21.LightEmission = 0.75
  3438. ParticleEmitter21.Texture = "rbxassetid://296874871"
  3439. ParticleEmitter21.ZOffset = 0.5
  3440. ParticleEmitter21.Acceleration = Vector3.new(0, 5, 0)
  3441. ParticleEmitter21.Lifetime = NumberRange.new(1, 1)
  3442. ParticleEmitter21.Rate = 300
  3443. ParticleEmitter21.RotSpeed = NumberRange.new(-56, 56)
  3444. ParticleEmitter21.Speed = NumberRange.new(1, 1)
  3445. ParticleEmitter21.VelocitySpread = 360
  3446. ParticleEmitter21.Color = ColorSequence.new(Color3.new(1, 0.333333, 0),Color3.new(1, 0.333333, 0))
  3447. ParticleEmitter22.Name = "PheonixTrail"
  3448. ParticleEmitter22.Parent = LocalScript0
  3449. ParticleEmitter22.Transparency = NumberSequence.new(0.47540986537933,0.37704920768738,0.25683063268661,0.4426229596138,0.62841534614563,1)
  3450. ParticleEmitter22.Rotation = NumberRange.new(0, 360)
  3451. ParticleEmitter22.Size = NumberSequence.new(0.49180328845978,0.4371589422226,0)
  3452. ParticleEmitter22.Color = ColorSequence.new(Color3.new(1, 1, 1),Color3.new(1, 0.835294, 0))
  3453. ParticleEmitter22.Enabled = false
  3454. ParticleEmitter22.LightEmission = 0.75
  3455. ParticleEmitter22.Texture = "rbxassetid://296874871"
  3456. ParticleEmitter22.ZOffset = 0.5
  3457. ParticleEmitter22.Lifetime = NumberRange.new(1, 1)
  3458. ParticleEmitter22.Rate = 300
  3459. ParticleEmitter22.RotSpeed = NumberRange.new(-56, 56)
  3460. ParticleEmitter22.Speed = NumberRange.new(0, 0)
  3461. ParticleEmitter22.VelocitySpread = 360
  3462. ParticleEmitter22.Color = ColorSequence.new(Color3.new(1, 1, 1),Color3.new(1, 0.835294, 0))
  3463. for i,v in pairs(mas:GetChildren()) do
  3464. v.Parent = game:GetService("Lighting")
  3465. pcall(function() v:MakeJoints() end)
  3466. end
  3467. mas:Destroy()
  3468. for i,v in pairs(cors) do
  3469. spawn(function()
  3470. pcall(v)
  3471. end)
  3472. end
  3473.  
  3474.  
  3475.  
  3476. local Num = 0.5
  3477.  
  3478. local Num2 = 4 -------------Mods:1,4,8,10,15,20-------------------------------------
  3479. local Size = 0.8
  3480. local Rate = 300
  3481. -------------------------------------------------------------------------------------
  3482. local Player = game.Players.LocalPlayer
  3483. local Character = Player.Character
  3484. Torso = Character:FindFirstChild("Torso")
  3485.  
  3486. local Wing1 = Instance.new("Part",Character)
  3487. Wing1.FormFactor = Enum.FormFactor.Custom
  3488. Wing1.Size = Vector3.new(.2, .2, .2)
  3489. Wing1.Name = "WIng_1"
  3490.  
  3491. local fire = Instance.new("ParticleEmitter", Wing1)
  3492. fire.VelocitySpread = 0
  3493. fire.Lifetime = NumberRange.new(2)
  3494. fire.Acceleration = Vector3.new(0, 2, 2)
  3495. fire.Speed = NumberRange.new(10,10)
  3496. fire.RotSpeed = NumberRange.new(10)
  3497. fire.Rate = Rate
  3498. fire.Rotation = NumberRange.new(151515)
  3499. fire.Name = "Fire"
  3500. fire.LightEmission = 0.78
  3501. fire.Enabled = false
  3502. fire.LockedToPart = true
  3503. fire.Texture = "rbxasset://textures/particles/explosion01_implosion_main.dds"
  3504. fire.Color = ColorSequence.new(Color, Color2)
  3505. fire.Size = NumberSequence.new({NumberSequenceKeypoint.new(0, Size), NumberSequenceKeypoint.new(.7, 5), NumberSequenceKeypoint.new(1, 0)})
  3506.  
  3507. local Wing2 = Wing1:Clone()
  3508. Wing2.Parent = Torso
  3509. local x,y,z = 0,-1,-6
  3510.  
  3511. Wld = function(a,b,cf)
  3512. local Weld = Instance.new('Weld',a)
  3513. Weld.Part0 = a
  3514. Weld.Part1 = b
  3515. Weld.C1 = cf
  3516. return Weld
  3517. end
  3518.  
  3519. local wld = Wld(Torso,Wing1,CFrame.new(0,0,-.5)*CFrame.Angles(-math.rad(90),-math.rad(20),-math.rad(90)))
  3520. local wld2 = Wld(Torso,Wing2,CFrame.new(0,0,.5)*CFrame.Angles(-math.rad(90),-math.rad(20),-math.rad(90)))
  3521.  
  3522.  
  3523. game:service'RunService'.Stepped:connect(function()
  3524. z = 6+math.sin(tick()*2)
  3525. y = -1+math.sin(tick()*Num)*Num2
  3526. Wing1.Fire.Acceleration = Vector3.new(x,y,z)
  3527. Wing2.Fire.Acceleration = Vector3.new(x,y,-z)
  3528. end)
  3529. ------------------------------------------------------------------------------------------------
  3530. local Player = game.Players.LocalPlayer
  3531. local Character = Player.Character
  3532. Torso = Character:FindFirstChild("Torso")
  3533.  
  3534. local Wing1 = Instance.new("Part",Character)
  3535. Wing1.FormFactor = Enum.FormFactor.Custom
  3536. Wing1.Size = Vector3.new(.2, .2, .2)
  3537. Wing1.Name = "WIng_1"
  3538.  
  3539. local fire = Instance.new("ParticleEmitter", Wing1)
  3540. fire.VelocitySpread = 0
  3541. fire.Lifetime = NumberRange.new(2.5)
  3542. fire.Acceleration = Vector3.new(0, 4, 4)
  3543. fire.RotSpeed = NumberRange.new(10)
  3544. fire.Rate = Rate
  3545. fire.Enabled = false
  3546. fire.Rotation = NumberRange.new(151515)
  3547. fire.Name = "Fire"
  3548. fire.LightEmission = 0.78
  3549. fire.LockedToPart = true
  3550. fire.Speed = NumberRange.new(10,10)
  3551. fire.Texture = "rbxasset://textures/particles/explosion01_implosion_main.dds"
  3552. fire.Color = ColorSequence.new(Color, Color2)
  3553. fire.Size = NumberSequence.new({NumberSequenceKeypoint.new(0, Size), NumberSequenceKeypoint.new(.7, 5), NumberSequenceKeypoint.new(1, 0)})
  3554. local Wing2 = Wing1:Clone()
  3555. Wing2.Parent = Torso
  3556. local x,y,z = 0,-1,-6
  3557.  
  3558. Wld = function(a,b,cf)
  3559. local Weld = Instance.new('Weld',a)
  3560. Weld.Part0 = a
  3561. Weld.Part1 = b
  3562. Weld.C1 = cf
  3563. return Weld
  3564. end
  3565.  
  3566. local wld = Wld(Torso,Wing1,CFrame.new(0,0,-.5)*CFrame.Angles(-math.rad(90),-math.rad(30),-math.rad(90)))
  3567. local wld2 = Wld(Torso,Wing2,CFrame.new(0,0,.5)*CFrame.Angles(-math.rad(90),-math.rad(30),-math.rad(90)))
  3568.  
  3569. print'Loaded'
  3570.  
  3571. game:service'RunService'.Stepped:connect(function()
  3572. z = 6+math.sin(tick()*2)
  3573. y = -1+math.sin(tick()*Num)*Num2
  3574. Wing1.Fire.Acceleration = Vector3.new(x,y,z)
  3575. Wing2.Fire.Acceleration = Vector3.new(x,y,-z)
  3576. end)
  3577.  
  3578. ------------------------------------------------------------------------------------------------
  3579. local Player = game.Players.LocalPlayer
  3580. local Character = Player.Character
  3581. Torso = Character:FindFirstChild("Torso")
  3582.  
  3583. local Wing1 = Instance.new("Part",Character)
  3584. Wing1.FormFactor = Enum.FormFactor.Custom
  3585. Wing1.Size = Vector3.new(.2, .2, .2)
  3586. Wing1.Name = "WIng_1"
  3587.  
  3588. local fire = Instance.new("ParticleEmitter", Wing1)
  3589. fire.VelocitySpread = 0
  3590. fire.Lifetime = NumberRange.new(2.8)
  3591. fire.Acceleration = Vector3.new(0, 4, 4)
  3592. fire.RotSpeed = NumberRange.new(10)
  3593. fire.Speed = NumberRange.new(10,10)
  3594. fire.Rate = Rate
  3595. fire.Rotation = NumberRange.new(151515)
  3596. fire.Name = "Fire"
  3597. fire.Enabled = false
  3598. fire.LightEmission = 0.78
  3599. fire.LockedToPart = true
  3600. fire.Texture = "rbxasset://textures/particles/explosion01_implosion_main.dds"
  3601. fire.Color = ColorSequence.new(Color, Color2)
  3602. fire.Size = NumberSequence.new({NumberSequenceKeypoint.new(0, Size), NumberSequenceKeypoint.new(.7, 5), NumberSequenceKeypoint.new(1, 0)})
  3603.  
  3604. local Wing2 = Wing1:Clone()
  3605. Wing2.Parent = Torso
  3606. local x,y,z = 0,-1,-6
  3607.  
  3608. Wld = function(a,b,cf)
  3609. local Weld = Instance.new('Weld',a)
  3610. Weld.Part0 = a
  3611. Weld.Part1 = b
  3612. Weld.C1 = cf
  3613. return Weld
  3614. end
  3615.  
  3616. local wld = Wld(Torso,Wing1,CFrame.new(0,0,-.5)*CFrame.Angles(-math.rad(90),-math.rad(40),-math.rad(90)))
  3617. local wld2 = Wld(Torso,Wing2,CFrame.new(0,0,.5)*CFrame.Angles(-math.rad(90),-math.rad(40),-math.rad(90)))
  3618.  
  3619. print'Loaded'
  3620.  
  3621. game:service'RunService'.Stepped:connect(function()
  3622. z = 6+math.sin(tick()*2)
  3623. y = -1+math.sin(tick()*Num)*Num2
  3624. Wing1.Fire.Acceleration = Vector3.new(x,y,z)
  3625. Wing2.Fire.Acceleration = Vector3.new(x,y,-z)
  3626. end)
  3627.  
  3628. ------------------------------------------------------------------------------------------------
  3629. local Player = game.Players.LocalPlayer
  3630. local Character = Player.Character
  3631. Torso = Character:FindFirstChild("Torso")
  3632.  
  3633. local Wing1 = Instance.new("Part",Character)
  3634. Wing1.FormFactor = Enum.FormFactor.Custom
  3635. Wing1.Size = Vector3.new(.2, .2, .2)
  3636. Wing1.Name = "WIng_1"
  3637.  
  3638. local fire = Instance.new("ParticleEmitter", Wing1)
  3639. fire.VelocitySpread = 0
  3640. fire.Lifetime = NumberRange.new(3)
  3641. fire.Acceleration = Vector3.new(0, 4, 4)
  3642. fire.RotSpeed = NumberRange.new(10)
  3643. fire.Rate = Rate
  3644. fire.Speed = NumberRange.new(10,10)
  3645. fire.Rotation = NumberRange.new(151515)
  3646. fire.Name = "Fire"
  3647. fire.Enabled = false
  3648. fire.LightEmission = 0.78
  3649. fire.LockedToPart = true
  3650. fire.Texture = "rbxasset://textures/particles/explosion01_implosion_main.dds"
  3651. fire.Color = ColorSequence.new(Color, Color2)
  3652. fire.Size = NumberSequence.new({NumberSequenceKeypoint.new(0, Size), NumberSequenceKeypoint.new(.7, 5), NumberSequenceKeypoint.new(1, 0)})
  3653.  
  3654. local Wing2 = Wing1:Clone()
  3655. Wing2.Parent = Torso
  3656. local x,y,z = 0,-1,-6
  3657.  
  3658. Wld = function(a,b,cf)
  3659. local Weld = Instance.new('Weld',a)
  3660. Weld.Part0 = a
  3661. Weld.Part1 = b
  3662. Weld.C1 = cf
  3663. return Weld
  3664. end
  3665.  
  3666. local wld = Wld(Torso,Wing1,CFrame.new(0,0,-.5)*CFrame.Angles(-math.rad(90),-math.rad(50),-math.rad(90)))
  3667. local wld2 = Wld(Torso,Wing2,CFrame.new(0,0,.5)*CFrame.Angles(-math.rad(90),-math.rad(50),-math.rad(90)))
  3668.  
  3669. print'Loaded'
  3670.  
  3671. game:service'RunService'.Stepped:connect(function()
  3672. z = 6+math.sin(tick()*2)
  3673. y = -1+math.sin(tick()*Num)*Num2
  3674. Wing1.Fire.Acceleration = Vector3.new(x,y,z)
  3675. Wing2.Fire.Acceleration = Vector3.new(x,y,-z)
  3676. end)
  3677.  
  3678. ------------------------------------------------------------------------------------------------
  3679. local Player = game.Players.LocalPlayer
  3680. local Character = Player.Character
  3681. Torso = Character:FindFirstChild("Torso")
  3682.  
  3683. local Wing1 = Instance.new("Part",Character)
  3684. Wing1.FormFactor = Enum.FormFactor.Custom
  3685. Wing1.Size = Vector3.new(.2, .2, .2)
  3686. Wing1.Name = "WIng_1"
  3687.  
  3688. local fire = Instance.new("ParticleEmitter", Wing1)
  3689. fire.VelocitySpread = 0
  3690. fire.Lifetime = NumberRange.new(3.1)
  3691. fire.Acceleration = Vector3.new(0, 4, 4)
  3692. fire.RotSpeed = NumberRange.new(10)
  3693. fire.Rate = Rate
  3694. fire.Enabled = false
  3695. fire.Rotation = NumberRange.new(151515)
  3696. fire.Name = "Fire"
  3697. fire.LightEmission = 0.78
  3698. fire.LockedToPart = true
  3699. fire.Speed = NumberRange.new(10,10)
  3700. fire.Texture = "rbxasset://textures/particles/explosion01_implosion_main.dds"
  3701. fire.Color = ColorSequence.new(Color, Color2)
  3702. fire.Size = NumberSequence.new({NumberSequenceKeypoint.new(0, Size), NumberSequenceKeypoint.new(.7, 5), NumberSequenceKeypoint.new(1, 0)})
  3703.  
  3704. local Wing2 = Wing1:Clone()
  3705. Wing2.Parent = Torso
  3706. local x,y,z = 0,-1,-6
  3707.  
  3708. Wld = function(a,b,cf)
  3709. local Weld = Instance.new('Weld',a)
  3710. Weld.Part0 = a
  3711. Weld.Part1 = b
  3712. Weld.C1 = cf
  3713. return Weld
  3714. end
  3715.  
  3716. local wld = Wld(Torso,Wing1,CFrame.new(0,0,-.5)*CFrame.Angles(-math.rad(90),-math.rad(60),-math.rad(90)))
  3717. local wld2 = Wld(Torso,Wing2,CFrame.new(0,0,.5)*CFrame.Angles(-math.rad(90),-math.rad(60),-math.rad(90)))
  3718.  
  3719. print'Loaded'
  3720.  
  3721. game:service'RunService'.Stepped:connect(function()
  3722. z = 6+math.sin(tick()*2)
  3723. y = -1+math.sin(tick()*Num)*Num2
  3724. Wing1.Fire.Acceleration = Vector3.new(x,y,z)
  3725. Wing2.Fire.Acceleration = Vector3.new(x,y,-z)
  3726. end)
Add Comment
Please, Sign In to add comment