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