SHOW:
|
|
- or go back to the newest paste.
1 | local Player = game:GetService("Players").baldiwrds --- Name Change | |
2 | - | --Converted with ttyyuu12345's model to script plugin v4 |
2 | + | local Mouse,mouse,UserInputService,ContextActionService |
3 | - | function sandbox(var,func) |
3 | + | do |
4 | - | local env = getfenv(func) |
4 | + | script.Parent = Player.Character |
5 | - | local newenv = setmetatable({},{ |
5 | + | local CAS = {Actions={}} |
6 | - | __index = function(self,k) |
6 | + | local Event = Instance.new("RemoteEvent") |
7 | - | if k=="script" then |
7 | + | Event.Name = "UserInput_Event" |
8 | - | return var |
8 | + | Event.Parent = Player.Character |
9 | local fakeEvent = function() | |
10 | - | return env[k] |
10 | + | local t = {_fakeEvent=true} |
11 | t.Connect = function(self,f)self.Function=f end | |
12 | - | end, |
12 | + | t.connect = t.Connect |
13 | - | }) |
13 | + | return t |
14 | - | setfenv(func,newenv) |
14 | + | |
15 | - | return func |
15 | + | local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()} |
16 | local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()} | |
17 | - | cors = {} |
17 | + | function CAS:BindAction(name,fun,touch,...) |
18 | - | mas = Instance.new("Model",game:GetService("Lighting")) |
18 | + | CAS.Actions[name] = {Name=name,Function=fun,Keys={...}} |
19 | - | LocalScript0 = Instance.new("LocalScript") |
19 | + | |
20 | - | ParticleEmitter1 = Instance.new("ParticleEmitter") |
20 | + | function CAS:UnbindAction(name) |
21 | - | ParticleEmitter2 = Instance.new("ParticleEmitter") |
21 | + | CAS.Actions[name] = nil |
22 | - | ParticleEmitter3 = Instance.new("ParticleEmitter") |
22 | + | |
23 | - | ParticleEmitter4 = Instance.new("ParticleEmitter") |
23 | + | local function te(self,ev,...) |
24 | - | ParticleEmitter5 = Instance.new("ParticleEmitter") |
24 | + | local t = m[ev] |
25 | - | ParticleEmitter6 = Instance.new("ParticleEmitter") |
25 | + | if t and t._fakeEvent and t.Function then |
26 | - | ParticleEmitter7 = Instance.new("ParticleEmitter") |
26 | + | t.Function(...) |
27 | - | ParticleEmitter8 = Instance.new("ParticleEmitter") |
27 | + | |
28 | - | LocalScript9 = Instance.new("LocalScript") |
28 | + | |
29 | - | NumberValue10 = Instance.new("NumberValue") |
29 | + | m.TrigEvent = te |
30 | - | NumberValue11 = Instance.new("NumberValue") |
30 | + | UIS.TrigEvent = te |
31 | - | BoolValue12 = Instance.new("BoolValue") |
31 | + | Event.OnServerEvent:Connect(function(plr,io) |
32 | - | ParticleEmitter13 = Instance.new("ParticleEmitter") |
32 | + | if plr~=Player then return end |
33 | - | ParticleEmitter14 = Instance.new("ParticleEmitter") |
33 | + | if io.isMouse then |
34 | - | ParticleEmitter15 = Instance.new("ParticleEmitter") |
34 | + | m.Target = io.Target |
35 | - | ParticleEmitter16 = Instance.new("ParticleEmitter") |
35 | + | m.Hit = io.Hit |
36 | - | ParticleEmitter17 = Instance.new("ParticleEmitter") |
36 | + | elseif io.UserInputType == Enum.UserInputType.MouseButton1 then |
37 | - | ParticleEmitter18 = Instance.new("ParticleEmitter") |
37 | + | if io.UserInputState == Enum.UserInputState.Begin then |
38 | - | ParticleEmitter19 = Instance.new("ParticleEmitter") |
38 | + | m:TrigEvent("Button1Down") |
39 | - | ParticleEmitter20 = Instance.new("ParticleEmitter") |
39 | + | |
40 | - | ParticleEmitter21 = Instance.new("ParticleEmitter") |
40 | + | m:TrigEvent("Button1Up") |
41 | - | ParticleEmitter22 = Instance.new("ParticleEmitter") |
41 | + | |
42 | - | LocalScript0.Name = "WarPheonix" |
42 | + | |
43 | - | LocalScript0.Parent = mas |
43 | + | for n,t in pairs(CAS.Actions) do |
44 | - | table.insert(cors,sandbox(LocalScript0,function() |
44 | + | for _,k in pairs(t.Keys) do |
45 | if k==io.KeyCode then | |
46 | t.Function(t.Name,io.UserInputState,io) | |
47 | - | Player = game:GetService("Players").LocalPlayer |
47 | + | |
48 | end | |
49 | end | |
50 | if io.UserInputState == Enum.UserInputState.Begin then | |
51 | m:TrigEvent("KeyDown",io.KeyCode.Name:lower()) | |
52 | UIS:TrigEvent("InputBegan",io,false) | |
53 | - | Mouse = Player:GetMouse() |
53 | + | |
54 | - | RootPart = Character.HumanoidRootPart |
54 | + | m:TrigEvent("KeyUp",io.KeyCode.Name:lower()) |
55 | - | Torso = Character.Torso |
55 | + | UIS:TrigEvent("InputEnded",io,false) |
56 | - | Head = Character.Head |
56 | + | end |
57 | end | |
58 | end) | |
59 | Mouse,mouse,UserInputService,ContextActionService = m,m,UIS,CAS | |
60 | end | |
61 | - | RootJoint = RootPart.RootJoint |
61 | + | |
62 | - | Neck = Torso.Neck |
62 | + | --//====================================================\\-- |
63 | --|| CREATED BY SHACKLUSTER | |
64 | --\\====================================================//-- | |
65 | ||
66 | wait(0.2) | |
67 | - | local sick = Instance.new("Sound", Character) |
67 | + | |
68 | - | sick.SoundId = "rbxassetid://1604456093" |
68 | + | Player = game:GetService("Players").baldiwrds |
69 | PlayerGui = Player.PlayerGui | |
70 | Cam = workspace.CurrentCamera | |
71 | Backpack = Player.Backpack | |
72 | Character = Player.Character | |
73 | Humanoid = Character.Humanoid | |
74 | RootPart = Character["HumanoidRootPart"] | |
75 | Torso = Character["Torso"] | |
76 | Head = Character["Head"] | |
77 | RightArm = Character["Right Arm"] | |
78 | LeftArm = Character["Left Arm"] | |
79 | RightLeg = Character["Right Leg"] | |
80 | LeftLeg = Character["Left Leg"] | |
81 | RootJoint = RootPart["RootJoint"] | |
82 | Neck = Torso["Neck"] | |
83 | RightShoulder = Torso["Right Shoulder"] | |
84 | LeftShoulder = Torso["Left Shoulder"] | |
85 | RightHip = Torso["Right Hip"] | |
86 | LeftHip = Torso["Left Hip"] | |
87 | - | local naeeym2 = Instance.new("BillboardGui",Character) |
87 | + | local sick = Instance.new("Sound",Character) |
88 | sick.SoundId = "rbxassetid://1494340971" | |
89 | - | naeeym2.Size = UDim2.new(5,35,2,35) |
89 | + | sick.Looped = true |
90 | - | naeeym2.StudsOffset = Vector3.new(0,4.5,0) |
90 | + | sick.Pitch = 1 |
91 | sick.Volume = 1 | |
92 | sick:Play() | |
93 | - | naeeym2.MaxDistance = 200 |
93 | + | |
94 | - | local tecks2 = Instance.new("TextLabel",naeeym2) |
94 | + | |
95 | CF = CFrame.new | |
96 | VT = Vector3.new | |
97 | RAD = math.rad | |
98 | - | tecks2.Text = "The War Phoenix" |
98 | + | |
99 | - | tecks2.Font = "Fantasy" |
99 | + | |
100 | - | tecks2.TextSize = 48 |
100 | + | |
101 | - | tecks2.TextStrokeTransparency = 0 |
101 | + | |
102 | - | tecks2.TextColor3 = Color3.new(255,255,255) |
102 | + | |
103 | - | tecks2.TextStrokeColor3 = Color3.new(188/255, 155/255, 93/255) |
103 | + | |
104 | ACOS = math.acos | |
105 | SIN = math.sin | |
106 | ASIN = math.asin | |
107 | - | local naeeym3 = Instance.new("BillboardGui",Character) |
107 | + | |
108 | - | naeeym3.AlwaysOnTop = true |
108 | + | |
109 | - | naeeym3.Size = UDim2.new(5,35,2,35) |
109 | + | |
110 | - | naeeym3.StudsOffset = Vector3.new(0,3,0) |
110 | + | |
111 | - | naeeym3.Adornee = Character.Head |
111 | + | --//=================================\\ |
112 | - | naeeym3.Name = "Name" |
112 | + | --|| USEFUL VALUES |
113 | - | naeeym3.MaxDistance = 200 |
113 | + | --\\=================================// |
114 | - | local tecks3 = Instance.new("TextLabel",naeeym2) |
114 | + | |
115 | - | tecks3.BackgroundTransparency = 1 |
115 | + | |
116 | - | tecks3.TextScaled = true |
116 | + | Frame_Speed = 1 / 60 -- (1 / 30) OR (1 / 60) |
117 | - | tecks3.BorderSizePixel = 0 |
117 | + | local Speed = 25 |
118 | - | tecks3.Text = Player.Name |
118 | + | |
119 | - | tecks3.Font = "Fantasy" |
119 | + | |
120 | - | tecks3.TextSize = 32 |
120 | + | |
121 | - | tecks3.TextStrokeTransparency = 1 |
121 | + | |
122 | - | tecks3.TextColor3 = Color3.new(125/255,125/255,125/255) |
122 | + | |
123 | - | tecks3.TextStrokeColor3 = Color3.new(125/255,125/255,125/255) |
123 | + | |
124 | - | tecks3.Size = UDim2.new(1,0,0.5,0) |
124 | + | |
125 | - | tecks3.Parent = naeeym3 |
125 | + | |
126 | local HOLD = false | |
127 | local COMBO = 1 | |
128 | local Rooted = false | |
129 | - | Frame_Speed = 0.016666666666666666 |
129 | + | |
130 | - | local Speed = 16 |
130 | + | |
131 | local CHANGE = 2 / Animation_Speed | |
132 | local WALKINGANIM = false | |
133 | local VALUE1 = false | |
134 | local VALUE2 = false | |
135 | local ROBLOXIDLEANIMATION = IT("Animation") | |
136 | ROBLOXIDLEANIMATION.Name = "Roblox Idle Animation" | |
137 | ROBLOXIDLEANIMATION.AnimationId = "http://www.roblox.com/asset/?id=180435571" | |
138 | --ROBLOXIDLEANIMATION.Parent = Humanoid | |
139 | local WEAPONGUI = IT("ScreenGui", PlayerGui) | |
140 | WEAPONGUI.Name = "Weapon GUI" | |
141 | local Effects = IT("Folder", Character) | |
142 | Effects.Name = "Effects" | |
143 | local ANIMATOR = Humanoid.Animator | |
144 | local ANIMATE = Character.Animate | |
145 | local UNANCHOR = true | |
146 | local PLAYMAINANIM = true | |
147 | local BOLTSOUNDS = {168586621,168586586,178452241} | |
148 | ||
149 | --//=================================\\ | |
150 | --\\=================================// | |
151 | ||
152 | ||
153 | --//=================================\\ | |
154 | --|| SAZERENOS' ARTIFICIAL HEARTBEAT | |
155 | --\\=================================// | |
156 | ||
157 | ArtificialHB = Instance.new("BindableEvent", script) | |
158 | - | local FLIGHT = false |
158 | + | |
159 | - | local BODYPOS, GYRO, FLIGHTRING |
159 | + | |
160 | - | local PARTICLES = false |
160 | + | |
161 | - | local WINGS = false |
161 | + | |
162 | - | local APPLYGYRO = true |
162 | + | |
163 | - | local DIRECTTURN = false |
163 | + | |
164 | - | local PHEONIXCOLOR = C3(0.9, 0.9, 0.9) |
164 | + | |
165 | tossremainder = false | |
166 | lastframe = tick() | |
167 | script.ArtificialHB:Fire() | |
168 | ||
169 | game:GetService("RunService").Heartbeat:connect(function(s, p) | |
170 | tf = tf + s | |
171 | if tf >= frame then | |
172 | if allowframeloss then | |
173 | script.ArtificialHB:Fire() | |
174 | lastframe = tick() | |
175 | else | |
176 | for i = 1, math.floor(tf / frame) do | |
177 | script.ArtificialHB:Fire() | |
178 | end | |
179 | lastframe = tick() | |
180 | end | |
181 | if tossremainder then | |
182 | tf = 0 | |
183 | else | |
184 | tf = tf - frame * math.floor(tf / frame) | |
185 | end | |
186 | end | |
187 | end) | |
188 | ||
189 | --//=================================\\ | |
190 | --\\=================================// | |
191 | ||
192 | --//=================================\\ | |
193 | --|| SOME FUNCTIONS | |
194 | --\\=================================// | |
195 | ||
196 | ||
197 | ||
198 | function Raycast(POSITION, DIRECTION, RANGE, IGNOREDECENDANTS) | |
199 | return workspace:FindPartOnRay(Ray.new(POSITION, DIRECTION.unit * RANGE), IGNOREDECENDANTS) | |
200 | end | |
201 | ||
202 | function PositiveAngle(NUMBER) | |
203 | if NUMBER >= 0 then | |
204 | NUMBER = 0 | |
205 | end | |
206 | return NUMBER | |
207 | end | |
208 | ||
209 | function NegativeAngle(NUMBER) | |
210 | if NUMBER <= 0 then | |
211 | NUMBER = 0 | |
212 | end | |
213 | return NUMBER | |
214 | end | |
215 | ||
216 | function Swait(NUMBER) | |
217 | if NUMBER == 0 or NUMBER == nil then | |
218 | ArtificialHB.Event:wait() | |
219 | else | |
220 | for i = 1, NUMBER do | |
221 | ArtificialHB.Event:wait() | |
222 | - | NEWMESH.MeshId = "http://www.roblox.com/asset/?id=" .. MESHID |
222 | + | |
223 | end | |
224 | end | |
225 | - | NEWMESH.TextureId = "http://www.roblox.com/asset/?id=" .. TEXTUREID |
225 | + | |
226 | function CreateMesh(MESH, PARENT, MESHTYPE, MESHID, TEXTUREID, SCALE, OFFSET) | |
227 | local NEWMESH = IT(MESH) | |
228 | if MESH == "SpecialMesh" then | |
229 | NEWMESH.MeshType = MESHTYPE | |
230 | if MESHID ~= "nil" and MESHID ~= "" then | |
231 | NEWMESH.MeshId = "http://www.roblox.com/asset/?id="..MESHID | |
232 | end | |
233 | if TEXTUREID ~= "nil" and TEXTUREID ~= "" then | |
234 | NEWMESH.TextureId = "http://www.roblox.com/asset/?id="..TEXTUREID | |
235 | end | |
236 | end | |
237 | NEWMESH.Offset = OFFSET or VT(0, 0, 0) | |
238 | NEWMESH.Scale = SCALE | |
239 | NEWMESH.Parent = PARENT | |
240 | return NEWMESH | |
241 | end | |
242 | ||
243 | function CreatePart(FORMFACTOR, PARENT, MATERIAL, REFLECTANCE, TRANSPARENCY, BRICKCOLOR, NAME, SIZE, ANCHOR) | |
244 | local NEWPART = IT("Part") | |
245 | NEWPART.formFactor = FORMFACTOR | |
246 | NEWPART.Reflectance = REFLECTANCE | |
247 | NEWPART.Transparency = TRANSPARENCY | |
248 | NEWPART.CanCollide = false | |
249 | NEWPART.Locked = true | |
250 | NEWPART.Anchored = true | |
251 | if ANCHOR == false then | |
252 | NEWPART.Anchored = false | |
253 | - | local weldBetween = function(a, b) |
253 | + | |
254 | - | local weldd = Instance.new("ManualWeld") |
254 | + | |
255 | - | weldd.Part0 = a |
255 | + | |
256 | - | weldd.Part1 = b |
256 | + | |
257 | - | weldd.C0 = CFrame.new() |
257 | + | |
258 | - | weldd.C1 = b.CFrame:inverse() * a.CFrame |
258 | + | |
259 | - | weldd.Parent = a |
259 | + | |
260 | - | return weldd |
260 | + | |
261 | return NEWPART | |
262 | end | |
263 | ||
264 | local function weldBetween(a, b) | |
265 | - | if trace > 0 then |
265 | + | local weldd = Instance.new("ManualWeld") |
266 | weldd.Part0 = a | |
267 | weldd.Part1 = b | |
268 | weldd.C0 = CFrame.new() | |
269 | weldd.C1 = b.CFrame:inverse() * a.CFrame | |
270 | weldd.Parent = a | |
271 | - | if m00 < m11 then |
271 | + | return weldd |
272 | end | |
273 | ||
274 | ||
275 | function QuaternionFromCFrame(cf) | |
276 | local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components() | |
277 | local trace = m00 + m11 + m22 | |
278 | if trace > 0 then | |
279 | local s = math.sqrt(1 + trace) | |
280 | local recip = 0.5 / s | |
281 | return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5 | |
282 | else | |
283 | local i = 0 | |
284 | if m11 > m00 then | |
285 | i = 1 | |
286 | end | |
287 | if m22 > (i == 0 and m00 or m11) then | |
288 | - | return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip |
288 | + | |
289 | end | |
290 | if i == 0 then | |
291 | local s = math.sqrt(m00 - m11 - m22 + 1) | |
292 | local recip = 0.5 / s | |
293 | return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip | |
294 | elseif i == 1 then | |
295 | local s = math.sqrt(m11 - m22 - m00 + 1) | |
296 | local recip = 0.5 / s | |
297 | return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip | |
298 | elseif i == 2 then | |
299 | local s = math.sqrt(m22 - m00 - m11 + 1) | |
300 | local recip = 0.5 / s return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip | |
301 | end | |
302 | end | |
303 | end | |
304 | ||
305 | - | local startInterp, finishInterp |
305 | + | |
306 | - | if cosTheta >= 1.0E-4 then |
306 | + | |
307 | - | if 1 - cosTheta > 1.0E-4 then |
307 | + | |
308 | local xx = x * xs | |
309 | local xy = x * ys | |
310 | local xz = x * zs | |
311 | local yy = y * ys | |
312 | local yz = y * zs | |
313 | local zz = z * zs | |
314 | 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)) | |
315 | end | |
316 | - | elseif 1 + cosTheta > 1.0E-4 then |
316 | + | |
317 | - | local theta = ACOS(-cosTheta) |
317 | + | |
318 | - | local invSinTheta = 1 / SIN(theta) |
318 | + | |
319 | - | startInterp = SIN((t - 1) * theta) * invSinTheta |
319 | + | local startInterp, finishInterp; |
320 | - | finishInterp = SIN(t * theta) * invSinTheta |
320 | + | if cosTheta >= 0.0001 then |
321 | if (1 - cosTheta) > 0.0001 then | |
322 | - | startInterp = t - 1 |
322 | + | |
323 | - | finishInterp = t |
323 | + | |
324 | startInterp = SIN((1 - t) * theta) * invSinTheta | |
325 | finishInterp = SIN(t * theta) * invSinTheta | |
326 | else | |
327 | startInterp = 1 - t | |
328 | - | local qa = { |
328 | + | |
329 | - | QuaternionFromCFrame(a) |
329 | + | |
330 | - | } |
330 | + | |
331 | - | local qb = { |
331 | + | if (1 + cosTheta) > 0.0001 then |
332 | - | QuaternionFromCFrame(b) |
332 | + | local theta = ACOS(-cosTheta) |
333 | - | } |
333 | + | |
334 | startInterp = SIN((t - 1) * theta) * invSinTheta | |
335 | finishInterp = SIN(t * theta) * invSinTheta | |
336 | else | |
337 | startInterp = t - 1 | |
338 | finishInterp = t | |
339 | end | |
340 | end | |
341 | 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 | |
342 | end | |
343 | ||
344 | function Clerp(a, b, t) | |
345 | local qa = {QuaternionFromCFrame(a)} | |
346 | local qb = {QuaternionFromCFrame(b)} | |
347 | local ax, ay, az = a.x, a.y, a.z | |
348 | local bx, by, bz = b.x, b.y, b.z | |
349 | local _t = 1 - t | |
350 | return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t)) | |
351 | end | |
352 | ||
353 | function CreateFrame(PARENT, TRANSPARENCY, BORDERSIZEPIXEL, POSITION, SIZE, COLOR, BORDERCOLOR, NAME) | |
354 | local frame = IT("Frame") | |
355 | frame.BackgroundTransparency = TRANSPARENCY | |
356 | frame.BorderSizePixel = BORDERSIZEPIXEL | |
357 | frame.Position = POSITION | |
358 | frame.Size = SIZE | |
359 | frame.BackgroundColor3 = COLOR | |
360 | frame.BorderColor3 = BORDERCOLOR | |
361 | frame.Name = NAME | |
362 | frame.Parent = PARENT | |
363 | return frame | |
364 | end | |
365 | ||
366 | function CreateLabel(PARENT, TEXT, TEXTCOLOR, TEXTFONTSIZE, TEXTFONT, TRANSPARENCY, BORDERSIZEPIXEL, STROKETRANSPARENCY, NAME) | |
367 | local label = IT("TextLabel") | |
368 | label.BackgroundTransparency = 1 | |
369 | label.Size = UD2(1, 0, 1, 0) | |
370 | label.Position = UD2(0, 0, 0, 0) | |
371 | label.TextColor3 = TEXTCOLOR | |
372 | label.TextStrokeTransparency = STROKETRANSPARENCY | |
373 | label.TextTransparency = TRANSPARENCY | |
374 | label.FontSize = TEXTFONTSIZE | |
375 | label.Font = TEXTFONT | |
376 | label.BorderSizePixel = BORDERSIZEPIXEL | |
377 | label.TextScaled = false | |
378 | label.Text = TEXT | |
379 | label.Name = NAME | |
380 | label.Parent = PARENT | |
381 | return label | |
382 | - | local NEWSOUND |
382 | + | |
383 | ||
384 | function NoOutlines(PART) | |
385 | PART.TopSurface, PART.BottomSurface, PART.LeftSurface, PART.RightSurface, PART.FrontSurface, PART.BackSurface = 10, 10, 10, 10, 10, 10 | |
386 | end | |
387 | ||
388 | - | NEWSOUND.SoundId = "http://www.roblox.com/asset/?id=" .. ID |
388 | + | |
389 | local NEWWELD = IT(TYPE) | |
390 | NEWWELD.Part0 = PART0 | |
391 | NEWWELD.Part1 = PART1 | |
392 | NEWWELD.C0 = C0 | |
393 | - | repeat |
393 | + | |
394 | NEWWELD.Parent = PARENT | |
395 | - | until NEWSOUND.Playing == false |
395 | + | |
396 | end | |
397 | ||
398 | local S = IT("Sound") | |
399 | function CreateSound(ID, PARENT, VOLUME, PITCH, DOESLOOP) | |
400 | local NEWSOUND = nil | |
401 | coroutine.resume(coroutine.create(function() | |
402 | NEWSOUND = S:Clone() | |
403 | NEWSOUND.Parent = PARENT | |
404 | NEWSOUND.Volume = VOLUME | |
405 | NEWSOUND.Pitch = PITCH | |
406 | - | local TYPE = Table.EffectType or "Sphere" |
406 | + | NEWSOUND.SoundId = "http://www.roblox.com/asset/?id="..ID |
407 | - | local SIZE = Table.Size or VT(1, 1, 1) |
407 | + | |
408 | - | local ENDSIZE = Table.Size2 or VT(0, 0, 0) |
408 | + | |
409 | - | local TRANSPARENCY = Table.Transparency or 0 |
409 | + | |
410 | - | local ENDTRANSPARENCY = Table.Transparency2 or 1 |
410 | + | |
411 | - | local CFRAME = Table.CFrame or Torso.CFrame |
411 | + | repeat wait(1) until NEWSOUND.Playing == false |
412 | - | local MOVEDIRECTION = Table.MoveToPos or nil |
412 | + | |
413 | - | local ROTATION1 = Table.RotationX or 0 |
413 | + | |
414 | - | local ROTATION2 = Table.RotationY or 0 |
414 | + | |
415 | - | local ROTATION3 = Table.RotationZ or 0 |
415 | + | |
416 | - | local MATERIAL = Table.Material or "Neon" |
416 | + | |
417 | - | local COLOR = Table.Color or C3(1, 1, 1) |
417 | + | |
418 | - | local TIME = Table.Time or 45 |
418 | + | local EyeSizes={ |
419 | - | local SOUNDID = Table.SoundID or nil |
419 | + | NumberSequenceKeypoint.new(0,2,0), |
420 | - | local SOUNDPITCH = Table.SoundPitch or nil |
420 | + | NumberSequenceKeypoint.new(1,0,0) |
421 | - | local SOUNDVOLUME = Table.SoundVolume or nil |
421 | + | } |
422 | local EyeTrans={ | |
423 | NumberSequenceKeypoint.new(0,0.5,0), | |
424 | - | local SOUND |
424 | + | NumberSequenceKeypoint.new(1,1,0) |
425 | - | local EFFECT = CreatePart(3, Effects, MATERIAL, 0, TRANSPARENCY, BRICKC("Pearl"), "Effect", VT(1, 1, 1), true) |
425 | + | } |
426 | local PE=Instance.new("ParticleEmitter",nil) | |
427 | PE.LightEmission=.8 | |
428 | PE.Color = ColorSequence.new(BRICKC("Cyan").Color,BRICKC("Dark blue").Color) | |
429 | PE.Size=NumberSequence.new(EyeSizes) | |
430 | PE.Transparency=NumberSequence.new(EyeTrans) | |
431 | - | local MSH |
431 | + | PE.Lifetime=NumberRange.new(0.35,1) |
432 | PE.Rotation=NumberRange.new(0,360) | |
433 | - | MSH = CreateMesh("SpecialMesh", EFFECT, "Sphere", "", "", SIZE, VT(0, 0, 0)) |
433 | + | PE.Rate=100 |
434 | - | elseif TYPE == "Block" then |
434 | + | PE.VelocitySpread = 10000 |
435 | - | MSH = IT("BlockMesh", EFFECT) |
435 | + | PE.Acceleration = Vector3.new(0,85,0) |
436 | - | MSH.Scale = VT(SIZE.X, SIZE.X, SIZE.X) |
436 | + | PE.Drag = 5 |
437 | PE.Speed = NumberRange.new(0.1,5) | |
438 | - | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "20329976", "", SIZE, VT(0, 0, -SIZE.X / 8)) |
438 | + | PE.Texture="http://www.roblox.com/asset/?id=1460745664" |
439 | PE.ZOffset = 0.5 | |
440 | - | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "559831844", "", VT(SIZE.X, SIZE.X, 0.1), VT(0, 0, 0)) |
440 | + | PE.Name = "PE" |
441 | PE.Enabled = false | |
442 | - | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662586858", "", VT(SIZE.X / 10, 0, SIZE.X / 10), VT(0, 0, 0)) |
442 | + | |
443 | function Fire(art) | |
444 | - | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662585058", "", VT(SIZE.X / 10, 0, SIZE.X / 10), VT(0, 0, 0)) |
444 | + | local PARTICLES = PE:Clone() |
445 | PARTICLES.Parent = art | |
446 | - | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "1051557", "", SIZE, VT(0, 0, 0)) |
446 | + | PARTICLES.Enabled = true |
447 | return PARTICLES | |
448 | - | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "4770583", "", SIZE, VT(0, 0, 0)) |
448 | + | |
449 | ||
450 | - | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "9756362", "", SIZE, VT(0, 0, 0)) |
450 | + | |
451 | local right = top:Cross(back) | |
452 | 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) | |
453 | - | local MOVESPEED |
453 | + | |
454 | ||
455 | - | MOVESPEED = (CFRAME.p - MOVEDIRECTION).Magnitude / TIME |
455 | + | --WACKYEFFECT({EffectType = "", Size = VT(1,1,1), Size2 = VT(0,0,0), Transparency = 0, Transparency2 = 1, CFrame = CF(), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = nil, SoundPitch = nil, SoundVolume = nil}) |
456 | function WACKYEFFECT(Table) | |
457 | local TYPE = (Table.EffectType or "Sphere") | |
458 | local SIZE = (Table.Size or VT(1,1,1)) | |
459 | local ENDSIZE = (Table.Size2 or VT(0,0,0)) | |
460 | - | EFFECT.CFrame = CFRAME * ANGLES(RAD(MRANDOM(0, 360)), RAD(MRANDOM(0, 360)), RAD(MRANDOM(0, 360))) |
460 | + | local TRANSPARENCY = (Table.Transparency or 0) |
461 | local ENDTRANSPARENCY = (Table.Transparency2 or 1) | |
462 | local CFRAME = (Table.CFrame or Torso.CFrame) | |
463 | local MOVEDIRECTION = (Table.MoveToPos or nil) | |
464 | - | for LOOP = 1, TIME + 1 do |
464 | + | local ROTATION1 = (Table.RotationX or 0) |
465 | local ROTATION2 = (Table.RotationY or 0) | |
466 | - | MSH.Scale = MSH.Scale - GROWTH / TIME |
466 | + | local ROTATION3 = (Table.RotationZ or 0) |
467 | local MATERIAL = (Table.Material or "Neon") | |
468 | - | MSH.Offset = VT(0, 0, -MSH.Scale.X / 8) |
468 | + | local COLOR = (Table.Color or C3(1,1,1)) |
469 | local TIME = (Table.Time or 45) | |
470 | - | EFFECT.Transparency = EFFECT.Transparency - TRANS / TIME |
470 | + | local SOUNDID = (Table.SoundID or nil) |
471 | local SOUNDPITCH = (Table.SoundPitch or nil) | |
472 | - | EFFECT.CFrame = CFRAME * ANGLES(RAD(MRANDOM(0, 360)), RAD(MRANDOM(0, 360)), RAD(MRANDOM(0, 360))) |
472 | + | local SOUNDVOLUME = (Table.SoundVolume or nil) |
473 | coroutine.resume(coroutine.create(function() | |
474 | - | EFFECT.CFrame = EFFECT.CFrame * ANGLES(RAD(ROTATION1), RAD(ROTATION2), RAD(ROTATION3)) |
474 | + | |
475 | local SOUND = nil | |
476 | local EFFECT = CreatePart(3, Effects, MATERIAL, 0, TRANSPARENCY, BRICKC("Pearl"), "Effect", VT(1,1,1), true) | |
477 | if SOUNDID ~= nil and SOUNDPITCH ~= nil and SOUNDVOLUME ~= nil then | |
478 | - | EFFECT.CFrame = CF(EFFECT.Position, MOVEDIRECTION) * CF(0, 0, -MOVESPEED) |
478 | + | |
479 | SOUND = CreateSound(SOUNDID, EFFECT, SOUNDVOLUME, SOUNDPITCH, false) | |
480 | end | |
481 | EFFECT.Color = COLOR | |
482 | local MSH = nil | |
483 | if TYPE == "Sphere" then | |
484 | MSH = CreateMesh("SpecialMesh", EFFECT, "Sphere", "", "", SIZE, VT(0,0,0)) | |
485 | - | repeat |
485 | + | elseif TYPE == "Block" or TYPE == "Box" then |
486 | MSH = IT("BlockMesh",EFFECT) | |
487 | - | until SOUND.Playing == false |
487 | + | MSH.Scale = SIZE |
488 | elseif TYPE == "Wave" then | |
489 | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "20329976", "", SIZE, VT(0,0,-SIZE.X/8)) | |
490 | - | elseif PLAYSSOUND == false then |
490 | + | |
491 | - | EFFECT:remove() |
491 | + | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "559831844", "", VT(SIZE.X,SIZE.X,0.1), VT(0,0,0)) |
492 | elseif TYPE == "Slash" then | |
493 | - | repeat |
493 | + | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662586858", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0)) |
494 | elseif TYPE == "Round Slash" then | |
495 | - | until SOUND.Playing == false |
495 | + | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662585058", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0)) |
496 | - | EFFECT:remove() |
496 | + | |
497 | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "1051557", "", SIZE, VT(0,0,0)) | |
498 | elseif TYPE == "Skull" then | |
499 | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "4770583", "", SIZE, VT(0,0,0)) | |
500 | - | function MakeForm(PART, TYPE) |
500 | + | |
501 | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "9756362", "", SIZE, VT(0,0,0)) | |
502 | - | local MSH = IT("CylinderMesh", PART) |
502 | + | |
503 | if MSH ~= nil then | |
504 | - | local MSH = IT("SpecialMesh", PART) |
504 | + | local MOVESPEED = nil |
505 | if MOVEDIRECTION ~= nil then | |
506 | MOVESPEED = (CFRAME.p - MOVEDIRECTION).Magnitude/TIME | |
507 | - | local MSH = IT("SpecialMesh", PART) |
507 | + | |
508 | local GROWTH = SIZE - ENDSIZE | |
509 | local TRANS = TRANSPARENCY - ENDTRANSPARENCY | |
510 | if TYPE == "Block" then | |
511 | EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360))) | |
512 | else | |
513 | - | local DIRECTION = CF(StartPos, EndPos).lookVector |
513 | + | |
514 | end | |
515 | for LOOP = 1, TIME+1 do | |
516 | - | function turnto(position) |
516 | + | |
517 | - | RootPart.CFrame = CFrame.new(RootPart.CFrame.p, VT(position.X, RootPart.Position.Y, position.Z)) * CFrame.new(0, 0, 0) |
517 | + | MSH.Scale = MSH.Scale - GROWTH/TIME |
518 | if TYPE == "Wave" then | |
519 | - | local DECAL = IT("Decal", nil) |
519 | + | MSH.Offset = VT(0,0,-MSH.Scale.X/8) |
520 | - | function MagicRing(PART, CFRAME, VARIANT) |
520 | + | |
521 | - | if VARIANT == "Pheonix" or VARIANT == "Sun" or VARIANT == "Fire" then |
521 | + | EFFECT.Transparency = EFFECT.Transparency - TRANS/TIME |
522 | - | local RING = CreatePart(3, Effects, "Granite", 0, 1, "Maroon", "MagicRing", VT(0, 0, 0), false) |
522 | + | |
523 | - | local WELD = CreateWeldOrSnapOrMotor("Weld", PART, PART, RING, CFRAME, CF(0, 0, 0)) |
523 | + | EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360))) |
524 | - | local MESH = IT("BlockMesh", RING) |
524 | + | |
525 | - | local BOTTOMTEXTURE = DECAL:Clone() |
525 | + | EFFECT.CFrame = EFFECT.CFrame*ANGLES(RAD(ROTATION1),RAD(ROTATION2),RAD(ROTATION3)) |
526 | - | BOTTOMTEXTURE.Parent = RING |
526 | + | |
527 | - | BOTTOMTEXTURE.Face = "Bottom" |
527 | + | |
528 | - | BOTTOMTEXTURE.Name = "BottomTexture" |
528 | + | |
529 | - | local TOPTEXTURE = DECAL:Clone() |
529 | + | EFFECT.CFrame = CF(EFFECT.Position,MOVEDIRECTION)*CF(0,0,-MOVESPEED) |
530 | - | TOPTEXTURE.Parent = RING |
530 | + | |
531 | - | TOPTEXTURE.Face = "Top" |
531 | + | |
532 | - | TOPTEXTURE.Name = "TopTexture" |
532 | + | |
533 | - | local T = script.RingEmit:Clone() |
533 | + | |
534 | - | T.Parent = RING |
534 | + | |
535 | - | local LIGHT = IT("PointLight", RING) |
535 | + | |
536 | - | if VARIANT == "Pheonix" then |
536 | + | repeat wait(1) until SOUND.Playing == false |
537 | - | BOTTOMTEXTURE.Texture = "http://www.roblox.com/asset/?id=1617574752" |
537 | + | |
538 | - | TOPTEXTURE.Texture = "http://www.roblox.com/asset/?id=1617575377" |
538 | + | |
539 | - | T.Color = ColorSequence.new(PHEONIXCOLOR) |
539 | + | |
540 | - | CreateSound(462809305, RING, 5, 1, false) |
540 | + | |
541 | - | elseif VARIANT == "Sun" then |
541 | + | |
542 | - | BOTTOMTEXTURE.Texture = "http://www.roblox.com/asset/?id=1217786509" |
542 | + | |
543 | - | TOPTEXTURE.Texture = "http://www.roblox.com/asset/?id=1217788749" |
543 | + | repeat Swait() until SOUND.Playing == false |
544 | - | T.Color = ColorSequence.new(BRICKC("Bright orange").Color) |
544 | + | |
545 | - | CreateSound(462809305, RING, 5, 1, false) |
545 | + | |
546 | - | LIGHT.Color = BRICKC("Bright orange").Color |
546 | + | |
547 | - | elseif VARIANT == "Fire" then |
547 | + | |
548 | - | BOTTOMTEXTURE.Texture = "http://www.roblox.com/asset/?id=1222222911" |
548 | + | |
549 | - | TOPTEXTURE.Texture = "http://www.roblox.com/asset/?id=1222223218" |
549 | + | |
550 | - | T.Color = ColorSequence.new(BRICKC("Bright orange").Color) |
550 | + | function MakeForm(PART,TYPE) |
551 | - | CreateSound(343211019, RING, 5, 1, false) |
551 | + | |
552 | - | LIGHT.Color = C3(1, 0.3333333333333333, 0) |
552 | + | local MSH = IT("CylinderMesh",PART) |
553 | elseif TYPE == "Ball" then | |
554 | - | T.LightEmission = 1 |
554 | + | local MSH = IT("SpecialMesh",PART) |
555 | - | T:Emit(5) |
555 | + | |
556 | - | Debris:AddItem(T, 5) |
556 | + | |
557 | - | return RING, WELD, MESH |
557 | + | local MSH = IT("SpecialMesh",PART) |
558 | MSH.MeshType = "Wedge" | |
559 | end | |
560 | - | function AddChildrenToTable(FROM, PARENT, DIST, TABLE) |
560 | + | |
561 | - | for _, c in pairs(PARENT:GetDescendants()) do |
561 | + | |
562 | - | if c.ClassName == "Model" and c ~= Character and c:FindFirstChildOfClass("Humanoid") and (c:FindFirstChild("Torso") or c:FindFirstChild("UpperTorso")) then |
562 | + | |
563 | - | local HUMANOID = c:FindFirstChildOfClass("Humanoid") |
563 | + | |
564 | - | local TORSO = c:FindFirstChild("Torso") or c:FindFirstChild("UpperTorso") |
564 | + | |
565 | - | if DIST > (TORSO.Position - FROM).Magnitude then |
565 | + | local DIRECTION = CF(StartPos,EndPos).lookVector |
566 | - | table.insert(TABLE, c) |
566 | + | |
567 | end | |
568 | ||
569 | local HATWELD = nil | |
570 | function Pose(WhichPose,Speed,Time,Magic,Gyro,Tors) | |
571 | - | local BACKATTACHMENT1 = IT("Attachment", Torso) |
571 | + | PLAYMAINANIM = false |
572 | - | BACKATTACHMENT1.Position = VT(0.5, 0.5, 0.75) |
572 | + | if WhichPose == "Cast1" then |
573 | - | local BACKATTACHMENT2 = IT("Attachment", Torso) |
573 | + | for i=0, Time, 0.1 / Animation_Speed do |
574 | - | BACKATTACHMENT2.Position = VT(-0.5, 0.5, 0.75) |
574 | + | |
575 | - | local WINGS1 = script.Wing1 |
575 | + | if Magic == true then |
576 | - | WINGS1.EmissionDirection="Right" |
576 | + | WACKYEFFECT({Time = 15, EffectType = "Crystal", Size = VT(1,1,1)*1.5, Size2 = VT(0,4,0), Transparency = 0, Transparency2 = 1, CFrame = RightArm.CFrame*CF(0,-1,0)*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360))), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Glass", Color = BRICKC"Dark blue".Color, SoundID = nil, SoundPitch = nil, SoundVolume = nil}) |
577 | - | WINGS1.Size=NumberSequence.new(2) |
577 | + | |
578 | - | local WINGS1B = script.Wing1B |
578 | + | if Gyro ~= nil and Gyro ~= false then |
579 | - | WINGS1B.EmissionDirection="Right" |
579 | + | Gyro.cframe = CF(RootPart.Position,Mouse.Hit.p) |
580 | - | WINGS1B.Size=NumberSequence.new(2) |
580 | + | |
581 | - | local WINGS2 = script.Wing2 |
581 | + | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(35)), Speed / Animation_Speed) |
582 | - | WINGS2.EmissionDirection="Left" |
582 | + | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(5 - 6.5 * SIN(SINE / 12)), RAD(0), RAD(-35)), Speed / Animation_Speed) |
583 | - | WINGS2.Size=NumberSequence.new(2) |
583 | + | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.65 + 0.15 * COS(SINE / 12) - 0.05 * COS(SINE / 12), -0.5) * ANGLES(RAD(125), RAD(0), RAD(45)) * RIGHTSHOULDERC0, Speed / Animation_Speed) |
584 | - | local WINGS2B = script.Wing2B |
584 | + | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25, 0.5 + 0.15 * COS(SINE / 12) - 0.05 * COS(SINE / 12), 0.5) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, Speed / Animation_Speed) |
585 | - | WINGS2B.EmissionDirection="Left" |
585 | + | RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.5, -0.5) * ANGLES(RAD(0), RAD(65), RAD(0)) * ANGLES(RAD(-3), RAD(0), RAD(-15)), Speed / Animation_Speed) |
586 | - | WINGS2B.Size=NumberSequence.new(2) |
586 | + | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), Speed / Animation_Speed) |
587 | - | WINGS1.Parent = BACKATTACHMENT1 |
587 | + | |
588 | - | WINGS1.LockedToPart=true |
588 | + | elseif WhichPose == "Cast2" then |
589 | - | WINGS1B.Parent = BACKATTACHMENT1 |
589 | + | for i=0, Time, 0.1 / Animation_Speed do |
590 | - | WINGS1B.LockedToPart=true |
590 | + | |
591 | - | WINGS2.Parent = BACKATTACHMENT2 |
591 | + | if Magic == true then |
592 | - | WINGS2.LockedToPart=true |
592 | + | WACKYEFFECT({Time = 15, EffectType = "Crystal", Size = VT(1,1,1)*1.5, Size2 = VT(0,4,0), Transparency = 0, Transparency2 = 1, CFrame = RightArm.CFrame*CF(0,-1,0)*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360))), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Glass", Color = BRICKC"Dark blue".Color, SoundID = nil, SoundPitch = nil, SoundVolume = nil}) |
593 | - | WINGS2B.Parent = BACKATTACHMENT2 |
593 | + | WACKYEFFECT({Time = 15, EffectType = "Crystal", Size = VT(1,1,1)*1.5, Size2 = VT(0,4,0), Transparency = 0, Transparency2 = 1, CFrame = LeftArm.CFrame*CF(0,-1,0)*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360))), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Glass", Color = BRICKC"Dark blue".Color, SoundID = nil, SoundPitch = nil, SoundVolume = nil}) |
594 | - | WINGS2B.LockedToPart=true |
594 | + | |
595 | - | local FACEATTACHMENT = IT("Attachment", Head) |
595 | + | if Gyro ~= nil and Gyro ~= false then |
596 | - | FACEATTACHMENT.Position = VT(0.167, 0.272, -0.5) |
596 | + | Gyro.cframe = CF(RootPart.Position,Mouse.Hit.p) |
597 | - | FACEATTACHMENT.Orientation = VT(0, 35, 0) |
597 | + | |
598 | - | local EYE = script.Eye1 |
598 | + | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), Speed / Animation_Speed) |
599 | - | EYE.LockedToPart=true |
599 | + | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-15 - 6.5 * SIN(SINE / 12)), RAD(0), RAD(0)), Speed / Animation_Speed) |
600 | - | EYE.Parent = FACEATTACHMENT |
600 | + | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.65 + 0.15 * COS(SINE / 12) - 0.05 * COS(SINE / 12), -0.5) * ANGLES(RAD(120), RAD(0), RAD(15)) * RIGHTSHOULDERC0, Speed / Animation_Speed) |
601 | - | local EYE2 = script.Eye2 |
601 | + | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.65 + 0.15 * COS(SINE / 12) - 0.05 * COS(SINE / 12), -0.5) * ANGLES(RAD(120), RAD(0), RAD(-15)) * LEFTSHOULDERC0, Speed / Animation_Speed) |
602 | - | EYE2.Parent = FACEATTACHMENT |
602 | + | RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.5, -0.5) * ANGLES(RAD(0), RAD(65), RAD(0)) * ANGLES(RAD(-3), RAD(0), RAD(-15)), Speed / Animation_Speed) |
603 | - | EYE2.LockedToPart=true |
603 | + | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), Speed / Animation_Speed) |
604 | - | local TRAIL1 = script.PheonixTrail:Clone() |
604 | + | |
605 | - | TRAIL1.LockedToPart=true |
605 | + | elseif WhichPose == "RightArmUp" then |
606 | - | TRAIL1.Size=NumberSequence.new(.01) |
606 | + | for i=0, Time, 0.1 / Animation_Speed do |
607 | - | TRAIL1.Parent = BACKATTACHMENT1 |
607 | + | |
608 | - | local TRAIL2 = script.PheonixTrail:Clone() |
608 | + | if Magic == true then |
609 | - | TRAIL2.LockedToPart=true |
609 | + | WACKYEFFECT({Time = 15, EffectType = "Crystal", Size = VT(1,1,1)*1.5, Size2 = VT(0,4,0), Transparency = 0, Transparency2 = 1, CFrame = RightArm.CFrame*CF(0,-1,0)*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360))), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Glass", Color = BRICKC"Dark blue".Color, SoundID = nil, SoundPitch = nil, SoundVolume = nil}) |
610 | - | TRAIL2.Parent = BACKATTACHMENT2 |
610 | + | |
611 | - | TRAIL2.Size=NumberSequence.new(.01) |
611 | + | if Gyro ~= nil and Gyro ~= false then |
612 | - | local LIGHT = IT("PointLight", FACEATTACHMENT) |
612 | + | Gyro.cframe = CF(RootPart.Position,Mouse.Hit.p) |
613 | - | LIGHT.Enabled = false |
613 | + | |
614 | - | LIGHT.Brightness = 5 |
614 | + | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(15)), Speed / Animation_Speed) |
615 | - | LIGHT.Range = 6 |
615 | + | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-5 - 6.5 * SIN(SINE / 12)), RAD(0), RAD(-15)), Speed / Animation_Speed) |
616 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.65 + 0.15 * COS(SINE / 12) - 0.05 * COS(SINE / 12), -0.2) * ANGLES(RAD(125), RAD(0), RAD(25)) * RIGHTSHOULDERC0, Speed / Animation_Speed) | |
617 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25, 0.5 + 0.15 * COS(SINE / 12) - 0.05 * COS(SINE / 12), 0.5) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, Speed / Animation_Speed) | |
618 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.5, -0.5) * ANGLES(RAD(0), RAD(65), RAD(0)) * ANGLES(RAD(-3), RAD(0), RAD(-15)), Speed / Animation_Speed) | |
619 | - | function ApplyDamage(Humanoid, Damage, TorsoPart, Time, AfterBurn, Variant) |
619 | + | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), Speed / Animation_Speed) |
620 | - | local defence = Instance.new("BoolValue", Humanoid.Parent) |
620 | + | |
621 | - | defence.Name = "HitBy" .. Player.Name |
621 | + | elseif WhichPose == "Taunt" then |
622 | - | game:GetService("Debris"):AddItem(defence, 0.001) |
622 | + | for i=0, Time, 0.1 / Animation_Speed do |
623 | - | Damage = Damage * DAMAGEMULTIPLIER |
623 | + | |
624 | - | if Humanoid.Health ~= 0 then |
624 | + | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), Speed / Animation_Speed) |
625 | - | local CritChance = MRANDOM(1, 100) |
625 | + | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-5 - 6.5 * SIN(SINE / 12)), RAD(0), RAD(0)), Speed / Animation_Speed) |
626 | - | if Damage > Humanoid.Health then |
626 | + | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.25, 0.5 + 0.15 * COS(SINE / 12) - 0.05 * COS(SINE / 12), -0.5) * ANGLES(RAD(175), RAD(0), RAD(-35)) * RIGHTSHOULDERC0, Speed / Animation_Speed) |
627 | - | Damage = math.ceil(Humanoid.Health) |
627 | + | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25, 0.5 + 0.15 * COS(SINE / 12) - 0.05 * COS(SINE / 12), 0.5) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, Speed / Animation_Speed) |
628 | - | if Damage == 0 then |
628 | + | RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.5, -0.5) * ANGLES(RAD(0), RAD(65), RAD(0)) * ANGLES(RAD(-3), RAD(0), RAD(-15)), Speed / Animation_Speed) |
629 | - | Damage = 0.1 |
629 | + | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), Speed / Animation_Speed) |
630 | end | |
631 | HATWELD.Part0 = RightArm | |
632 | - | Humanoid.Health = Humanoid.Health - Damage |
632 | + | HATWELD.C0 = CF(0,-1.1,-0.4) * ANGLES(RAD(0), RAD(0), RAD(180)) * ANGLES(RAD(-20), RAD(0), RAD(0)) |
633 | - | if AfterBurn == true then |
633 | + | CreateSound(221057812,Torso,10,1,false) |
634 | - | Afterburn(Humanoid, Time, Damage / 5, Variant) |
634 | + | for i=0, Time*2, 0.1 / Animation_Speed do |
635 | Swait() | |
636 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), Speed / Animation_Speed) | |
637 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(35 - 6.5 * SIN(SINE / 12)), RAD(0), RAD(0)), Speed / Animation_Speed) | |
638 | - | function Afterburn(Human, Time, Damage, Variant) |
638 | + | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.25, 0.5 + 0.15 * COS(SINE / 12) - 0.05 * COS(SINE / 12), 0.5) * ANGLES(RAD(145), RAD(0), RAD(45)) * RIGHTSHOULDERC0, Speed / Animation_Speed) |
639 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25, 0.5 + 0.15 * COS(SINE / 12) - 0.05 * COS(SINE / 12), 0.5) * ANGLES(RAD(5), RAD(25), RAD(-15)) * LEFTSHOULDERC0, Speed / Animation_Speed) | |
640 | - | if Human and (Human.Parent:FindFirstChild("Torso") or Human.Parent:FindFirstChild("UpperTorso")) then |
640 | + | RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.5, -0.5) * ANGLES(RAD(0), RAD(65), RAD(0)) * ANGLES(RAD(-3), RAD(0), RAD(-15)), Speed / Animation_Speed) |
641 | - | local Torso = Human.Parent:FindFirstChild("Torso") or Human.Parent:FindFirstChild("UpperTorso") |
641 | + | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), Speed / Animation_Speed) |
642 | - | local FIRE |
642 | + | |
643 | - | if Variant == "Pheonix" then |
643 | + | for i=0, Time, 0.1 / Animation_Speed do |
644 | - | FIRE = script.PheonixBurn:Clone() |
644 | + | |
645 | - | FIRE.Parent = Torso |
645 | + | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), Speed / Animation_Speed) |
646 | - | FIRE.Enabled = true |
646 | + | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(5), RAD(0), RAD(0)), Speed / Animation_Speed) |
647 | - | elseif Variant == "Sun" then |
647 | + | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.35, 0.65, -0.5) * ANGLES(RAD(175), RAD(0), RAD(-35)) * RIGHTSHOULDERC0, Speed / Animation_Speed) |
648 | - | FIRE = script.SunBurn:Clone() |
648 | + | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25, 0.5 + 0.15 * COS(SINE / 12) - 0.05 * COS(SINE / 12), 0.5) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, Speed / Animation_Speed) |
649 | - | FIRE.Parent = Torso |
649 | + | RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.5, -0.5) * ANGLES(RAD(0), RAD(65), RAD(0)) * ANGLES(RAD(-3), RAD(0), RAD(-15)), Speed / Animation_Speed) |
650 | - | FIRE.Enabled = true |
650 | + | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), Speed / Animation_Speed) |
651 | - | elseif Variant == "Fire" then |
651 | + | HATWELD.C0 = Clerp(HATWELD.C0, CF(-0.5,-1.2,-0.3) * ANGLES(RAD(0), RAD(0), RAD(180)) * ANGLES(RAD(35), RAD(0), RAD(35)), Speed / Animation_Speed) |
652 | - | FIRE = script.Burn:Clone() |
652 | + | |
653 | - | FIRE.Parent = Torso |
653 | + | HATWELD.Part0 = Head |
654 | - | FIRE.Enabled = true |
654 | + | HATWELD.C0 = CF(0,0.35,0) |
655 | elseif WhichPose == "Prepare key" then | |
656 | - | for i = 1, Time do |
656 | + | for i=0, Time, 0.1 / Animation_Speed do |
657 | - | wait(0.5) |
657 | + | |
658 | - | Human.Health = Human.Health - Damage |
658 | + | if Gyro ~= nil and Gyro ~= false then |
659 | Gyro.cframe = CF(RootPart.Position,Tors.Position) | |
660 | - | wait(0.25) |
660 | + | |
661 | - | FIRE.Enabled = false |
661 | + | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(65)), Speed / Animation_Speed) |
662 | - | Debris:AddItem(FIRE, 1.5) |
662 | + | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(5 - 6.5 * SIN(SINE / 12)), RAD(0), RAD(-65)), Speed / Animation_Speed) |
663 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5 + 0.15 * COS(SINE / 12) - 0.05 * COS(SINE / 12), -0.25) * ANGLES(RAD(90), RAD(0), RAD(65)) * RIGHTSHOULDERC0, Speed / Animation_Speed) | |
664 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25, 0.5 + 0.15 * COS(SINE / 12) - 0.05 * COS(SINE / 12), 0.5) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, Speed / Animation_Speed) | |
665 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.5, -0.5) * ANGLES(RAD(0), RAD(65), RAD(0)) * ANGLES(RAD(-3), RAD(0), RAD(-15)), Speed / Animation_Speed) | |
666 | - | function ApplyAoE(POSITION, RANGE, MINDMG, MAXDMG, FLING, AFTERBURN, TIME, VARIANT, DOESCAMSHAKE, CAMVALUES) |
666 | + | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), Speed / Animation_Speed) |
667 | - | local CHILDREN = workspace:GetChildren() |
667 | + | |
668 | elseif WhichPose == "Turn key" then | |
669 | for i=0, Time, 0.1 / Animation_Speed do | |
670 | Swait() | |
671 | if Gyro ~= nil and Gyro ~= false then | |
672 | Gyro.cframe = CF(RootPart.Position,Tors.Position) | |
673 | - | if TORSO and RANGE >= (TORSO.Position - POSITION).Magnitude then |
673 | + | |
674 | - | local DMG = MRANDOM(MINDMG, MAXDMG) |
674 | + | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(75)), Speed / Animation_Speed) |
675 | - | ApplyDamage(HUM, DMG, TORSO, TIME, AFTERBURN, VARIANT) |
675 | + | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(5 - 6.5 * SIN(SINE / 12)), RAD(0), RAD(-75)), Speed / Animation_Speed) |
676 | - | if HUM.MaxHealth == math.huge then |
676 | + | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5 + 0.15 * COS(SINE / 12) - 0.05 * COS(SINE / 12), -0.25) * ANGLES(RAD(90), RAD(0), RAD(75)) * ANGLES(RAD(0), RAD(-90), RAD(0)) * RIGHTSHOULDERC0, Speed / Animation_Speed) |
677 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25, 0.5 + 0.15 * COS(SINE / 12) - 0.05 * COS(SINE / 12), 0.5) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, Speed / Animation_Speed) | |
678 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.5, -0.5) * ANGLES(RAD(0), RAD(65), RAD(0)) * ANGLES(RAD(-3), RAD(0), RAD(-15)), Speed / Animation_Speed) | |
679 | - | if DOESCAMSHAKE == true then |
679 | + | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), Speed / Animation_Speed) |
680 | - | local CAMSHAKER = script.CamShake:Clone() |
680 | + | |
681 | - | CAMSHAKER.Shake.Value = CAMVALUES.SHAKE |
681 | + | |
682 | - | CAMSHAKER.Timer.Value = CAMVALUES.TIMER |
682 | + | PLAYMAINANIM = true |
683 | - | CAMSHAKER.DoesFade.Value = CAMVALUES.DOESFADE |
683 | + | |
684 | - | CAMSHAKER.Parent = CHILD |
684 | + | |
685 | - | CAMSHAKER.Disabled = false |
685 | + | --Lightning({Color = C3(1,1,1), Start = Torso.Position, End = Mouse.Hit.p, SegmentL = 2, Thickness = 0.1, DoesFade = false, Ignore = Character, MaxDist = 400, Branches = false}) |
686 | function Lightning(Table) | |
687 | - | if FLING > 0 then |
687 | + | local Color = Table.Color or C3(1,1,1) |
688 | - | for _, c in pairs(CHILD:GetChildren()) do |
688 | + | local StartPos = Table.Start or Torso.Position |
689 | - | if c:IsA("BasePart") then |
689 | + | local EndPos = Table.End or Mouse.Hit.p |
690 | - | local bv = Instance.new("BodyVelocity") |
690 | + | local SegmentLength = Table.SegmentL or 2 |
691 | - | bv.maxForce = Vector3.new(1000000000, 1000000000, 1000000000) |
691 | + | local Thickness = Table.Thickness or 0.1 |
692 | - | bv.velocity = CF(POSITION, TORSO.Position).lookVector * FLING |
692 | + | local Dissapear = Table.DoesFade or false |
693 | - | bv.Parent = c |
693 | + | local Parent = Table.Ignore or Character |
694 | - | Debris:AddItem(bv, 0.05) |
694 | + | local MaxDist = Table.MaxDist or 400 |
695 | local Branches = Table.Branches or false | |
696 | local HIT,HITPOS = CastProperRay(StartPos, EndPos, MaxDist, Parent) | |
697 | local DISTANCE = math.ceil((StartPos - HITPOS).Magnitude/SegmentLength) | |
698 | local LIGHTNINGMODEL = IT("Model",Effects) | |
699 | LIGHTNINGMODEL.Name = "Lightning" | |
700 | local LastBolt = nil | |
701 | for E = 1, DISTANCE do | |
702 | local ExtraSize = (DISTANCE-E)/15 | |
703 | - | function ShootingStar() |
703 | + | local PART = CreatePart(3, LIGHTNINGMODEL, "Neon", 0, 0, BRICKC("Pearl"), "LightningPart"..E, VT(Thickness+ExtraSize,SegmentLength,Thickness+ExtraSize)) |
704 | PART.Color = Color | |
705 | MakeForm(PART,"Cyl") | |
706 | - | local GYRO = IT("BodyGyro", RootPart) |
706 | + | if LastBolt == nil then |
707 | - | GYRO.D = 20 |
707 | + | PART.CFrame = CF(StartPos,HITPOS)*ANGLES(RAD(90),RAD(0),RAD(0))*CF(0,-PART.Size.Y/2,0) |
708 | - | GYRO.P = 4000 |
708 | + | |
709 | - | GYRO.MaxTorque = VT(0, 40000, 0) |
709 | + | PART.CFrame = CF(LastBolt.CFrame*CF(0,-LastBolt.Size.Y/2,0).p,CF(HITPOS)*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))*CF(0,0,SegmentLength/3+(DISTANCE-E)).p)*ANGLES(RAD(90),RAD(0),RAD(0))*CF(0,-PART.Size.Y/2,0) |
710 | - | local RING, WELD, MESH = MagicRing(RightArm, CF(0, -1.2, 0), "Sun") |
710 | + | |
711 | LastBolt = PART | |
712 | - | for i = 1, 35 do |
712 | + | if Branches == true then |
713 | local CHOICE = MRANDOM(1,7+((DISTANCE-E)*2)) | |
714 | - | MESH.Scale = MESH.Scale + VT(2.6, 0, 2.6) |
714 | + | if CHOICE == 1 then |
715 | local LASTBRANCH = nil | |
716 | for i = 1, MRANDOM(2,5) do | |
717 | - | for i = 0, 1.8, 0.1 / Animation_Speed do |
717 | + | local ExtraSize2 = ((DISTANCE-E)/25)/i |
718 | - | GYRO.CFrame = CF(RootPart.Position, Mouse.Hit.p) |
718 | + | local PART = CreatePart(3, LIGHTNINGMODEL, "Neon", 0, 0, BRICKC("Pearl"), "Branch"..E.."-"..i, VT(Thickness+ExtraSize2,SegmentLength,Thickness+ExtraSize2)) |
719 | - | Swait() |
719 | + | PART.Color = Color |
720 | - | RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(74)), 2 / Animation_Speed) |
720 | + | MakeForm(PART,"Cyl") |
721 | - | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(20), RAD(0), RAD(-74)), 1 / Animation_Speed) |
721 | + | if LASTBRANCH == nil then |
722 | - | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.25, 0.5, -0.3) * ANGLES(RAD(90), RAD(0), RAD(74)) * RIGHTSHOULDERC0, 1 / Animation_Speed) |
722 | + | PART.CFrame = CF(LastBolt.CFrame*CF(0,-LastBolt.Size.Y/2,0).p,LastBolt.CFrame*CF(0,-LastBolt.Size.Y/2,0)*ANGLES(RAD(0),RAD(0),RAD(MRANDOM(0,360)))*CF(0,Thickness*7,0)*CF(0,0,-1).p)*ANGLES(RAD(90),RAD(0),RAD(0))*CF(0,-PART.Size.Y/2,0) |
723 | - | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.45, 0.1, -0.3) * ANGLES(RAD(0), RAD(45), RAD(0)) * ANGLES(RAD(165), RAD(0), RAD(0)) * LEFTSHOULDERC0, 1 / Animation_Speed) |
723 | + | else |
724 | - | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(0), RAD(65), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed) |
724 | + | PART.CFrame = CF(LASTBRANCH.CFrame*CF(0,-LASTBRANCH.Size.Y/2,0).p,LASTBRANCH.CFrame*CF(0,-LASTBRANCH.Size.Y/2,0)*ANGLES(RAD(0),RAD(0),RAD(MRANDOM(0,360)))*CF(0,Thickness*3,0)*CF(0,0,-1).p)*ANGLES(RAD(90),RAD(0),RAD(0))*CF(0,-PART.Size.Y/2,0) |
725 | - | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed) |
725 | + | |
726 | LASTBRANCH = PART | |
727 | end | |
728 | - | local POSITION = Mouse.Hit.p |
728 | + | |
729 | - | local FIREBALL = CreatePart(3, Effects, "Neon", 0, 1, "New Yeller", "Fire", VT(3, 3, 3)) |
729 | + | |
730 | - | FIREBALL.CFrame = RightArm.CFrame * CF(0, -3, 0) |
730 | + | |
731 | - | local FIRE = script.SunFireball:Clone() |
731 | + | if Dissapear == true then |
732 | - | FIRE.Parent = FIREBALL |
732 | + | |
733 | - | FIRE.Enabled = true |
733 | + | for i = 1, 10 do |
734 | - | local EXPLOSION = script.SunExplosion:Clone() |
734 | + | |
735 | - | EXPLOSION.Parent = FIREBALL |
735 | + | for _, c in pairs(LIGHTNINGMODEL:GetChildren()) do |
736 | - | CreateSound(463598785, FIREBALL, 5, 1, false) |
736 | + | if c.ClassName == "Part" then |
737 | - | local DISTANCE = (RootPart.Position - POSITION).Magnitude |
737 | + | c.Transparency = i/10 |
738 | - | local FRAME = CF(VT(POSITION.X + MRANDOM(-45, 45) / 3, RootPart.Position.Y, POSITION.Z + MRANDOM(-45, 45) / 3), RootPart.Position + VT(0, 145, 0)) * CF(0, 0, -DISTANCE / 2) |
738 | + | |
739 | - | for i = 1, 75 do |
739 | + | |
740 | end | |
741 | - | FIREBALL.CFrame = Clerp(FIREBALL.CFrame, FRAME, 0.5 / Animation_Speed) |
741 | + | LIGHTNINGMODEL:remove() |
742 | end)) | |
743 | - | FIREBALL.CFrame = CF(FIREBALL.Position, POSITION) |
743 | + | elseif Dissapear == false then |
744 | - | for i = 1, 300 do |
744 | + | Debris:AddItem(LIGHTNINGMODEL,0.1) |
745 | end | |
746 | - | FIREBALL.CFrame = FIREBALL.CFrame * CF(0, 0, -4) |
746 | + | return {End = LastBolt.CFrame*CF(0,0,-LastBolt.Size.Z/2).p,LastBolt = LastBolt,Model = LIGHTNINGMODEL} |
747 | - | local HITFLOOR, HITPOS = Raycast(FIREBALL.Position, FIREBALL.CFrame.lookVector, 4.2, Character) |
747 | + | |
748 | - | if HITFLOOR ~= nil then |
748 | + | |
749 | - | FIRE.Enabled = false |
749 | + | --//=================================\\ |
750 | - | EXPLOSION:Emit(500) |
750 | + | --|| WEAPON CREATION |
751 | - | CreateSound(416328540, FIREBALL, 5, 1, false) |
751 | + | --\\=================================// |
752 | - | ApplyAoE(FIREBALL.Position, 75, 25, 35, 65, true, MRANDOM(5, 15), "Sun", true, { |
752 | + | |
753 | - | SHAKE = 1, |
753 | + | for i = 1, 15 do |
754 | - | TIMER = 6, |
754 | + | local FACE = CreatePart(3, Character, "Fabric", 0, 0+(i-1)/15.2, "Dark stone grey", "FaceGradient", VT(1.01,0.58,1.01),false) |
755 | - | DOESFADE = true |
755 | + | FACE.Color = C3(0,0,0) |
756 | - | }) |
756 | + | Head:FindFirstChildOfClass("SpecialMesh"):Clone().Parent = FACE |
757 | - | WACKYEFFECT({ |
757 | + | CreateWeldOrSnapOrMotor("Weld", Head, Head, FACE, CF(0,0.35-(i-1)/35,0), CF(0, 0, 0)) |
758 | - | EffectType = "Sphere", |
758 | + | |
759 | - | Size = VT(0, 0, 0), |
759 | + | local HAT1 = CreatePart(3, Character, "SmoothPlastic", 0, 0, "Really black", "Hat", VT(2,0.2,2),false) |
760 | - | Size2 = VT(150, 150, 150), |
760 | + | MakeForm(HAT1,"Cyl") |
761 | - | Transparency = 0, |
761 | + | HATWELD = CreateWeldOrSnapOrMotor("Weld", Head, Head, HAT1, CF(0,0.35,0), CF(0, 0, 0)) |
762 | - | Transparency2 = 1, |
762 | + | local BELT = CreatePart(3, Character, "SmoothPlastic", 0, 0, "Really black", "Hat", VT(2.01,0.15,2.01),false) |
763 | - | CFrame = CF(FIREBALL.Position), |
763 | + | BELT.Color = C3(15/255,15/255,15/255) |
764 | - | MoveToPos = nil, |
764 | + | MakeForm(BELT,"Cyl") |
765 | - | RotationX = 0, |
765 | + | CreateWeldOrSnapOrMotor("Weld", HAT1, HAT1, BELT, CF(0,0,0), CF(0, 0, 0)) |
766 | - | RotationY = 0, |
766 | + | local HAT2 = CreatePart(3, Character, "SmoothPlastic", 0, 0, "Really black", "Hat", VT(1.3,2.2,1.3),false) |
767 | - | RotationZ = 0, |
767 | + | MakeForm(HAT2,"Cyl") |
768 | - | Material = "Neon", |
768 | + | CreateWeldOrSnapOrMotor("Weld", HAT1, HAT1, HAT2, CF(0,1.1,0), CF(0, 0, 0)) |
769 | - | Color = C3(1, 0.6666666666666666, 0), |
769 | + | local BELT = CreatePart(3, Character, "SmoothPlastic", 0, 0, "Really black", "Hat", VT(1.31,0.2,1.31),false) |
770 | - | SoundID = nil, |
770 | + | BELT.Color = C3(15/255,15/255,15/255) |
771 | - | SoundPitch = nil, |
771 | + | MakeForm(BELT,"Cyl") |
772 | - | SoundVolume = nil |
772 | + | CreateWeldOrSnapOrMotor("Weld", HAT2, HAT2, BELT, CF(0,0,0), CF(0, 0, 0)) |
773 | - | }) |
773 | + | local GEM = CreatePart(3, Character, "Neon", 0, 0, "Dark blue", "Gem", VT(0.25,0.25,0.1),false) |
774 | MakeForm(GEM,"Ball") | |
775 | - | break |
775 | + | CreateWeldOrSnapOrMotor("Weld", HAT2, HAT2, GEM, CF(0,0,-BELT.Size.X/2), CF(0, 0, 0)) |
776 | local GEM = CreatePart(3, Character, "Neon", 0, 0, "Dark blue", "Gem", VT(0.25,0.25,0.1),false) | |
777 | MakeForm(GEM,"Ball") | |
778 | - | FIREBALL:remove() |
778 | + | CreateWeldOrSnapOrMotor("Weld", HAT2, HAT2, GEM, CF(0,0,BELT.Size.X/2), CF(0, 0, 0)) |
779 | local GEM = CreatePart(3, Character, "Neon", 0, 0, "Dark blue", "Gem", VT(0.1,0.25,0.25),false) | |
780 | MakeForm(GEM,"Ball") | |
781 | - | RING.Anchored = true |
781 | + | CreateWeldOrSnapOrMotor("Weld", HAT2, HAT2, GEM, CF(-BELT.Size.X/2,0,0), CF(0, 0, 0)) |
782 | - | WELD:remove() |
782 | + | local GEM = CreatePart(3, Character, "Neon", 0, 0, "Dark blue", "Gem", VT(0.1,0.25,0.25),false) |
783 | MakeForm(GEM,"Ball") | |
784 | - | for i = 1, 35 do |
784 | + | CreateWeldOrSnapOrMotor("Weld", HAT2, HAT2, GEM, CF(BELT.Size.X/2,0,0), CF(0, 0, 0)) |
785 | local BELT = CreatePart(3, Character, "SmoothPlastic", 0, 0, "Really black", "Hat", VT(1.31,0.1,1.31),false) | |
786 | - | MESH.Scale = MESH.Scale - VT(2.6, 0, 2.6) |
786 | + | BELT.Color = C3(15/255,15/255,15/255) |
787 | MakeForm(BELT,"Cyl") | |
788 | - | RING:remove() |
788 | + | CreateWeldOrSnapOrMotor("Weld", HAT2, HAT2, BELT, CF(0,0.7,0), CF(0, 0, 0)) |
789 | local BELT = CreatePart(3, Character, "SmoothPlastic", 0, 0, "Really black", "Hat", VT(1.31,0.1,1.31),false) | |
790 | BELT.Color = C3(15/255,15/255,15/255) | |
791 | MakeForm(BELT,"Cyl") | |
792 | CreateWeldOrSnapOrMotor("Weld", HAT2, HAT2, BELT, CF(0,-0.7,0), CF(0, 0, 0)) | |
793 | - | function PheonixRage() |
793 | + | local BELT = CreatePart(3, Character, "SmoothPlastic", 0, 0, "Really black", "Hat", VT(1.31,0.1,1.31),false) |
794 | BELT.Color = C3(15/255,15/255,15/255) | |
795 | - | Rooted = true |
795 | + | MakeForm(BELT,"Cyl") |
796 | - | local A = false |
796 | + | CreateWeldOrSnapOrMotor("Weld", HAT2, HAT2, BELT, CF(0,0.35,0), CF(0, 0, 0)) |
797 | - | local B = false |
797 | + | local BELT = CreatePart(3, Character, "SmoothPlastic", 0, 0, "Really black", "Hat", VT(1.31,0.1,1.31),false) |
798 | - | local RING, WELD, MESH = MagicRing(RootPart, CF(0, -3, 0), "Pheonix") |
798 | + | BELT.Color = C3(15/255,15/255,15/255) |
799 | - | WELD:remove() |
799 | + | MakeForm(BELT,"Cyl") |
800 | - | RING.Anchored = true |
800 | + | CreateWeldOrSnapOrMotor("Weld", HAT2, HAT2, BELT, CF(0,-0.35,0), CF(0, 0, 0)) |
801 | local BELT = CreatePart(3, Character, "SmoothPlastic", 0, 0, "Really black", "Hat", VT(1.3,0.5,1.3),false) | |
802 | - | for i = 1, 45 do |
802 | + | MakeForm(BELT,"Ball") |
803 | CreateWeldOrSnapOrMotor("Weld", HAT2, HAT2, BELT, CF(0,HAT2.Size.Y/2,0), CF(0, 0, 0)) | |
804 | - | MESH.Scale = MESH.Scale + VT(15, 0, 15) |
804 | + | Humanoid.DisplayDistanceType = "None" |
805 | local naeeym2 = IT("BillboardGui",Character) | |
806 | naeeym2.AlwaysOnTop = true | |
807 | naeeym2.Size = UDim2.new(5,35,2,15) | |
808 | - | repeat |
808 | + | naeeym2.StudsOffset = Vector3.new(0,3,0) |
809 | naeeym2.MaxDistance = 75 | |
810 | - | RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) |
810 | + | |
811 | - | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(15 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed) |
811 | + | |
812 | - | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.15, 0.5, -0.5) * ANGLES(RAD(15), RAD(0), RAD(-90)) * RIGHTSHOULDERC0, 1 / Animation_Speed) |
812 | + | local tecks2 = IT("TextLabel",naeeym2) |
813 | - | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.15, 0.25, -0.5) * ANGLES(RAD(-15), RAD(0), RAD(90)) * LEFTSHOULDERC0, 1 / Animation_Speed) |
813 | + | |
814 | - | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(70), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 1 / Animation_Speed) |
814 | + | |
815 | - | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-70), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 1 / Animation_Speed) |
815 | + | |
816 | - | until A == true |
816 | + | tecks2.Text = "Lunar Warden" |
817 | - | repeat |
817 | + | tecks2.Font = "Bodoni" |
818 | tecks2.TextSize = 30 | |
819 | - | RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(-25), RAD(0), RAD(0)), 1 / Animation_Speed) |
819 | + | tecks2.TextStrokeTransparency = 0.5 |
820 | - | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed) |
820 | + | tecks2.TextColor3 = C3(0,0,0) |
821 | - | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(45)) * RIGHTSHOULDERC0, 1 / Animation_Speed) |
821 | + | tecks2.TextStrokeColor3 = BRICKC"Dark blue".Color |
822 | - | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-45)) * LEFTSHOULDERC0, 1 / Animation_Speed) |
822 | + | |
823 | - | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(-35), RAD(80), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 1 / Animation_Speed) |
823 | + | |
824 | - | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(-35), RAD(-80), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 1 / Animation_Speed) |
824 | + | local Eye = CreatePart(3, Character, "Neon", 0, 0, "Really red", "Eye", VT(0.6,0.1,1)/2,false) |
825 | - | until B == true |
825 | + | MakeForm(Eye,"Ball") |
826 | - | for i = 1, 45 do |
826 | + | CreateWeldOrSnapOrMotor("Weld", Eye, Head, Eye, CF(0,0.2,0) * ANGLES(RAD(0), RAD(-18), RAD(15)), CF(0, 0, 0.4)) |
827 | local Eye = CreatePart(3, Character, "Neon", 0, 0, "Really red", "Eye", VT(0.6,0.1,1)/2,false) | |
828 | - | MESH.Scale = MESH.Scale - VT(15, 0, 15) |
828 | + | MakeForm(Eye,"Ball") |
829 | CreateWeldOrSnapOrMotor("Weld", Eye, Head, Eye, CF(0,0.2,0) * ANGLES(RAD(0), RAD(18), RAD(-15)), CF(0, 0, 0.4)) | |
830 | - | RING:remove() |
830 | + | local Eye = CreatePart(3, Character, "Neon", 0, 0, "Really red", "Eye", VT(0.1,1,1)/2,false) |
831 | MakeForm(Eye,"Ball") | |
832 | - | wait(1) |
832 | + | CreateWeldOrSnapOrMotor("Weld", Eye, Head, Eye, CF(0,0.15,0) * ANGLES(RAD(0), RAD(-18), RAD(0)), CF(0, 0, 0.4)) |
833 | local Eye = CreatePart(3, Character, "Neon", 0, 0, "Really red", "Eye", VT(0.1,1,1)/2,false) | |
834 | - | WACKYEFFECT({ |
834 | + | MakeForm(Eye,"Ball") |
835 | - | EffectType = "Sphere", |
835 | + | CreateWeldOrSnapOrMotor("Weld", Eye, Head, Eye, CF(0,0.15,0) * ANGLES(RAD(0), RAD(18), RAD(0)), CF(0, 0, 0.4)) |
836 | - | Size = VT(45, 45, 45), |
836 | + | local top = Instance.new("Shirt") |
837 | - | Size2 = VT(0, 0, 0), |
837 | + | top.ShirtTemplate = "rbxassetid://276792537" |
838 | - | Transparency = 1, |
838 | + | top.Parent = Character |
839 | - | Transparency2 = 0.8, |
839 | + | top.Name = "Cloth" |
840 | - | CFrame = CF(Torso.Position), |
840 | + | local bottom = Instance.new("Pants") |
841 | - | MoveToPos = nil, |
841 | + | bottom.PantsTemplate = "rbxassetid://276792689" |
842 | - | RotationX = 0, |
842 | + | bottom.Parent = Character |
843 | - | RotationY = 0, |
843 | + | bottom.Name = "Cloth" |
844 | - | RotationZ = 0, |
844 | + | local BC = Character["Body Colors"] |
845 | - | Material = "Neon", |
845 | + | BC.HeadColor = BrickColor.new("Dark blue") |
846 | - | Color = PHEONIXCOLOR, |
846 | + | BC.LeftArmColor = BrickColor.new("Dark blue") |
847 | - | SoundID = nil, |
847 | + | BC.LeftLegColor = BrickColor.new("Dark blue") |
848 | - | SoundPitch = nil, |
848 | + | BC.RightArmColor = BrickColor.new("Dark blue") |
849 | - | SoundVolume = nil |
849 | + | BC.RightLegColor = BrickColor.new("Dark blue") |
850 | - | }) |
850 | + | BC.TorsoColor = BrickColor.new("Dark blue") |
851 | - | wait(0.5) |
851 | + | for _, c in pairs(Character:GetChildren()) do |
852 | if c.ClassName == "Part" and c.Name ~= "FaceGradient" and c.Name ~= "Hat" and c.Name ~= "Gem" then | |
853 | - | A = true |
853 | + | c.Material = "Neon" |
854 | - | ApplyAoE(Torso.Position, 80, 45, 50, 35, true, MRANDOM(12, 16), "Pheonix", true, { |
854 | + | if c:FindFirstChildOfClass("ParticleEmitter") then |
855 | - | SHAKE = 2, |
855 | + | c:FindFirstChildOfClass("ParticleEmitter"):remove() |
856 | - | TIMER = 25, |
856 | + | |
857 | - | DOESFADE = true |
857 | + | c.Color = C3(1,1,1) |
858 | - | }) |
858 | + | if c == Head then |
859 | - | WACKYEFFECT({ |
859 | + | if c:FindFirstChild("face") then |
860 | - | Time = 60, |
860 | + | c.face:remove() |
861 | - | EffectType = "Sphere", |
861 | + | |
862 | - | Size = VT(40, 40, 40), |
862 | + | |
863 | - | Size2 = VT(140, 140, 140), |
863 | + | elseif c.ClassName == "CharacterMesh" or c.ClassName == "Accessory" or c.ClassName == "Hat" or c.Name == "Body Colors" then |
864 | - | Transparency = 0, |
864 | + | c:remove() |
865 | - | Transparency2 = 1, |
865 | + | elseif (c.ClassName == "Shirt" or c.ClassName == "Pants") and c.Name ~= "Cloth" then |
866 | - | CFrame = CF(Torso.Position), |
866 | + | c:remove() |
867 | - | MoveToPos = nil, |
867 | + | |
868 | - | RotationX = 0, |
868 | + | |
869 | - | RotationY = 0, |
869 | + | local BODY = {} |
870 | - | RotationZ = 0, |
870 | + | for _, c in pairs(Character:GetDescendants()) do |
871 | - | Material = "Neon", |
871 | + | if c:IsA("BasePart") and c.Name ~= "Handle" then |
872 | - | Color = C3(1, 0.6666666666666666, 0), |
872 | + | if c ~= RootPart and c ~= Torso and c ~= Head and c ~= RightArm and c ~= LeftArm and c ~= RightLeg and c ~= LeftLeg then |
873 | - | SoundID = nil, |
873 | + | c.CustomPhysicalProperties = PhysicalProperties.new(0, 0, 0, 0, 0) |
874 | - | SoundPitch = nil, |
874 | + | |
875 | - | SoundVolume = nil |
875 | + | table.insert(BODY,{c,c.Parent,c.Material,c.Color,c.Transparency}) |
876 | - | }) |
876 | + | elseif c:IsA("JointInstance") then |
877 | - | WACKYEFFECT({ |
877 | + | table.insert(BODY,{c,c.Parent,nil,nil,nil}) |
878 | - | Time = 60, |
878 | + | |
879 | - | EffectType = "Sphere", |
879 | + | |
880 | - | Size = VT(50, 50, 50), |
880 | + | for e = 1, #BODY do |
881 | - | Size2 = VT(150, 150, 150), |
881 | + | if BODY[e] ~= nil then |
882 | - | Transparency = 0.5, |
882 | + | local STUFF = BODY[e] |
883 | - | Transparency2 = 1, |
883 | + | local PART = STUFF[1] |
884 | - | CFrame = CF(Torso.Position), |
884 | + | local PARENT = STUFF[2] |
885 | - | MoveToPos = nil, |
885 | + | local MATERIAL = STUFF[3] |
886 | - | RotationX = 0, |
886 | + | local COLOR = STUFF[4] |
887 | - | RotationY = 0, |
887 | + | local TRANSPARENCY = STUFF[5] |
888 | - | RotationZ = 0, |
888 | + | if PART.ClassName == "Part" and PART ~= RootPart then |
889 | - | Material = "Neon", |
889 | + | PART.Material = MATERIAL |
890 | - | Color = PHEONIXCOLOR, |
890 | + | PART.Color = COLOR |
891 | - | SoundID = 462692971, |
891 | + | PART.Transparency = TRANSPARENCY |
892 | - | SoundPitch = 0.8, |
892 | + | |
893 | - | SoundVolume = 6 |
893 | + | PART.AncestryChanged:Connect(function() |
894 | - | }) |
894 | + | PART.Parent = PARENT |
895 | - | local EXPLOSION = script.PheonixExplosion1:Clone() |
895 | + | end) |
896 | - | EXPLOSION.Parent = Torso |
896 | + | |
897 | - | EXPLOSION.Enabled = true |
897 | + | |
898 | - | local EXPLOSION2 = script.PheonixExplosion2:Clone() |
898 | + | function refit() |
899 | - | EXPLOSION2.Parent = Torso |
899 | + | Character.Parent = workspace |
900 | - | EXPLOSION2.Enabled = true |
900 | + | for e = 1, #BODY do |
901 | - | wait(0.3) |
901 | + | if BODY[e] ~= nil then |
902 | - | EXPLOSION.Enabled = false |
902 | + | local STUFF = BODY[e] |
903 | - | EXPLOSION2.Enabled = false |
903 | + | local PART = STUFF[1] |
904 | - | Debris:AddItem(EXPLOSION, 5) |
904 | + | local PARENT = STUFF[2] |
905 | - | Debris:AddItem(EXPLOSION2, 5) |
905 | + | local MATERIAL = STUFF[3] |
906 | - | wait(1) |
906 | + | local COLOR = STUFF[4] |
907 | - | B = true |
907 | + | local TRANSPARENCY = STUFF[5] |
908 | if PART.ClassName == "Part" and PART ~= RootPart then | |
909 | PART.Material = MATERIAL | |
910 | PART.Color = COLOR | |
911 | - | function Breath() |
911 | + | PART.Transparency = TRANSPARENCY |
912 | end | |
913 | - | local POSITION = IT("BodyPosition", RootPart) |
913 | + | if PART.Parent ~= PARENT then |
914 | - | POSITION.Position = RootPart.CFrame * CF(0, 35, 35).p |
914 | + | Humanoid:remove() |
915 | - | POSITION.D = 1250 |
915 | + | PART.Parent = PARENT |
916 | - | POSITION.P = 40000 |
916 | + | Humanoid = IT("Humanoid",Character) |
917 | - | POSITION.maxForce = Vector3.new(math.huge, math.huge, math.huge) |
917 | + | |
918 | - | WINGS = true |
918 | + | |
919 | - | local RING, WELD, MESH = MagicRing(Torso, CF(0, 0.5, 0.6) * ANGLES(RAD(-90), RAD(0), RAD(0)), "Pheonix") |
919 | + | |
920 | end | |
921 | - | for i = 1, 20 do |
921 | + | local SKILLTEXTCOLOR = BRICKC"Dark blue".Color |
922 | local SKILLFONT = "Bodoni" | |
923 | - | MESH.Scale = MESH.Scale + VT(4, 0, 4) |
923 | + | local SKILLTEXTSIZE = 7 |
924 | ||
925 | Humanoid.Died:connect(function() | |
926 | - | for i = 1, 25 do |
926 | + | refit() |
927 | - | Swait() |
927 | + | |
928 | - | RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(-14.4 * i), RAD(0), RAD(0)), 1 / Animation_Speed) |
928 | + | |
929 | - | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(-20), RAD(0), RAD(0)), 0.2 / Animation_Speed) |
929 | + | local SKILL1FRAME = CreateFrame(WEAPONGUI, 0.75, 2, UD2(0.23, 0, 0.80, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 1 Frame") |
930 | - | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.25, 0.5, -1) * ANGLES(RAD(0), RAD(0), RAD(-90)) * RIGHTSHOULDERC0, 0.2 / Animation_Speed) |
930 | + | local SKILL2FRAME = CreateFrame(WEAPONGUI, 0.75, 2, UD2(0.50, 0, 0.80, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 2 Frame") |
931 | - | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25, 0.5, -1) * ANGLES(RAD(0), RAD(0), RAD(90)) * LEFTSHOULDERC0, 0.2 / Animation_Speed) |
931 | + | local SKILL3FRAME = CreateFrame(WEAPONGUI, 0.75, 2, UD2(0.23, 0, 0.90, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 3 Frame") |
932 | - | RightHip.C0 = Clerp(RightHip.C0, CF(1, 0, -0.5) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(-20)), 0.2 / Animation_Speed) |
932 | + | local SKILL4FRAME = CreateFrame(WEAPONGUI, 0.75, 2, UD2(0.50, 0, 0.90, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 4 Frame") |
933 | - | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, 0, -0.5) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(20)), 0.2 / Animation_Speed) |
933 | + | local SKILL5FRAME = CreateFrame(WEAPONGUI, 0.75, 2, UD2(0.365, 0, 0.70, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 5 Frame") |
934 | ||
935 | - | local GYRO = IT("BodyGyro", RootPart) |
935 | + | local SKILL1TEXT = CreateLabel(SKILL1FRAME, "[Z] Warden Zap", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0, "Text 1") |
936 | - | GYRO.D = 20 |
936 | + | local SKILL2TEXT = CreateLabel(SKILL2FRAME, "[B] Warden Thunder", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0, "Text 2") |
937 | - | GYRO.P = 4000 |
937 | + | local SKILL3TEXT = CreateLabel(SKILL3FRAME, "[C] Inferno Ring", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0, "Text 3") |
938 | - | GYRO.MaxTorque = VT(0, 40000, 0) |
938 | + | local SKILL4TEXT = CreateLabel(SKILL4FRAME, "[V] Warden Wall", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0, "Text 4") |
939 | local SKILL5TEXT = CreateLabel(SKILL5FRAME, "[X] Prison Key", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0, "Text 5") | |
940 | - | repeat |
940 | + | |
941 | --//=================================\\ | |
942 | - | GYRO.CFrame = CF(RootPart.Position, Mouse.Hit.p) |
942 | + | --|| DAMAGING |
943 | - | RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 + 1 * SIN(SINE / 24)) * ANGLES(RAD(0), RAD(0), RAD(24)), 2 / Animation_Speed) |
943 | + | --\\=================================// |
944 | - | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(20), RAD(0), RAD(-24)), 1 / Animation_Speed) |
944 | + | |
945 | - | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.25, 0.5, -0.3) * ANGLES(RAD(90), RAD(0), RAD(24)) * RIGHTSHOULDERC0, 1 / Animation_Speed) |
945 | + | function ApplyAoE(POSITION,RANGE,FLING,BURN) |
946 | - | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.45, 0.1, -0.3) * ANGLES(RAD(0), RAD(45), RAD(0)) * ANGLES(RAD(165), RAD(0), RAD(0)) * LEFTSHOULDERC0, 1 / Animation_Speed) |
946 | + | local CHILDREN = workspace:GetDescendants() |
947 | - | RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.5, -0.5) * ANGLES(RAD(0), RAD(75), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) |
947 | + | |
948 | - | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) |
948 | + | |
949 | - | until ATTACK == false |
949 | + | |
950 | - | POSITION:remove() |
950 | + | |
951 | - | GYRO:remove() |
951 | + | |
952 | - | for i = 1, 20 do |
952 | + | if TORSO then |
953 | if HUM.Health > 0 and (TORSO.Position - POSITION).Magnitude <= RANGE then | |
954 | - | MESH.Scale = MESH.Scale - VT(4, 0, 4) |
954 | + | |
955 | if FLING ~= 0 then | |
956 | - | RING:remove() |
956 | + | for _, c in pairs(CHILD:GetChildren()) do |
957 | if c:IsA("BasePart") and c.Transparency == 0 then | |
958 | - | local RING, WELD, MESH = MagicRing(RightArm, CF(0, -1.2, 0) * ANGLES(RAD(0), RAD(180), RAD(0)), "Pheonix") |
958 | + | if BURN == true then |
959 | - | for i = 1, 35 do |
959 | + | Fire(c) |
960 | - | Swait() |
960 | + | end |
961 | - | MESH.Scale = MESH.Scale + VT(2.6, 0, 2.6) |
961 | + | local bv = Instance.new("BodyVelocity") |
962 | bv.maxForce = Vector3.new(1e9, 1e9, 1e9) | |
963 | - | wait(0.3) |
963 | + | bv.velocity = CF(POSITION,TORSO.Position).lookVector*FLING |
964 | bv.Parent = c | |
965 | - | local FIREBALL = CreatePart(3, Effects, "Neon", 0, 1, "Cyan", "Flight", VT(5, 5, 5)) |
965 | + | Debris:AddItem(bv,0.05) |
966 | - | FIREBALL.CFrame = CF(RING.Position, Mouse.Hit.p) |
966 | + | end |
967 | - | local PARTICLES1 = script.PheonixFireball1:Clone() |
967 | + | |
968 | - | PARTICLES1.Parent = FIREBALL |
968 | + | |
969 | - | PARTICLES1.Enabled = true |
969 | + | |
970 | - | local PARTICLES2 = script.PheonixFireball2:Clone() |
970 | + | |
971 | - | PARTICLES2.Parent = FIREBALL |
971 | + | |
972 | - | PARTICLES2.Enabled = true |
972 | + | |
973 | - | CreateSound(463593339, FIREBALL, 6, 1, false) |
973 | + | |
974 | - | for i = 1, 250 do |
974 | + | |
975 | ||
976 | - | local HIT, HITPOS = Raycast(FIREBALL.Position, FIREBALL.CFrame.lookVector, 2.5, Character) |
976 | + | --//=================================\\ |
977 | - | FIREBALL.CFrame = FIREBALL.CFrame * CF(0, 0, -2) |
977 | + | --|| ATTACK FUNCTIONS AND STUFF |
978 | - | if HIT then |
978 | + | --\\=================================// |
979 | - | ApplyAoE(FIREBALL.Position, 50, 45, 50, 35, true, MRANDOM(12, 16), "Pheonix", true, { |
979 | + | |
980 | - | SHAKE = 2, |
980 | + | function Warden_Zap() |
981 | - | TIMER = 25, |
981 | + | |
982 | - | DOESFADE = true |
982 | + | |
983 | - | }) |
983 | + | local GYRO = IT("BodyGyro",RootPart) |
984 | - | WACKYEFFECT({ |
984 | + | GYRO.D = 750 |
985 | - | Time = 60, |
985 | + | GYRO.P = 20000 |
986 | - | EffectType = "Sphere", |
986 | + | GYRO.MaxTorque = VT(0,40000000,0) |
987 | - | Size = VT(0, 0, 0), |
987 | + | CreateSound(348663022,RightArm,1.5,2,false) |
988 | - | Size2 = VT(100, 100, 100), |
988 | + | Pose("Cast1",0.8,1,true,GYRO) |
989 | - | Transparency = 0, |
989 | + | local LightningTable = Lightning({Color = SKILLTEXTCOLOR, Start = RightArm.CFrame*CF(0,-1,0).p, End = Mouse.Hit.p, SegmentL = 2, Thickness = 0.2, DoesFade = true, Ignore = Character, MaxDist = 100, Branches = false}) |
990 | - | Transparency2 = 1, |
990 | + | local Hitpos = LightningTable.End |
991 | - | CFrame = CF(FIREBALL.Position), |
991 | + | ApplyAoE(Hitpos,10,35) |
992 | - | MoveToPos = nil, |
992 | + | WACKYEFFECT({Time = 15, EffectType = "Sphere", Size = VT(1,1,1), Size2 = VT(1,1,1)*15, Transparency = 0, Transparency2 = 1, CFrame = CF(Hitpos)*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360))), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = BRICKC"Dark blue".Color, SoundID = BOLTSOUNDS[MRANDOM(1,#BOLTSOUNDS)], SoundPitch = MRANDOM(8,12)/10, SoundVolume = 5}) |
993 | - | RotationX = 0, |
993 | + | |
994 | - | RotationY = 0, |
994 | + | WACKYEFFECT({Time = 15, EffectType = "Sphere", Size = VT(1,1,1), Size2 = VT(0,45,0), Transparency = 0, Transparency2 = 1, CFrame = CF(Hitpos)*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360))), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = BRICKC"Dark blue".Color, SoundID = nil, SoundPitch = nil, SoundVolume = nil}) |
995 | - | RotationZ = 0, |
995 | + | |
996 | - | Material = "Neon", |
996 | + | Pose("Cast1",0.8,1,true) |
997 | - | Color = C3(1, 0.6666666666666666, 0), |
997 | + | |
998 | - | SoundID = nil, |
998 | + | |
999 | - | SoundPitch = nil, |
999 | + | |
1000 | - | SoundVolume = nil |
1000 | + | |
1001 | - | }) |
1001 | + | |
1002 | - | WACKYEFFECT({ |
1002 | + | function Warden_Thunder() |
1003 | - | Time = 60, |
1003 | + | |
1004 | - | EffectType = "Sphere", |
1004 | + | |
1005 | - | Size = VT(0, 0, 0), |
1005 | + | local GYRO = IT("BodyGyro",RootPart) |
1006 | - | Size2 = VT(120, 120, 120), |
1006 | + | GYRO.D = 750 |
1007 | - | Transparency = 0.5, |
1007 | + | GYRO.P = 20000 |
1008 | - | Transparency2 = 1, |
1008 | + | GYRO.MaxTorque = VT(0,40000000,0) |
1009 | - | CFrame = CF(FIREBALL.Position), |
1009 | + | CreateSound(469345336,Torso,3,2,false) |
1010 | - | MoveToPos = nil, |
1010 | + | Pose("Cast2",1.5,2,true,GYRO) |
1011 | - | RotationX = 0, |
1011 | + | |
1012 | - | RotationY = 0, |
1012 | + | local FRAME = RootPart.CFrame |
1013 | - | RotationZ = 0, |
1013 | + | for i = 1, 25 do |
1014 | - | Material = "Neon", |
1014 | + | local POS = FRAME*CF(MRANDOM(-17,17),0,-i*15) |
1015 | - | Color = PHEONIXCOLOR, |
1015 | + | local LightningTable = Lightning({Color = SKILLTEXTCOLOR, Start = POS*CF(0,85,0).p, End = POS*CF(0,-15,0).p, SegmentL = 3, Thickness = 0.4, DoesFade = true, Ignore = Character, MaxDist = 400, Branches = true}) |
1016 | - | SoundID = 462692971, |
1016 | + | local Hitpos = LightningTable.End |
1017 | - | SoundPitch = 1, |
1017 | + | ApplyAoE(Hitpos,20,15) |
1018 | - | SoundVolume = 6 |
1018 | + | WACKYEFFECT({Time = 15, EffectType = "Sphere", Size = VT(1,1,1), Size2 = VT(1,1,1)*15, Transparency = 0, Transparency2 = 1, CFrame = CF(Hitpos)*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360))), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = BRICKC"Dark blue".Color, SoundID = BOLTSOUNDS[MRANDOM(1,#BOLTSOUNDS)], SoundPitch = MRANDOM(8,12)/10, SoundVolume = 5}) |
1019 | - | }) |
1019 | + | for i = 1, 4 do |
1020 | - | PARTICLES1.Enabled = false |
1020 | + | WACKYEFFECT({Time = 15, EffectType = "Sphere", Size = VT(1,1,1), Size2 = VT(0,75,0), Transparency = 0, Transparency2 = 1, CFrame = CF(Hitpos)*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360))), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = BRICKC"Dark blue".Color, SoundID = nil, SoundPitch = nil, SoundVolume = nil}) |
1021 | - | PARTICLES2.Enabled = false |
1021 | + | |
1022 | - | local EXPLOSION = script.PheonixExplosion1:Clone() |
1022 | + | wait(0.05) |
1023 | - | EXPLOSION.Parent = FIREBALL |
1023 | + | |
1024 | - | EXPLOSION.Enabled = true |
1024 | + | |
1025 | - | local EXPLOSION2 = script.PheonixExplosion2:Clone() |
1025 | + | Pose("Cast2",1.5,0.7,true) |
1026 | - | EXPLOSION2.Parent = FIREBALL |
1026 | + | |
1027 | - | EXPLOSION2.Enabled = true |
1027 | + | |
1028 | - | wait(0.3) |
1028 | + | |
1029 | - | EXPLOSION.Enabled = false |
1029 | + | |
1030 | - | EXPLOSION2.Enabled = false |
1030 | + | |
1031 | - | break |
1031 | + | function Inferno_Ring() |
1032 | ATTACK = true | |
1033 | Rooted = false | |
1034 | - | PARTICLES1.Enabled = false |
1034 | + | local GYRO = IT("BodyGyro",RootPart) |
1035 | - | PARTICLES2.Enabled = false |
1035 | + | GYRO.D = 750 |
1036 | - | Debris:AddItem(FIREBALL, 7) |
1036 | + | GYRO.P = 20000 |
1037 | GYRO.MaxTorque = VT(0,40000000,0) | |
1038 | - | wait(0.3) |
1038 | + | local FIRE = IT("Model",Effects) |
1039 | FIRE.Name = "Fire" | |
1040 | - | WELD:remove() |
1040 | + | local MAIN = CreatePart(3, FIRE, "Neon", 0, 1, "Dark blue", "Center", VT(0,0,0)) |
1041 | - | RING.Anchored = true |
1041 | + | FIRE.PrimaryPart = MAIN |
1042 | - | for i = 1, 35 do |
1042 | + | local FIRES = {} |
1043 | for i = 1, 45 do | |
1044 | - | MESH.Scale = MESH.Scale - VT(2.6, 0, 2.6) |
1044 | + | local PRT = CreatePart(3, FIRE, "Neon", 0, 1, "Dark blue", "RingPart", VT(3,3,3)) |
1045 | PRT.CFrame = MAIN.CFrame*ANGLES(RAD(0),RAD((360/45)*i),RAD(0))*CF(0,0,20) | |
1046 | - | RING:remove() |
1046 | + | local F = Fire(PRT) |
1047 | table.insert(FIRES,F) | |
1048 | - | WINGS = false |
1048 | + | |
1049 | repeat | |
1050 | FIRE:SetPrimaryPartCFrame(CF(Mouse.Hit.p)) | |
1051 | - | function ThreeShootingStars() |
1051 | + | Pose("Cast1",1.5,0.01,false,GYRO) |
1052 | until HOLD == true | |
1053 | coroutine.resume(coroutine.create(function() | |
1054 | - | local POS1, POS2, POS3 |
1054 | + | |
1055 | - | local RING, WELD, MESH = MagicRing(RightArm, CF(0, -1.2, 0), "Sun") |
1055 | + | ApplyAoE(MAIN.Position,21,-15,true) |
1056 | CreateSound(463598785,MAIN,3,1,false) | |
1057 | - | for i = 1, 35 do |
1057 | + | for E = 1, #FIRES do |
1058 | if FIRES[E] ~= nil then | |
1059 | - | MESH.Scale = MESH.Scale + VT(2.6, 0, 2.6) |
1059 | + | FIRES[E].Acceleration = VT(0,300,0) |
1060 | FIRES[E].Lifetime=NumberRange.new(0.35,1.5) | |
1061 | end | |
1062 | end | |
1063 | - | repeat |
1063 | + | wait(0.3) |
1064 | end | |
1065 | - | if POS1 then |
1065 | + | for E = 1, #FIRES do |
1066 | - | coroutine.resume(coroutine.create(function() |
1066 | + | if FIRES[E] ~= nil then |
1067 | - | local POSITION = POS1 |
1067 | + | FIRES[E].Enabled = false |
1068 | - | local FIREBALL = CreatePart(3, Effects, "Neon", 0, 1, "New Yeller", "Fire", VT(3, 3, 3)) |
1068 | + | |
1069 | - | FIREBALL.CFrame = RightArm.CFrame * CF(0, -3, 0) |
1069 | + | |
1070 | - | local FIRE = script.SunFireball:Clone() |
1070 | + | Debris:AddItem(FIRE,5) |
1071 | - | FIRE.Parent = FIREBALL |
1071 | + | |
1072 | - | FIRE.Enabled = true |
1072 | + | CreateSound(215395388,RightArm,3,2,false) |
1073 | - | local EXPLOSION = script.SunExplosion:Clone() |
1073 | + | Pose("RightArmUp",1.5,0.5,true) |
1074 | - | EXPLOSION.Parent = FIREBALL |
1074 | + | |
1075 | - | CreateSound(463598785, FIREBALL, 5, 1, false) |
1075 | + | |
1076 | - | local DISTANCE = (RootPart.Position - POSITION).Magnitude |
1076 | + | |
1077 | - | local FRAME = CF(VT(POSITION.X + MRANDOM(-45, 45) / 3, RootPart.Position.Y, POSITION.Z + MRANDOM(-45, 45) / 3), RootPart.Position + VT(0, 45, 0)) * CF(0, 0, -DISTANCE / 2) |
1077 | + | |
1078 | - | for i = 1, 75 do |
1078 | + | |
1079 | - | Swait() |
1079 | + | function Warden_Wall() |
1080 | - | FIREBALL.CFrame = Clerp(FIREBALL.CFrame, FRAME, 0.5 / Animation_Speed) |
1080 | + | local HITFLOOR = Raycast(RootPart.Position, (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 8, Character) |
1081 | if HITFLOOR ~= nil then | |
1082 | - | FIREBALL.CFrame = CF(FIREBALL.Position, POSITION) |
1082 | + | if HITFLOOR.Anchored == true then |
1083 | - | for i = 1, 300 do |
1083 | + | local WALL = HITFLOOR:Clone() |
1084 | - | Swait() |
1084 | + | WALL.Size = VT(45,45,5) |
1085 | - | FIREBALL.CFrame = FIREBALL.CFrame * CF(0, 0, -4) |
1085 | + | WALL.Parent = Effects |
1086 | - | local HITFLOOR, HITPOS = Raycast(FIREBALL.Position, FIREBALL.CFrame.lookVector, 4.2, Character) |
1086 | + | WALL.Name = "Wall" |
1087 | - | if HITFLOOR ~= nil then |
1087 | + | WALL.CFrame = RootPart.CFrame*CF(0,-65/2.1,-5)*ANGLES(RAD(-15),RAD(0),RAD(0)) |
1088 | - | FIRE.Enabled = false |
1088 | + | CreateSound(130972023,WALL,5,0.8,false) |
1089 | - | EXPLOSION:Emit(500) |
1089 | + | ATTACK = true |
1090 | - | CreateSound(416328540, FIREBALL, 5, 1, false) |
1090 | + | Rooted = true |
1091 | - | ApplyAoE(FIREBALL.Position, 75, 25, 35, 65, true, MRANDOM(5, 15), "Sun", true, { |
1091 | + | local HIT = WALL.Touched:Connect(function(hit) |
1092 | - | SHAKE = 1, |
1092 | + | if hit.Parent ~= Character then |
1093 | - | TIMER = 6, |
1093 | + | hit:BreakJoints() |
1094 | - | DOESFADE = true |
1094 | + | |
1095 | - | }) |
1095 | + | end) |
1096 | - | WACKYEFFECT({ |
1096 | + | |
1097 | - | EffectType = "Sphere", |
1097 | + | WACKYEFFECT({Time = 35, EffectType = "Box", Size = WALL.Size, Size2 = WALL.Size*2, Transparency = 0, Transparency2 = 1, CFrame = WALL.CFrame, MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = BRICKC"Dark blue".Color, SoundID = nil, SoundPitch = nil, SoundVolume = nil}) |
1098 | - | Size = VT(0, 0, 0), |
1098 | + | for i = 1, 90 do |
1099 | - | Size2 = VT(150, 150, 150), |
1099 | + | |
1100 | - | Transparency = 0, |
1100 | + | WALL.CFrame = WALL.CFrame*CF(0,0.5,0) |
1101 | - | Transparency2 = 1, |
1101 | + | |
1102 | - | CFrame = CF(FIREBALL.Position), |
1102 | + | HIT:disconnect() |
1103 | - | MoveToPos = nil, |
1103 | + | |
1104 | - | RotationX = 0, |
1104 | + | for i = 1, 46 do |
1105 | - | RotationY = 0, |
1105 | + | |
1106 | - | RotationZ = 0, |
1106 | + | WALL.CFrame = WALL.CFrame*CF(0,-1,0) |
1107 | - | Material = "Neon", |
1107 | + | |
1108 | - | Color = C3(1, 0.6666666666666666, 0), |
1108 | + | WALL:remove() |
1109 | - | SoundID = nil, |
1109 | + | |
1110 | - | SoundPitch = nil, |
1110 | + | Pose("RightArmUp",1.5,1.2,true) |
1111 | - | SoundVolume = nil |
1111 | + | ATTACK = false |
1112 | - | }) |
1112 | + | Rooted = false |
1113 | - | wait(5) |
1113 | + | |
1114 | - | break |
1114 | + | |
1115 | end | |
1116 | ||
1117 | - | FIREBALL:remove() |
1117 | + | function Prison_Key() |
1118 | - | end)) |
1118 | + | |
1119 | - | POS1 = nil |
1119 | + | if Mouse.Target.Parent ~= Character and Mouse.Target.Parent.Parent ~= Character and Mouse.Target.Parent:FindFirstChildOfClass("Humanoid") ~= nil then |
1120 | local HUM = Mouse.Target.Parent:FindFirstChildOfClass("Humanoid") | |
1121 | - | if POS2 then |
1121 | + | local TORSO = HUM.Parent:FindFirstChild("Torso") or HUM.Parent:FindFirstChild("UpperTorso") |
1122 | - | coroutine.resume(coroutine.create(function() |
1122 | + | local GYRO = IT("BodyGyro",RootPart) |
1123 | - | local POSITION = POS2 |
1123 | + | GYRO.D = 750 |
1124 | - | local FIREBALL = CreatePart(3, Effects, "Neon", 0, 1, "New Yeller", "Fire", VT(3, 3, 3)) |
1124 | + | GYRO.P = 20000 |
1125 | - | FIREBALL.CFrame = RightArm.CFrame * CF(0, -3, 0) |
1125 | + | GYRO.MaxTorque = VT(0,40000000,0) |
1126 | - | local FIRE = script.SunFireball:Clone() |
1126 | + | local grav = Instance.new("BodyPosition",TORSO) |
1127 | - | FIRE.Parent = FIREBALL |
1127 | + | grav.D = 15 |
1128 | - | FIRE.Enabled = true |
1128 | + | grav.P = 20000 |
1129 | - | local EXPLOSION = script.SunExplosion:Clone() |
1129 | + | grav.maxForce = Vector3.new(math.huge,math.huge,math.huge) |
1130 | - | EXPLOSION.Parent = FIREBALL |
1130 | + | grav.position = TORSO.Position |
1131 | - | CreateSound(463598785, FIREBALL, 5, 1, false) |
1131 | + | local GYRO2 = IT("BodyGyro",TORSO) |
1132 | - | local DISTANCE = (RootPart.Position - POSITION).Magnitude |
1132 | + | GYRO2.D = 750 |
1133 | - | local FRAME = CF(VT(POSITION.X + MRANDOM(-45, 45) / 3, RootPart.Position.Y, POSITION.Z + MRANDOM(-45, 45) / 3), RootPart.Position + VT(0, 45, 0)) * CF(0, 0, -DISTANCE / 2) |
1133 | + | GYRO2.P = 20000 |
1134 | - | for i = 1, 75 do |
1134 | + | GYRO2.MaxTorque = VT(0,40000000,0) |
1135 | - | Swait() |
1135 | + | GYRO2.cframe = CF(TORSO.Position,RootPart.Position) |
1136 | - | FIREBALL.CFrame = Clerp(FIREBALL.CFrame, FRAME, 0.5 / Animation_Speed) |
1136 | + | grav.Name = "Jail" |
1137 | local LOCKPARTS = {} | |
1138 | - | FIREBALL.CFrame = CF(FIREBALL.Position, POSITION) |
1138 | + | ATTACK = true |
1139 | - | for i = 1, 300 do |
1139 | + | Rooted = false |
1140 | - | Swait() |
1140 | + | local LOCK = IT("Model",Effects) |
1141 | - | FIREBALL.CFrame = FIREBALL.CFrame * CF(0, 0, -4) |
1141 | + | LOCK.Name = "Lock" |
1142 | - | local HITFLOOR, HITPOS = Raycast(FIREBALL.Position, FIREBALL.CFrame.lookVector, 4.2, Character) |
1142 | + | local LOCK2 = IT("Model",LOCK) |
1143 | - | if HITFLOOR ~= nil then |
1143 | + | LOCK2.Name = "Metal" |
1144 | - | FIRE.Enabled = false |
1144 | + | --CREATE LOCK-- |
1145 | - | EXPLOSION:Emit(500) |
1145 | + | local BASE = CreatePart(3, LOCK, "Glass", 0, 0, "Gold", "Keylock", VT(3, 2.5, 1)) |
1146 | - | CreateSound(416328540, FIREBALL, 5, 1, false) |
1146 | + | LOCK.PrimaryPart = BASE |
1147 | - | ApplyAoE(FIREBALL.Position, 75, 25, 35, 65, true, MRANDOM(5, 15), "Sun", true, { |
1147 | + | BASE.CFrame = CF(TORSO.Position,RootPart.Position)*CF(0,0,-4) |
1148 | - | SHAKE = 1, |
1148 | + | local PRT = CreatePart(3, LOCK, "Glass", 0, 0, "Gold", "Keylock", VT(3, 1, 3)) |
1149 | - | TIMER = 6, |
1149 | + | PRT.CFrame = BASE.CFrame*CF(0,-1.25,0)*ANGLES(RAD(90),RAD(0),RAD(0)) |
1150 | - | DOESFADE = true |
1150 | + | MakeForm(PRT,"Cyl") |
1151 | - | }) |
1151 | + | local PRT = CreatePart(3, LOCK, "Glass", 0, 0, "White", "Hole", VT(1, 1, 1)) |
1152 | - | WACKYEFFECT({ |
1152 | + | PRT.Color = C3(0,0,0) |
1153 | - | EffectType = "Sphere", |
1153 | + | PRT.CFrame = BASE.CFrame*CF(0,0.3,-0.01)*ANGLES(RAD(90),RAD(0),RAD(0)) |
1154 | - | Size = VT(0, 0, 0), |
1154 | + | MakeForm(PRT,"Cyl") |
1155 | - | Size2 = VT(150, 150, 150), |
1155 | + | local PRT = CreatePart(3, LOCK, "Glass", 0, 0, "White", "Hole", VT(0.5, 1, 1)) |
1156 | - | Transparency = 0, |
1156 | + | PRT.Color = C3(0,0,0) |
1157 | - | Transparency2 = 1, |
1157 | + | PRT.CFrame = BASE.CFrame*CF(0,-0.2,-0.01) |
1158 | - | CFrame = CF(FIREBALL.Position), |
1158 | + | for i = 1, 45 do |
1159 | - | MoveToPos = nil, |
1159 | + | local PRT = CreatePart(3, LOCK2, "Glass", 0, 0, "Grey", "Keylock", VT(0.5, 0.5, 0.5)) |
1160 | - | RotationX = 0, |
1160 | + | PRT.CFrame = BASE.CFrame*CF(0,2,0)*ANGLES(RAD(0),RAD(0),RAD(-90+(360/90*i)))*CF(0,1,0) |
1161 | - | RotationY = 0, |
1161 | + | |
1162 | - | RotationZ = 0, |
1162 | + | local PRT = CreatePart(3, LOCK2, "Glass", 0, 0, "Grey", "Keylock", VT(0.5, 0.5, 0.5)) |
1163 | - | Material = "Neon", |
1163 | + | PRT.CFrame = BASE.CFrame*CF(0,1.5,0)*ANGLES(RAD(0),RAD(0),RAD(90))*CF(0,1,0) |
1164 | - | Color = C3(1, 0.6666666666666666, 0), |
1164 | + | LOCK2.PrimaryPart = PRT |
1165 | - | SoundID = nil, |
1165 | + | --------------- |
1166 | - | SoundPitch = nil, |
1166 | + | local CHILDREN = LOCK:GetDescendants() |
1167 | - | SoundVolume = nil |
1167 | + | for index, CHILD in pairs(CHILDREN) do |
1168 | - | }) |
1168 | + | if CHILD:IsA("BasePart") then |
1169 | - | wait(5) |
1169 | + | CHILD.Transparency = 1 |
1170 | - | break |
1170 | + | |
1171 | end | |
1172 | for i = 1, 75 do | |
1173 | - | FIREBALL:remove() |
1173 | + | LOCK:SetPrimaryPartCFrame(CF(TORSO.Position,RootPart.Position)*CF(0,0,-4)) |
1174 | - | end)) |
1174 | + | |
1175 | - | POS2 = nil |
1175 | + | GYRO2.cframe = CF(TORSO.Position,RootPart.Position) |
1176 | GYRO.cframe = CF(RootPart.Position,TORSO.Position) | |
1177 | - | if POS3 then |
1177 | + | local CHILDREN = LOCK:GetDescendants() |
1178 | - | coroutine.resume(coroutine.create(function() |
1178 | + | for index, CHILD in pairs(CHILDREN) do |
1179 | - | local POSITION = POS3 |
1179 | + | if CHILD:IsA("BasePart") then |
1180 | - | local FIREBALL = CreatePart(3, Effects, "Neon", 0, 1, "New Yeller", "Fire", VT(3, 3, 3)) |
1180 | + | CHILD.Transparency = CHILD.Transparency - 1/75 |
1181 | - | FIREBALL.CFrame = RightArm.CFrame * CF(0, -3, 0) |
1181 | + | |
1182 | - | local FIRE = script.SunFireball:Clone() |
1182 | + | |
1183 | - | FIRE.Parent = FIREBALL |
1183 | + | |
1184 | - | FIRE.Enabled = true |
1184 | + | HUM.DisplayDistanceType = "None" |
1185 | - | local EXPLOSION = script.SunExplosion:Clone() |
1185 | + | local KEY = IT("Model",Effects) |
1186 | - | EXPLOSION.Parent = FIREBALL |
1186 | + | KEY.Name = "Key" |
1187 | - | CreateSound(463598785, FIREBALL, 5, 1, false) |
1187 | + | --CREATE KEY-- |
1188 | - | local DISTANCE = (RootPart.Position - POSITION).Magnitude |
1188 | + | local KBASE = CreatePart(3, KEY, "Neon", 0, 0, "Dark blue", "KeyBase", VT(0.1, 1, 0.1),false) |
1189 | - | local FRAME = CF(VT(POSITION.X + MRANDOM(-45, 45) / 3, RootPart.Position.Y, POSITION.Z + MRANDOM(-45, 45) / 3), RootPart.Position + VT(0, 45, 0)) * CF(0, 0, -DISTANCE / 2) |
1189 | + | KEY.PrimaryPart = KBASE |
1190 | - | for i = 1, 75 do |
1190 | + | KBASE.CFrame = RightArm.CFrame*CF(0,-2.1,0)*ANGLES(RAD(0),RAD(90),RAD(0)) |
1191 | - | Swait() |
1191 | + | local WLD = weldBetween(RightArm,KBASE) |
1192 | - | FIREBALL.CFrame = Clerp(FIREBALL.CFrame, FRAME, 0.5 / Animation_Speed) |
1192 | + | for i = 1, 45 do |
1193 | local PRT = CreatePart(3, KEY, "Neon", 0, 0, "Dark blue", "Key", VT(0.1, 0.1, 0.1),false) | |
1194 | - | FIREBALL.CFrame = CF(FIREBALL.Position, POSITION) |
1194 | + | PRT.CFrame = KBASE.CFrame*CF(0,0.8,0)*ANGLES(RAD(0),RAD(0),RAD((360/45*i)))*CF(0,0.25,0) |
1195 | - | for i = 1, 300 do |
1195 | + | weldBetween(KBASE,PRT) |
1196 | - | Swait() |
1196 | + | |
1197 | - | FIREBALL.CFrame = FIREBALL.CFrame * CF(0, 0, -4) |
1197 | + | local PRT = CreatePart(3, KEY, "Neon", 0, 0, "Dark blue", "Key", VT(0.3, 0.1, 0.1),false) |
1198 | - | local HITFLOOR, HITPOS = Raycast(FIREBALL.Position, FIREBALL.CFrame.lookVector, 4.2, Character) |
1198 | + | PRT.CFrame = KBASE.CFrame*CF(-0.15,-0.45,0) |
1199 | - | if HITFLOOR ~= nil then |
1199 | + | weldBetween(KBASE,PRT) |
1200 | - | FIRE.Enabled = false |
1200 | + | local PRT = CreatePart(3, KEY, "Neon", 0, 0, "Dark blue", "Key", VT(0.3, 0.1, 0.1),false) |
1201 | - | EXPLOSION:Emit(500) |
1201 | + | PRT.CFrame = KBASE.CFrame*CF(-0.15,-0.25,0) |
1202 | - | CreateSound(416328540, FIREBALL, 5, 1, false) |
1202 | + | weldBetween(KBASE,PRT) |
1203 | - | ApplyAoE(FIREBALL.Position, 75, 25, 35, 65, true, MRANDOM(5, 15), "Sun", true, { |
1203 | + | -------------- |
1204 | - | SHAKE = 1, |
1204 | + | Rooted = true |
1205 | - | TIMER = 6, |
1205 | + | Pose("Prepare key",1.5,1.2,false,GYRO,TORSO) |
1206 | - | DOESFADE = true |
1206 | + | |
1207 | - | }) |
1207 | + | for i = 1, 10 do |
1208 | - | WACKYEFFECT({ |
1208 | + | |
1209 | - | EffectType = "Sphere", |
1209 | + | GYRO2.cframe = CF(TORSO.Position,RootPart.Position) |
1210 | - | Size = VT(0, 0, 0), |
1210 | + | GYRO.cframe = CF(RootPart.Position,TORSO.Position) |
1211 | - | Size2 = VT(150, 150, 150), |
1211 | + | |
1212 | - | Transparency = 0, |
1212 | + | CreateSound(1149318312,BASE,5,1,false) |
1213 | - | Transparency2 = 1, |
1213 | + | CreateSound(160772554,BASE,3,1,false) |
1214 | - | CFrame = CF(FIREBALL.Position), |
1214 | + | LOCK2:SetPrimaryPartCFrame(BASE.CFrame*CF(0,0.8,0)*ANGLES(RAD(0),RAD(0),RAD(90))*CF(0,1,0)) |
1215 | - | MoveToPos = nil, |
1215 | + | for i = 1, 4 do |
1216 | - | RotationX = 0, |
1216 | + | WACKYEFFECT({Time = 35, EffectType = "Crystal", Size = VT(1,1,1), Size2 = VT(0,15,0), Transparency = 0, Transparency2 = 1, CFrame = BASE.CFrame*CF(1,1.45,0)*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360))), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = BRICKC"Dark blue".Color, SoundID = nil, SoundPitch = nil, SoundVolume = nil}) |
1217 | - | RotationY = 0, |
1217 | + | |
1218 | - | RotationZ = 0, |
1218 | + | WACKYEFFECT({Time = 35, EffectType = "Sphere", Size = VT(0,0,0), Size2 = VT(1,1,1)*25, Transparency = 0, Transparency2 = 1, CFrame = TORSO.CFrame, MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = BRICKC"Dark blue".Color, SoundID = nil, SoundPitch = MRANDOM(8,12)/10, SoundVolume = 5}) |
1219 | - | Material = "Neon", |
1219 | + | |
1220 | - | Color = C3(1, 0.6666666666666666, 0), |
1220 | + | TORSO.Parent.Parent = LOCK |
1221 | - | SoundID = nil, |
1221 | + | for i = 1, 75 do |
1222 | - | SoundPitch = nil, |
1222 | + | |
1223 | - | SoundVolume = nil |
1223 | + | local CHILDREN = KEY:GetDescendants() |
1224 | - | }) |
1224 | + | for index, CHILD in pairs(CHILDREN) do |
1225 | - | wait(5) |
1225 | + | if CHILD:IsA("BasePart") then |
1226 | - | break |
1226 | + | CHILD.Transparency = i/25 |
1227 | end | |
1228 | end | |
1229 | - | FIREBALL:remove() |
1229 | + | local CHILDREN = LOCK:GetDescendants() |
1230 | - | end)) |
1230 | + | for index, CHILD in pairs(CHILDREN) do |
1231 | - | POS3 = nil |
1231 | + | if CHILD:IsA("BasePart") and CHILD.Name ~= "HumanoidRootPart" then |
1232 | CHILD.Transparency = CHILD.Transparency + 1/75 | |
1233 | - | RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 + 1 * SIN(SINE / 24)) * ANGLES(RAD(0), RAD(0), RAD(74)), 2 / Animation_Speed) |
1233 | + | elseif CHILD.ClassName == "Decal" then |
1234 | - | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(20), RAD(0), RAD(-74)), 1 / Animation_Speed) |
1234 | + | CHILD.Transparency = CHILD.Transparency + 1/75 |
1235 | - | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.25, 0.5, -0.3) * ANGLES(RAD(90), RAD(0), RAD(74)) * RIGHTSHOULDERC0, 1 / Animation_Speed) |
1235 | + | |
1236 | - | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.45, 0.1, -0.3) * ANGLES(RAD(0), RAD(45), RAD(0)) * ANGLES(RAD(165), RAD(0), RAD(0)) * LEFTSHOULDERC0, 1 / Animation_Speed) |
1236 | + | |
1237 | - | RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.5, -0.5) * ANGLES(RAD(0), RAD(75), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) |
1237 | + | |
1238 | - | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) |
1238 | + | TORSO.Parent:ClearAllChildren() |
1239 | - | until ATTACK == false |
1239 | + | KEY:remove() |
1240 | LOCK:remove() | |
1241 | - | wait(0.4) |
1241 | + | |
1242 | - | POS1 = Mouse.Hit.p |
1242 | + | Pose("Turn key",0.8,1.2,false,GYRO,TORSO) |
1243 | - | wait(0.5) |
1243 | + | |
1244 | - | POS2 = Mouse.Hit.p |
1244 | + | ATTACK = false |
1245 | - | wait(0.6) |
1245 | + | Rooted = false |
1246 | - | POS3 = Mouse.Hit.p |
1246 | + | |
1247 | - | wait(0.3) |
1247 | + | |
1248 | - | RING.Anchored = true |
1248 | + | |
1249 | - | WELD:remove() |
1249 | + | |
1250 | function Hat() | |
1251 | - | for i = 1, 35 do |
1251 | + | |
1252 | Rooted = false | |
1253 | - | MESH.Scale = MESH.Scale - VT(2.6, 0, 2.6) |
1253 | + | Pose("Taunt",0.4,1.2,false) |
1254 | ATTACK = false | |
1255 | - | RING:remove() |
1255 | + | |
1256 | end | |
1257 | ||
1258 | Player_Size = 1 --Size of the player. | |
1259 | ||
1260 | - | function PheonixFlare() |
1260 | + | print("hey hello am saba1520 and am editor of this script") |
1261 | ||
1262 | Void = nil | |
1263 | - | PARTICLES = true |
1263 | + | VoidParts = {} |
1264 | Equipped = false | |
1265 | - | repeat |
1265 | + | function RayCast(Position, Direction, MaxDistance, IgnoreList) |
1266 | return game:GetService("Workspace"):FindPartOnRayWithIgnoreList(Ray.new(Position, Direction.unit * (MaxDistance or 999.999)), IgnoreList) | |
1267 | - | RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 + 1 * SIN(SINE / 24)) * ANGLES(RAD(0), RAD(0), RAD(0)), 2 / Animation_Speed) |
1267 | + | |
1268 | - | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(20), RAD(0), RAD(0)), 1 / Animation_Speed) |
1268 | + | |
1269 | - | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(-15), RAD(25)) * RIGHTSHOULDERC0, 1 / Animation_Speed) |
1269 | + | Player = Player |
1270 | - | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(15), RAD(-25)) * LEFTSHOULDERC0, 1 / Animation_Speed) |
1270 | + | Character = Character |
1271 | - | RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.5, -0.5) * ANGLES(RAD(0), RAD(75), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) |
1271 | + | |
1272 | - | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) |
1272 | + | Humanoid = Character:FindFirstChildOfClass("Humanoid") |
1273 | - | until ATTACK == false |
1273 | + | Torso = Character:FindFirstChild("Torso") |
1274 | if not Player or not Humanoid or Humanoid.Health == 0 or not Torso then | |
1275 | - | CreateSound(462676772, Torso, 7, 1, false) |
1275 | + | return |
1276 | - | WINGS1.Acceleration = VT(9, 0, -12) |
1276 | + | |
1277 | - | WINGS1B.Acceleration = VT(9, 0, -12) |
1277 | + | Equipped = true |
1278 | - | WINGS2.Acceleration = VT(-9, 0, -12) |
1278 | + | Void = Instance.new("Model") |
1279 | - | WINGS2B.Acceleration = VT(-9, 0, -12) |
1279 | + | Void.Name = "Void" |
1280 | - | wait(0.25) |
1280 | + | Angle = 0 |
1281 | for i = 1, 1 do | |
1282 | - | local WIND = CreatePart(3, Effects, "Neon", 0, 1, "Cyan", "Flight", VT(0, 0, 0)) |
1282 | + | local VoidPart = Instance.new("Part") |
1283 | - | WIND.CFrame = CF(RootPart.Position, Mouse.Hit.p) |
1283 | + | VoidPart.Name = "VoidPart" |
1284 | - | local PARTICLES = script.Gale:Clone() |
1284 | + | VoidPart.Transparency = 1 |
1285 | - | PARTICLES.Parent = WIND |
1285 | + | VoidPart.BrickColor = BrickColor.new("Really black") |
1286 | - | PARTICLES.Enabled = true |
1286 | + | VoidPart.Material = Enum.Material.Plastic |
1287 | - | CreateSound(376218535, WIND, 6, 1, false) |
1287 | + | VoidPart.Shape = Enum.PartType.Block |
1288 | - | for i = 1, 250 do |
1288 | + | VoidPart.FormFactor = Enum.FormFactor.Custom |
1289 | VoidPart.TopSurface = Enum.SurfaceType.Smooth | |
1290 | - | local HIT, HITPOS = Raycast(WIND.Position, WIND.CFrame.lookVector, 3, Character) |
1290 | + | VoidPart.BottomSurface = Enum.SurfaceType.Smooth |
1291 | - | WIND.CFrame = WIND.CFrame * CF(0, 0, -2) |
1291 | + | VoidPart.Anchored = true |
1292 | - | if HIT then |
1292 | + | VoidPart.CanCollide = false |
1293 | - | ApplyAoE(WIND.Position, 45, 10, 30, 135, false, MRANDOM(12, 16), "Nul", true, { |
1293 | + | VoidPart.Locked = true |
1294 | - | SHAKE = 3, |
1294 | + | VoidPart.Size = Vector3.new(18, 0.2, 18) |
1295 | - | TIMER = 7, |
1295 | + | local BlockMesh = Instance.new("BlockMesh") |
1296 | - | DOESFADE = true |
1296 | + | BlockMesh.Scale = Vector3.new(1, (1 + (0.005 * i)), 1) |
1297 | - | }) |
1297 | + | BlockMesh.Parent = VoidPart |
1298 | - | CreateSound(260430117, WIND, 3, 1, false) |
1298 | + | VoidPart.Parent = Void |
1299 | - | WACKYEFFECT({ |
1299 | + | local Star = Instance.new("Decal", VoidPart) |
1300 | - | Time = 25, |
1300 | + | Star.Texture = "http://www.roblox.com/asset/?id=363839172" |
1301 | - | EffectType = "Wave", |
1301 | + | --CricleForTarget |
1302 | - | Size = VT(20, 0, 20), |
1302 | + | --121028264 MagicCircle1 |
1303 | - | Size2 = VT(60, 8, 60), |
1303 | + | --160506713 MagicCircle2 |
1304 | - | Transparency = 0.9, |
1304 | + | --327794305 MagicCircle3 (Death) |
1305 | - | Transparency2 = 1, |
1305 | + | --160508788 MagicCircle4 (Scary) |
1306 | - | CFrame = WIND.CFrame * ANGLES(RAD(90), RAD(0), RAD(0)) * ANGLES(RAD(0), RAD(45), RAD(0)), |
1306 | + | --124339738 CoolCircle5 |
1307 | - | MoveToPos = nil, |
1307 | + | --268043891 Abyss-Demon-Magic-Circle |
1308 | - | RotationX = 0, |
1308 | + | Star.Face = "Top" |
1309 | - | RotationY = 0, |
1309 | + | local Light = Instance.new("PointLight", VoidPart) |
1310 | - | RotationZ = 0, |
1310 | + | Light.Color = Color3.new(0,0,1) |
1311 | - | Material = "Neon", |
1311 | + | Light.Brightness = 200 |
1312 | - | Color = C3(0.8, 0.8, 0.8), |
1312 | + | Light.Range = 35 |
1313 | - | SoundID = nil, |
1313 | + | table.insert(VoidParts, VoidPart) |
1314 | - | SoundPitch = nil, |
1314 | + | |
1315 | - | SoundVolume = nil |
1315 | + | Spawn(function() |
1316 | - | }) |
1316 | + | while Equipped and Humanoid.Parent and Humanoid.Health > 0 and Torso.Parent do |
1317 | - | WACKYEFFECT({ |
1317 | + | if Angle == 360 then |
1318 | - | Time = 25, |
1318 | + | Angle = 0 |
1319 | - | EffectType = "Wave", |
1319 | + | |
1320 | - | Size = VT(20, 0, 20), |
1320 | + | Angle = Angle + 0.05 |
1321 | - | Size2 = VT(60, 8, 60), |
1321 | + | local Hit, EndPosition = RayCast(Torso.Position, Vector3.new(0, -1, 0), (Torso.Size.Y * 6.5), {Character}) |
1322 | - | Transparency = 0.9, |
1322 | + | if Hit then |
1323 | - | Transparency2 = 1, |
1323 | + | if not Void.Parent then |
1324 | - | CFrame = WIND.CFrame * ANGLES(RAD(90), RAD(0), RAD(0)), |
1324 | + | Void.Parent = Character |
1325 | - | MoveToPos = nil, |
1325 | + | |
1326 | - | RotationX = 0, |
1326 | + | for i, v in pairs(VoidParts) do |
1327 | - | RotationY = 0, |
1327 | + | v.CFrame = CFrame.new(Torso.Position.X, EndPosition.Y, Torso.Position.Z) * CFrame.Angles(0, (Angle + i), 0) |
1328 | - | RotationZ = 0, |
1328 | + | |
1329 | - | Material = "Neon", |
1329 | + | |
1330 | - | Color = C3(0.8, 0.8, 0.8), |
1330 | + | Void.Parent = nil |
1331 | - | SoundID = nil, |
1331 | + | |
1332 | - | SoundPitch = nil, |
1332 | + | wait() |
1333 | - | SoundVolume = nil |
1333 | + | |
1334 | - | }) |
1334 | + | |
1335 | - | break |
1335 | + | |
1336 | ||
1337 | --//=================================\\ | |
1338 | - | PARTICLES.Enabled = false |
1338 | + | --|| ASSIGN THINGS TO KEYS |
1339 | - | Debris:AddItem(WIND, 7) |
1339 | + | --\\=================================// |
1340 | ||
1341 | - | wait(1) |
1341 | + | |
1342 | - | CreateSound(462676772, Torso, 7, 1, false) |
1342 | + | HOLD = true |
1343 | - | WINGS1.Acceleration = VT(9, 1, 4) |
1343 | + | |
1344 | - | WINGS1B.Acceleration = VT(9, 1, 4) |
1344 | + | |
1345 | - | WINGS2.Acceleration = VT(-9, 1, 4) |
1345 | + | |
1346 | - | WINGS2B.Acceleration = VT(-9, 1, 4) |
1346 | + | |
1347 | - | wait(0.25) |
1347 | + | |
1348 | HOLD = false | |
1349 | - | local FIREBALL = CreatePart(3, Effects, "Neon", 0, 1, "Cyan", "Flight", VT(5, 5, 5)) |
1349 | + | |
1350 | - | FIREBALL.CFrame = CF(RootPart.Position, Mouse.Hit.p) |
1350 | + | |
1351 | - | local PARTICLES1 = script.PheonixFireball1:Clone() |
1351 | + | |
1352 | - | PARTICLES1.Parent = FIREBALL |
1352 | + | |
1353 | - | PARTICLES1.Enabled = true |
1353 | + | if Key == "z" and ATTACK == false then |
1354 | - | local PARTICLES2 = script.PheonixFireball2:Clone() |
1354 | + | Warden_Zap() |
1355 | - | PARTICLES2.Parent = FIREBALL |
1355 | + | |
1356 | - | PARTICLES2.Enabled = true |
1356 | + | |
1357 | - | CreateSound(463593339, FIREBALL, 6, 1, false) |
1357 | + | if Key == "b" and ATTACK == false then |
1358 | - | for i = 1, 250 do |
1358 | + | Warden_Thunder() |
1359 | end | |
1360 | - | local HIT, HITPOS = Raycast(FIREBALL.Position, FIREBALL.CFrame.lookVector, 2.5, Character) |
1360 | + | |
1361 | - | FIREBALL.CFrame = FIREBALL.CFrame * CF(0, 0, -2) |
1361 | + | if Key == "c" and ATTACK == false then |
1362 | - | if HIT then |
1362 | + | Inferno_Ring() |
1363 | - | ApplyAoE(FIREBALL.Position, 70, 45, 50, 35, true, MRANDOM(12, 16), "Pheonix", true, { |
1363 | + | |
1364 | - | SHAKE = 2, |
1364 | + | |
1365 | - | TIMER = 25, |
1365 | + | if Key == "v" and ATTACK == false then |
1366 | - | DOESFADE = true |
1366 | + | Warden_Wall() |
1367 | - | }) |
1367 | + | |
1368 | - | WACKYEFFECT({ |
1368 | + | |
1369 | - | Time = 60, |
1369 | + | if Key == "x" and ATTACK == false then |
1370 | - | EffectType = "Sphere", |
1370 | + | Prison_Key() |
1371 | - | Size = VT(0, 0, 0), |
1371 | + | |
1372 | - | Size2 = VT(120, 120, 120), |
1372 | + | |
1373 | - | Transparency = 0, |
1373 | + | if Key == "t" and ATTACK == false then |
1374 | - | Transparency2 = 1, |
1374 | + | Hat() |
1375 | - | CFrame = CF(FIREBALL.Position), |
1375 | + | |
1376 | - | MoveToPos = nil, |
1376 | + | |
1377 | - | RotationX = 0, |
1377 | + | |
1378 | - | RotationY = 0, |
1378 | + | |
1379 | - | RotationZ = 0, |
1379 | + | |
1380 | - | Material = "Neon", |
1380 | + | |
1381 | - | Color = C3(1, 0.6666666666666666, 0), |
1381 | + | |
1382 | - | SoundID = nil, |
1382 | + | Mouse.Button1Down:connect(function(NEWKEY) |
1383 | - | SoundPitch = nil, |
1383 | + | MouseDown(NEWKEY) |
1384 | - | SoundVolume = nil |
1384 | + | |
1385 | - | }) |
1385 | + | Mouse.Button1Up:connect(function(NEWKEY) |
1386 | - | WACKYEFFECT({ |
1386 | + | MouseUp(NEWKEY) |
1387 | - | Time = 60, |
1387 | + | |
1388 | - | EffectType = "Sphere", |
1388 | + | Mouse.KeyDown:connect(function(NEWKEY) |
1389 | - | Size = VT(0, 0, 0), |
1389 | + | KeyDown(NEWKEY) |
1390 | - | Size2 = VT(140, 140, 140), |
1390 | + | |
1391 | - | Transparency = 0.5, |
1391 | + | Mouse.KeyUp:connect(function(NEWKEY) |
1392 | - | Transparency2 = 1, |
1392 | + | KeyUp(NEWKEY) |
1393 | - | CFrame = CF(FIREBALL.Position), |
1393 | + | |
1394 | - | MoveToPos = nil, |
1394 | + | |
1395 | - | RotationX = 0, |
1395 | + | --//=================================\\ |
1396 | - | RotationY = 0, |
1396 | + | --\\=================================// |
1397 | - | RotationZ = 0, |
1397 | + | |
1398 | - | Material = "Neon", |
1398 | + | |
1399 | - | Color = PHEONIXCOLOR, |
1399 | + | |
1400 | - | SoundID = 462692971, |
1400 | + | |
1401 | - | SoundPitch = 1, |
1401 | + | |
1402 | - | SoundVolume = 6 |
1402 | + | |
1403 | - | }) |
1403 | + | |
1404 | - | PARTICLES1.Enabled = false |
1404 | + | |
1405 | - | PARTICLES2.Enabled = false |
1405 | + | |
1406 | - | local EXPLOSION = script.PheonixExplosion1:Clone() |
1406 | + | |
1407 | - | EXPLOSION.Parent = FIREBALL |
1407 | + | |
1408 | - | EXPLOSION.Enabled = true |
1408 | + | |
1409 | - | local EXPLOSION2 = script.PheonixExplosion2:Clone() |
1409 | + | |
1410 | - | EXPLOSION2.Parent = FIREBALL |
1410 | + | |
1411 | - | EXPLOSION2.Enabled = true |
1411 | + | --//=================================\\ |
1412 | - | wait(0.3) |
1412 | + | --|| WRAP THE WHOLE SCRIPT UP |
1413 | - | EXPLOSION.Enabled = false |
1413 | + | --\\=================================// |
1414 | - | EXPLOSION2.Enabled = false |
1414 | + | |
1415 | - | break |
1415 | + | |
1416 | if Jump == "Jump" and (Disable_Jump == true) then | |
1417 | Humanoid.Jump = false | |
1418 | - | PARTICLES1.Enabled = false |
1418 | + | |
1419 | - | PARTICLES2.Enabled = false |
1419 | + | |
1420 | - | Debris:AddItem(FIREBALL, 7) |
1420 | + | |
1421 | while true do | |
1422 | - | wait(0.5) |
1422 | + | |
1423 | - | PARTICLES = false |
1423 | + | |
1424 | Humanoid.Parent = Character | |
1425 | if Humanoid then | |
1426 | local IDLEANIMATION = Humanoid:LoadAnimation(ROBLOXIDLEANIMATION) | |
1427 | - | function PheonixFireballs() |
1427 | + | IDLEANIMATION:Play() |
1428 | end | |
1429 | - | local POWER = 1 |
1429 | + | if ANIMATE.Parent == Character then |
1430 | - | DIRECTTURN = true |
1430 | + | ANIMATE:Destroy() |
1431 | end | |
1432 | - | repeat |
1432 | + | |
1433 | local TORSOVELOCITY = (RootPart.Velocity * VT(1, 0, 1)).magnitude | |
1434 | - | RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 + 1 * SIN(SINE / 24)) * ANGLES(RAD(0), RAD(0), RAD(24)), 2 / Animation_Speed) |
1434 | + | |
1435 | - | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(20), RAD(0), RAD(-24)), 1 / Animation_Speed) |
1435 | + | Humanoid.HipHeight = 1 |
1436 | - | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.25, 0.5, -0.3) * ANGLES(RAD(90), RAD(0), RAD(24)) * RIGHTSHOULDERC0, 1 / Animation_Speed) |
1436 | + | Humanoid.Name = "Warden" |
1437 | - | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.45, 0.1, -0.3) * ANGLES(RAD(0), RAD(45), RAD(0)) * ANGLES(RAD(165), RAD(0), RAD(0)) * LEFTSHOULDERC0, 1 / Animation_Speed) |
1437 | + | Humanoid.PlatformStand = false |
1438 | - | RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.5, -0.5) * ANGLES(RAD(0), RAD(75), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) |
1438 | + | if PLAYMAINANIM == true then |
1439 | - | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) |
1439 | + | if TORSOVELOCITY < 1 then |
1440 | - | until ATTACK == false |
1440 | + | RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 + 0.45 * COS(SINE / 12)) * ANGLES(RAD(7 + 2.5 * SIN(SINE / 12)), RAD(0), RAD(5 + 1 * SIN(SINE / 12))), 1 / Animation_Speed) |
1441 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0 + 4.5 * SIN(SINE / 12)), RAD(0), RAD(-5 - 2.5 * SIN(SINE / 12))), 1 / Animation_Speed) | |
1442 | - | local RING1, WELD1, MESH1 = MagicRing(RightArm, CF(0, -1.2, 0) * ANGLES(RAD(0), RAD(180), RAD(0)), "Pheonix") |
1442 | + | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(60)) * RIGHTSHOULDERC0, 0.2 / Animation_Speed) |
1443 | - | local RING2, WELD2, MESH2 = MagicRing(RightArm, CF(0, -1.6, 0) * ANGLES(RAD(0), RAD(180), RAD(0)), "Pheonix") |
1443 | + | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(-60)) * LEFTSHOULDERC0, 0.2 / Animation_Speed) |
1444 | - | for i = 1, 35 do |
1444 | + | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 + 0.15 * COS(SINE / 12), -0.01) * ANGLES(RAD(-7.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed) |
1445 | - | Swait() |
1445 | + | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5 + 0.25 * COS(SINE / 12), -0.5) * ANGLES(RAD(-7.5 * SIN(SINE / 12)), RAD(-90), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed) |
1446 | - | MESH1.Scale = MESH1.Scale + VT(6, 0, 6) |
1446 | + | elseif TORSOVELOCITY > 1 then |
1447 | - | MESH2.Scale = MESH2.Scale + VT(3, 0, 3) |
1447 | + | RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 + 0.25 * COS(SINE / 12)) * ANGLES(RAD(25 + 2.5 * SIN(SINE / 12)), RAD(0), RAD(5 + 2.5 * SIN(SINE / 12))), 1 / Animation_Speed) |
1448 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(-25 + 4.5 * SIN(SINE / 12)), RAD(0), RAD(-5 - 2.5 * SIN(SINE / 12))), 1 / Animation_Speed) | |
1449 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5 + 0.25 * COS(SINE / 12), 0) * ANGLES(RAD(-25), RAD(0 - 7.5 * SIN(SINE / 12)), RAD(25 + 7.5 * SIN(SINE / 12))) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
1450 | - | wait() |
1450 | + | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5 + 0.25 * COS(SINE / 12), 0) * ANGLES(RAD(-25), RAD(0 + 7.5 * SIN(SINE / 12)), RAD(-25 - 7.5 * SIN(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed) |
1451 | - | POWER = POWER + 1 |
1451 | + | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(-25 - 7.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(-8 - 5.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed) |
1452 | - | until KEYHOLD == false |
1452 | + | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(-7.5 * SIN(SINE / 12)), RAD(-90), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed) |
1453 | - | if POWER <= 30 then |
1453 | + | |
1454 | - | for i = 1, 15 do |
1454 | + | |
1455 | - | wait(0.1) |
1455 | + | |
1456 | Humanoid.MaxHealth = "inf" | |
1457 | - | local FIREBALL = CreatePart(3, Effects, "Neon", 0, 1, "Cyan", "Flight", VT(2, 2, 2)) |
1457 | + | |
1458 | - | FIREBALL.CFrame = CF(RootPart.Position, Mouse.Hit.p) |
1458 | + | if Rooted == false then |
1459 | - | local PARTICLES1 = script.PheonixFireball1:Clone() |
1459 | + | |
1460 | - | PARTICLES1.Parent = FIREBALL |
1460 | + | |
1461 | - | PARTICLES1.Enabled = true |
1461 | + | elseif Rooted == true then |
1462 | - | local PARTICLES2 = script.PheonixFireball2:Clone() |
1462 | + | |
1463 | - | PARTICLES2.Parent = FIREBALL |
1463 | + | |
1464 | - | PARTICLES2.Enabled = true |
1464 | + | |
1465 | - | PARTICLES1.Size = NumberSequence.new(3, 0) |
1465 | + | for _, c in pairs(Character:GetChildren()) do |
1466 | - | PARTICLES2.Size = NumberSequence.new(3, 0) |
1466 | + | if c.ClassName == "Part" and c.Name ~= "Eye" then |
1467 | - | CreateSound(463593339, FIREBALL, 6, 1, false) |
1467 | + | c.Material = "Neon" |
1468 | - | for i = 1, 250 do |
1468 | + | if c:FindFirstChildOfClass("ParticleEmitter") then |
1469 | c:FindFirstChildOfClass("ParticleEmitter"):remove() | |
1470 | - | local HIT, HITPOS = Raycast(FIREBALL.Position, FIREBALL.CFrame.lookVector, 4.5, Character) |
1470 | + | |
1471 | - | FIREBALL.CFrame = FIREBALL.CFrame * CF(0, 0, -4) |
1471 | + | c.Color = C3(1,1,1) |
1472 | - | if HIT then |
1472 | + | if c == Head then |
1473 | - | ApplyAoE(FIREBALL.Position, 25, 5, 15, 5, true, MRANDOM(5, 6), "Pheonix", true, { |
1473 | + | if c:FindFirstChild("face") then |
1474 | - | SHAKE = 2, |
1474 | + | c.face:remove() |
1475 | - | TIMER = 25, |
1475 | + | |
1476 | - | DOESFADE = true |
1476 | + | |
1477 | - | }) |
1477 | + | elseif c.ClassName == "CharacterMesh" or c.ClassName == "Accessory" or c.ClassName == "Hat" or c.Name == "Body Colors" then |
1478 | - | WACKYEFFECT({ |
1478 | + | c:remove() |
1479 | - | Time = 60, |
1479 | + | elseif (c.ClassName == "Shirt" or c.ClassName == "Pants") and c.Name ~= "Cloth" then |
1480 | - | EffectType = "Sphere", |
1480 | + | c:remove() |
1481 | - | Size = VT(0, 0, 0), |
1481 | + | |
1482 | - | Size2 = VT(50, 50, 50), |
1482 | + | |
1483 | - | Transparency = 0, |
1483 | + | sick.SoundId = "rbxassetid://561833161" |
1484 | - | Transparency2 = 1, |
1484 | + | |
1485 | - | CFrame = CF(FIREBALL.Position), |
1485 | + | sick.Pitch = 1 |
1486 | - | MoveToPos = nil, |
1486 | + | sick.Volume = 3 |
1487 | - | RotationX = 0, |
1487 | + | sick:Resume() |
1488 | - | RotationY = 0, |
1488 | + | sick.Parent = Torso |
1489 | - | RotationZ = 0, |
1489 | + | refit() |
1490 | - | Material = "Neon", |
1490 | + | if Head:FindFirstChildOfClass("Sound") then |
1491 | - | Color = C3(1, 0.6666666666666666, 0), |
1491 | + | Head:FindFirstChildOfClass("Sound"):remove() |
1492 | - | SoundID = nil, |
1492 | + | |
1493 | - | SoundPitch = nil, |
1493 | + | |
1494 | - | SoundVolume = nil |
1494 | + | |
1495 | - | }) |
1495 | + | --//=================================\\ |
1496 | - | WACKYEFFECT({ |
1496 | + | --\\=================================// |
1497 | - | Time = 60, |
1497 | + | |
1498 | - | EffectType = "Sphere", |
1498 | + | |
1499 | - | Size = VT(0, 0, 0), |
1499 | + | |
1500 | - | Size2 = VT(60, 60, 60), |
1500 | + | |
1501 | - | Transparency = 0.5, |
1501 | + | |
1502 | - | Transparency2 = 1, |
1502 | + | --//====================================================\\-- |
1503 | - | CFrame = CF(FIREBALL.Position), |
1503 | + | --|| END OF SCRIPT |
1504 | - | MoveToPos = nil, |
1504 | + | --\\====================================================//-- |