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