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