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