SHOW:
|
|
- or go back to the newest paste.
1 | -- _ _ _ _ _ | |
2 | -- (_) (_) | (_) | | |
3 | -- _ _____ __ _ __ _ ___ _ __ ___ ___ __| |_| |_ | |
4 | -- | |_ / |/ _` |/ _` |/ _ \ '_ ` _ \ / _ \/ _` | | __| | |
5 | -- | |/ /| | (_| | (_| | __/ | | | | | | __/ (_| | | |_ | |
6 | -- |_/___|_|\__, |\__,_|\___|_| |_| |_| \___|\__,_|_|\__| | |
7 | -- __/ | | |
8 | -- |___/ ★·.·´¯`·.·★ ᴛʜᴇ ᴠᴏɪᴅ ᴡᴀʀᴅᴇɴ ★·.·´¯`·.·★ | |
9 | ||
10 | wait(0.2) | |
11 | ||
12 | Player = game:GetService("Players").LocalPlayer | |
13 | PlayerGui = Player.PlayerGui | |
14 | Cam = workspace.CurrentCamera | |
15 | Backpack = Player.Backpack | |
16 | Character = Player.Character | |
17 | Humanoid = Character.Humanoid | |
18 | Mouse = Player:GetMouse() | |
19 | RootPart = Character["HumanoidRootPart"] | |
20 | Torso = Character["Torso"] | |
21 | Head = Character["Head"] | |
22 | RightArm = Character["Right Arm"] | |
23 | LeftArm = Character["Left Arm"] | |
24 | RightLeg = Character["Right Leg"] | |
25 | LeftLeg = Character["Left Leg"] | |
26 | RootJoint = RootPart["RootJoint"] | |
27 | Neck = Torso["Neck"] | |
28 | RightShoulder = Torso["Right Shoulder"] | |
29 | LeftShoulder = Torso["Left Shoulder"] | |
30 | RightHip = Torso["Right Hip"] | |
31 | LeftHip = Torso["Left Hip"] | |
32 | local sick = Instance.new("Sound",Character) | |
33 | sick.SoundId = "rbxassetid://1427189017" | |
34 | sick.Looped = true | |
35 | sick.Pitch = 1 | |
36 | sick.Volume = 1 | |
37 | sick:Play() | |
38 | ||
39 | IT = Instance.new | |
40 | CF = CFrame.new | |
41 | VT = Vector3.new | |
42 | RAD = math.rad | |
43 | C3 = Color3.new | |
44 | UD2 = UDim2.new | |
45 | BRICKC = BrickColor.new | |
46 | ANGLES = CFrame.Angles | |
47 | EULER = CFrame.fromEulerAnglesXYZ | |
48 | COS = math.cos | |
49 | ACOS = math.acos | |
50 | SIN = math.sin | |
51 | ASIN = math.asin | |
52 | ABS = math.abs | |
53 | MRANDOM = math.random | |
54 | FLOOR = math.floor | |
55 | ||
56 | --//=================================\\ | |
57 | --|| USEFUL VALUES | |
58 | --\\=================================// | |
59 | ||
60 | Animation_Speed = 3 | |
61 | Player_Size = 1 --Size of the player. | |
62 | Frame_Speed = 1 / 60 -- (1 / 30) OR (1 / 60) | |
63 | local Speed = 25 | |
64 | local ROOTC0 = CF(0, 0, 0) * ANGLES(RAD(-90), RAD(0), RAD(180)) | |
65 | local NECKC0 = CF(0, 1, 0) * ANGLES(RAD(-90), RAD(0), RAD(180)) | |
66 | local RIGHTSHOULDERC0 = CF(-0.5, 0, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) | |
67 | local LEFTSHOULDERC0 = CF(0.5, 0, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) | |
68 | local DAMAGEMULTIPLIER = 1 | |
69 | local ANIM = "Idle" | |
70 | local ATTACK = false | |
71 | local EQUIPPED = false | |
72 | local HOLD = false | |
73 | local COMBO = 1 | |
74 | local Rooted = false | |
75 | local SINE = 0 | |
76 | local KEYHOLD = false | |
77 | local CHANGE = 2 / Animation_Speed | |
78 | local WALKINGANIM = false | |
79 | local VALUE1 = false | |
80 | local VALUE2 = false | |
81 | local ROBLOXIDLEANIMATION = IT("Animation") | |
82 | ROBLOXIDLEANIMATION.Name = "Roblox Idle Animation" | |
83 | ROBLOXIDLEANIMATION.AnimationId = "http://www.roblox.com/asset/?id=180435571" | |
84 | --ROBLOXIDLEANIMATION.Parent = Humanoid | |
85 | local WEAPONGUI = IT("ScreenGui", PlayerGui) | |
86 | WEAPONGUI.Name = "Weapon GUI" | |
87 | local Effects = IT("Folder", Character) | |
88 | Effects.Name = "Effects" | |
89 | local ANIMATOR = Humanoid.Animator | |
90 | local ANIMATE = Character.Animate | |
91 | local UNANCHOR = true | |
92 | local PLAYMAINANIM = true | |
93 | local BOLTSOUNDS = {419011101,305734380} | |
94 | local SIZE = 1 | |
95 | local UNANCHOR = true | |
96 | local TRUEFORM = false | |
97 | local HITFLOOR, HITPOS = nil | |
98 | local FLIGHT = false | |
99 | --//=================================\\ | |
100 | --\\=================================// | |
101 | ||
102 | ||
103 | ||
104 | --//=================================\\ | |
105 | --|| SAZERENOS' ARTIFICIAL HEARTBEAT | |
106 | --\\=================================// | |
107 | ||
108 | ArtificialHB = Instance.new("BindableEvent", script) | |
109 | ArtificialHB.Name = "ArtificialHB" | |
110 | ||
111 | script:WaitForChild("ArtificialHB") | |
112 | ||
113 | frame = Frame_Speed | |
114 | tf = 0 | |
115 | allowframeloss = false | |
116 | tossremainder = false | |
117 | lastframe = tick() | |
118 | script.ArtificialHB:Fire() | |
119 | ||
120 | game:GetService("RunService").Heartbeat:connect(function(s, p) | |
121 | tf = tf + s | |
122 | if tf >= frame then | |
123 | if allowframeloss then | |
124 | script.ArtificialHB:Fire() | |
125 | lastframe = tick() | |
126 | else | |
127 | for i = 1, math.floor(tf / frame) do | |
128 | script.ArtificialHB:Fire() | |
129 | end | |
130 | lastframe = tick() | |
131 | end | |
132 | if tossremainder then | |
133 | tf = 0 | |
134 | else | |
135 | tf = tf - frame * math.floor(tf / frame) | |
136 | end | |
137 | end | |
138 | end) | |
139 | ||
140 | --//=================================\\ | |
141 | --\\=================================// | |
142 | ||
143 | --//=================================\\ | |
144 | --|| SOME FUNCTIONS | |
145 | --\\=================================// | |
146 | ||
147 | function Raycast(POSITION, DIRECTION, RANGE, IGNOREDECENDANTS) | |
148 | return workspace:FindPartOnRay(Ray.new(POSITION, DIRECTION.unit * RANGE), IGNOREDECENDANTS) | |
149 | end | |
150 | ||
151 | function PositiveAngle(NUMBER) | |
152 | if NUMBER >= 0 then | |
153 | NUMBER = 0 | |
154 | end | |
155 | return NUMBER | |
156 | end | |
157 | ||
158 | function NegativeAngle(NUMBER) | |
159 | if NUMBER <= 0 then | |
160 | NUMBER = 0 | |
161 | end | |
162 | return NUMBER | |
163 | end | |
164 | ||
165 | function Swait(NUMBER) | |
166 | if NUMBER == 0 or NUMBER == nil then | |
167 | ArtificialHB.Event:wait() | |
168 | else | |
169 | for i = 1, NUMBER do | |
170 | ArtificialHB.Event:wait() | |
171 | end | |
172 | end | |
173 | end | |
174 | ||
175 | function CreateMesh(MESH, PARENT, MESHTYPE, MESHID, TEXTUREID, SCALE, OFFSET) | |
176 | local NEWMESH = IT(MESH) | |
177 | if MESH == "SpecialMesh" then | |
178 | NEWMESH.MeshType = MESHTYPE | |
179 | if MESHID ~= "nil" and MESHID ~= "" then | |
180 | NEWMESH.MeshId = "http://www.roblox.com/asset/?id="..MESHID | |
181 | end | |
182 | if TEXTUREID ~= "nil" and TEXTUREID ~= "" then | |
183 | NEWMESH.TextureId = "http://www.roblox.com/asset/?id="..TEXTUREID | |
184 | end | |
185 | end | |
186 | NEWMESH.Offset = OFFSET or VT(0, 0, 0) | |
187 | NEWMESH.Scale = SCALE | |
188 | NEWMESH.Parent = PARENT | |
189 | return NEWMESH | |
190 | end | |
191 | ||
192 | function CreatePart(FORMFACTOR, PARENT, MATERIAL, REFLECTANCE, TRANSPARENCY, BRICKCOLOR, NAME, SIZE, ANCHOR) | |
193 | local NEWPART = IT("Part") | |
194 | NEWPART.formFactor = FORMFACTOR | |
195 | NEWPART.Reflectance = REFLECTANCE | |
196 | NEWPART.Transparency = TRANSPARENCY | |
197 | NEWPART.CanCollide = false | |
198 | NEWPART.Locked = true | |
199 | NEWPART.Anchored = true | |
200 | if ANCHOR == false then | |
201 | NEWPART.Anchored = false | |
202 | end | |
203 | NEWPART.BrickColor = BRICKC(tostring(BRICKCOLOR)) | |
204 | NEWPART.Name = NAME | |
205 | NEWPART.Size = SIZE | |
206 | NEWPART.Position = Torso.Position | |
207 | NEWPART.Material = MATERIAL | |
208 | NEWPART:BreakJoints() | |
209 | NEWPART.Parent = PARENT | |
210 | return NEWPART | |
211 | end | |
212 | ||
213 | local function weldBetween(a, b) | |
214 | local weldd = Instance.new("ManualWeld") | |
215 | weldd.Part0 = a | |
216 | weldd.Part1 = b | |
217 | weldd.C0 = CFrame.new() | |
218 | weldd.C1 = b.CFrame:inverse() * a.CFrame | |
219 | weldd.Parent = a | |
220 | return weldd | |
221 | end | |
222 | ||
223 | ||
224 | function QuaternionFromCFrame(cf) | |
225 | local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components() | |
226 | local trace = m00 + m11 + m22 | |
227 | if trace > 0 then | |
228 | local s = math.sqrt(1 + trace) | |
229 | local recip = 0.5 / s | |
230 | return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5 | |
231 | else | |
232 | local i = 0 | |
233 | if m11 > m00 then | |
234 | i = 1 | |
235 | end | |
236 | if m22 > (i == 0 and m00 or m11) then | |
237 | i = 2 | |
238 | end | |
239 | if i == 0 then | |
240 | local s = math.sqrt(m00 - m11 - m22 + 1) | |
241 | local recip = 0.5 / s | |
242 | return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip | |
243 | elseif i == 1 then | |
244 | local s = math.sqrt(m11 - m22 - m00 + 1) | |
245 | local recip = 0.5 / s | |
246 | return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip | |
247 | elseif i == 2 then | |
248 | local s = math.sqrt(m22 - m00 - m11 + 1) | |
249 | local recip = 0.5 / s return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip | |
250 | end | |
251 | end | |
252 | end | |
253 | ||
254 | function QuaternionToCFrame(px, py, pz, x, y, z, w) | |
255 | local xs, ys, zs = x + x, y + y, z + z | |
256 | local wx, wy, wz = w * xs, w * ys, w * zs | |
257 | local xx = x * xs | |
258 | local xy = x * ys | |
259 | local xz = x * zs | |
260 | local yy = y * ys | |
261 | local yz = y * zs | |
262 | local zz = z * zs | |
263 | 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)) | |
264 | end | |
265 | ||
266 | function QuaternionSlerp(a, b, t) | |
267 | local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4] | |
268 | local startInterp, finishInterp; | |
269 | if cosTheta >= 0.0001 then | |
270 | if (1 - cosTheta) > 0.0001 then | |
271 | local theta = ACOS(cosTheta) | |
272 | local invSinTheta = 1 / SIN(theta) | |
273 | startInterp = SIN((1 - t) * theta) * invSinTheta | |
274 | finishInterp = SIN(t * theta) * invSinTheta | |
275 | else | |
276 | startInterp = 1 - t | |
277 | finishInterp = t | |
278 | end | |
279 | else | |
280 | if (1 + cosTheta) > 0.0001 then | |
281 | local theta = ACOS(-cosTheta) | |
282 | local invSinTheta = 1 / SIN(theta) | |
283 | startInterp = SIN((t - 1) * theta) * invSinTheta | |
284 | finishInterp = SIN(t * theta) * invSinTheta | |
285 | else | |
286 | startInterp = t - 1 | |
287 | finishInterp = t | |
288 | end | |
289 | end | |
290 | 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 | |
291 | end | |
292 | ||
293 | function Clerp(a, b, t) | |
294 | local qa = {QuaternionFromCFrame(a)} | |
295 | local qb = {QuaternionFromCFrame(b)} | |
296 | local ax, ay, az = a.x, a.y, a.z | |
297 | local bx, by, bz = b.x, b.y, b.z | |
298 | local _t = 1 - t | |
299 | return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t)) | |
300 | end | |
301 | ||
302 | function CreateFrame(PARENT, TRANSPARENCY, BORDERSIZEPIXEL, POSITION, SIZE, COLOR, BORDERCOLOR, NAME) | |
303 | local frame = IT("Frame") | |
304 | frame.BackgroundTransparency = TRANSPARENCY | |
305 | frame.BorderSizePixel = BORDERSIZEPIXEL | |
306 | frame.Position = POSITION | |
307 | frame.Size = SIZE | |
308 | frame.BackgroundColor3 = COLOR | |
309 | frame.BorderColor3 = BORDERCOLOR | |
310 | frame.Name = NAME | |
311 | frame.Parent = PARENT | |
312 | return frame | |
313 | end | |
314 | ||
315 | function CreateLabel(PARENT, TEXT, TEXTCOLOR, TEXTFONTSIZE, TEXTFONT, TRANSPARENCY, BORDERSIZEPIXEL, STROKETRANSPARENCY, NAME) | |
316 | local label = IT("TextLabel") | |
317 | label.BackgroundTransparency = 1 | |
318 | label.Size = UD2(1, 0, 1, 0) | |
319 | label.Position = UD2(0, 0, 0, 0) | |
320 | label.TextColor3 = TEXTCOLOR | |
321 | label.TextStrokeTransparency = STROKETRANSPARENCY | |
322 | label.TextTransparency = TRANSPARENCY | |
323 | label.FontSize = TEXTFONTSIZE | |
324 | label.Font = TEXTFONT | |
325 | label.BorderSizePixel = BORDERSIZEPIXEL | |
326 | label.TextScaled = false | |
327 | label.Text = TEXT | |
328 | label.Name = NAME | |
329 | label.Parent = PARENT | |
330 | return label | |
331 | end | |
332 | ||
333 | function NoOutlines(PART) | |
334 | PART.TopSurface, PART.BottomSurface, PART.LeftSurface, PART.RightSurface, PART.FrontSurface, PART.BackSurface = 10, 10, 10, 10, 10, 10 | |
335 | end | |
336 | ||
337 | function CreateWeldOrSnapOrMotor(TYPE, PARENT, PART0, PART1, C0, C1) | |
338 | local NEWWELD = IT(TYPE) | |
339 | NEWWELD.Part0 = PART0 | |
340 | NEWWELD.Part1 = PART1 | |
341 | NEWWELD.C0 = C0 | |
342 | NEWWELD.C1 = C1 | |
343 | NEWWELD.Parent = PARENT | |
344 | return NEWWELD | |
345 | end | |
346 | ||
347 | local S = IT("Sound") | |
348 | function CreateSound(ID, PARENT, VOLUME, PITCH, DOESLOOP) | |
349 | local NEWSOUND = nil | |
350 | coroutine.resume(coroutine.create(function() | |
351 | NEWSOUND = S:Clone() | |
352 | NEWSOUND.Parent = PARENT | |
353 | NEWSOUND.Volume = VOLUME | |
354 | NEWSOUND.Pitch = PITCH | |
355 | NEWSOUND.SoundId = "http://www.roblox.com/asset/?id="..ID | |
356 | NEWSOUND:play() | |
357 | if DOESLOOP == true then | |
358 | NEWSOUND.Looped = true | |
359 | else | |
360 | repeat wait(1) until NEWSOUND.Playing == false | |
361 | NEWSOUND:remove() | |
362 | end | |
363 | end)) | |
364 | return NEWSOUND | |
365 | end | |
366 | ||
367 | function CFrameFromTopBack(at, top, back) | |
368 | local right = top:Cross(back) | |
369 | 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) | |
370 | end | |
371 | ||
372 | function CreateWave(inair,size,doesrotate,rotatedirection,waitt,cframe,color) | |
373 | local wave = CreatePart(3, Effects, "Neon", 0, 0.5, BRICKC(color), "Effect", VT(0,0,0)) | |
374 | local mesh = IT("SpecialMesh",wave) | |
375 | mesh.MeshType = "FileMesh" | |
376 | mesh.MeshId = "http://www.roblox.com/asset/?id=20329976" | |
377 | mesh.Scale = VT(size,size,size) | |
378 | mesh.Offset = VT(0,0,-size/8) | |
379 | wave.CFrame = cframe | |
380 | coroutine.resume(coroutine.create(function(PART) | |
381 | for i = 1, waitt do | |
382 | Swait() | |
383 | mesh.Scale = mesh.Scale + VT(size/5,size/5,size/5) | |
384 | mesh.Offset = VT(0,0,-(mesh.Scale.X/8)) | |
385 | if doesrotate == true then | |
386 | wave.CFrame = wave.CFrame * CFrame.fromEulerAnglesXYZ(0, rotatedirection, 0) | |
387 | end | |
388 | wave.Transparency = wave.Transparency + (0.5/waitt) | |
389 | if wave.Transparency > 0.99 then | |
390 | wave:remove() | |
391 | end | |
392 | end | |
393 | end)) | |
394 | end | |
395 | ||
396 | function CreateSwirl(inair,size,doesrotate,rotatedirection,waitt,cframe,color) | |
397 | local wave = CreatePart(3, Effects, "Neon", 0, 0.5, BRICKC(color), "Effect", VT(0,0,0)) | |
398 | local mesh = IT("SpecialMesh",wave) | |
399 | mesh.MeshType = "FileMesh" | |
400 | mesh.MeshId = "http://www.roblox.com/asset/?id=1051557" | |
401 | mesh.Scale = VT(size,size,size) | |
402 | wave.CFrame = cframe | |
403 | coroutine.resume(coroutine.create(function(PART) | |
404 | for i = 1, waitt do | |
405 | Swait() | |
406 | mesh.Scale = mesh.Scale + VT(size/5,0,size/5) | |
407 | if doesrotate == true then | |
408 | wave.CFrame = wave.CFrame * CFrame.fromEulerAnglesXYZ(0, rotatedirection, 0) | |
409 | end | |
410 | wave.Transparency = wave.Transparency + (0.5/waitt) | |
411 | if wave.Transparency > 0.99 then | |
412 | wave:remove() | |
413 | end | |
414 | end | |
415 | end)) | |
416 | end | |
417 | ||
418 | function CreateTornado(inair,size,doesrotate,rotatedirection,waitt,cframe,color) | |
419 | local wave = CreatePart(3, Effects, "Neon", 0, 0.5, BRICKC(color), "Effect", VT(0,0,0)) | |
420 | local mesh = IT("SpecialMesh",wave) | |
421 | mesh.MeshType = "FileMesh" | |
422 | mesh.MeshId = "http://www.roblox.com/asset/?id=102638417" | |
423 | mesh.Scale = VT(size,size,size) | |
424 | wave.CFrame = cframe | |
425 | coroutine.resume(coroutine.create(function(PART) | |
426 | for i = 1, waitt do | |
427 | Swait() | |
428 | mesh.Scale = mesh.Scale + VT(size/5,0,size/5) | |
429 | if doesrotate == true then | |
430 | wave.CFrame = wave.CFrame * CFrame.fromEulerAnglesXYZ(0, rotatedirection, 0) | |
431 | end | |
432 | wave.Transparency = wave.Transparency + (0.5/waitt) | |
433 | if wave.Transparency > 0.99 then | |
434 | wave:remove() | |
435 | end | |
436 | end | |
437 | end)) | |
438 | end | |
439 | ||
440 | function CreateWave2(SIZE,WAIT,CFRAME,DOESROT,ROT,COLOR,GROW) | |
441 | local wave = CreatePart(3, Effects, "Neon", 0, 0.5, BRICKC(COLOR), "Effect", VT(0,0,0)) | |
442 | local mesh = IT("SpecialMesh",wave) | |
443 | mesh.MeshType = "FileMesh" | |
444 | mesh.MeshId = "http://www.roblox.com/asset/?id=20329976" | |
445 | mesh.Scale = SIZE | |
446 | mesh.Offset = VT(0,0,-SIZE.X/8) | |
447 | wave.CFrame = CFRAME | |
448 | coroutine.resume(coroutine.create(function(PART) | |
449 | for i = 1, WAIT do | |
450 | Swait() | |
451 | mesh.Scale = mesh.Scale + GROW | |
452 | mesh.Offset = VT(0,0,-(mesh.Scale.X/8)) | |
453 | if DOESROT == true then | |
454 | wave.CFrame = wave.CFrame * CFrame.fromEulerAnglesXYZ(0,ROT,0) | |
455 | end | |
456 | wave.Transparency = wave.Transparency + (0.5/WAIT) | |
457 | if wave.Transparency > 0.99 then | |
458 | wave:remove() | |
459 | end | |
460 | end | |
461 | end)) | |
462 | end | |
463 | ||
464 | function CreateRing2(SIZE,DOESROT,ROT,WAIT,CFRAME,COLOR,GROW) | |
465 | local wave = CreatePart(3, Effects, "Neon", 0, 0.5, BRICKC(COLOR), "Effect", VT(0,0,0)) | |
466 | local mesh = IT("SpecialMesh",wave) | |
467 | mesh.MeshType = "FileMesh" | |
468 | mesh.MeshId = "http://www.roblox.com/asset/?id=3270017" | |
469 | mesh.Scale = SIZE | |
470 | mesh.Offset = VT(0,0,0) | |
471 | wave.CFrame = CFRAME | |
472 | coroutine.resume(coroutine.create(function(PART) | |
473 | for i = 1, WAIT do | |
474 | Swait() | |
475 | mesh.Scale = mesh.Scale + GROW | |
476 | if DOESROT == true then | |
477 | wave.CFrame = wave.CFrame * CFrame.fromEulerAnglesXYZ(0,ROT,0) | |
478 | end | |
479 | wave.Transparency = wave.Transparency + (0.5/WAIT) | |
480 | if wave.Transparency > 0.99 then | |
481 | wave:remove() | |
482 | end | |
483 | end | |
484 | end)) | |
485 | end | |
486 | ||
487 | function MagicSphere3(SIZE,WAIT,CFRAME,COLOR,GROW) | |
488 | local wave = CreatePart(3, Effects, "Neon", 0, 0, BRICKC(COLOR), "Effect", VT(1,1,1), true) | |
489 | local mesh = IT("SpecialMesh",wave) | |
490 | mesh.MeshType = "Sphere" | |
491 | mesh.Scale = SIZE | |
492 | mesh.Offset = VT(0,0,0) | |
493 | wave.CFrame = CFRAME | |
494 | coroutine.resume(coroutine.create(function(PART) | |
495 | for i = 1, WAIT do | |
496 | Swait() | |
497 | mesh.Scale = mesh.Scale + GROW | |
498 | wave.Transparency = wave.Transparency + (1/WAIT) | |
499 | if wave.Transparency > 0.99 then | |
500 | wave:remove() | |
501 | end | |
502 | end | |
503 | end)) | |
504 | end | |
505 | ||
506 | ||
507 | function CreateRing(inair,size,doesrotate,rotatedirection,waitt,cframe,spin1,spin2,color) | |
508 | local wave = CreatePart(3, Effects, "Neon", 0, 0.5, BRICKC(color), "Effect", VT(0,0,0)) | |
509 | local mesh = IT("SpecialMesh",wave) | |
510 | mesh.MeshType = "FileMesh" | |
511 | mesh.MeshId = "http://www.roblox.com/asset/?id=3270017" | |
512 | mesh.Scale = VT(size,size,size) | |
513 | mesh.Offset = VT(0,0,0) | |
514 | wave.CFrame = cframe | |
515 | coroutine.resume(coroutine.create(function(PART) | |
516 | for i = 1, waitt do | |
517 | Swait() | |
518 | mesh.Scale = mesh.Scale + VT(size/5,size/5,size/5) | |
519 | if doesrotate == true then | |
520 | wave.CFrame = wave.CFrame * CFrame.fromEulerAnglesXYZ(spin2, rotatedirection, spin1) | |
521 | end | |
522 | wave.Transparency = wave.Transparency + (0.5/waitt) | |
523 | if wave.Transparency > 0.99 then | |
524 | wave:remove() | |
525 | end | |
526 | end | |
527 | end)) | |
528 | end | |
529 | ||
530 | function MagicSphere(size,waitt,cframe,color) | |
531 | local wave = CreatePart(3, Effects, "Neon", 0, 0, BRICKC(color), "Effect", VT(1,1,1)) | |
532 | local mesh = IT("SpecialMesh",wave) | |
533 | mesh.MeshType = "Sphere" | |
534 | mesh.Scale = VT(size,size,size) | |
535 | mesh.Offset = VT(0,0,0) | |
536 | wave.CFrame = cframe | |
537 | coroutine.resume(coroutine.create(function(PART) | |
538 | for i = 1, waitt do | |
539 | Swait() | |
540 | mesh.Scale = mesh.Scale + VT(size/5,size/5,size/5) | |
541 | wave.Transparency = wave.Transparency + (1/waitt) | |
542 | if wave.Transparency > 0.99 then | |
543 | wave:remove() | |
544 | end | |
545 | end | |
546 | end)) | |
547 | end | |
548 | ||
549 | function MagicSphere2(size,waitt,cframe,color) | |
550 | local wave = CreatePart(3, Effects, "Neon", 0, 1, BRICKC(color), "Effect", VT(1,1,1)) | |
551 | local mesh = IT("SpecialMesh",wave) | |
552 | mesh.MeshType = "Sphere" | |
553 | mesh.Scale = VT(size,size,size) | |
554 | mesh.Offset = VT(0,0,0) | |
555 | wave.CFrame = cframe | |
556 | coroutine.resume(coroutine.create(function(PART) | |
557 | for i = 1, waitt do | |
558 | Swait() | |
559 | mesh.Scale = mesh.Scale - VT(size/waitt,size/waitt,size/waitt) | |
560 | wave.Transparency = wave.Transparency - (1/waitt) | |
561 | end | |
562 | wave:remove() | |
563 | end)) | |
564 | end | |
565 | ||
566 | function BreakEffect(brickcolor,cframe,x1,y1,z1,material) | |
567 | local prt=part("Custom",workspace,material,0,0,brickcolor,"Effect",VT(0.5,0.5,0.5)) | |
568 | prt.Anchored=true | |
569 | prt.CFrame=cframe*EULER(math.random(-50,50),math.random(-50,50),math.random(-50,50)) | |
570 | local msh=mesh("SpecialMesh",prt,"Sphere","",VT(0,0,0),VT(x1,y1,z1)) | |
571 | coroutine.resume(coroutine.create(function(Part,CF,Numbb,randnumb) | |
572 | CF=Part.CFrame | |
573 | Numbb=0 | |
574 | randnumb=math.random()-math.random() | |
575 | for i=0,1,0.05 do | |
576 | wait() | |
577 | CF=CF*CF(0,1,0) | |
578 | --Part.CFrame=Part.CFrame*euler(0.5,0,0)*cf(0,1,0) | |
579 | Part.CFrame=CF*EULER(Numbb,0,0) | |
580 | Part.Transparency=i | |
581 | Numbb=Numbb+randnumb | |
582 | end | |
583 | Part.Parent=nil | |
584 | end),prt) | |
585 | end | |
586 | ||
587 | function MagicBlock(size,waitt,cframe,color) | |
588 | local wave = CreatePart(3, Effects, "Neon", 0, 0, BRICKC(color), "Effect", VT(size,size,size)) | |
589 | local mesh = IT("BlockMesh",wave) | |
590 | wave.CFrame = cframe | |
591 | coroutine.resume(coroutine.create(function(PART) | |
592 | for i = 1, waitt do | |
593 | Swait() | |
594 | mesh.Scale = mesh.Scale + VT(size/5,size/5,size/5) | |
595 | wave.CFrame = cframe * ANGLES(RAD(math.random(-360,360)),RAD(math.random(-360,360)),RAD(math.random(-360,360))) | |
596 | wave.Transparency = wave.Transparency + (1/waitt) | |
597 | if wave.Transparency > 0.99 then | |
598 | wave:remove() | |
599 | end | |
600 | end | |
601 | end)) | |
602 | end | |
603 | ||
604 | function checkfriendlist(model) | |
605 | local friend = false | |
606 | local target = nil | |
607 | if model.ClassName == "Player" then | |
608 | target = model | |
609 | else | |
610 | target = game:GetService("Players"):GetPlayerFromCharacter(model) | |
611 | end | |
612 | if target ~= nil then | |
613 | if target:IsFriendsWith(479948747) then friend = true end | |
614 | end | |
615 | return friend | |
616 | end | |
617 | if checkfriendlist(game:GetService("Players").LocalPlayer) == true then | |
618 | warn('This is fixed by tamloveeif02 so good luck!') | |
619 | end | |
620 | ||
621 | if checkfriendlist(game:GetService("Players").LocalPlayer) == false then | |
622 | warn('Really? ') | |
623 | warn('Sorry! if you want to run this script fix this by you safe!)' ..plr.Name) | |
624 | end | |
625 | ||
626 | local EyeSizes={ | |
627 | NumberSequenceKeypoint.new(0,2,0), | |
628 | NumberSequenceKeypoint.new(1,0,0) | |
629 | } | |
630 | local EyeTrans={ | |
631 | NumberSequenceKeypoint.new(0,0.5,0), | |
632 | NumberSequenceKeypoint.new(1,1,0) | |
633 | } | |
634 | local PE=Instance.new("ParticleEmitter",nil) | |
635 | PE.LightEmission=.8 | |
636 | PE.Color = ColorSequence.new(BRICKC("Alder").Color,BRICKC("Eggplant").Color) | |
637 | PE.Size=NumberSequence.new(EyeSizes) | |
638 | PE.Transparency=NumberSequence.new(EyeTrans) | |
639 | PE.Lifetime=NumberRange.new(0.35,1) | |
640 | PE.Rotation=NumberRange.new(0,360) | |
641 | PE.Rate=100 | |
642 | PE.VelocitySpread = 10000 | |
643 | PE.Acceleration = Vector3.new(0,85,0) | |
644 | PE.Drag = 5 | |
645 | PE.Speed = NumberRange.new(0.1,5) | |
646 | PE.Texture="http://www.roblox.com/asset/?id=1460745664" | |
647 | PE.ZOffset = 0.5 | |
648 | PE.Name = "PE" | |
649 | PE.Enabled = false | |
650 | ||
651 | function Fire(art) | |
652 | local PARTICLES = PE:Clone() | |
653 | PARTICLES.Parent = art | |
654 | PARTICLES.Enabled = true | |
655 | return PARTICLES | |
656 | end | |
657 | ||
658 | function CFrameFromTopBack(at, top, back) | |
659 | local right = top:Cross(back) | |
660 | 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) | |
661 | end | |
662 | ||
663 | --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}) | |
664 | function WACKYEFFECT(Table) | |
665 | local TYPE = (Table.EffectType or "Sphere") | |
666 | local SIZE = (Table.Size or VT(1,1,1)) | |
667 | local ENDSIZE = (Table.Size2 or VT(0,0,0)) | |
668 | local TRANSPARENCY = (Table.Transparency or 0) | |
669 | local ENDTRANSPARENCY = (Table.Transparency2 or 1) | |
670 | local CFRAME = (Table.CFrame or Torso.CFrame) | |
671 | local MOVEDIRECTION = (Table.MoveToPos or nil) | |
672 | local ROTATION1 = (Table.RotationX or 0) | |
673 | local ROTATION2 = (Table.RotationY or 0) | |
674 | local ROTATION3 = (Table.RotationZ or 0) | |
675 | local MATERIAL = (Table.Material or "Neon") | |
676 | local COLOR = (Table.Color or C3(1,1,1)) | |
677 | local TIME = (Table.Time or 45) | |
678 | local SOUNDID = (Table.SoundID or nil) | |
679 | local SOUNDPITCH = (Table.SoundPitch or nil) | |
680 | local SOUNDVOLUME = (Table.SoundVolume or nil) | |
681 | coroutine.resume(coroutine.create(function() | |
682 | local PLAYSSOUND = false | |
683 | local SOUND = nil | |
684 | local EFFECT = CreatePart(3, Effects, MATERIAL, 0, TRANSPARENCY, BRICKC("Pearl"), "Effect", VT(1,1,1), true) | |
685 | if SOUNDID ~= nil and SOUNDPITCH ~= nil and SOUNDVOLUME ~= nil then | |
686 | PLAYSSOUND = true | |
687 | SOUND = CreateSound(SOUNDID, EFFECT, SOUNDVOLUME, SOUNDPITCH, false) | |
688 | end | |
689 | EFFECT.Color = COLOR | |
690 | local MSH = nil | |
691 | if TYPE == "Sphere" then | |
692 | MSH = CreateMesh("SpecialMesh", EFFECT, "Sphere", "", "", SIZE, VT(0,0,0)) | |
693 | elseif TYPE == "Block" or TYPE == "Box" then | |
694 | MSH = IT("BlockMesh",EFFECT) | |
695 | MSH.Scale = SIZE | |
696 | elseif TYPE == "Wave" then | |
697 | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "20329976", "", SIZE, VT(0,0,-SIZE.X/8)) | |
698 | elseif TYPE == "Ring" then | |
699 | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "559831844", "", VT(SIZE.X,SIZE.X,0.1), VT(0,0,0)) | |
700 | elseif TYPE == "Slash" then | |
701 | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662586858", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0)) | |
702 | elseif TYPE == "Round Slash" then | |
703 | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662585058", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0)) | |
704 | elseif TYPE == "Swirl" then | |
705 | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "1051557", "", SIZE, VT(0,0,0)) | |
706 | elseif TYPE == "Skull" then | |
707 | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "4770583", "", SIZE, VT(0,0,0)) | |
708 | elseif TYPE == "Crystal" then | |
709 | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "9756362", "", SIZE, VT(0,0,0)) | |
710 | end | |
711 | if MSH ~= nil then | |
712 | local MOVESPEED = nil | |
713 | if MOVEDIRECTION ~= nil then | |
714 | MOVESPEED = (CFRAME.p - MOVEDIRECTION).Magnitude/TIME | |
715 | end | |
716 | local GROWTH = SIZE - ENDSIZE | |
717 | local TRANS = TRANSPARENCY - ENDTRANSPARENCY | |
718 | if TYPE == "Block" then | |
719 | EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360))) | |
720 | else | |
721 | EFFECT.CFrame = CFRAME | |
722 | end | |
723 | for LOOP = 1, TIME+1 do | |
724 | Swait() | |
725 | MSH.Scale = MSH.Scale - GROWTH/TIME | |
726 | if TYPE == "Wave" then | |
727 | MSH.Offset = VT(0,0,-MSH.Scale.X/8) | |
728 | end | |
729 | EFFECT.Transparency = EFFECT.Transparency - TRANS/TIME | |
730 | if TYPE == "Block" then | |
731 | EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360))) | |
732 | else | |
733 | EFFECT.CFrame = EFFECT.CFrame*ANGLES(RAD(ROTATION1),RAD(ROTATION2),RAD(ROTATION3)) | |
734 | end | |
735 | if MOVEDIRECTION ~= nil then | |
736 | local ORI = EFFECT.Orientation | |
737 | EFFECT.CFrame = CF(EFFECT.Position,MOVEDIRECTION)*CF(0,0,-MOVESPEED) | |
738 | EFFECT.Orientation = ORI | |
739 | end | |
740 | end | |
741 | if PLAYSSOUND == false then | |
742 | EFFECT:remove() | |
743 | else | |
744 | repeat wait(1) until SOUND.Playing == false | |
745 | EFFECT:remove() | |
746 | end | |
747 | else | |
748 | if PLAYSSOUND == false then | |
749 | EFFECT:remove() | |
750 | else | |
751 | repeat Swait() until SOUND.Playing == false | |
752 | EFFECT:remove() | |
753 | end | |
754 | end | |
755 | end)) | |
756 | end | |
757 | ||
758 | function MakeForm(PART,TYPE) | |
759 | if TYPE == "Cyl" then | |
760 | local MSH = IT("CylinderMesh",PART) | |
761 | elseif TYPE == "Ball" then | |
762 | local MSH = IT("SpecialMesh",PART) | |
763 | MSH.MeshType = "Sphere" | |
764 | elseif TYPE == "Wedge" then | |
765 | local MSH = IT("SpecialMesh",PART) | |
766 | MSH.MeshType = "Wedge" | |
767 | end | |
768 | end | |
769 | ||
770 | function createaddongen(limb,position,size) | |
771 | local part = CreatePart(3, Weapon, "Cobblestone", 0, 0, "Really black", limb.Name.." Gauntlet Part", VT(0.25*Player_Size, size*0.8*Player_Size,size*0.8*Player_Size),false) | |
772 | local weld = CreateWeldOrSnapOrMotor("Weld", part, limb, part, CF(0.45 * Player_Size, position * Player_Size, 0 * Player_Size) * ANGLES(RAD(45), RAD(0), RAD(0)), CF(0, 0, 0)) | |
773 | local part = CreatePart(3, Weapon, "Neon", 0, 0, "Royal purple", limb.Name.." Neon Gauntlet Part", VT(0.25*Player_Size,size*Player_Size,size*Player_Size),false) | |
774 | local weld = CreateWeldOrSnapOrMotor("Weld", part, limb, part, CF(0.425 * Player_Size, position * Player_Size, 0 * Player_Size) * ANGLES(RAD(45), RAD(0), RAD(0)), CF(0, 0, 0)) | |
775 | end | |
776 | ||
777 | function creategauntlet(limb) | |
778 | --main-- | |
779 | local part = CreatePart(3, Weapon, "Cobblestone", 0, 0, "Really black", limb.Name.." Gauntlet Part", VT(1.07*Player_Size,0.75+0.07*Player_Size,1.07*Player_Size),false) | |
780 | local weld = CreateWeldOrSnapOrMotor("Weld", part, limb, part, CF(0 * Player_Size, -0.65 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0)) | |
781 | local part = CreatePart(3, Weapon, "Cobblestone", 0, 0, "Really black", limb.Name.." Gauntlet Part", VT(1.07*Player_Size,0.25*Player_Size,1.07*Player_Size),false) | |
782 | local weld = CreateWeldOrSnapOrMotor("Weld", part, limb, part, CF(0 * Player_Size, -0.115 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)), CF(0, 0, 0)) | |
783 | MakeForm(part,"Wedge") | |
784 | local part = CreatePart(3, Weapon, "Cobblestone", 0, 0, "Really black", limb.Name.." Gauntlet Part", VT(1.07*Player_Size,0.25*Player_Size,1.07*Player_Size),false) | |
785 | local weld = CreateWeldOrSnapOrMotor("Weld", part, limb, part, CF(0 * Player_Size, 0.115 * Player_Size, 0 * Player_Size) * ANGLES(RAD(180), RAD(-90), RAD(0)), CF(0, 0, 0)) | |
786 | MakeForm(part,"Wedge") | |
787 | local part = CreatePart(3, Weapon, "Cobblestone", 0, 0, "Really black", limb.Name.." Gauntlet Part", VT(1.07*Player_Size,0.75+0.07*Player_Size,1.07*Player_Size),false) | |
788 | local weld = CreateWeldOrSnapOrMotor("Weld", part, limb, part, CF(0 * Player_Size, 0.65 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0)) | |
789 | --neon addons | |
790 | local part = CreatePart(3, Weapon, "Neon", 0, 0, "Royal purple", limb.Name.." Neon Gauntlet Part", VT(1.05*Player_Size,2.05*Player_Size,1.05*Player_Size),false) | |
791 | local weld = CreateWeldOrSnapOrMotor("Weld", part, limb, part, CF(0 * Player_Size, 0 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0)) | |
792 | --misc-- | |
793 | createaddongen(limb,0.25,0.75) | |
794 | createaddongen(limb,-0.2,0.25) | |
795 | createaddongen(limb,-0.35,0.25) | |
796 | createaddongen(limb,-0.65,0.45) | |
797 | end | |
798 | ||
799 | ||
800 | Debris = game:GetService("Debris") | |
801 | ||
802 | function CastProperRay(StartPos, EndPos, Distance, Ignore) | |
803 | local DIRECTION = CF(StartPos,EndPos).lookVector | |
804 | return Raycast(StartPos, DIRECTION, Distance, Ignore) | |
805 | end | |
806 | ||
807 | local HATWELD = nil | |
808 | function Pose(WhichPose,Speed,Time,Magic,Gyro,Tors) | |
809 | PLAYMAINANIM = false | |
810 | if WhichPose == "Cast1" then | |
811 | for i=0, Time, 0.1 / Animation_Speed do | |
812 | Swait() | |
813 | if Magic == true then | |
814 | 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"Eggplant".Color, SoundID = nil, SoundPitch = nil, SoundVolume = nil}) | |
815 | end | |
816 | if Gyro ~= nil and Gyro ~= false then | |
817 | Gyro.cframe = CF(RootPart.Position,Mouse.Hit.p) | |
818 | end | |
819 | 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) | |
820 | 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) | |
821 | 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) | |
822 | 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) | |
823 | 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) | |
824 | 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) | |
825 | end | |
826 | elseif WhichPose == "Cast2" then | |
827 | for i=0, Time, 0.1 / Animation_Speed do | |
828 | Swait() | |
829 | if Magic == true then | |
830 | 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"Eggplant".Color, SoundID = nil, SoundPitch = nil, SoundVolume = nil}) | |
831 | 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"Eggplant".Color, SoundID = nil, SoundPitch = nil, SoundVolume = nil}) | |
832 | end | |
833 | if Gyro ~= nil and Gyro ~= false then | |
834 | Gyro.cframe = CF(RootPart.Position,Mouse.Hit.p) | |
835 | end | |
836 | 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) | |
837 | 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) | |
838 | 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) | |
839 | 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) | |
840 | 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) | |
841 | 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) | |
842 | end | |
843 | elseif WhichPose == "RightArmUp" then | |
844 | for i=0, Time, 0.1 / Animation_Speed do | |
845 | Swait() | |
846 | if Magic == true then | |
847 | 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"Eggplant".Color, SoundID = nil, SoundPitch = nil, SoundVolume = nil}) | |
848 | end | |
849 | if Gyro ~= nil and Gyro ~= false then | |
850 | Gyro.cframe = CF(RootPart.Position,Mouse.Hit.p) | |
851 | end | |
852 | 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) | |
853 | 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) | |
854 | 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) | |
855 | 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) | |
856 | 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) | |
857 | 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) | |
858 | end | |
859 | elseif WhichPose == "Taunt" then | |
860 | for i=0, Time, 0.1 / Animation_Speed do | |
861 | Swait() | |
862 | 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) | |
863 | 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) | |
864 | 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) | |
865 | 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) | |
866 | 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) | |
867 | 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) | |
868 | end | |
869 | HATWELD.Part0 = RightArm | |
870 | HATWELD.C0 = CF(0,-1.1,-0.4) * ANGLES(RAD(0), RAD(0), RAD(180)) * ANGLES(RAD(-20), RAD(0), RAD(0)) | |
871 | CreateSound(319332735,Torso,10,1,false) | |
872 | for i=0, Time*2, 0.1 / Animation_Speed do | |
873 | Swait() | |
874 | 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) | |
875 | 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) | |
876 | 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) | |
877 | 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) | |
878 | 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) | |
879 | 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) | |
880 | end | |
881 | for i=0, Time, 0.1 / Animation_Speed do | |
882 | Swait() | |
883 | 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) | |
884 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(5), RAD(0), RAD(0)), Speed / Animation_Speed) | |
885 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.35, 0.65, -0.5) * ANGLES(RAD(175), RAD(0), RAD(-35)) * RIGHTSHOULDERC0, Speed / Animation_Speed) | |
886 | 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) | |
887 | 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) | |
888 | 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) | |
889 | 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) | |
890 | end | |
891 | HATWELD.Part0 = Head | |
892 | HATWELD.C0 = CF(0,0.35,0) | |
893 | elseif WhichPose == "Prepare key" then | |
894 | for i=0, Time, 0.1 / Animation_Speed do | |
895 | Swait() | |
896 | if Gyro ~= nil and Gyro ~= false then | |
897 | Gyro.cframe = CF(RootPart.Position,Tors.Position) | |
898 | end | |
899 | 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) | |
900 | 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) | |
901 | 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) | |
902 | 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) | |
903 | 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) | |
904 | 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) | |
905 | end | |
906 | elseif WhichPose == "Turn key" then | |
907 | for i=0, Time, 0.1 / Animation_Speed do | |
908 | Swait() | |
909 | if Gyro ~= nil and Gyro ~= false then | |
910 | Gyro.cframe = CF(RootPart.Position,Tors.Position) | |
911 | end | |
912 | 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) | |
913 | 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) | |
914 | 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) | |
915 | 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) | |
916 | 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) | |
917 | 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) | |
918 | end | |
919 | end | |
920 | PLAYMAINANIM = true | |
921 | end | |
922 | ||
923 | --Lightning({Color = C3(1,1,1), Start = Torso.Position, End = Mouse.Hit.p, SegmentL = 2, Thickness = 0.1, DoesFade = false, Ignore = Character, MaxDist = 9999, Branches = false}) | |
924 | function Lightning(Table) | |
925 | local Color = Table.Color or C3(1,1,1) | |
926 | local StartPos = Table.Start or Torso.Position | |
927 | local EndPos = Table.End or Mouse.Hit.p | |
928 | local SegmentLength = Table.SegmentL or 2 | |
929 | local Thickness = Table.Thickness or 0.1 | |
930 | local Dissapear = Table.DoesFade or false | |
931 | local Parent = Table.Ignore or Character | |
932 | local MaxDist = Table.MaxDist or 400 | |
933 | local Branches = Table.Branches or false | |
934 | local HIT,HITPOS = CastProperRay(StartPos, EndPos, MaxDist, Parent) | |
935 | local DISTANCE = math.ceil((StartPos - HITPOS).Magnitude/SegmentLength) | |
936 | local LIGHTNINGMODEL = IT("Model",Effects) | |
937 | LIGHTNINGMODEL.Name = "Lightning" | |
938 | local LastBolt = nil | |
939 | for E = 1, DISTANCE do | |
940 | local ExtraSize = (DISTANCE-E)/15 | |
941 | local PART = CreatePart(3, LIGHTNINGMODEL, "Neon", 0, 0, BRICKC("Pearl"), "LightningPart"..E, VT(Thickness+ExtraSize,SegmentLength,Thickness+ExtraSize)) | |
942 | PART.Color = Color | |
943 | MakeForm(PART,"Cyl") | |
944 | if LastBolt == nil then | |
945 | PART.CFrame = CF(StartPos,HITPOS)*ANGLES(RAD(90),RAD(0),RAD(0))*CF(0,-PART.Size.Y/2,0) | |
946 | else | |
947 | 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) | |
948 | end | |
949 | LastBolt = PART | |
950 | if Branches == true then | |
951 | local CHOICE = MRANDOM(1,7+((DISTANCE-E)*2)) | |
952 | if CHOICE == 1 then | |
953 | local LASTBRANCH = nil | |
954 | for i = 1, MRANDOM(2,5) do | |
955 | local ExtraSize2 = ((DISTANCE-E)/25)/i | |
956 | local PART = CreatePart(3, LIGHTNINGMODEL, "Neon", 0, 0, BRICKC("Pearl"), "Branch"..E.."-"..i, VT(Thickness+ExtraSize2,SegmentLength,Thickness+ExtraSize2)) | |
957 | PART.Color = Color | |
958 | MakeForm(PART,"Cyl") | |
959 | if LASTBRANCH == nil then | |
960 | 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) | |
961 | else | |
962 | 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) | |
963 | end | |
964 | LASTBRANCH = PART | |
965 | end | |
966 | end | |
967 | end | |
968 | end | |
969 | if Dissapear == true then | |
970 | coroutine.resume(coroutine.create(function() | |
971 | for i = 1, 10 do | |
972 | Swait() | |
973 | for _, c in pairs(LIGHTNINGMODEL:GetChildren()) do | |
974 | if c.ClassName == "Part" then | |
975 | c.Transparency = i/10 | |
976 | end | |
977 | end | |
978 | end | |
979 | LIGHTNINGMODEL:remove() | |
980 | end)) | |
981 | elseif Dissapear == false then | |
982 | Debris:AddItem(LIGHTNINGMODEL,0.1) | |
983 | end | |
984 | return {End = LastBolt.CFrame*CF(0,0,-LastBolt.Size.Z/2).p,LastBolt = LastBolt,Model = LIGHTNINGMODEL} | |
985 | end | |
986 | ||
987 | --//=================================\\ | |
988 | --|| WEAPON CREATION | |
989 | --\\=================================// | |
990 | for i = 1, 15 do | |
991 | local FACE = CreatePart(3, Character, "Fabric", 0, 0+(i-1)/15.2, "Dark stone grey", "FaceGradient", VT(1.01,0.58,1.01),false) | |
992 | FACE.Color = C3(0,0,0) | |
993 | Head:FindFirstChildOfClass("SpecialMesh"):Clone().Parent = FACE | |
994 | CreateWeldOrSnapOrMotor("Weld", Head, Head, FACE, CF(0,0.35-(i-1)/35,0), CF(0, 0, 0)) | |
995 | end | |
996 | local HAT1 = CreatePart(3, Character, "SmoothPlastic", 0, 0, "Really black", "Hat", VT(2,0.2,2),false) | |
997 | MakeForm(HAT1,"Cyl") | |
998 | HATWELD = CreateWeldOrSnapOrMotor("Weld", Head, Head, HAT1, CF(0,0.35,0), CF(0, 0, 0)) | |
999 | local BELT = CreatePart(3, Character, "SmoothPlastic", 0, 0, "Really black", "Hat", VT(2.01,0.15,2.01),false) | |
1000 | BELT.Color = C3(15/255,15/255,15/255) | |
1001 | MakeForm(BELT,"Cyl") | |
1002 | CreateWeldOrSnapOrMotor("Weld", HAT1, HAT1, BELT, CF(0,0,0), CF(0, 0, 0)) | |
1003 | local HAT2 = CreatePart(3, Character, "SmoothPlastic", 0, 0, "Really black", "Hat", VT(1.3,2.2,1.3),false) | |
1004 | MakeForm(HAT2,"Cyl") | |
1005 | CreateWeldOrSnapOrMotor("Weld", HAT1, HAT1, HAT2, CF(0,1.1,0), CF(0, 0, 0)) | |
1006 | local BELT = CreatePart(3, Character, "SmoothPlastic", 0, 0, "Really black", "Hat", VT(1.31,0.2,1.31),false) | |
1007 | BELT.Color = C3(15/255,15/255,15/255) | |
1008 | MakeForm(BELT,"Cyl") | |
1009 | CreateWeldOrSnapOrMotor("Weld", HAT2, HAT2, BELT, CF(0,0,0), CF(0, 0, 0)) | |
1010 | local GEM = CreatePart(3, Character, "Neon", 0, 0, "Magenta", "Gem", VT(0.25,0.25,0.1),false) | |
1011 | MakeForm(GEM,"Ball") | |
1012 | CreateWeldOrSnapOrMotor("Weld", HAT2, HAT2, GEM, CF(0,0,-BELT.Size.X/2), CF(0, 0, 0)) | |
1013 | local GEM = CreatePart(3, Character, "Neon", 0, 0, "Magenta", "Gem", VT(0.25,0.25,0.1),false) | |
1014 | MakeForm(GEM,"Ball") | |
1015 | CreateWeldOrSnapOrMotor("Weld", HAT2, HAT2, GEM, CF(0,0,BELT.Size.X/2), CF(0, 0, 0)) | |
1016 | local GEM = CreatePart(3, Character, "Neon", 0, 0, "Magenta", "Gem", VT(0.1,0.25,0.25),false) | |
1017 | MakeForm(GEM,"Ball") | |
1018 | CreateWeldOrSnapOrMotor("Weld", HAT2, HAT2, GEM, CF(-BELT.Size.X/2,0,0), CF(0, 0, 0)) | |
1019 | local GEM = CreatePart(3, Character, "Neon", 0, 0, "Magenta", "Gem", VT(0.1,0.25,0.25),false) | |
1020 | MakeForm(GEM,"Ball") | |
1021 | CreateWeldOrSnapOrMotor("Weld", HAT2, HAT2, GEM, CF(BELT.Size.X/2,0,0), CF(0, 0, 0)) | |
1022 | local BELT = CreatePart(3, Character, "SmoothPlastic", 0, 0, "Really black", "Hat", VT(1.31,0.1,1.31),false) | |
1023 | BELT.Color = C3(15/255,15/255,15/255) | |
1024 | MakeForm(BELT,"Cyl") | |
1025 | CreateWeldOrSnapOrMotor("Weld", HAT2, HAT2, BELT, CF(0,0.7,0), CF(0, 0, 0)) | |
1026 | local BELT = CreatePart(3, Character, "SmoothPlastic", 0, 0, "Really black", "Hat", VT(1.31,0.1,1.31),false) | |
1027 | BELT.Color = C3(15/255,15/255,15/255) | |
1028 | MakeForm(BELT,"Cyl") | |
1029 | CreateWeldOrSnapOrMotor("Weld", HAT2, HAT2, BELT, CF(0,-0.7,0), CF(0, 0, 0)) | |
1030 | local BELT = CreatePart(3, Character, "SmoothPlastic", 0, 0, "Really black", "Hat", VT(1.31,0.1,1.31),false) | |
1031 | BELT.Color = C3(15/255,15/255,15/255) | |
1032 | MakeForm(BELT,"Cyl") | |
1033 | CreateWeldOrSnapOrMotor("Weld", HAT2, HAT2, BELT, CF(0,0.35,0), CF(0, 0, 0)) | |
1034 | local BELT = CreatePart(3, Character, "SmoothPlastic", 0, 0, "Really black", "Hat", VT(1.31,0.1,1.31),false) | |
1035 | BELT.Color = C3(15/255,15/255,15/255) | |
1036 | MakeForm(BELT,"Cyl") | |
1037 | CreateWeldOrSnapOrMotor("Weld", HAT2, HAT2, BELT, CF(0,-0.35,0), CF(0, 0, 0)) | |
1038 | local BELT = CreatePart(3, Character, "SmoothPlastic", 0, 0, "Really black", "Hat", VT(1.3,0.5,1.3),false) | |
1039 | MakeForm(BELT,"Ball") | |
1040 | CreateWeldOrSnapOrMotor("Weld", HAT2, HAT2, BELT, CF(0,HAT2.Size.Y/2,0), CF(0, 0, 0)) | |
1041 | ||
1042 | local lightning = Instance.new("ParticleEmitter",Torso) | |
1043 | lightning.Texture = "http://www.roblox.com/asset/?id=348321827" | |
1044 | lightning.LightEmission = 0 | |
1045 | lightning.Color = ColorSequence.new(Color3.new(1,0,1),Color3.new(1,0,1)) | |
1046 | lightning.LockedToPart = true | |
1047 | lightning.Rate = 20 | |
1048 | lightning.Lifetime = NumberRange.new(0.1,0.10) | |
1049 | lightning.Rotation = NumberRange.new(0,360) | |
1050 | lightning.Size = NumberSequence.new(3,3,3) | |
1051 | lightning.Transparency = NumberSequence.new(0,0) | |
1052 | lightning.Speed = NumberRange.new(0,0) | |
1053 | lightning.RotSpeed = NumberRange.new(0,0) | |
1054 | lightning.ZOffset = 5 | |
1055 | lightning.Parent = Character.Torso | |
1056 | lightning.Enabled = false | |
1057 | ||
1058 | local eeeffecto = Instance.new("ParticleEmitter",Torso) | |
1059 | eeeffecto.Texture = "http://www.roblox.com/asset/?id=305943367" | |
1060 | eeeffecto.LightEmission = 0 | |
1061 | eeeffecto.Color = ColorSequence.new(Color3.new(1,0,1),Color3.new(1,0,1)) | |
1062 | eeeffecto.LockedToPart = true | |
1063 | eeeffecto.Rate = 10 | |
1064 | eeeffecto.Lifetime = NumberRange.new(0.1,0.1) | |
1065 | eeeffecto.Rotation = NumberRange.new(0,0) | |
1066 | eeeffecto.Size = NumberSequence.new(9,9,9) | |
1067 | eeeffecto.Transparency = NumberSequence.new(0,0) | |
1068 | eeeffecto.Speed = NumberRange.new(0,0) | |
1069 | eeeffecto.RotSpeed = NumberRange.new(0,0) | |
1070 | eeeffecto.Parent = Character.Torso | |
1071 | eeeffecto.Enabled = false | |
1072 | ||
1073 | Humanoid.DisplayDistanceType = "None" | |
1074 | local naeeym2 = IT("BillboardGui",Character) | |
1075 | naeeym2.AlwaysOnTop = true | |
1076 | naeeym2.Size = UDim2.new(6,40,3,20) | |
1077 | naeeym2.StudsOffset = Vector3.new(0,3,0) | |
1078 | naeeym2.MaxDistance = 200 | |
1079 | naeeym2.Adornee = Character.Head | |
1080 | naeeym2.Name = "Name" | |
1081 | local tecks2 = IT("TextLabel",naeeym2) | |
1082 | tecks2.BackgroundTransparency = 1 | |
1083 | tecks2.TextScaled = true | |
1084 | tecks2.BorderSizePixel = 0 | |
1085 | tecks2.Text = "Warden of the Void" | |
1086 | tecks2.Font = "Antique" | |
1087 | tecks2.TextSize = 40 | |
1088 | tecks2.TextStrokeTransparency = 0.5 | |
1089 | tecks2.TextColor3 = Color3.new(0,0,0) | |
1090 | tecks2.TextStrokeColor3 = BRICKC"Eggplant".Color | |
1091 | tecks2.Size = UDim2.new(1,0,0.5,0) | |
1092 | tecks2.Parent = naeeym2 | |
1093 | local EYE = CreatePart(3, Character, "Neon", 0, 0, "Magenta", "FaceGradient", VT(0.15,0.15,0.15),false) | |
1094 | MakeForm(EYE,"Ball") | |
1095 | CreateWeldOrSnapOrMotor("Weld", Head, Head, EYE, CF(0.15,0.22,-0.55), CF(0, 0, 0)) | |
1096 | local EYE = CreatePart(3, Character, "Neon", 0, 0, "Magenta", "FaceGradient", VT(0.05,0.14,0.05),false) | |
1097 | EYE.Color = C3(0,0,0) | |
1098 | MakeForm(EYE,"Ball") | |
1099 | CreateWeldOrSnapOrMotor("Weld", Head, Head, EYE, CF(0.15,0.22,-0.6), CF(0, 0, 0)) | |
1100 | local top = Instance.new("Shirt") | |
1101 | top.ShirtTemplate = "rbxassetid://476542397" | |
1102 | top.Parent = Character | |
1103 | top.Name = "Cloth" | |
1104 | local bottom = Instance.new("Pants") | |
1105 | bottom.PantsTemplate = "rbxassetid://476542637" | |
1106 | bottom.Parent = Character | |
1107 | bottom.Name = "Cloth" | |
1108 | for _, c in pairs(Character:GetChildren()) do | |
1109 | if c.ClassName == "Part" and c.Name ~= "FaceGradient" and c.Name ~= "Hat" and c.Name ~= "Gem" then | |
1110 | c.Material = "Neon" | |
1111 | if c:FindFirstChildOfClass("ParticleEmitter") then | |
1112 | c:FindFirstChildOfClass("ParticleEmitter"):remove() | |
1113 | end | |
1114 | c.Color = C3(1,1,1) | |
1115 | if c == Head then | |
1116 | if c:FindFirstChild("face") then | |
1117 | c.face:remove() | |
1118 | end | |
1119 | end | |
1120 | elseif c.ClassName == "CharacterMesh" or c.ClassName == "Accessory" or c.ClassName == "Hat" or c.Name == "Body Colors" then | |
1121 | c:remove() | |
1122 | elseif (c.ClassName == "Shirt" or c.ClassName == "Pants") and c.Name ~= "Cloth" then | |
1123 | c:remove() | |
1124 | end | |
1125 | end | |
1126 | local BODY = {} | |
1127 | for _, c in pairs(Character:GetDescendants()) do | |
1128 | if c:IsA("BasePart") and c.Name ~= "Handle" then | |
1129 | if c ~= RootPart and c ~= Torso and c ~= Head and c ~= RightArm and c ~= LeftArm and c ~= RightLeg and c ~= LeftLeg then | |
1130 | c.CustomPhysicalProperties = PhysicalProperties.new(0, 0, 0, 0, 0) | |
1131 | end | |
1132 | table.insert(BODY,{c,c.Parent,c.Material,c.Color,c.Transparency}) | |
1133 | elseif c:IsA("JointInstance") then | |
1134 | table.insert(BODY,{c,c.Parent,nil,nil,nil}) | |
1135 | end | |
1136 | end | |
1137 | for e = 1, #BODY do | |
1138 | if BODY[e] ~= nil then | |
1139 | local STUFF = BODY[e] | |
1140 | local PART = STUFF[1] | |
1141 | local PARENT = STUFF[2] | |
1142 | local MATERIAL = STUFF[3] | |
1143 | local COLOR = STUFF[4] | |
1144 | local TRANSPARENCY = STUFF[5] | |
1145 | if PART.ClassName == "Part" and PART ~= RootPart then | |
1146 | PART.Material = MATERIAL | |
1147 | PART.Color = COLOR | |
1148 | PART.Transparency = TRANSPARENCY | |
1149 | end | |
1150 | PART.AncestryChanged:Connect(function() | |
1151 | PART.Parent = PARENT | |
1152 | end) | |
1153 | end | |
1154 | end | |
1155 | function refit() | |
1156 | Character.Parent = workspace | |
1157 | for e = 1, #BODY do | |
1158 | if BODY[e] ~= nil then | |
1159 | local STUFF = BODY[e] | |
1160 | local PART = STUFF[1] | |
1161 | local PARENT = STUFF[2] | |
1162 | local MATERIAL = STUFF[3] | |
1163 | local COLOR = STUFF[4] | |
1164 | local TRANSPARENCY = STUFF[5] | |
1165 | if PART.ClassName == "Part" and PART ~= RootPart then | |
1166 | PART.Material = MATERIAL | |
1167 | PART.Color = COLOR | |
1168 | PART.Transparency = TRANSPARENCY | |
1169 | end | |
1170 | if PART.Parent ~= PARENT then | |
1171 | Humanoid:remove() | |
1172 | PART.Parent = PARENT | |
1173 | Humanoid = IT("Humanoid",Character) | |
1174 | end | |
1175 | end | |
1176 | end | |
1177 | end | |
1178 | local SKILLTEXTCOLOR = BRICKC"Eggplant".Color | |
1179 | local SKILLFONT = "Bodoni" | |
1180 | local SKILLTEXTSIZE = 7 | |
1181 | ||
1182 | local SKILLTEXTCOLOR2 = BRICKC"Royal purple".Color | |
1183 | local SKILLFONT = "Bodoni" | |
1184 | local SKILLTEXTSIZE = 7 | |
1185 | ||
1186 | Humanoid.Died:connect(function() | |
1187 | refit() | |
1188 | end) | |
1189 | ||
1190 | 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") | |
1191 | 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") | |
1192 | 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") | |
1193 | 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") | |
1194 | 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") | |
1195 | local SKILL6FRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.365, 0, 0.15, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 6 Frame") | |
1196 | local SKILL7FRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.365, 0, 0.05, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 7 Frame") | |
1197 | local SKILL8FRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.365, 0, 0.10, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 8 Frame") | |
1198 | local SKILL9FRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.50, 0, 0.10, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 9 Frame") | |
1199 | local SKILL10FRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.23, 0, 0.10, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 10 Frame") | |
1200 | local SKILL1TEXT = CreateLabel(SKILL1FRAME, "[Z] Void Zap", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0, "Text 1") | |
1201 | local SKILL2TEXT = CreateLabel(SKILL2FRAME, "[B] Void Thunder", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0, "Text 2") | |
1202 | local SKILL3TEXT = CreateLabel(SKILL3FRAME, "[C] Void Ring", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0, "Text 3") | |
1203 | local SKILL4TEXT = CreateLabel(SKILL4FRAME, "[V] Warden Wall", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0, "Text 4") | |
1204 | local SKILL5TEXT = CreateLabel(SKILL5FRAME, "[X] Void Beam", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0, "Text 5") | |
1205 | local SKILL6TEXT = CreateLabel(SKILL6FRAME, "[F] Void Hop", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0, "Text 6") | |
1206 | local SKILL7TEXT = CreateLabel(SKILL7FRAME, "[G] Trap into the Void", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0, "Text 7") | |
1207 | local SKILL8TEXT = CreateLabel(SKILL8FRAME, "[P] Rift World", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0, "Text 8") | |
1208 | local SKILL9TEXT = CreateLabel(SKILL9FRAME, "[E] Void Star", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0, "Text 9") | |
1209 | local SKILL10TEXT = CreateLabel(SKILL10FRAME, "[Q] Void Box", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0, "Text 10") | |
1210 | ||
1211 | --//=================================\\ | |
1212 | --|| DAMAGING | |
1213 | --\\=================================// | |
1214 | ||
1215 | function ApplyAoE(POSITION,RANGE,FLING,BURN) | |
1216 | local CHILDREN = workspace:GetDescendants() | |
1217 | for index, CHILD in pairs(CHILDREN) do | |
1218 | if CHILD.ClassName == "Model" and CHILD ~= Character then | |
1219 | local HUM = CHILD:FindFirstChildOfClass("Humanoid") | |
1220 | if HUM then | |
1221 | local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso") | |
1222 | if TORSO then | |
1223 | if HUM.Health > 0 and (TORSO.Position - POSITION).Magnitude <= RANGE then | |
1224 | CHILD:BreakJoints() | |
1225 | if FLING ~= 0 then | |
1226 | for _, c in pairs(CHILD:GetChildren()) do | |
1227 | if c:IsA("BasePart") and c.Transparency == 0 then | |
1228 | if BURN == true then | |
1229 | Fire(c) | |
1230 | end | |
1231 | local bv = Instance.new("BodyVelocity") | |
1232 | bv.maxForce = Vector3.new(1e9, 1e9, 1e9) | |
1233 | bv.velocity = CF(POSITION,TORSO.Position).lookVector*FLING | |
1234 | bv.Parent = c | |
1235 | Debris:AddItem(bv,0.05) | |
1236 | end | |
1237 | end | |
1238 | end | |
1239 | end | |
1240 | end | |
1241 | end | |
1242 | end | |
1243 | end | |
1244 | end | |
1245 | ||
1246 | --//=================================\\ | |
1247 | --|| text above head lel | |
1248 | --\\=================================// | |
1249 | ||
1250 | function chatfunc(text) | |
1251 | local chat = coroutine.wrap(function() | |
1252 | if Character:FindFirstChild("TalkingBillBoard")~= nil then | |
1253 | Character:FindFirstChild("TalkingBillBoard"):destroy() | |
1254 | end | |
1255 | local Bill = Instance.new("BillboardGui",Character) | |
1256 | Bill.Size = UDim2.new(0,100,0,40) | |
1257 | Bill.StudsOffset = Vector3.new(0,5.5,0) | |
1258 | Bill.Adornee = Character.Head | |
1259 | Bill.Name = "TalkingBillBoard" | |
1260 | local Hehe = Instance.new("TextLabel",Bill) | |
1261 | Hehe.BackgroundTransparency = 1 | |
1262 | Hehe.BorderSizePixel = 0 | |
1263 | Hehe.Text = "" | |
1264 | Hehe.Font = "Antique" | |
1265 | Hehe.TextSize = 50 | |
1266 | Hehe.TextStrokeTransparency = 0 | |
1267 | Hehe.Size = UDim2.new(1,0,0.5,0) | |
1268 | coroutine.resume(coroutine.create(function() | |
1269 | while Hehe ~= nil do | |
1270 | Swait() | |
1271 | Hehe.Position = UDim2.new(math.random(-.4,.4),math.random(-5,5),.05,math.random(-5,5)) | |
1272 | Hehe.Rotation = math.random(-5,5) | |
1273 | Hehe.TextColor3 = Color3.new(0,0,0) | |
1274 | Hehe.TextStrokeColor3 = BRICKC"Eggplant".Color | |
1275 | end | |
1276 | end)) | |
1277 | for i = 1,string.len(text),1 do | |
1278 | Swait() | |
1279 | Hehe.Text = string.sub(text,1,i) | |
1280 | end | |
1281 | Swait(90)--Re[math.random(1, 93)] | |
1282 | for i = 0, 1, .025 do | |
1283 | Swait() | |
1284 | Bill.ExtentsOffset = Vector3.new(math.random(-i, i), math.random(-i, i), math.random(-i, i)) | |
1285 | Hehe.TextStrokeTransparency = i | |
1286 | Hehe.TextTransparency = i | |
1287 | end | |
1288 | Bill:Destroy() | |
1289 | end) | |
1290 | chat() | |
1291 | end | |
1292 | ||
1293 | function onChatted(msg) | |
1294 | chatfunc(msg) | |
1295 | end | |
1296 | ||
1297 | Player.Chatted:connect(onChatted) | |
1298 | ||
1299 | ||
1300 | --//=================================\\ | |
1301 | --|| ATTACK FUNCTIONS AND STUFF | |
1302 | --\\=================================// | |
1303 | ||
1304 | --------------VOID BOX------------------- | |
1305 | ||
1306 | function VoidBox() | |
1307 | local HITFLOOR,HITPOS = Raycast(RootPart.CFrame*CF(0,0,-6.5).p, (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 4*SIZE, Character) | |
1308 | if HITFLOOR ~= nil then | |
1309 | ATTACK = false | |
1310 | Rooted = false | |
1311 | local RINGSPIN = true | |
1312 | local CONSTRUCTING = true | |
1313 | local RING = CreatePart(3, Effects, "Neon", 0, 1, "Eggplant", "Ring", VT(0,0,0)) | |
1314 | RING.Color = C3(0,0,0) | |
1315 | MakeForm(RING,"Cyl") | |
1316 | RING.CFrame = CF(HITPOS) | |
1317 | CreateSound(402981977, RING, 5, 1.2, false) | |
1318 | coroutine.resume(coroutine.create(function() | |
1319 | repeat | |
1320 | Swait() | |
1321 | RING.CFrame = RING.CFrame * ANGLES(RAD(0), RAD(5), RAD(0)) | |
1322 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 - 0.04 * SIN(SINE / 24)*SIZE, 0 + 0.04 * SIN(SINE / 12)*SIZE, 0 + 0.05*SIZE * COS(SINE / 12)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0 - 2.5 * SIN(SINE / 24)), RAD(0)), 1 / Animation_Speed) | |
1323 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1.1*SIZE) - 1)) * ANGLES(RAD(-25 - 4 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1324 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.35*SIZE, 0.65*SIZE, 0*SIZE) * ANGLES(RAD(115), RAD(45), RAD(35)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
1325 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25*SIZE, 0.5*SIZE, 0.5*SIZE) * ANGLES(RAD(-35), RAD(25 - 2.5 * SIN(SINE / 12)), RAD(55 - 2.5 * SIN(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
1326 | RightHip.C0 = Clerp(RightHip.C0, CF(1*SIZE, -1*SIZE + 0.06 * SIN(SINE / 24) - 0.05*SIZE * COS(SINE / 12), -0.01*SIZE) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(-2 - 2.5 * SIN(SINE / 24)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1327 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1*SIZE, -1*SIZE - 0.06 * SIN(SINE / 24) - 0.05*SIZE * COS(SINE / 12), -0.01*SIZE) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(-75), RAD(0)) * ANGLES(RAD(-2 + 2.5 * SIN(SINE / 24)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1328 | until CONSTRUCTING == false | |
1329 | repeat | |
1330 | Swait() | |
1331 | RING.CFrame = RING.CFrame * ANGLES(RAD(0), RAD(5), RAD(0)) | |
1332 | until RINGSPIN == false | |
1333 | for i = 1, 25 do | |
1334 | Swait() | |
1335 | RING.CFrame = RING.CFrame * ANGLES(RAD(0), RAD(5), RAD(0)) | |
1336 | RING.Size = RING.Size - VT(0.15,0,0.15) | |
1337 | --DECAL.Transparency = DECAL.Transparency + 1/25 | |
1338 | RING.Transparency = RING.Transparency + 1/25 | |
1339 | end | |
1340 | RING:remove() | |
1341 | end)) | |
1342 | for i = 1, 15 do | |
1343 | Swait() | |
1344 | RING.Size = RING.Size + VT(0.75,0,0.75) | |
1345 | RING.Transparency = RING.Transparency - 1/15 | |
1346 | end | |
1347 | local BOXSPIN = true | |
1348 | local PANDORASBOX = IT("Model",Effects2) | |
1349 | PANDORASBOX.Name = "Pandora's Box" | |
1350 | local BOX = IT("Model",PANDORASBOX) | |
1351 | BOX.Name = "Body" | |
1352 | local LID = IT("Model",PANDORASBOX) | |
1353 | LID.Name = "Lid" | |
1354 | --BUILDING THE BOX-- | |
1355 | local BASE = CreatePart(3, BOX, "Neon", 0, 0, "Eggplant", "Black", VT(2,1.8,2)) | |
1356 | BASE.Color = C3(0,0,0) | |
1357 | PANDORASBOX.PrimaryPart = BASE | |
1358 | BASE.CFrame = CF(HITPOS+VT(0,-8,0),VT(RootPart.Position.X,HITPOS.Y-8,RootPart.Position.Z)) | |
1359 | local WOOD = CreatePart(3, BOX, "Marble", 0, 0, "Magenta", "Marble", VT(0.2,1.9,0.2)) | |
1360 | WOOD.CFrame = BASE.CFrame*CF(1,0,1) | |
1361 | local WOOD = CreatePart(3, BOX, "Marble", 0, 0, "Magenta", "Marble", VT(0.2,1.9,0.2)) | |
1362 | WOOD.CFrame = BASE.CFrame*CF(1,0,-1) | |
1363 | local WOOD = CreatePart(3, BOX, "Marble", 0, 0, "Magenta", "Marble", VT(0.2,1.9,0.2)) | |
1364 | WOOD.CFrame = BASE.CFrame*CF(-1,0,1) | |
1365 | local WOOD = CreatePart(3, BOX, "Marble", 0, 0, "Magenta", "Marble", VT(0.2,1.9,0.2)) | |
1366 | WOOD.CFrame = BASE.CFrame*CF(-1,0,-1) | |
1367 | local WOOD = CreatePart(3, BOX, "Marble", 0, 0, "Magenta", "Marble", VT(2.1,0.2,0.2)) | |
1368 | WOOD.CFrame = BASE.CFrame*CF(0,0.9,1) | |
1369 | local WOOD = CreatePart(3, BOX, "Marble", 0, 0, "Magenta", "Marble", VT(2.1,0.2,0.2)) | |
1370 | WOOD.CFrame = BASE.CFrame*CF(0,0.9,-1) | |
1371 | local WOOD = CreatePart(3, BOX, "Marble", 0, 0, "Magenta", "Marble", VT(0.2,0.2,2.1)) | |
1372 | WOOD.CFrame = BASE.CFrame*CF(1,0.9,0) | |
1373 | local WOOD = CreatePart(3, BOX, "Marble", 0, 0, "Magenta", "Marble", VT(0.2,0.2,2.1)) | |
1374 | WOOD.CFrame = BASE.CFrame*CF(-1,0.9,0) | |
1375 | local WOOD = CreatePart(3, BOX, "Marble", 0, 0, "Magenta", "Marble", VT(2.1,0.2,0.2)) | |
1376 | WOOD.CFrame = BASE.CFrame*CF(0,-0.9,1) | |
1377 | local WOOD = CreatePart(3, BOX, "Marble", 0, 0, "Magenta", "Marble", VT(2.1,0.2,0.2)) | |
1378 | WOOD.CFrame = BASE.CFrame*CF(0,-0.9,-1) | |
1379 | local WOOD = CreatePart(3, BOX, "Marble", 0, 0, "Magenta", "Marble", VT(0.2,0.2,2.1)) | |
1380 | WOOD.CFrame = BASE.CFrame*CF(1,-0.9,0) | |
1381 | local WOOD = CreatePart(3, BOX, "Marble", 0, 0, "Magenta", "Marble", VT(0.2,0.2,2.1)) | |
1382 | WOOD.CFrame = BASE.CFrame*CF(-1,-0.9,0) | |
1383 | local WOOD = CreatePart(3, BOX, "Marble", 0, 0, "Eggplant", "Marble", VT(2.1,1.9,0.1)) | |
1384 | WOOD.CFrame = BASE.CFrame*CF(0,0,1) | |
1385 | local WOOD = CreatePart(3, BOX, "Marble", 0, 0, "Eggplant", "Marble", VT(2.1,1.9,0.1)) | |
1386 | WOOD.CFrame = BASE.CFrame*CF(0,0,-1) | |
1387 | local WOOD = CreatePart(3, BOX, "Marble", 0, 0, "Eggplant", "Marble", VT(0.1,1.9,2.1)) | |
1388 | WOOD.CFrame = BASE.CFrame*CF(1,0,0) | |
1389 | local WOOD = CreatePart(3, BOX, "Marble", 0, 0, "Eggplant", "Marble", VT(0.1,1.9,2.1)) | |
1390 | WOOD.CFrame = BASE.CFrame*CF(-1,0,0) | |
1391 | local WOOD = CreatePart(3, BOX, "Marble", 0, 0, "Eggplant", "Marble", VT(2.1,0.1,2.1)) | |
1392 | WOOD.CFrame = BASE.CFrame*CF(0,-0.9,0) | |
1393 | ------------- | |
1394 | local LIDPART = CreatePart(3, LID, "Marble", 0, 0, "Eggplant", "Marble", VT(2.1,0.1,2.1)) | |
1395 | LIDPART.CFrame = BASE.CFrame*CF(0,1,0) | |
1396 | LID.PrimaryPart = LIDPART | |
1397 | local WOOD = CreatePart(3, LID, "Marble", 0, 0, "Magenta", "Marble", VT(2.1,0.2,0.2)) | |
1398 | WOOD.CFrame = LIDPART.CFrame*CF(0,0,-1) | |
1399 | local WOOD = CreatePart(3, LID, "Marble", 0, 0, "Magenta", "Marble", VT(2.1,0.2,0.2)) | |
1400 | WOOD.CFrame = LIDPART.CFrame*CF(0,0,1) | |
1401 | local WOOD = CreatePart(3, LID, "Marble", 0, 0, "Magenta", "Marble", VT(0.2,0.2,2.1)) | |
1402 | WOOD.CFrame = LIDPART.CFrame*CF(1,0,0) | |
1403 | local WOOD = CreatePart(3, LID, "Marble", 0, 0, "Magenta", "Marble", VT(0.2,0.2,2.1)) | |
1404 | WOOD.CFrame = LIDPART.CFrame*CF(-1,0,0) | |
1405 | local DECAL = IT("Decal",LIDPART) | |
1406 | DECAL.Face = "Top" | |
1407 | DECAL.Texture = "http://www.roblox.com/asset/?id=1501226061" | |
1408 | DECAL.Color3 = C3(0,0,0) | |
1409 | --BUILDING THE BOX-- | |
1410 | coroutine.resume(coroutine.create(function() | |
1411 | repeat | |
1412 | Swait() | |
1413 | PANDORASBOX:SetPrimaryPartCFrame(BASE.CFrame * ANGLES(RAD(0), RAD(2.45), RAD(0))) | |
1414 | until BOXSPIN == false | |
1415 | end)) | |
1416 | for i = 1, 25 do | |
1417 | Swait() | |
1418 | PANDORASBOX:SetPrimaryPartCFrame(BASE.CFrame * CF(0,1.5-(i/12.5),0)) | |
1419 | end | |
1420 | wait(0.5) | |
1421 | BOXSPIN = false | |
1422 | CONSTRUCTING = false | |
1423 | coroutine.resume(coroutine.create(function() | |
1424 | WACKYEFFECT({Time = 45, EffectType = "Sphere", Size = LIDPART.Size, Size2 = VT(3,0,3)*4, Transparency = 0, Transparency2 = 1, CFrame = LIDPART.CFrame, MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = SKILLTEXTCOLOR, SoundID = 168586586, SoundPitch = 1.3, SoundVolume = 6}) | |
1425 | --[[for i = 1, 45 do | |
1426 | Swait() | |
1427 | LID:SetPrimaryPartCFrame(LIDPART.CFrame * CF(0,1.5-(i/12.5),0.5) * ANGLES(RAD(0.7), RAD(0), RAD(0))) | |
1428 | end- | |
1429 | LID:remove()]]-- | |
1430 | for _, c in pairs(LID:GetChildren()) do | |
1431 | if c.ClassName == "Part" then | |
1432 | c.Anchored = false | |
1433 | c.CanCollide = true | |
1434 | if c ~= LIDPART then | |
1435 | weldBetween(LIDPART,c) | |
1436 | end | |
1437 | end | |
1438 | end | |
1439 | LIDPART.Velocity = CF(LIDPART.Position,LIDPART.CFrame*CF(15,25,0).p).lookVector*65 | |
1440 | Debris:AddItem(LID,15) | |
1441 | wait(0.5) | |
1442 | local RANDOMEFFECT = MRANDOM(1,4) | |
1443 | if RANDOMEFFECT == 1 then | |
1444 | for i = 1, 45 do | |
1445 | wait((2-(i/15))/15) | |
1446 | WACKYEFFECT({Time = 45, EffectType = "Sphere", Size = VT(0,0,0), Size2 = VT(1,1,1), Transparency = 0, Transparency2 = 1, CFrame = BASE.CFrame*CF(0,MRANDOM(12,15),0) * ANGLES(RAD(0), RAD(MRANDOM(0,360)), RAD(0))*CF(0,0,MRANDOM(1,5)), MoveToPos = BASE.Position, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = SKILLTEXTCOLOR, SoundID = nil, SoundPitch = 0.8, SoundVolume = 6}) | |
1447 | end | |
1448 | wait(1) | |
1449 | WACKYEFFECT({Time = 45, EffectType = "Sphere", Size = VT(0,0,0), Size2 = VT(35,35,35)*12, Transparency = 0, Transparency2 = 1, CFrame = BASE.CFrame, MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = BASE.Color, SoundID = 165970126, SoundPitch = 0.75, SoundVolume = 6}) | |
1450 | WACKYEFFECT({Time = 55, EffectType = "Wave", Size = VT(0,0,0), Size2 = VT(45,3,45)*10, Transparency = 0, Transparency2 = 1, CFrame = CF(HITPOS), MoveToPos = nil, RotationX = 0, RotationY = -5, RotationZ = 0, Material = "Neon", Color = BASE.Color, SoundID = 469345336, SoundPitch = 0.75, SoundVolume = 6}) | |
1451 | WACKYEFFECT({Time = 55, EffectType = "Wave", Size = VT(0,0,0), Size2 = VT(45,3,45)*9, Transparency = 0, Transparency2 = 1, CFrame = CF(HITPOS), MoveToPos = nil, RotationX = 0, RotationY = 5, RotationZ = 0, Material = "Neon", Color = BASE.Color, SoundID = nil, SoundPitch = 0.75, SoundVolume = 6}) | |
1452 | for i = 1, 5 do | |
1453 | WACKYEFFECT({Time = 35, EffectType = "Wave", Size = VT(5,0,5)*SIZE, Size2 = VT(35,3,35)*12, Transparency = 0.5, Transparency2 = 1, CFrame = BASE.CFrame * ANGLES(RAD(MRANDOM(0,360)), RAD(MRANDOM(0,360)), RAD(MRANDOM(0,360))), MoveToPos = nil, RotationX = 0, RotationY = -5, RotationZ = 0, Material = "Neon", Color = C3(0,0,0), SoundID = nil, SoundPitch = 0.5, SoundVolume = 6}) | |
1454 | end | |
1455 | ApplyAoE(BASE.Position,50,1,200,375,false) | |
1456 | ApplyAoE(BASE.Position,250,35,75,175,false) | |
1457 | elseif RANDOMEFFECT == 2 then | |
1458 | local FIELD = CreatePart(3, Effects, "Neon", 0, 0, "Magenta", "Field", VT(0.3,0.3,0.3)) | |
1459 | FIELD.CFrame = BASE.CFrame | |
1460 | MakeForm(FIELD,"Ball") | |
1461 | for i = 1, 50 do | |
1462 | Swait() | |
1463 | FIELD.Size = FIELD.Size + VT(0.01,0.01,0.01) | |
1464 | FIELD.CFrame = FIELD.CFrame * CF(0,0.75-(i/45),0) | |
1465 | end | |
1466 | wait(0.2) | |
1467 | local LOOP = CreateSound(1393698948, FIELD, 0, 1.2, true) | |
1468 | coroutine.resume(coroutine.create(function() | |
1469 | for i = 1, 75 do | |
1470 | Swait() | |
1471 | LOOP.Volume = LOOP.Volume + 10/75 | |
1472 | LOOP.Parent = FIELD | |
1473 | local CHILDREN = workspace:GetDescendants() | |
1474 | for index, CHILD in pairs(CHILDREN) do | |
1475 | if CHILD.ClassName == "Model" and CHILD ~= Character and CHILD.Parent ~= Effects then | |
1476 | local HUM = CHILD:FindFirstChildOfClass("Humanoid") | |
1477 | if HUM then | |
1478 | local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso") | |
1479 | if TORSO then | |
1480 | if (TORSO.Position - FIELD.Position).Magnitude <= FIELD.Size.X/2 then | |
1481 | HUM.Health = HUM.Health - 0.1 | |
1482 | TORSO.Velocity = VT(0,5,0) | |
1483 | HUM.PlatformStand = true | |
1484 | if TORSO.RotVelocity.Magnitude < 15 then | |
1485 | TORSO.RotVelocity = VT(MRANDOM(-45,45),MRANDOM(-45,45),MRANDOM(-45,45)) | |
1486 | end | |
1487 | end | |
1488 | end | |
1489 | end | |
1490 | end | |
1491 | end | |
1492 | FIELD.Size = FIELD.Size + VT(3,3,3) | |
1493 | FIELD.Transparency = FIELD.Transparency + 0.8/75 | |
1494 | end | |
1495 | for i = 1, 500 do | |
1496 | Swait() | |
1497 | LOOP.Parent = FIELD | |
1498 | local CHILDREN = workspace:GetDescendants() | |
1499 | for index, CHILD in pairs(CHILDREN) do | |
1500 | if CHILD.ClassName == "Model" and CHILD ~= Character and CHILD.Parent ~= Effects then | |
1501 | local HUM = CHILD:FindFirstChildOfClass("Humanoid") | |
1502 | if HUM then | |
1503 | local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso") | |
1504 | if TORSO then | |
1505 | if (TORSO.Position - FIELD.Position).Magnitude <= FIELD.Size.X/2 then | |
1506 | TORSO.Velocity = VT(0,5,0) | |
1507 | HUM.Health = HUM.Health - 0.1 | |
1508 | HUM.PlatformStand = true | |
1509 | if TORSO.RotVelocity.Magnitude < 15 then | |
1510 | TORSO.RotVelocity = VT(MRANDOM(-45,45),MRANDOM(-45,45),MRANDOM(-45,45)) | |
1511 | end | |
1512 | end | |
1513 | end | |
1514 | end | |
1515 | end | |
1516 | end | |
1517 | end | |
1518 | for i = 1, 25 do | |
1519 | Swait() | |
1520 | LOOP.Volume = LOOP.Volume + 10/25 | |
1521 | LOOP.Parent = FIELD | |
1522 | local CHILDREN = workspace:GetDescendants() | |
1523 | for index, CHILD in pairs(CHILDREN) do | |
1524 | if CHILD.ClassName == "Model" and CHILD ~= Character and CHILD.Parent ~= Effects then | |
1525 | local HUM = CHILD:FindFirstChildOfClass("Humanoid") | |
1526 | if HUM then | |
1527 | local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso") | |
1528 | if TORSO then | |
1529 | if (TORSO.Position - FIELD.Position).Magnitude <= FIELD.Size.X/1.8 then | |
1530 | TORSO.Velocity = VT(0,5,0) | |
1531 | HUM.Health = HUM.Health - 0.1 | |
1532 | HUM.PlatformStand = false | |
1533 | if TORSO.RotVelocity.Magnitude < 15 then | |
1534 | TORSO.RotVelocity = VT(MRANDOM(-45,45),MRANDOM(-45,45),MRANDOM(-45,45)) | |
1535 | end | |
1536 | end | |
1537 | end | |
1538 | end | |
1539 | end | |
1540 | end | |
1541 | FIELD.Size = FIELD.Size - VT(3,3,3) | |
1542 | FIELD.Transparency = FIELD.Transparency + 0.2/25 | |
1543 | end | |
1544 | FIELD:remove() | |
1545 | end)) | |
1546 | elseif RANDOMEFFECT == 3 then | |
1547 | for i = 1, 10 do | |
1548 | wait(0.15) | |
1549 | WACKYEFFECT({Time = 15, EffectType = "Sphere", Size = VT(0,0,0), Size2 = VT(3,8,3), Transparency = 0, Transparency2 = 1, CFrame = BASE.CFrame*CF(0,0.3,0), MoveToPos = BASE.Position+VT(0,6,0), RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(0,0,0), SoundID = 90655239, SoundPitch = 0.8, SoundVolume = 6}) | |
1550 | coroutine.resume(coroutine.create(function() | |
1551 | local MINION = CLONE:Clone() | |
1552 | MINION.Parent = Effects | |
1553 | MINION.Name = "Shadow" | |
1554 | MINION.HumanoidRootPart.CFrame = BASE.CFrame*CF(0,5,0) * ANGLES(RAD(0), RAD(MRANDOM(0,360)), RAD(0)) | |
1555 | MINION.HumanoidRootPart.Velocity = CF(MINION.HumanoidRootPart.Position,MINION.HumanoidRootPart.CFrame*CF(0,8,-15).p).lookVector*MRANDOM(55,100) | |
1556 | for _, c in pairs(MINION:GetChildren()) do | |
1557 | if c.ClassName == "Part" then | |
1558 | c.Material = "Neon" | |
1559 | c.Color = C3(0,0,0) | |
1560 | c.Transparency = 0.25 | |
1561 | if c.Name == "Head" then | |
1562 | c:ClearAllChildren() | |
1563 | local MSH = IT("BlockMesh",c) | |
1564 | MSH.Scale = VT(0.5,1,1) | |
1565 | end | |
1566 | end | |
1567 | end | |
1568 | local TORSO = MINION.Torso | |
1569 | local HUMAN = MINION.Humanoid | |
1570 | HUMAN.WalkSpeed = 100 | |
1571 | HUMAN.MaxHealth = math.huge | |
1572 | HUMAN.Health = math.huge | |
1573 | HUMAN.DisplayDistanceType = "None" | |
1574 | HUMAN.Died:connect(function() | |
1575 | MINION:remove() | |
1576 | --CreateSound(SHOUTS[MRANDOM(1,3)], TORSO, 3, 0.5, false) | |
1577 | end) | |
1578 | wait(1) | |
1579 | local findNearestTorso = function(POS) | |
1580 | local list = game.Workspace:GetDescendants() | |
1581 | local torso = nil | |
1582 | local dist = 9999 | |
1583 | local temp = nil | |
1584 | local human = nil | |
1585 | local temp2 = nil | |
1586 | for x = 1, #list do | |
1587 | temp2 = list[x] | |
1588 | if (temp2.className == "Model") and (temp2 ~= Character) and (temp2.Parent ~= Effects) then | |
1589 | temp = temp2:findFirstChild("Torso") or temp2:findFirstChild("UpperTorso") | |
1590 | human = temp2:findFirstChildOfClass("Humanoid") | |
1591 | if (temp ~= nil) and (human ~= nil) and (human.Health > 0) then | |
1592 | if (temp.Position - POS).magnitude < dist then | |
1593 | torso = temp | |
1594 | dist = (temp.Position - POS).magnitude | |
1595 | end | |
1596 | end | |
1597 | end | |
1598 | end | |
1599 | return torso, dist | |
1600 | end | |
1601 | for i = 1, 40 do | |
1602 | if HUMAN.Health == 0 then | |
1603 | break | |
1604 | end | |
1605 | wait(0.3) | |
1606 | local target,dist= findNearestTorso(TORSO.Position) | |
1607 | if target then | |
1608 | HUMAN:MoveTo(target.Position) | |
1609 | if dist < 999 then | |
1610 | CreateSound(348663022, TORSO, 10, 1, true) | |
1611 | wait(0.5) | |
1612 | --local ANIM = HUMAN:LoadAnimation(ATANIM) | |
1613 | --ANIM:Play() | |
1614 | --CreateSound(SHOUTS[MRANDOM(1,3)], TORSO, 1, 1, false) | |
1615 | ApplyAoE(TORSO.Position,10,0,0,85,false) | |
1616 | WACKYEFFECT({Time = 15, EffectType = "Sphere", Size = VT(5,5,5), Size2 = VT(25,25,25), Transparency = 0, Transparency2 = 1, CFrame = TORSO.CFrame, MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = SKILLTEXTCOLOR, SoundID = 201858087, SoundPitch = 0.8, SoundVolume = 10}) | |
1617 | for i = 1, 5 do | |
1618 | WACKYEFFECT({Time = 75, EffectType = "Wave", Size = VT(5,0,5)*SIZE, Size2 = VT(15,1,15), Transparency = 0.5, Transparency2 = 1, CFrame = TORSO.CFrame * ANGLES(RAD(MRANDOM(0,360)), RAD(MRANDOM(0,360)), RAD(MRANDOM(0,360))), MoveToPos = nil, RotationX = 0, RotationY = MRANDOM(-15,15)/7.5, RotationZ = 0, Material = "Neon", Color = C3(0,0,0), SoundID = nil, SoundPitch = 0.5, SoundVolume = 6}) | |
1619 | end | |
1620 | break | |
1621 | end | |
1622 | end | |
1623 | end | |
1624 | MINION:remove() | |
1625 | end)) | |
1626 | end | |
1627 | elseif RANDOMEFFECT == 4 then | |
1628 | local FIELD = CreatePart(3, Effects, "Neon", 0, 0, "Alder", "Field", VT(0.3,0.3,0.3)) | |
1629 | FIELD.Color = C3(0,0,0) | |
1630 | FIELD.CFrame = BASE.CFrame | |
1631 | MakeForm(FIELD,"Ball") | |
1632 | FIELD.CanCollide = true | |
1633 | for i = 1, 50 do | |
1634 | Swait() | |
1635 | FIELD.Size = FIELD.Size + VT(0.01,0.01,0.01) | |
1636 | FIELD.CFrame = FIELD.CFrame * CF(0,0.75-(i/45),0) | |
1637 | end | |
1638 | wait(0.2) | |
1639 | local LOOP = CreateSound(487214658, FIELD, 0, 1, true) | |
1640 | coroutine.resume(coroutine.create(function() | |
1641 | local E = 0 | |
1642 | for i = 1, 75 do | |
1643 | E = E + 1 | |
1644 | Swait() | |
1645 | if E >= 35 then | |
1646 | E = 0 | |
1647 | WACKYEFFECT({Time = 25, EffectType = "Sphere", Size = FIELD.Size*30, Size2 = FIELD.Size, Transparency = 0.8, Transparency2 = 1, CFrame = FIELD.CFrame, MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = BASE.Color, SoundID = nil, SoundPitch = 1, SoundVolume = 6}) | |
1648 | end | |
1649 | LOOP.Volume = LOOP.Volume + 10/75 | |
1650 | LOOP.Parent = FIELD | |
1651 | local CHILDREN = workspace:GetDescendants() | |
1652 | for index, CHILD in pairs(CHILDREN) do | |
1653 | if CHILD.ClassName == "Model" and CHILD ~= Character and CHILD.Parent ~= Effects then | |
1654 | local HUM = CHILD:FindFirstChildOfClass("Humanoid") | |
1655 | if HUM then | |
1656 | local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso") | |
1657 | if TORSO then | |
1658 | if (TORSO.Position - FIELD.Position).Magnitude <= FIELD.Size.X*30 then | |
1659 | for _, c in pairs(CHILD:GetChildren()) do | |
1660 | if c:IsA("BasePart") then | |
1661 | local bv = Instance.new("BodyVelocity") | |
1662 | bv.maxForce = Vector3.new(1e9, 1e9, 1e9) | |
1663 | bv.velocity = CF(FIELD.Position,c.Position).lookVector*-50 | |
1664 | bv.Parent = c | |
1665 | Debris:AddItem(bv,0.05) | |
1666 | end | |
1667 | end | |
1668 | HUM.Health = HUM.Health - 0.3 | |
1669 | end | |
1670 | end | |
1671 | end | |
1672 | end | |
1673 | end | |
1674 | FIELD.Size = FIELD.Size + VT(0.3,0.3,0.3)/5 | |
1675 | end | |
1676 | for i = 1, 180 do | |
1677 | E = E + 1 | |
1678 | Swait() | |
1679 | if E >= 35 then | |
1680 | E = 0 | |
1681 | WACKYEFFECT({Time = 25, EffectType = "Sphere", Size = FIELD.Size*30, Size2 = FIELD.Size, Transparency = 0.8, Transparency2 = 1, CFrame = FIELD.CFrame, MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = BASE.Color, SoundID = nil, SoundPitch = 1, SoundVolume = 6}) | |
1682 | end | |
1683 | LOOP.Parent = FIELD | |
1684 | local CHILDREN = workspace:GetDescendants() | |
1685 | for index, CHILD in pairs(CHILDREN) do | |
1686 | if CHILD.ClassName == "Model" and CHILD ~= Character and CHILD.Parent ~= Effects then | |
1687 | local HUM = CHILD:FindFirstChildOfClass("Humanoid") | |
1688 | if HUM then | |
1689 | local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso") | |
1690 | if TORSO then | |
1691 | if (TORSO.Position - FIELD.Position).Magnitude <= FIELD.Size.X*30 then | |
1692 | for _, c in pairs(CHILD:GetChildren()) do | |
1693 | if c:IsA("BasePart") then | |
1694 | local bv = Instance.new("BodyVelocity") | |
1695 | bv.maxForce = Vector3.new(1e9, 1e9, 1e9) | |
1696 | bv.velocity = CF(FIELD.Position,c.Position).lookVector*-50 | |
1697 | bv.Parent = c | |
1698 | Debris:AddItem(bv,0.05) | |
1699 | end | |
1700 | end | |
1701 | HUM.Health = HUM.Health - 0.3 | |
1702 | end | |
1703 | end | |
1704 | end | |
1705 | end | |
1706 | end | |
1707 | end | |
1708 | ApplyAoE(FIELD.Position,40,15,20,375,false) | |
1709 | WACKYEFFECT({Time = 45, EffectType = "Sphere", Size = FIELD.Size, Size2 = VT(35,35,35), Transparency = 0, Transparency2 = 1, CFrame = FIELD.CFrame, MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = BASE.Color, SoundID = 231917744, SoundPitch = 1, SoundVolume = 6}) | |
1710 | for i = 1, 5 do | |
1711 | WACKYEFFECT({Time = 35, EffectType = "Wave", Size = VT(5,0,5)*SIZE, Size2 = VT(35,3,35), Transparency = 0.5, Transparency2 = 1, CFrame = FIELD.CFrame * ANGLES(RAD(MRANDOM(0,360)), RAD(MRANDOM(0,360)), RAD(MRANDOM(0,360))), MoveToPos = nil, RotationX = 0, RotationY = -5, RotationZ = 0, Material = "Neon", Color = C3(0,0,0), SoundID = nil, SoundPitch = 0.5, SoundVolume = 6}) | |
1712 | end | |
1713 | FIELD:remove() | |
1714 | end)) | |
1715 | elseif RANDOMEFFECT == 5 then | |
1716 | end | |
1717 | wait(0.5) | |
1718 | for i = 1, 25 do | |
1719 | Swait() | |
1720 | PANDORASBOX:SetPrimaryPartCFrame(BASE.CFrame * CF(0,-0.3,0)) | |
1721 | end | |
1722 | PANDORASBOX:remove() | |
1723 | RINGSPIN = false | |
1724 | end)) | |
1725 | ATTACK = false | |
1726 | Rooted = false | |
1727 | end | |
1728 | end | |
1729 | --------------VOID STAR------------------- | |
1730 | ||
1731 | --Explosion-- | |
1732 | function Expld(rad,pos) | |
1733 | local ex = Instance.new("Explosion",game.Workspace) | |
1734 | ex.BlastRadius = rad | |
1735 | ex.BlastPressure = 0 | |
1736 | ex.Position = pos | |
1737 | ex.Visible = false | |
1738 | ex.Hit:connect(function(hit) | |
1739 | if hit.Parent ~= chara and hit.Parent:FindFirstChild("Humanoid")~= nil then | |
1740 | hit.Parent:FindFirstChild("Humanoid").Health = hit.Parent:FindFirstChild("Humanoid").Health - rad | |
1741 | end | |
1742 | end) | |
1743 | end | |
1744 | ||
1745 | local asd = Instance.new("ParticleEmitter") | |
1746 | asd.Color = ColorSequence.new(Color3.new(0.5, 0, 0), Color3.new(.3, 0, 0)) | |
1747 | asd.LightEmission = .1 | |
1748 | asd.Texture = "http://www.roblox.com/asset/?ID=249481494" | |
1749 | aaa = NumberSequence.new({NumberSequenceKeypoint.new(0, 0.6),NumberSequenceKeypoint.new(1, 2)}) | |
1750 | bbb = NumberSequence.new({NumberSequenceKeypoint.new(0, 1),NumberSequenceKeypoint.new(0.0636, 0), NumberSequenceKeypoint.new(1, 1)}) | |
1751 | asd.Transparency = bbb | |
1752 | asd.Size = aaa | |
1753 | asd.ZOffset = .9 | |
1754 | asd.Acceleration = Vector3.new(0, -15, 0) | |
1755 | asd.LockedToPart = false | |
1756 | asd.EmissionDirection = "Back" | |
1757 | asd.Lifetime = NumberRange.new(1, 2) | |
1758 | asd.Rotation = NumberRange.new(-100, 100) | |
1759 | asd.RotSpeed = NumberRange.new(-100, 100) | |
1760 | asd.Speed = NumberRange.new(10) | |
1761 | asd.Enabled = false | |
1762 | asd.VelocitySpread = 999 | |
1763 | ||
1764 | function getbloody(victim,amount) | |
1765 | local PART = CreatePart(3, Effects, "Metal", 0, 1, "Mid gray", "Blood", victim.Size) | |
1766 | PART.CFrame = victim.CFrame | |
1767 | local HITPLAYERSOUNDS = {"356551938","264486467"} | |
1768 | Debris:AddItem(PART,5) | |
1769 | CreateSound(HITPLAYERSOUNDS[MRANDOM(1, #HITPLAYERSOUNDS)], PART, 1, (math.random(8,12)/10)) | |
1770 | CreateSound(HITPLAYERSOUNDS[MRANDOM(1, #HITPLAYERSOUNDS)], PART, 1, (math.random(8,12)/10)) | |
1771 | CreateSound(HITPLAYERSOUNDS[MRANDOM(1, #HITPLAYERSOUNDS)], PART, 1, (math.random(8,12)/10)) | |
1772 | local prtcl = asd:Clone() | |
1773 | prtcl.Parent = PART | |
1774 | prtcl:Emit(amount*10) | |
1775 | end | |
1776 | ||
1777 | function Kill(Char) | |
1778 | local NewCharacter = IT("Model",Effects) | |
1779 | NewCharacter.Name = "Ow im ded lul ;-;" | |
1780 | for _, c in pairs(Char:GetDescendants()) do | |
1781 | if c:IsA("BasePart") and c.Transparency == 0 then | |
1782 | if c.Parent == Char then | |
1783 | getbloody(c,5) | |
1784 | end | |
1785 | c:BreakJoints() | |
1786 | c.Material = "Glass" | |
1787 | c.Color = C3(0.5,0,0) | |
1788 | c.CanCollide = true | |
1789 | c.Transparency = 0.3 | |
1790 | if c:FindFirstChildOfClass("SpecialMesh") then | |
1791 | c:FindFirstChildOfClass("SpecialMesh").TextureId = "" | |
1792 | end | |
1793 | if c.Name == "Head" then | |
1794 | c:ClearAllChildren() | |
1795 | c.Size = VT(c.Size.Y,c.Size.Y,c.Size.Y) | |
1796 | end | |
1797 | if c.ClassName == "MeshPart" then | |
1798 | c.TextureID = "" | |
1799 | end | |
1800 | if c:FindFirstChildOfClass("BodyPosition") then | |
1801 | c:FindFirstChildOfClass("BodyPosition"):remove() | |
1802 | end | |
1803 | if c:FindFirstChildOfClass("ParticleEmitter") then | |
1804 | c:FindFirstChildOfClass("ParticleEmitter"):remove() | |
1805 | end | |
1806 | c.Parent = NewCharacter | |
1807 | c.Name = "DeadPart" | |
1808 | c.Velocity = VT(MRANDOM(-45,45),MRANDOM(-45,45),MRANDOM(-45,45))/15 | |
1809 | c.RotVelocity = VT(MRANDOM(-45,45),MRANDOM(-15,85),MRANDOM(-45,45)) | |
1810 | end | |
1811 | end | |
1812 | Char:remove() | |
1813 | Debris:AddItem(NewCharacter,5) | |
1814 | end | |
1815 | ||
1816 | ||
1817 | function ApplyAoE3(POSITION,RANGE,BRUTAL) | |
1818 | local CHILDREN = workspace:GetDescendants() | |
1819 | for index, CHILD in pairs(CHILDREN) do | |
1820 | if CHILD.ClassName == "Model" and CHILD ~= Character then | |
1821 | local HUM = CHILD:FindFirstChildOfClass("Humanoid") | |
1822 | if HUM then | |
1823 | local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso") | |
1824 | if TORSO then | |
1825 | if (TORSO.Position - POSITION).Magnitude <= RANGE then | |
1826 | if BRUTAL == true then | |
1827 | Kill(CHILD) | |
1828 | else | |
1829 | CHILD:BreakJoints() | |
1830 | end | |
1831 | end | |
1832 | end | |
1833 | end | |
1834 | end | |
1835 | end | |
1836 | end | |
1837 | ||
1838 | function VoidStar() | |
1839 | ATTACK = true | |
1840 | Rooted = true | |
1841 | for i=0, 1, 0.1 / Animation_Speed do | |
1842 | Swait() | |
1843 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.25 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1844 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(15 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1845 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, -0.5) * ANGLES(RAD(0), RAD(0), RAD(-85)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
1846 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.15, -0.5) * ANGLES(RAD(-15), RAD(0), RAD(85)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
1847 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(-2.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1848 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(-2.5 * SIN(SINE / 12)), RAD(-90), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1849 | end | |
1850 | coroutine.resume(coroutine.create(function() | |
1851 | local POS = Mouse.Hit.p | |
1852 | local RAY = CreatePart(3, Effects, "Neon", 0, 0, "Eggplant", "Strike", VT(0,2000,0)) | |
1853 | MakeForm(RAY,"Cyl") | |
1854 | local SPHERE = CreatePart(3, Effects, "Neon", 0, 0, "Eggplant", "Strike", VT(0,0,0)) | |
1855 | MakeForm(SPHERE,"Ball") | |
1856 | local SHIELD = CreatePart(3, Effects, "Neon", 0, 0.5, "Really black", "Strike", VT(0,0,0)) | |
1857 | MakeForm(SHIELD,"Ball") | |
1858 | SHIELD.CFrame = CF(POS) | |
1859 | RAY.CFrame = CF(POS) | |
1860 | SPHERE.CFrame = CF(POS) | |
1861 | CreateSound(440145570, SPHERE, 10, 0.8, false) | |
1862 | CreateSound(415700134, SPHERE, 10, 0.8, false) | |
1863 | for i = 1, 200 do | |
1864 | Swait() | |
1865 | WACKYEFFECT({Time = 15, EffectType = "Wave", Size = VT(0,0,0), Size2 = VT(SPHERE.Size.X*1.2,5+(i),SPHERE.Size.X*1.2), Transparency = 0, Transparency2 = 1, CFrame = SPHERE.CFrame*ANGLES(RAD(0), RAD(i), RAD(0)), MoveToPos = nil, RotationX = 0, RotationY = i, RotationZ = 0, Material = "Neon", Color = C3(123,0,123), SoundID = nil, SoundPitch = nil, SoundVolume = nil}) | |
1866 | RAY.Size = RAY.Size + VT(0.05,0,0.05) | |
1867 | SPHERE.Size = SPHERE.Size + VT(2,2,2) | |
1868 | SHIELD.Size = SPHERE.Size + VT(3,3,3) | |
1869 | ApplyAoE3(SPHERE.Position,SPHERE.Size.X/2,true) | |
1870 | end | |
1871 | for i = 1, 45 do | |
1872 | Swait() | |
1873 | RAY.Transparency = RAY.Transparency + 1/45 | |
1874 | SPHERE.Transparency = RAY.Transparency | |
1875 | SHIELD.Transparency = SPHERE.Transparency + 1/45 | |
1876 | end | |
1877 | RAY:remove() | |
1878 | SHIELD:remove() | |
1879 | SPHERE:remove() | |
1880 | end)) | |
1881 | for i=0, 1, 0.1 / Animation_Speed do | |
1882 | Swait() | |
1883 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.25 * COS(SINE / 12)) * ANGLES(RAD(-35), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1884 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-15 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1885 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, -0.15) * ANGLES(RAD(65), RAD(-45), RAD(85)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
1886 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, -0.15) * ANGLES(RAD(65), RAD(45), RAD(-85)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
1887 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(-35-2.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1888 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(-35-2.5 * SIN(SINE / 12)), RAD(-90), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1889 | end | |
1890 | ATTACK = false | |
1891 | Rooted = false | |
1892 | end | |
1893 | ||
1894 | --------------RIFT WORLD------------------- | |
1895 | ||
1896 | function RiftForm() | |
1897 | ATTACK = true | |
1898 | Rooted = false | |
1899 | UNANCHOR = false | |
1900 | RootPart.Anchored = true | |
1901 | for i=0, 5, 0.1 / Animation_Speed do | |
1902 | Swait() | |
1903 | RootPart.CFrame = RootPart.CFrame * CF(0,0.2,0) | |
1904 | RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed) | |
1905 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0 * Player_Size, 0 + ((1) - 1)) * ANGLES(RAD(-20), RAD(0), RAD(0)), 2 / Animation_Speed) | |
1906 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(-40), RAD(0), RAD(20)) * RIGHTSHOULDERC0, 2 / Animation_Speed) | |
1907 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-40), RAD(0), RAD(-20)) * LEFTSHOULDERC0, 2 / Animation_Speed) | |
1908 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.3) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(-20)), 2 / Animation_Speed) | |
1909 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.3) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(20)), 2 / Animation_Speed) | |
1910 | end | |
1911 | CreateSound("1368598393", Effects, 10, 1) | |
1912 | for i=0, 2, 0.1 / Animation_Speed do | |
1913 | Swait() | |
1914 | local CFRAME = CF(Torso.Position)*ANGLES(RAD(MRANDOM(-180,180)),RAD(MRANDOM(-180,180)),RAD(MRANDOM(-180,180))) | |
1915 | MagicSphere3(VT(0,0,0),15,CFRAME,"Really black",VT(0.1,0.1,5)) | |
1916 | MagicSphere3(VT(0.1,0.1,0.1),15,CFRAME,"Really black",VT(0.1,0.1,5)) | |
1917 | RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed) | |
1918 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0 * Player_Size, 0 + ((1) - 1)) * ANGLES(RAD(20), RAD(0), RAD(0)), 2 / Animation_Speed) | |
1919 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.15, 0.5, -1) * ANGLES(RAD(90), RAD(0), RAD(-75)) * RIGHTSHOULDERC0, 2 / Animation_Speed) | |
1920 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.15, 0.5, -1) * ANGLES(RAD(90), RAD(0), RAD(75)) * LEFTSHOULDERC0, 2 / Animation_Speed) | |
1921 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.5, -0.5) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(0)), 2 / Animation_Speed) | |
1922 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(0)), 2 / Animation_Speed) | |
1923 | end | |
1924 | CreateSound("1368583274", Effects, 10, 1) | |
1925 | for i=0, 6, 0.1 / Animation_Speed do | |
1926 | Swait() | |
1927 | CreateRing2(VT(45,5,0)*2,false,0,45,Torso.CFrame*ANGLES(RAD(MRANDOM(-180,180)),RAD(MRANDOM(-180,180)),RAD(MRANDOM(-180,180))),"Really black",VT(-1,0,0)) | |
1928 | CreateRing2(VT(45,5,0)*3,false,0,45,Torso.CFrame*ANGLES(RAD(MRANDOM(-180,180)),RAD(MRANDOM(-180,180)),RAD(MRANDOM(-180,180))),"Really black",VT(-1,0,0)*3) | |
1929 | local CFRAME = CF(Torso.Position)*ANGLES(RAD(MRANDOM(-180,180)),RAD(MRANDOM(-180,180)),RAD(MRANDOM(-180,180))) | |
1930 | MagicSphere3(VT(0,0,0),15,CFRAME,"Really black",VT(0.1,0.1,55)) | |
1931 | MagicSphere3(VT(0,0,0),15,CFRAME,"Really black",VT(2,2,2)) | |
1932 | MagicSphere3(VT(0.1,0.1,0.1),15,CFRAME,"Really black",VT(0.1,0.1,55)) | |
1933 | RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed) | |
1934 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0 * Player_Size, 0 + ((1) - 1)) * ANGLES(RAD(20), RAD(0), RAD(0)), 2 / Animation_Speed) | |
1935 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.15, 0.5, -1) * ANGLES(RAD(90), RAD(0), RAD(-75)) * RIGHTSHOULDERC0, 2 / Animation_Speed) | |
1936 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.15, 0.5, -1) * ANGLES(RAD(90), RAD(0), RAD(75)) * LEFTSHOULDERC0, 2 / Animation_Speed) | |
1937 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.5, -0.5) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(0)), 2 / Animation_Speed) | |
1938 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(0)), 2 / Animation_Speed) | |
1939 | end | |
1940 | CreateSound("907329532", Effects, 10, 0.9) | |
1941 | Swait(175) | |
1942 | CreateRing2(VT(0,0,0),false,0,45,RootPart.CFrame*ANGLES(RAD(90),RAD(0),RAD(0)),"Really black",VT(7,7,0)) | |
1943 | CreateSound("1368605755", Effects, 10, 1) | |
1944 | CreateSound("1368637781", Effects, 10, 1) | |
1945 | MagicSphere3(VT(0,0,0),45,Torso.CFrame,"Really black",VT(5,5,5)) | |
1946 | TRUEFORM = true | |
1947 | for i=0, 1, 0.1 / Animation_Speed do | |
1948 | CreateRing2(VT(0,0,0),false,0,45,Torso.CFrame*ANGLES(RAD(MRANDOM(-180,180)),RAD(MRANDOM(-180,180)),RAD(MRANDOM(-180,180))),"Really black",VT(4,4,0)) | |
1949 | CreateRing2(VT(0,0,0),false,0,45,Torso.CFrame*ANGLES(RAD(MRANDOM(-180,180)),RAD(MRANDOM(-180,180)),RAD(MRANDOM(-180,180))),"Really black",VT(5,5,0)) | |
1950 | RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(-25), RAD(0), RAD(0)), 0.2 / Animation_Speed) | |
1951 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0 * Player_Size, 0 + ((1) - 1)) * ANGLES(RAD(-20), RAD(0), RAD(0)), 2 / Animation_Speed) | |
1952 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(-60), RAD(0), RAD(20)) * RIGHTSHOULDERC0, 2 / Animation_Speed) | |
1953 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-60), RAD(0), RAD(-20)) * LEFTSHOULDERC0, 2 / Animation_Speed) | |
1954 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.3) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(-50)), 2 / Animation_Speed) | |
1955 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.3) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(50)), 2 / Animation_Speed) | |
1956 | end | |
1957 | UNANCHOR = true | |
1958 | RootPart.Anchored = false | |
1959 | ATTACK = false | |
1960 | Rooted = false | |
1961 | end | |
1962 | ||
1963 | -- LIMIT BROKEN | |
1964 | ||
1965 | local DECAL = IT("Decal") | |
1966 | function MakeRing() | |
1967 | local RING = CreatePart(3, Effects, "Neon", 0, 1, BRICKC("Pearl"), "MagicRing", VT(0, 0, 0), true) | |
1968 | local MSH = IT("BlockMesh", RING) | |
1969 | local TOP = DECAL:Clone() | |
1970 | local BOTTOM = DECAL:Clone() | |
1971 | TOP.Parent = RING | |
1972 | BOTTOM.Parent = RING | |
1973 | TOP.Face = "Top" | |
1974 | BOTTOM.Face = "Bottom" | |
1975 | TOP.Texture = "http://www.roblox.com/asset/?id=1259031636" | |
1976 | BOTTOM.Texture = "http://www.roblox.com/asset/?id=1259031636" | |
1977 | local function REMOVE() | |
1978 | coroutine.resume(coroutine.create(function() | |
1979 | local SIZE = MSH.Scale.X | |
1980 | for i = 1, 35 do | |
1981 | Swait() | |
1982 | MSH.Scale = MSH.Scale - VT(SIZE, 0, SIZE) / 60 | |
1983 | TOP.Transparency = TOP.Transparency + 0.02857142857142857 | |
1984 | BOTTOM.Transparency = BOTTOM.Transparency + 0.02857142857142857 | |
1985 | RING.CFrame = RING.CFrame * ANGLES(RAD(0), RAD(-5), RAD(0)) | |
1986 | end | |
1987 | RING:remove() | |
1988 | end)) | |
1989 | end | |
1990 | return RING, MSH, REMOVE | |
1991 | end | |
1992 | ||
1993 | function SHAKECAM(POSITION, RANGE, INTENSITY, TIME) | |
1994 | local TORSO = Torso | |
1995 | local HUM = Humanoid | |
1996 | if TORSO and RANGE >= (TORSO.Position - POSITION).Magnitude then | |
1997 | coroutine.wrap(function() | |
1998 | VT = Vector3.new | |
1999 | MRANDOM = math.random | |
2000 | local A = TIME | |
2001 | local B = INTENSITY | |
2002 | local C = true | |
2003 | local HUMANOID = Humanoid | |
2004 | local TIMER = A or 35 | |
2005 | local SHAKE = B or 5 | |
2006 | local FADE = C or true | |
2007 | if HUMANOID then | |
2008 | local FADER = SHAKE / TIMER | |
2009 | for i = 1, TIMER do | |
2010 | wait() | |
2011 | HUMANOID.CameraOffset = VT(MRANDOM(-(SHAKE - FADER * i), SHAKE - FADER * i) / 10, MRANDOM(-(SHAKE - FADER * i), SHAKE - FADER * i) / 10, MRANDOM(-(SHAKE - FADER * i), SHAKE - FADER * i) / 10) | |
2012 | end | |
2013 | HUMANOID.CameraOffset = VT(0, 0, 0) | |
2014 | end | |
2015 | ||
2016 | end)() | |
2017 | end | |
2018 | end | |
2019 | ||
2020 | function NS(...) | |
2021 | local tab = {...} | |
2022 | local fat = {} | |
2023 | for i = 1, #tab do | |
2024 | local v = tab[i] | |
2025 | table.insert(fat,NumberSequenceKeypoint.new(v[1],v[2])) | |
2026 | end | |
2027 | return NumberSequence.new(fat); | |
2028 | end | |
2029 | ||
2030 | local hed = Character:WaitForChild("Head") | |
2031 | ||
2032 | cors = {} | |
2033 | mas = Instance.new("Model",game:GetService("Lighting")) | |
2034 | ParticleEmitter1 = Instance.new("ParticleEmitter") | |
2035 | ParticleEmitter1.Name = "Death" | |
2036 | ParticleEmitter1.Texture = "rbxassetid://249481494" | |
2037 | ParticleEmitter1.Color = ColorSequence.new(Color3.fromRGB(0, 0, 255)) | |
2038 | ParticleEmitter1.EmissionDirection = "Top" | |
2039 | ParticleEmitter1.Parent = mas | |
2040 | ParticleEmitter1.Enabled = false | |
2041 | ParticleEmitter1.Speed = NumberRange.new(8) | |
2042 | ParticleEmitter1.Size = NumberSequence.new(8,0) | |
2043 | ParticleEmitter1.Transparency = NumberSequence.new(0,1) | |
2044 | ParticleEmitter1.Drag = 1.2 | |
2045 | ParticleEmitter1.LockedToPart = true | |
2046 | ParticleEmitter1.Lifetime = NumberRange.new(0, 1) | |
2047 | ParticleEmitter1.Rate = 195 | |
2048 | ParticleEmitter1.RotSpeed = NumberRange.new(-56, 56) | |
2049 | ParticleEmitter1.LightEmission = 0 | |
2050 | ParticleEmitter1.Rotation = NumberRange.new(-360,360) | |
2051 | ParticleEmitter1.VelocitySpread = 100.2 | |
2052 | ParticleEmitter1.ZOffset = 2.5 | |
2053 | ||
2054 | ||
2055 | for i,v in pairs(mas:GetChildren()) do | |
2056 | v.Parent = script | |
2057 | pcall(function() v:MakeJoints() end) | |
2058 | end | |
2059 | mas:Destroy() | |
2060 | for i,v in pairs(cors) do | |
2061 | spawn(function() | |
2062 | pcall(v) | |
2063 | end) | |
2064 | end | |
2065 | ||
2066 | local DParticles = script.Death | |
2067 | DParticles:remove() | |
2068 | DParticles.Name = "ArchangelDeathParticles" | |
2069 | local BODY = {} | |
2070 | for _, c in pairs(Character:GetDescendants()) do | |
2071 | if c:IsA("BasePart") and c.Name ~= "Handle" then | |
2072 | if c ~= RootPart and c ~= Torso and c ~= Head and c ~= RightArm and c ~= LeftArm and c ~= RightLeg and c ~= LeftLeg then | |
2073 | c.CustomPhysicalProperties = PhysicalProperties.new(0, 0, 0, 0, 0) | |
2074 | end | |
2075 | table.insert(BODY, { | |
2076 | c, | |
2077 | c.Parent, | |
2078 | c.Material, | |
2079 | c.Color, | |
2080 | c.Transparency | |
2081 | }) | |
2082 | elseif c:IsA("JointInstance") then | |
2083 | table.insert(BODY, { | |
2084 | c, | |
2085 | c.Parent, | |
2086 | nil, | |
2087 | nil, | |
2088 | nil | |
2089 | }) | |
2090 | end | |
2091 | end | |
2092 | ||
2093 | function ApplyAoE2(POSITION, RANGE) | |
2094 | local PARTS = {} | |
2095 | for index, CHILD in pairs(workspace:GetDescendants()) do | |
2096 | if CHILD.ClassName == "Model" and CHILD ~= Character then | |
2097 | local HUM = CHILD:FindFirstChildOfClass("Humanoid") | |
2098 | if HUM then | |
2099 | local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso") | |
2100 | if TORSO and HUM.Health > 0 and RANGE >= (TORSO.Position - POSITION).Magnitude then | |
2101 | CHILD:BreakJoints() | |
2102 | for index, PART in pairs(CHILD:GetChildren()) do | |
2103 | if PART:IsA("BasePart") and PART.Name ~= "HumanoidRootPart" then | |
2104 | local P = DParticles:Clone() | |
2105 | P.Parent = PART | |
2106 | P.Enabled = true | |
2107 | P.Color = ColorSequence.new(PART.Color, C3(1, 1, 1)) | |
2108 | PART.Anchored = true | |
2109 | table.insert(PARTS, {PART, P}) | |
2110 | end | |
2111 | end | |
2112 | end | |
2113 | end | |
2114 | elseif CHILD:IsA("BasePart") and CHILD.Parent.Parent ~= Character and CHILD.Parent:FindFirstChildOfClass("Humanoid") == nil and CHILD:FindFirstChild("ewdfrfgrwefd") == nil and CHILD.Size.Magnitude < RANGE * 2 and CHILD.Size.Magnitude < 200 and RANGE > (CHILD.Position - POSITION).Magnitude then | |
2115 | local FOLDER = IT("Folder", CHILD) | |
2116 | FOLDER.Name = "ewdfrfgrwefd" | |
2117 | local P = DParticles:Clone() | |
2118 | P.Parent = CHILD | |
2119 | P.Enabled = true | |
2120 | CHILD:BreakJoints() | |
2121 | CHILD.CanCollide = false | |
2122 | CHILD.Anchored = true | |
2123 | P.Rate = math.ceil(CHILD.Size.Magnitude / 2) | |
2124 | P.Color = ColorSequence.new(CHILD.Color, C3(1, 1, 1)) | |
2125 | table.insert(PARTS, {CHILD, P}) | |
2126 | end | |
2127 | end | |
2128 | coroutine.resume(coroutine.create(function() | |
2129 | if #PARTS > 0 then | |
2130 | for i = 1, 85 do | |
2131 | Swait() | |
2132 | for E = 1, #PARTS do | |
2133 | local F = PARTS[E] | |
2134 | local A = F[1] | |
2135 | local B = F[2] | |
2136 | A.Transparency = A.Transparency + 0.011764705882352941 | |
2137 | B.Rate = math.ceil(B.Rate * 1.2) | |
2138 | for index, E in pairs(A:GetChildren()) do | |
2139 | if E:IsA("Decal") or E:IsA("Texture") then | |
2140 | E.Transparency = E.Transparency + 0.011764705882352941 | |
2141 | elseif E:IsA("JointInstance") then | |
2142 | E:remove() | |
2143 | elseif E:IsA("Light") or E:IsA("ParticleEmitter") and E ~= B and E.Name ~= "ArchangelDeathParticles" or E:IsA("Fire") or E:IsA("Sparkles") or E:IsA("Smoke") then | |
2144 | E.Enabled = false | |
2145 | end | |
2146 | end | |
2147 | end | |
2148 | end | |
2149 | for E = 1, #PARTS do | |
2150 | local F = PARTS[E] | |
2151 | local A = F[1] | |
2152 | local B = F[2] | |
2153 | B.Enabled = false | |
2154 | Debris:AddItem(A, 3) | |
2155 | end | |
2156 | end | |
2157 | end)) | |
2158 | end | |
2159 | ||
2160 | function VoidThunder2() | |
2161 | ATTACK = true | |
2162 | Rooted = true | |
2163 | local GYRO = IT("BodyGyro", RootPart) | |
2164 | GYRO.D = 20 | |
2165 | GYRO.P = 4000 | |
2166 | GYRO.MaxTorque = VT(0, 40000, 0) | |
2167 | local RING, MESH, DELET = MakeRing() | |
2168 | local HITFLOOR, HITPOS = Raycast(RootPart.Position, CF(RootPart.Position, RootPart.Position + VT(0, -1, 0)).lookVector, 15, Character) | |
2169 | RING.CFrame = CF(HITPOS) | |
2170 | for i = 0, 0.6, 0.1 / Animation_Speed do | |
2171 | GYRO.CFrame = CF(RootPart.Position, Mouse.Hit.p) | |
2172 | Swait() | |
2173 | MESH.Scale = MESH.Scale + VT(53, 0, 53) | |
2174 | RING.CFrame = RING.CFrame * ANGLES(RAD(0), RAD(5), RAD(0)) | |
2175 | 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(-45)), 1 / Animation_Speed) | |
2176 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(15 + 4.5 * SIN(SINE / 12)), RAD(0), RAD(45)), 1 / Animation_Speed) | |
2177 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5 + 0.25 * COS(SINE / 12), 0) * ANGLES(RAD(-25 - 7.5 * SIN(SINE / 12)), RAD(0 - 7.5 * SIN(SINE / 12)), RAD(12 + 7.5 * SIN(SINE / 12))) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
2178 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5 + 0.25 * COS(SINE / 12), 0) * ANGLES(RAD(0 - 7.5 * SIN(SINE / 12)), RAD(0 + 7.5 * SIN(SINE / 12)), RAD(-12 - 7.5 * SIN(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
2179 | 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) | |
2180 | 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) | |
2181 | end | |
2182 | coroutine.resume(coroutine.create(function() | |
2183 | local CFRAME = RootPart.CFrame | |
2184 | for i = 1, 100 do | |
2185 | CFRAME = CFRAME * CF(0, 0, -35) | |
2186 | do | |
2187 | local HITFLOOR, HITPOS = Raycast(CFRAME.p, CF(RootPart.Position, RootPart.Position + VT(0, -1, 0)).lookVector, 15, Character) | |
2188 | if HITFLOOR then | |
2189 | Swait() | |
2190 | do | |
2191 | local OFFSET = CFRAME * CF(MRANDOM(-25, 25), 0, 0) | |
2192 | coroutine.resume(coroutine.create(function() | |
2193 | local RING, MESH, DELET = MakeRing() | |
2194 | RING.CFrame = CF(OFFSET.p.X, HITPOS.Y, OFFSET.p.Z) | |
2195 | for i = 1, 25 do | |
2196 | Swait() | |
2197 | MESH.Scale = MESH.Scale + VT(42, 0, 42) | |
2198 | RING.CFrame = RING.CFrame * ANGLES(RAD(0), RAD(5), RAD(0)) | |
2199 | end | |
2200 | ApplyAoE2(RING.Position, 65) | |
2201 | SHAKECAM(RING.Position, 80, 12, 15) | |
2202 | local TURN = ANGLES(RAD(0), RAD(MRANDOM(0, 360)), RAD(0)) * ANGLES(RAD(MRANDOM(0, 25)), RAD(0), RAD(0)) | |
2203 | WACKYEFFECT({ | |
2204 | Time = 25, | |
2205 | EffectType = "Sphere", | |
2206 | Size = VT(22, 22, 22), | |
2207 | Size2 = VT(85, 85, 85), | |
2208 | Transparency = 0, | |
2209 | Transparency2 = 1, | |
2210 | CFrame = CF(RING.Position), | |
2211 | MoveToPos = nil, | |
2212 | RotationX = 0, | |
2213 | RotationY = 0, | |
2214 | RotationZ = 0, | |
2215 | Material = "Neon", | |
2216 | Color = C3(0,0,0), | |
2217 | }) | |
2218 | for e = 1, 3 do | |
2219 | WACKYEFFECT({ | |
2220 | EffectType = "Wave", | |
2221 | Size = VT(25, 0, 25), | |
2222 | Size2 = VT(40, 0, 40) + VT(e * 6, e / 5, e * 6), | |
2223 | Transparency = 0, | |
2224 | Transparency2 = 1, | |
2225 | CFrame = CF(RING.Position) * ANGLES(RAD(0), RAD(72 * i), RAD(0)), | |
2226 | MoveToPos = nil, | |
2227 | RotationX = 0, | |
2228 | RotationY = 3, | |
2229 | RotationZ = 0, | |
2230 | Material = "Neon", | |
2231 | Color = C3(0,0,0), | |
2232 | SoundID = nil, | |
2233 | SoundPitch = nil, | |
2234 | SoundVolume = nil | |
2235 | }) | |
2236 | WACKYEFFECT({ | |
2237 | Time = 35, | |
2238 | EffectType = "Sphere", | |
2239 | Size = VT(22, 45, 22), | |
2240 | Size2 = VT(25, 45 + e * 75, 25), | |
2241 | Transparency = 0, | |
2242 | Transparency2 = 1, | |
2243 | CFrame = CF(RING.Position) * TURN, | |
2244 | MoveToPos = nil, | |
2245 | RotationX = 0, | |
2246 | RotationY = 0, | |
2247 | RotationZ = 0, | |
2248 | Material = "Neon", | |
2249 | Color = C3(0,0,0), | |
2250 | SoundID = nil, | |
2251 | SoundPitch = MRANDOM(9, 12) / 10, | |
2252 | SoundVolume = 10 | |
2253 | }) | |
2254 | end | |
2255 | wait(0.3) | |
2256 | DELET() | |
2257 | end)) | |
2258 | end | |
2259 | end | |
2260 | end | |
2261 | end | |
2262 | end)) | |
2263 | Rooted = false | |
2264 | for i = 0, 0.2, 0.1 / Animation_Speed do | |
2265 | Swait() | |
2266 | 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(75)), 1 / Animation_Speed) | |
2267 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0 + 4.5 * SIN(SINE / 12)), RAD(0), RAD(-75)), 1 / Animation_Speed) | |
2268 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.25, 0.5 + 0.25 * COS(SINE / 12), -0.5) * ANGLES(RAD(145 - 7.5 * SIN(SINE / 12)), RAD(-35 - 7.5 * SIN(SINE / 12)), RAD(12 + 7.5 * SIN(SINE / 12))) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
2269 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5 + 0.25 * COS(SINE / 12), 0) * ANGLES(RAD(0 - 7.5 * SIN(SINE / 12)), RAD(0 + 7.5 * SIN(SINE / 12)), RAD(-12 - 7.5 * SIN(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
2270 | 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) | |
2271 | 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) | |
2272 | end | |
2273 | DELET() | |
2274 | GYRO:remove() | |
2275 | ATTACK = false | |
2276 | Rooted = false | |
2277 | end | |
2278 | ||
2279 | function Nuke() | |
2280 | ATTACK = true | |
2281 | Rooted = true | |
2282 | local CHARGE = false | |
2283 | local BLASTS = {468991944, 468991990} | |
2284 | coroutine.resume(coroutine.create(function() | |
2285 | repeat | |
2286 | Swait() | |
2287 | RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 + 0.45 * COS(SINE / 12)) * ANGLES(RAD(-15 + 2.5 * SIN(SINE / 12)), RAD(0), RAD(5 + 1 * SIN(SINE / 12))), 0.1 / Animation_Speed) | |
2288 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(-35 + 4.5 * SIN(SINE / 12)), RAD(0), RAD(-5 - 2.5 * SIN(SINE / 12))), 0.1 / Animation_Speed) | |
2289 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.15, 0.5 + 0.25 * COS(SINE / 12), -0.5) * ANGLES(RAD(140 - 7.5 * SIN(SINE / 12)), RAD(-7.5 * SIN(SINE / 12)), RAD(-45 + 7.5 * SIN(SINE / 12))) * RIGHTSHOULDERC0, 0.1 / Animation_Speed) | |
2290 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.15, 0.5 + 0.25 * COS(SINE / 12), -0.5) * ANGLES(RAD(140 - 7.5 * SIN(SINE / 12)), RAD(7.5 * SIN(SINE / 12)), RAD(45 - 7.5 * SIN(SINE / 12))) * LEFTSHOULDERC0, 0.1 / Animation_Speed) | |
2291 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 + 0.15 * COS(SINE / 12), -0.01) * ANGLES(RAD(25 - 7.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.1 / Animation_Speed) | |
2292 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5 + 0.25 * COS(SINE / 12), -0.5) * ANGLES(RAD(25 - 7.5 * SIN(SINE / 12)), RAD(-90), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.1 / Animation_Speed) | |
2293 | until CHARGE == true | |
2294 | for i = 0, 0.4, 0.1 / Animation_Speed do | |
2295 | Swait() | |
2296 | WACKYEFFECT({ | |
2297 | Time = 15, | |
2298 | EffectType = "Sphere", | |
2299 | Size = VT(120, 120, 120), | |
2300 | Size2 = VT(0, 0, 0), | |
2301 | Transparency = 1, | |
2302 | Transparency2 = 0.7, | |
2303 | CFrame = CF(RootPart.Position), | |
2304 | MoveToPos = nil, | |
2305 | RotationX = 0, | |
2306 | RotationY = 0, | |
2307 | RotationZ = 0, | |
2308 | Material = "Neon", | |
2309 | Color = C3(123, 0, 123), | |
2310 | SoundID = nil, | |
2311 | SoundPitch = nil, | |
2312 | SoundVolume = nil | |
2313 | }) | |
2314 | RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 + 0.45 * COS(SINE / 12)) * ANGLES(RAD(-25 + 2.5 * SIN(SINE / 12)), RAD(0), RAD(5 + 1 * SIN(SINE / 12))), 1 / Animation_Speed) | |
2315 | 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) | |
2316 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.15, 0.5 + 0.25 * COS(SINE / 12), -0.5) * ANGLES(RAD(160 - 7.5 * SIN(SINE / 12)), RAD(-7.5 * SIN(SINE / 12)), RAD(-50 + 7.5 * SIN(SINE / 12))) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
2317 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.15, 0.5 + 0.25 * COS(SINE / 12), -0.5) * ANGLES(RAD(160 - 7.5 * SIN(SINE / 12)), RAD(7.5 * SIN(SINE / 12)), RAD(50 - 7.5 * SIN(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
2318 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 + 0.15 * COS(SINE / 12), -0.01) * ANGLES(RAD(35 - 7.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
2319 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5 + 0.25 * COS(SINE / 12), -0.5) * ANGLES(RAD(35 - 7.5 * SIN(SINE / 12)), RAD(-90), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
2320 | end | |
2321 | coroutine.resume(coroutine.create(function() | |
2322 | local POS = RootPart.Position | |
2323 | wait(0.2) | |
2324 | for i = 1, 5 do | |
2325 | WACKYEFFECT({ | |
2326 | Time = 65, | |
2327 | EffectType = "Sphere", | |
2328 | Size = VT(4, 4, 4), | |
2329 | Size2 = VT(0, 0, 1000), | |
2330 | Transparency = 1, | |
2331 | Transparency2 = 0, | |
2332 | CFrame = CF(POS), | |
2333 | MoveToPos = nil, | |
2334 | RotationX = MRANDOM(-2, 2), | |
2335 | RotationY = MRANDOM(-12, 12), | |
2336 | RotationZ = MRANDOM(-2, 2), | |
2337 | Material = "Neon", | |
2338 | Color = C3(123, 0, 123), | |
2339 | SoundID = nil, | |
2340 | SoundPitch = nil, | |
2341 | SoundVolume = nil | |
2342 | }) | |
2343 | end | |
2344 | wait(1) | |
2345 | SHAKECAM(POS, 9999999999, 25, 25) | |
2346 | ApplyAoE2(POS, 450) | |
2347 | WACKYEFFECT({ | |
2348 | Time = 85, | |
2349 | EffectType = "Sphere", | |
2350 | Size = VT(240, 240, 240), | |
2351 | Size2 = VT(700, 700, 700), | |
2352 | Transparency = 0, | |
2353 | Transparency2 = 1, | |
2354 | CFrame = CF(POS), | |
2355 | MoveToPos = nil, | |
2356 | RotationX = 0, | |
2357 | RotationY = 0, | |
2358 | RotationZ = 0, | |
2359 | Material = "Neon", | |
2360 | Color = C3(123, 0, 123), | |
2361 | SoundID = nil, | |
2362 | SoundPitch = 1, | |
2363 | SoundVolume = 10 | |
2364 | }) | |
2365 | for i = 1, 20 do | |
2366 | WACKYEFFECT({ | |
2367 | Time = 85, | |
2368 | EffectType = "Sphere", | |
2369 | Size = VT(240, 240, 240), | |
2370 | Size2 = VT(240, 240, 288) + VT(i * 3, i * 3, i * 3), | |
2371 | Transparency = 0.8, | |
2372 | Transparency2 = 1, | |
2373 | CFrame = CF(POS), | |
2374 | MoveToPos = nil, | |
2375 | RotationX = 0, | |
2376 | RotationY = 0, | |
2377 | RotationZ = 0, | |
2378 | Material = "Neon", | |
2379 | Color = C3(123, 0, 123), | |
2380 | SoundID = nil, | |
2381 | SoundPitch = 1, | |
2382 | SoundVolume = 10 | |
2383 | }) | |
2384 | WACKYEFFECT({ | |
2385 | Time = 100, | |
2386 | EffectType = "Wave", | |
2387 | Size = VT(50, 4, 50), | |
2388 | Size2 = VT(800, 0, 800) * 1.2, | |
2389 | Transparency = 0, | |
2390 | Transparency2 = 1, | |
2391 | CFrame = CF(POS) * ANGLES(RAD(MRANDOM(0, 360)), RAD(MRANDOM(0, 360)), RAD(MRANDOM(0, 360))), | |
2392 | MoveToPos = nil, | |
2393 | RotationX = 0, | |
2394 | RotationY = 0, | |
2395 | RotationZ = 0, | |
2396 | Material = "Neon", | |
2397 | Color = C3(123, 0, 123), | |
2398 | SoundID = nil, | |
2399 | SoundPitch = nil, | |
2400 | SoundVolume = nil | |
2401 | }) | |
2402 | end | |
2403 | local HITFLOOR, HITPOS = Raycast(POS, CF(RootPart.Position, RootPart.Position + VT(0, -1, 0)).lookVector, 150, Character) | |
2404 | for i = 1, 5 do | |
2405 | CreateSound(438666077, Effects, 15, 1 - i / 15, false) | |
2406 | WACKYEFFECT({ | |
2407 | Time = 120, | |
2408 | EffectType = "Wave", | |
2409 | Size = VT(300, 2, 300), | |
2410 | Size2 = VT(600 + i * 340, 0, 600 + i * 340) * 1.2, | |
2411 | Transparency = 0, | |
2412 | Transparency2 = 1, | |
2413 | CFrame = CF(HITPOS) * ANGLES(RAD(0), RAD(MRANDOM(0, 360)), RAD(0)), | |
2414 | MoveToPos = nil, | |
2415 | RotationX = 0, | |
2416 | RotationY = 0, | |
2417 | RotationZ = 0, | |
2418 | Material = "Neon", | |
2419 | Color = C3(123, 0, 123), | |
2420 | SoundID = nil, | |
2421 | SoundPitch = nil, | |
2422 | SoundVolume = nil | |
2423 | }) | |
2424 | end | |
2425 | end)) | |
2426 | for i = 0, 1, 0.1 / Animation_Speed do | |
2427 | Swait() | |
2428 | 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) | |
2429 | 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) | |
2430 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5 + 0.25 * COS(SINE / 12), 0) * ANGLES(RAD(45 - 7.5 * SIN(SINE / 12)), RAD(45 - 7.5 * SIN(SINE / 12)), RAD(12 + 7.5 * SIN(SINE / 12))) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
2431 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5 + 0.25 * COS(SINE / 12), 0) * ANGLES(RAD(45 - 7.5 * SIN(SINE / 12)), RAD(-45 + 7.5 * SIN(SINE / 12)), RAD(-12 - 7.5 * SIN(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
2432 | 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) | |
2433 | 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) | |
2434 | end | |
2435 | ATTACK = false | |
2436 | Rooted = false | |
2437 | end)) | |
2438 | for i = 1, 30 do | |
2439 | wait(0.01) | |
2440 | local POS = CF(RootPart.Position) * ANGLES(RAD(0), RAD(MRANDOM(0, 360)), RAD(0)) * CF(0, 0, MRANDOM(10, 150)) | |
2441 | local HITFLOOR, HITPOS = Raycast(POS.p, CF(RootPart.Position, RootPart.Position + VT(0, -1, 0)).lookVector, 150, Character) | |
2442 | if HITFLOOR then | |
2443 | ApplyAoE2(HITPOS, 65) | |
2444 | local TURN = ANGLES(RAD(0), RAD(MRANDOM(0, 360)), RAD(0)) * ANGLES(RAD(MRANDOM(0, 25)), RAD(0), RAD(0)) | |
2445 | WACKYEFFECT({ | |
2446 | Time = 25, | |
2447 | EffectType = "Sphere", | |
2448 | Size = VT(44, 44, 44), | |
2449 | Size2 = VT(170, 170, 170), | |
2450 | Transparency = 0, | |
2451 | Transparency2 = 1, | |
2452 | CFrame = CF(HITPOS), | |
2453 | MoveToPos = nil, | |
2454 | RotationX = 0, | |
2455 | RotationY = 0, | |
2456 | RotationZ = 0, | |
2457 | Material = "Neon", | |
2458 | Color = C3(123, 0, 123), | |
2459 | SoundID = BLASTS[MRANDOM(1, #BLASTS)], | |
2460 | SoundPitch = MRANDOM(9, 12) / 10, | |
2461 | SoundVolume = 10 | |
2462 | }) | |
2463 | for e = 1, 3 do | |
2464 | WACKYEFFECT({ | |
2465 | EffectType = "Wave", | |
2466 | Size = VT(50, 0, 50), | |
2467 | Size2 = VT(80, 0, 80) + VT(e * 6, e / 5, e * 6), | |
2468 | Transparency = 0, | |
2469 | Transparency2 = 1, | |
2470 | CFrame = CF(HITPOS) * ANGLES(RAD(0), RAD(72 * i), RAD(0)), | |
2471 | MoveToPos = nil, | |
2472 | RotationX = 0, | |
2473 | RotationY = 3, | |
2474 | RotationZ = 0, | |
2475 | Material = "Neon", | |
2476 | Color = C3(123, 0, 123), | |
2477 | SoundID = nil, | |
2478 | SoundPitch = nil, | |
2479 | SoundVolume = nil | |
2480 | }) | |
2481 | WACKYEFFECT({ | |
2482 | Time = 35, | |
2483 | EffectType = "Sphere", | |
2484 | Size = VT(44, 90, 44), | |
2485 | Size2 = VT(50, 90 + e * 150, 50), | |
2486 | Transparency = 0, | |
2487 | Transparency2 = 1, | |
2488 | CFrame = CF(HITPOS) * TURN, | |
2489 | MoveToPos = nil, | |
2490 | RotationX = 0, | |
2491 | RotationY = 0, | |
2492 | RotationZ = 0, | |
2493 | Material = "Neon", | |
2494 | Color = C3(123, 0, 123), | |
2495 | SoundID = nil, | |
2496 | SoundPitch = MRANDOM(9, 12) / 10, | |
2497 | SoundVolume = 10 | |
2498 | }) | |
2499 | end | |
2500 | end | |
2501 | end | |
2502 | CHARGE = true | |
2503 | end | |
2504 | ||
2505 | function Beam() | |
2506 | ATTACK = true | |
2507 | Rooted = true | |
2508 | local GYRO = IT("BodyGyro", RootPart) | |
2509 | GYRO.D = 20 | |
2510 | GYRO.P = 4000 | |
2511 | GYRO.MaxTorque = VT(0, 40000, 0) | |
2512 | local RING, MESH, DELET = MakeRing() | |
2513 | local POS = RootPart.Position + VT(0, 25, 0) | |
2514 | RING.CFrame = CF(POS, Mouse.Hit.p) * ANGLES(RAD(90), RAD(0), RAD(0)) | |
2515 | CreateSound(459523787, RING, 8, 1, false) | |
2516 | local BLASTS = {468991944, 468991990} | |
2517 | coroutine.resume(coroutine.create(function() | |
2518 | local E = 0 | |
2519 | repeat | |
2520 | E = E + 5 | |
2521 | GYRO.CFrame = CF(RootPart.Position, Mouse.Hit.p) | |
2522 | Swait() | |
2523 | RING.CFrame = CF(POS, Mouse.Hit.p) * ANGLES(RAD(90), RAD(E), RAD(0)) | |
2524 | RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 + 0.45 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(90)), 1 / Animation_Speed) | |
2525 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0 + 4.5 * SIN(SINE / 12)), RAD(0), RAD(-90)), 1 / Animation_Speed) | |
2526 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5 + 0.25 * COS(SINE / 12), 0) * ANGLES(RAD(0), RAD(0), RAD(90)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
2527 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5 + 0.25 * COS(SINE / 12), 0) * ANGLES(RAD(0 - 7.5 * SIN(SINE / 12)), RAD(0 + 7.5 * SIN(SINE / 12)), RAD(-12 - 7.5 * SIN(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
2528 | 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) | |
2529 | 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) | |
2530 | until ATTACK == false | |
2531 | GYRO:remove() | |
2532 | DELET() | |
2533 | end)) | |
2534 | for i = 1, 50 do | |
2535 | Swait() | |
2536 | MESH.Scale = MESH.Scale + VT(33, 0, 33) | |
2537 | end | |
2538 | for i = 1, 25 do | |
2539 | Swait() | |
2540 | WACKYEFFECT({ | |
2541 | Time = 15, | |
2542 | EffectType = "Sphere", | |
2543 | Size = VT(16, 16, 16), | |
2544 | Size2 = VT(0, 0, 0), | |
2545 | Transparency = 1, | |
2546 | Transparency2 = 0, | |
2547 | CFrame = CF(RING.Position) * ANGLES(RAD(MRANDOM(0, 360)), RAD(MRANDOM(0, 360)), RAD(MRANDOM(0, 360))) * CF(0, 0, 35), | |
2548 | MoveToPos = RING.Position, | |
2549 | RotationX = 0, | |
2550 | RotationY = 0, | |
2551 | RotationZ = 0, | |
2552 | Material = "Neon", | |
2553 | Color = C3(123, 0, 123), | |
2554 | SoundID = nil, | |
2555 | SoundPitch = nil, | |
2556 | SoundVolume = nil | |
2557 | }) | |
2558 | end | |
2559 | local LOOP = 0 | |
2560 | local BEAM = CreatePart(3, Effects, "Neon", 0, 0, BRICKC("Eggplant"), "Beam", VT(0, 0, 0), true) | |
2561 | MakeForm(BEAM, "Cyl") | |
2562 | CreateSound(BLASTS[MRANDOM(1, #BLASTS)], RING, 5, MRANDOM(9, 11) / 10, false) | |
2563 | repeat | |
2564 | local DISTANCE = (RING.Position - Mouse.Hit.p).Magnitude | |
2565 | if DISTANCE < 2000 then | |
2566 | BEAM.Size = VT(40 + 8 * COS(SINE / 4), DISTANCE, 40 + 8 * COS(SINE / 4)) | |
2567 | BEAM.CFrame = CF(RING.Position, Mouse.Hit.p) * CF(0, 0, -DISTANCE / 2) * ANGLES(RAD(90), RAD(0), RAD(0)) | |
2568 | ApplyAoE2(Mouse.Hit.p, 35) | |
2569 | WACKYEFFECT({ | |
2570 | Time = 35, | |
2571 | EffectType = "Sphere", | |
2572 | Size = VT(40 + 8 * COS(SINE / 4), 40 + 8 * COS(SINE / 4), 40 + 8 * COS(SINE / 4)) * 2, | |
2573 | Size2 = VT(20, 300, 20), | |
2574 | Transparency = 0, | |
2575 | Transparency2 = 1, | |
2576 | CFrame = CF(Mouse.Hit.p) * ANGLES(RAD(MRANDOM(0, 360)), RAD(MRANDOM(0, 360)), RAD(MRANDOM(0, 360))), | |
2577 | MoveToPos = nil, | |
2578 | RotationX = 0, | |
2579 | RotationY = 0, | |
2580 | RotationZ = 0, | |
2581 | Material = "Neon", | |
2582 | Color = C3(123, 0, 123), | |
2583 | SoundID = nil, | |
2584 | SoundPitch = MRANDOM(9, 12) / 10, | |
2585 | SoundVolume = 10 | |
2586 | }) | |
2587 | Swait() | |
2588 | LOOP = LOOP + 1 | |
2589 | end | |
2590 | until KEYHOLD == false and LOOP >= 35 or DISTANCE >= 2000 | |
2591 | coroutine.resume(coroutine.create(function() | |
2592 | for i = 1, 15 do | |
2593 | Swait() | |
2594 | BEAM.Size = BEAM.Size - VT(0.8, 0, 0.8) | |
2595 | BEAM.Transparency = BEAM.Transparency + 0.06666666666666667 | |
2596 | end | |
2597 | BEAM:remove() | |
2598 | end)) | |
2599 | ATTACK = false | |
2600 | Rooted = false | |
2601 | end | |
2602 | -- | |
2603 | ||
2604 | function RiftWorld() | |
2605 | local HITFLOOR,HITPOS = Raycast(RootPart.CFrame*CF(0,0,-6.5).p, (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 4*SIZE, Character) | |
2606 | CHOICE = 6 | |
2607 | back = CreateSound(395371531, Character, 9999, 0.7, true) | |
2608 | chatfunc("Welcome to my w o r l d...") | |
2609 | local sillsky = Instance.new('Sky', game:GetService'Lighting') | |
2610 | sillsky.SkyboxBk = "rbxassetid://149397692" | |
2611 | sillsky.SkyboxDn = "rbxassetid://149397686" | |
2612 | sillsky.SkyboxFt = "rbxassetid://149397697" | |
2613 | sillsky.SkyboxLf = "rbxassetid://149397684" | |
2614 | sillsky.SkyboxRt = "rbxassetid://149397688" | |
2615 | sillsky.SkyboxUp = "rbxassetid://149397702" | |
2616 | sillsky.StarCount = 0 | |
2617 | sillsky.SunAngularSize = 0 | |
2618 | sillsky.MoonAngularSize = 0 | |
2619 | sillsky.MoonTextureId = "" | |
2620 | sillsky.CelestialBodiesShown = false | |
2621 | game.Lighting.FogColor = Color3.new(0,0,0) | |
2622 | game.Lighting.FogEnd = 1400 | |
2623 | if HITFLOOR ~= nil then | |
2624 | ATTACK = false | |
2625 | Rooted = false | |
2626 | local RINGSPIN = true | |
2627 | local CONSTRUCTING = true | |
2628 | local RING = CreatePart(3, Effects, "Neon", 0, 1, "Eggplant", "Ring", VT(0,0,0)) | |
2629 | RING.Color = C3(0,0,0) | |
2630 | MakeForm(RING,"Cyl") | |
2631 | RING.CFrame = CF(HITPOS) | |
2632 | coroutine.resume(coroutine.create(function() | |
2633 | repeat | |
2634 | Swait() | |
2635 | RING.CFrame = RING.CFrame * ANGLES(RAD(0), RAD(5), RAD(0)) | |
2636 | until CONSTRUCTING == false | |
2637 | repeat | |
2638 | Swait() | |
2639 | RING.CFrame = RING.CFrame * ANGLES(RAD(0), RAD(5), RAD(0)) | |
2640 | until RINGSPIN == false | |
2641 | for i = 1, 25 do | |
2642 | Swait() | |
2643 | RING.CFrame = RING.CFrame * ANGLES(RAD(0), RAD(5), RAD(0)) | |
2644 | RING.Size = RING.Size - VT(0.15,0,0.15) | |
2645 | --DECAL.Transparency = DECAL.Transparency + 1/25 | |
2646 | RING.Transparency = RING.Transparency + 1/25 | |
2647 | end | |
2648 | RING:remove() | |
2649 | end)) | |
2650 | for i = 1, 15 do | |
2651 | Swait() | |
2652 | RING.Size = RING.Size + VT(0,0,0) | |
2653 | RING.Transparency = RING.Transparency - 1/15 | |
2654 | end | |
2655 | end | |
2656 | local RANDOMEFFECT = MRANDOM(1) | |
2657 | local BASE = CreatePart(3, Character, "Neon", 0, 0, "Eggplant", "Black", VT(2,1.8,2)) | |
2658 | BASE.Color = C3(0,0,0) | |
2659 | BASE.Transparency = 1 | |
2660 | BASE.CFrame = CF(HITPOS+VT(0,-8,0),VT(RootPart.Position.X,HITPOS.Y-8,RootPart.Position.Z)) | |
2661 | if RANDOMEFFECT == 1 then | |
2662 | local FIELD = CreatePart(3, Effects, "Neon", 0, 0, "Eggplant", "Field", VT(0.3,0.3,0.3)) | |
2663 | FIELD.CFrame = BASE.CFrame | |
2664 | MakeForm(FIELD,"Ball") | |
2665 | for i = 1, 50 do | |
2666 | Swait() | |
2667 | FIELD.Size = VT(0,0,0) | |
2668 | FIELD.CFrame = FIELD.CFrame * CF(0,0.75-(i/45),0) | |
2669 | end | |
2670 | end | |
2671 | wait(0.2) | |
2672 | local FIELD = CreatePart(3, Effects, "Neon", 0, 0, "Eggplant", "Field", VT(0.3,0.3,0.3)) | |
2673 | FIELD.CFrame = BASE.CFrame | |
2674 | local LOOP = CreateSound(1393698948, Character, 0, 1, true) | |
2675 | coroutine.resume(coroutine.create(function() | |
2676 | for i = 1, 75 do | |
2677 | Swait() | |
2678 | LOOP.Volume = LOOP.Volume + 10/75 | |
2679 | LOOP.Parent = FIELD | |
2680 | local CHILDREN = workspace:GetDescendants() | |
2681 | for index, CHILD in pairs(CHILDREN) do | |
2682 | if CHILD.ClassName == "Model" and CHILD ~= Character and CHILD.Parent ~= Effects then | |
2683 | local HUM = CHILD:FindFirstChildOfClass("Humanoid") | |
2684 | if HUM then | |
2685 | local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso") | |
2686 | if TORSO then | |
2687 | if (TORSO.Position - FIELD.Position).Magnitude <= FIELD.Size.X/2 then | |
2688 | HUM.Health = HUM.Health - 0 | |
2689 | TORSO.Velocity = VT(0,5,0) | |
2690 | HUM.PlatformStand = true | |
2691 | if TORSO.RotVelocity.Magnitude < 15 then | |
2692 | TORSO.Anchored = true | |
2693 | end | |
2694 | end | |
2695 | end | |
2696 | end | |
2697 | end | |
2698 | end | |
2699 | FIELD.Size = FIELD.Size + VT(90,90,90) | |
2700 | FIELD.Transparency = FIELD.Transparency + 0.8/75 | |
2701 | end | |
2702 | for i = 1, 500 do | |
2703 | Swait() | |
2704 | LOOP.Parent = FIELD | |
2705 | local CHILDREN = workspace:GetDescendants() | |
2706 | for index, CHILD in pairs(CHILDREN) do | |
2707 | if CHILD.ClassName == "Model" and CHILD ~= Character and CHILD.Parent ~= Effects then | |
2708 | local HUM = CHILD:FindFirstChildOfClass("Humanoid") | |
2709 | if HUM then | |
2710 | local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso") | |
2711 | if TORSO then | |
2712 | if (TORSO.Position - FIELD.Position).Magnitude <= FIELD.Size.X/2 then | |
2713 | TORSO.Velocity = VT(0,5,0) | |
2714 | HUM.Health = HUM.Health - 0 | |
2715 | HUM.PlatformStand = true | |
2716 | if TORSO.RotVelocity.Magnitude < 15 then | |
2717 | TORSO.Anchored = false | |
2718 | end | |
2719 | end | |
2720 | end | |
2721 | end | |
2722 | end | |
2723 | end | |
2724 | end | |
2725 | CHOICE = MRANDOM (1,5) | |
2726 | for i = 1, 25 do | |
2727 | Swait() | |
2728 | LOOP.Volume = LOOP.Volume + 10/25 | |
2729 | LOOP.Parent = FIELD | |
2730 | local CHILDREN = workspace:GetDescendants() | |
2731 | for index, CHILD in pairs(CHILDREN) do | |
2732 | if CHILD.ClassName == "Model" and CHILD ~= Character and CHILD.Parent ~= Effects then | |
2733 | local HUM = CHILD:FindFirstChildOfClass("Humanoid") | |
2734 | if HUM then | |
2735 | local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso") | |
2736 | if TORSO then | |
2737 | if (TORSO.Position - FIELD.Position).Magnitude <= FIELD.Size.X/1.8 then | |
2738 | TORSO.Velocity = VT(0,5,0) | |
2739 | HUM.Health = HUM.Health - 0 | |
2740 | HUM.PlatformStand = false | |
2741 | if TORSO.RotVelocity.Magnitude < 15 then | |
2742 | TORSO.Anchored = false | |
2743 | end | |
2744 | end | |
2745 | end | |
2746 | end | |
2747 | end | |
2748 | FIELD.Size = FIELD.Size - VT(3,3,3) | |
2749 | FIELD.Transparency = FIELD.Transparency + 0.2/25 | |
2750 | end | |
2751 | end | |
2752 | end)) | |
2753 | FIELD:Remove() | |
2754 | ATTACK = false | |
2755 | Rooted = false | |
2756 | end | |
2757 | ||
2758 | --------------VOID BEAM------------------- | |
2759 | ||
2760 | function killnearest(position,range,maxstrength) | |
2761 | for i,v in ipairs(workspace:GetChildren()) do | |
2762 | local body = v:GetChildren() | |
2763 | for part = 1, #body do | |
2764 | if((body[part].ClassName == "Part" or body[part].ClassName == "MeshPart") and v ~= Character) then | |
2765 | if(body[part].Position - position).Magnitude < range then | |
2766 | if v.ClassName == "Model" then | |
2767 | v:BreakJoints() | |
2768 | end | |
2769 | --table.insert(Effects2,{body[part],"Disappear",0.02,2,2,2,2}) | |
2770 | body[part].Velocity = CFrame.new(position,body[part].Position).lookVector*5*maxstrength | |
2771 | end | |
2772 | end | |
2773 | end | |
2774 | if v.ClassName == "Part" then | |
2775 | if v.Anchored == false and (v.Position - position).Magnitude < range then | |
2776 | --table.insert(Effects2,{v,"Disappear",0.02,2,2,2,2}) | |
2777 | v.Velocity = CFrame.new(position,v.Position).lookVector*5*maxstrength | |
2778 | end | |
2779 | end | |
2780 | end | |
2781 | end | |
2782 | ||
2783 | function CheckTableForString(Table, String) | |
2784 | for i, v in pairs(Table) do | |
2785 | if string.find(string.lower(String), string.lower(v)) then | |
2786 | return true | |
2787 | end | |
2788 | end | |
2789 | return false | |
2790 | end | |
2791 | ||
2792 | function CheckIntangible(Hit) | |
2793 | local ProjectileNames = {"Water", "Arrow", "Projectile", "Effect", "Rail", "Lightning", "Bullet"} | |
2794 | if Hit and Hit.Parent then | |
2795 | if ((not Hit.CanCollide or CheckTableForString(ProjectileNames, Hit.Name)) and not Hit.Parent:FindFirstChild("Humanoid")) then | |
2796 | return true | |
2797 | end | |
2798 | end | |
2799 | return false | |
2800 | end | |
2801 | ||
2802 | Debris = game:GetService("Debris") | |
2803 | ||
2804 | function CastZapRay(StartPos, Vec, Length, Ignore, DelayIfHit) | |
2805 | local Direction = CFrame.new(StartPos, Vec).lookVector | |
2806 | local Ignore = ((type(Ignore) == "table" and Ignore) or {Ignore}) | |
2807 | local RayHit, RayPos, RayNormal = game:GetService("Workspace"):FindPartOnRayWithIgnoreList(Ray.new(StartPos, Direction * Length), Ignore) | |
2808 | if RayHit and CheckIntangible(RayHit) then | |
2809 | if DelayIfHit then | |
2810 | wait() | |
2811 | end | |
2812 | RayHit, RayPos, RayNormal = CastZapRay((RayPos + (Vec * 0.01)), Vec, (Length - ((StartPos - RayPos).magnitude)), Ignore, DelayIfHit) | |
2813 | end | |
2814 | return RayHit, RayPos, RayNormal | |
2815 | end | |
2816 | ||
2817 | function turnto(position) | |
2818 | RootPart.CFrame=CFrame.new(RootPart.CFrame.p,VT(position.X,RootPart.Position.Y,position.Z)) * CFrame.new(0, 0, 0) | |
2819 | end | |
2820 | ||
2821 | function VoidBeam() | |
2822 | ATTACK = true | |
2823 | Rooted = true | |
2824 | for i=0, 1, 0.1 / Animation_Speed do | |
2825 | Swait() | |
2826 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, 0 * Player_Size + 0.05 * COS(SINE / 12) * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
2827 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(5 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
2828 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(180), RAD(0), RAD(25)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed) | |
2829 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(180), RAD(0), RAD(-25)) * LEFTSHOULDERC0, 0.15 / Animation_Speed) | |
2830 | RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -1 * Player_Size, -0 * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-15), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
2831 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -1 * Player_Size, -0 * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-15), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
2832 | end | |
2833 | CreateSound("348663022", Torso, 5, 1) | |
2834 | local StartPos = RootPart.CFrame * CF(0,10,0).p | |
2835 | for i = 1, 5 do | |
2836 | MagicSphere2(25,25,CF(StartPos),"Eggplant") | |
2837 | Swait(15) | |
2838 | end | |
2839 | local soundeffect = IT("Sound",Torso) | |
2840 | soundeffect.SoundId = "rbxassetid://487186990" | |
2841 | soundeffect.Looped = true | |
2842 | soundeffect.Volume = 10 | |
2843 | soundeffect.Playing = true | |
2844 | repeat | |
2845 | turnto(Mouse.Hit.p) | |
2846 | MagicSphere2(25,25,CF(StartPos),"Eggplant") | |
2847 | MagicSphere(25/10,25,CF(StartPos),"Eggplant") | |
2848 | local RayHit, RayPos, RayNormal = CastZapRay(StartPos, Mouse.Hit.p, 750, Character, false) | |
2849 | local distance = (StartPos - RayPos).magnitude | |
2850 | local RayBeam = IT("Part",Effects) | |
2851 | RayBeam.Material = "Neon" | |
2852 | RayBeam.Anchored = true | |
2853 | RayBeam.BrickColor = BRICKC"Eggplant" | |
2854 | local mesh = IT("SpecialMesh",RayBeam) | |
2855 | mesh.MeshType = "Cylinder" | |
2856 | RayBeam.Size = Vector3.new(distance+10, 5, 5) | |
2857 | RayBeam.CFrame = CFrame.new(StartPos, RayPos) * CFrame.new(0, 0, -distance/2) * ANGLES(RAD(0),RAD(90),RAD(0)) | |
2858 | MagicSphere(15,5,CF(RayPos),"Eggplant") | |
2859 | killnearest(RayPos,15,100) | |
2860 | for i = 1, 3 do | |
2861 | CreateSwirl(0,25,true,-0.2,5,CF(RayPos) * ANGLES(RAD(math.random(-360,360)),RAD(math.random(-360,360)),RAD(math.random(-360,360))),"Really black") | |
2862 | end | |
2863 | Swait() | |
2864 | if KEYHOLD == false then | |
2865 | coroutine.resume(coroutine.create(function() | |
2866 | for i = 1, 5 do | |
2867 | RayBeam.Transparency = RayBeam.Transparency + 1/5 | |
2868 | Swait() | |
2869 | end | |
2870 | RayBeam:remove() | |
2871 | end)) | |
2872 | else | |
2873 | RayBeam:remove() | |
2874 | end | |
2875 | until KEYHOLD == false | |
2876 | soundeffect:remove() | |
2877 | ATTACK = false | |
2878 | Rooted = false | |
2879 | end | |
2880 | ---------------------------------- | |
2881 | function Teleport() | |
2882 | ATTACK = true | |
2883 | Rooted = false | |
2884 | for i=0, 0.5, 0.1 / Animation_Speed do | |
2885 | Swait() | |
2886 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(15 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
2887 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.6, 0.75, -0.5) * ANGLES(RAD(0), RAD(-25), RAD(12)) * ANGLES(RAD(125 - 2.5 * COS(SINE / 12) + 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 1.5 / Animation_Speed) | |
2888 | end | |
2889 | for e = 1, #BODY do | |
2890 | if BODY[e] ~= nil then | |
2891 | local STUFF = BODY[e] | |
2892 | local PART = STUFF[1] | |
2893 | if PART:IsA("BasePart") and PART ~= RootPart and PART.Name ~= "FaceGradient" and PART.Name ~= "Hair" and PART.Transparency ~= 1 then | |
2894 | local PRT = PART:Clone() | |
2895 | PRT.Anchored = true | |
2896 | PRT.CanCollide = false | |
2897 | PRT.Material = "Neon" | |
2898 | PRT.Color = C3(123,0,123) | |
2899 | PRT.Name = "WarpEffect" | |
2900 | PRT.Parent = Effects | |
2901 | PRT.CFrame = PART.CFrame | |
2902 | PRT:BreakJoints() | |
2903 | if PRT:FindFirstChildOfClass("Sound") then | |
2904 | PRT:FindFirstChildOfClass("Sound"):remove() | |
2905 | end | |
2906 | if PRT:FindFirstChildOfClass("Decal") then | |
2907 | PRT:FindFirstChildOfClass("Decal"):remove() | |
2908 | end | |
2909 | coroutine.resume(coroutine.create(function() | |
2910 | for i = 1, 100 do | |
2911 | Swait() | |
2912 | PRT.Transparency = PRT.Transparency + 1/100 | |
2913 | end | |
2914 | PRT:remove() | |
2915 | end)) | |
2916 | end | |
2917 | end | |
2918 | end | |
2919 | CreateSound(289556450, Torso, 10, 1) | |
2920 | local POS = RootPart.Orientation | |
2921 | RootPart.CFrame = CF(Mouse.Hit.p+VT(0,6,0)) | |
2922 | RootPart.Orientation = POS | |
2923 | RootJoint.Parent = RootPart | |
2924 | for i=0, 0.5, 0.1 / Animation_Speed do | |
2925 | Swait() | |
2926 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(15 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
2927 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.6, 0.75, -0.5) * ANGLES(RAD(0), RAD(-15), RAD(12)) * ANGLES(RAD(175 - 2.5 * COS(SINE / 12) + 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 2.5 / Animation_Speed) | |
2928 | end | |
2929 | for i=0, 0.1, 0.1 / Animation_Speed do | |
2930 | Swait() | |
2931 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1, 0.5, 0.5) * ANGLES(RAD(0), RAD(-45), RAD(12)) * ANGLES(RAD(45 - 2.5 * COS(SINE / 12) + 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 0.75 / Animation_Speed) | |
2932 | end | |
2933 | ATTACK = false | |
2934 | Rooted = false | |
2935 | end | |
2936 | ||
2937 | function Warden_Zap() | |
2938 | ATTACK = true | |
2939 | Rooted = false | |
2940 | local GYRO = IT("BodyGyro",RootPart) | |
2941 | GYRO.D = 750 | |
2942 | GYRO.P = 20000 | |
2943 | GYRO.MaxTorque = VT(0,40000000,0) | |
2944 | CreateSound(348663022,RightArm,1.5,2,false) | |
2945 | Pose("Cast1",0.8,1,true,GYRO) | |
2946 | 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 = 9999, Branches = false}) | |
2947 | local Hitpos = LightningTable.End | |
2948 | ApplyAoE(Hitpos,10,35) | |
2949 | 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"Eggplant".Color, SoundID = BOLTSOUNDS[MRANDOM(1,#BOLTSOUNDS)], SoundPitch = MRANDOM(8,12)/10, SoundVolume = 5}) | |
2950 | for i = 1, 4 do | |
2951 | 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"Eggplant".Color, SoundID = nil, SoundPitch = nil, SoundVolume = nil}) | |
2952 | end | |
2953 | Pose("Cast1",0.8,1,true) | |
2954 | GYRO:remove() | |
2955 | ATTACK = false | |
2956 | Rooted = false | |
2957 | end | |
2958 | ||
2959 | function VoidThunder() | |
2960 | ATTACK = true | |
2961 | Rooted = false | |
2962 | local GYRO = IT("BodyGyro",RootPart) | |
2963 | GYRO.D = 750 | |
2964 | GYRO.P = 20000 | |
2965 | GYRO.MaxTorque = VT(0,40000000,0) | |
2966 | CreateSound(469345336,Torso,3,2,false) | |
2967 | Pose("Cast2",1.5,2,true,GYRO) | |
2968 | coroutine.resume(coroutine.create(function() | |
2969 | local FRAME = RootPart.CFrame | |
2970 | for i = 1, 25 do | |
2971 | local POS = FRAME*CF(MRANDOM(-17,17),0,-i*15) | |
2972 | 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}) | |
2973 | local Hitpos = LightningTable.End | |
2974 | ApplyAoE(Hitpos,20,15) | |
2975 | 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"Eggplant".Color, SoundID = BOLTSOUNDS[MRANDOM(1,#BOLTSOUNDS)], SoundPitch = MRANDOM(8,12)/10, SoundVolume = 5}) | |
2976 | for i = 1, 4 do | |
2977 | 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"Eggplant".Color, SoundID = nil, SoundPitch = nil, SoundVolume = nil}) | |
2978 | end | |
2979 | wait(0.05) | |
2980 | end | |
2981 | end)) | |
2982 | Pose("Cast2",1.5,0.7,true) | |
2983 | GYRO:remove() | |
2984 | ATTACK = false | |
2985 | Rooted = false | |
2986 | end | |
2987 | ||
2988 | function Inferno_Ring() | |
2989 | ATTACK = true | |
2990 | Rooted = false | |
2991 | local GYRO = IT("BodyGyro",RootPart) | |
2992 | GYRO.D = 750 | |
2993 | GYRO.P = 20000 | |
2994 | GYRO.MaxTorque = VT(0,40000000,0) | |
2995 | local FIRE = IT("Model",Effects) | |
2996 | FIRE.Name = "Fire" | |
2997 | local MAIN = CreatePart(3, FIRE, "Neon", 0, 1, "Magenta", "Center", VT(0,0,0)) | |
2998 | FIRE.PrimaryPart = MAIN | |
2999 | local FIRES = {} | |
3000 | for i = 1, 45 do | |
3001 | local PRT = CreatePart(3, FIRE, "Neon", 0, 1, "Dark indigo", "RingPart", VT(3,3,3)) | |
3002 | PRT.CFrame = MAIN.CFrame*ANGLES(RAD(0),RAD((360/45)*i),RAD(0))*CF(0,0,20) | |
3003 | local F = Fire(PRT) | |
3004 | table.insert(FIRES,F) | |
3005 | end | |
3006 | repeat | |
3007 | FIRE:SetPrimaryPartCFrame(CF(Mouse.Hit.p)) | |
3008 | Pose("Cast1",1.5,0.01,false,GYRO) | |
3009 | until HOLD == true | |
3010 | coroutine.resume(coroutine.create(function() | |
3011 | for i = 1, 4 do | |
3012 | ApplyAoE(MAIN.Position,21,-15,true) | |
3013 | CreateSound(463598785,MAIN,3,1,false) | |
3014 | for E = 1, #FIRES do | |
3015 | if FIRES[E] ~= nil then | |
3016 | FIRES[E].Acceleration = VT(0,300,0) | |
3017 | FIRES[E].Lifetime=NumberRange.new(0.35,1.5) | |
3018 | end | |
3019 | end | |
3020 | wait(0.3) | |
3021 | end | |
3022 | for E = 1, #FIRES do | |
3023 | if FIRES[E] ~= nil then | |
3024 | FIRES[E].Enabled = false | |
3025 | end | |
3026 | end | |
3027 | Debris:AddItem(FIRE,5) | |
3028 | end)) | |
3029 | CreateSound(138474143,RightArm,3,1,false) | |
3030 | Pose("RightArmUp",1.5,0.5,true) | |
3031 | GYRO:remove() | |
3032 | ATTACK = false | |
3033 | Rooted = false | |
3034 | end | |
3035 | ||
3036 | function Warden_Wall() | |
3037 | local HITFLOOR = Raycast(RootPart.Position, (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 8, Character) | |
3038 | if HITFLOOR ~= nil then | |
3039 | if HITFLOOR.Anchored == true then | |
3040 | local WALL = HITFLOOR:Clone() | |
3041 | WALL.Size = VT(45,45,5) | |
3042 | WALL.Parent = Effects | |
3043 | WALL.Name = "Wall" | |
3044 | WALL.CFrame = RootPart.CFrame*CF(0,-65/2.1,-5)*ANGLES(RAD(-15),RAD(0),RAD(0)) | |
3045 | CreateSound(130972023,WALL,5,0.8,false) | |
3046 | ATTACK = true | |
3047 | Rooted = true | |
3048 | local HIT = WALL.Touched:Connect(function(hit) | |
3049 | if hit.Parent ~= Character then | |
3050 | hit:BreakJoints() | |
3051 | end | |
3052 | end) | |
3053 | coroutine.resume(coroutine.create(function() | |
3054 | 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"Eggplant".Color, SoundID = nil, SoundPitch = nil, SoundVolume = nil}) | |
3055 | for i = 1, 90 do | |
3056 | Swait() | |
3057 | WALL.CFrame = WALL.CFrame*CF(0,0.5,0) | |
3058 | end | |
3059 | HIT:disconnect() | |
3060 | wait(5) | |
3061 | for i = 1, 46 do | |
3062 | Swait() | |
3063 | WALL.CFrame = WALL.CFrame*CF(0,-1,0) | |
3064 | end | |
3065 | WALL:remove() | |
3066 | end)) | |
3067 | Pose("RightArmUp",1.5,1.2,true) | |
3068 | ATTACK = false | |
3069 | Rooted = false | |
3070 | end | |
3071 | end | |
3072 | end | |
3073 | ||
3074 | function Prison_Key() | |
3075 | if Mouse.Target ~= nil then | |
3076 | if Mouse.Target.Parent ~= Character and Mouse.Target.Parent.Parent ~= Character and Mouse.Target.Parent:FindFirstChildOfClass("Humanoid") ~= nil then | |
3077 | local HUM = Mouse.Target.Parent:FindFirstChildOfClass("Humanoid") | |
3078 | local TORSO = HUM.Parent:FindFirstChild("Torso") or HUM.Parent:FindFirstChild("UpperTorso") | |
3079 | local GYRO = IT("BodyGyro",RootPart) | |
3080 | GYRO.D = 750 | |
3081 | GYRO.P = 20000 | |
3082 | GYRO.MaxTorque = VT(0,40000000,0) | |
3083 | local grav = Instance.new("BodyPosition",TORSO) | |
3084 | grav.D = 15 | |
3085 | grav.P = 20000 | |
3086 | grav.maxForce = Vector3.new(math.huge,math.huge,math.huge) | |
3087 | grav.position = TORSO.Position | |
3088 | local GYRO2 = IT("BodyGyro",TORSO) | |
3089 | GYRO2.D = 750 | |
3090 | GYRO2.P = 20000 | |
3091 | GYRO2.MaxTorque = VT(0,40000000,0) | |
3092 | GYRO2.cframe = CF(TORSO.Position,RootPart.Position) | |
3093 | grav.Name = "Jail" | |
3094 | local LOCKPARTS = {} | |
3095 | ATTACK = true | |
3096 | Rooted = false | |
3097 | local LOCK = IT("Model",Effects) | |
3098 | LOCK.Name = "Lock" | |
3099 | local LOCK2 = IT("Model",LOCK) | |
3100 | LOCK2.Name = "Metal" | |
3101 | --CREATE LOCK-- | |
3102 | local BASE = CreatePart(3, LOCK, "Glass", 0, 0, "Gold", "Keylock", VT(3, 2.5, 1)) | |
3103 | LOCK.PrimaryPart = BASE | |
3104 | BASE.CFrame = CF(TORSO.Position,RootPart.Position)*CF(0,0,-4) | |
3105 | local PRT = CreatePart(3, LOCK, "Glass", 0, 0, "Gold", "Keylock", VT(3, 1, 3)) | |
3106 | PRT.CFrame = BASE.CFrame*CF(0,-1.25,0)*ANGLES(RAD(90),RAD(0),RAD(0)) | |
3107 | MakeForm(PRT,"Cyl") | |
3108 | local PRT = CreatePart(3, LOCK, "Glass", 0, 0, "White", "Hole", VT(1, 1, 1)) | |
3109 | PRT.Color = C3(0,0,0) | |
3110 | PRT.CFrame = BASE.CFrame*CF(0,0.3,-0.01)*ANGLES(RAD(90),RAD(0),RAD(0)) | |
3111 | MakeForm(PRT,"Cyl") | |
3112 | local PRT = CreatePart(3, LOCK, "Glass", 0, 0, "White", "Hole", VT(0.5, 1, 1)) | |
3113 | PRT.Color = C3(0,0,0) | |
3114 | PRT.CFrame = BASE.CFrame*CF(0,-0.2,-0.01) | |
3115 | for i = 1, 45 do | |
3116 | local PRT = CreatePart(3, LOCK2, "Glass", 0, 0, "Grey", "Keylock", VT(0.5, 0.5, 0.5)) | |
3117 | PRT.CFrame = BASE.CFrame*CF(0,2,0)*ANGLES(RAD(0),RAD(0),RAD(-90+(360/90*i)))*CF(0,1,0) | |
3118 | end | |
3119 | local PRT = CreatePart(3, LOCK2, "Glass", 0, 0, "Grey", "Keylock", VT(0.5, 0.5, 0.5)) | |
3120 | PRT.CFrame = BASE.CFrame*CF(0,1.5,0)*ANGLES(RAD(0),RAD(0),RAD(90))*CF(0,1,0) | |
3121 | LOCK2.PrimaryPart = PRT | |
3122 | --------------- | |
3123 | local CHILDREN = LOCK:GetDescendants() | |
3124 | for index, CHILD in pairs(CHILDREN) do | |
3125 | if CHILD:IsA("BasePart") then | |
3126 | CHILD.Transparency = 1 | |
3127 | end | |
3128 | end | |
3129 | for i = 1, 75 do | |
3130 | LOCK:SetPrimaryPartCFrame(CF(TORSO.Position,RootPart.Position)*CF(0,0,-4)) | |
3131 | Swait() | |
3132 | GYRO2.cframe = CF(TORSO.Position,RootPart.Position) | |
3133 | GYRO.cframe = CF(RootPart.Position,TORSO.Position) | |
3134 | local CHILDREN = LOCK:GetDescendants() | |
3135 | for index, CHILD in pairs(CHILDREN) do | |
3136 | if CHILD:IsA("BasePart") then | |
3137 | CHILD.Transparency = CHILD.Transparency - 1/75 | |
3138 | end | |
3139 | end | |
3140 | end | |
3141 | HUM.DisplayDistanceType = "None" | |
3142 | local KEY = IT("Model",Effects) | |
3143 | KEY.Name = "Key" | |
3144 | --CREATE KEY-- | |
3145 | local KBASE = CreatePart(3, KEY, "Neon", 0, 0, "Eggplant", "KeyBase", VT(0.1, 1, 0.1),false) | |
3146 | KEY.PrimaryPart = KBASE | |
3147 | KBASE.CFrame = RightArm.CFrame*CF(0,-2.1,0)*ANGLES(RAD(0),RAD(90),RAD(0)) | |
3148 | local WLD = weldBetween(RightArm,KBASE) | |
3149 | for i = 1, 45 do | |
3150 | local PRT = CreatePart(3, KEY, "Neon", 0, 0, "Eggplant", "Key", VT(0.1, 0.1, 0.1),false) | |
3151 | PRT.CFrame = KBASE.CFrame*CF(0,0.8,0)*ANGLES(RAD(0),RAD(0),RAD((360/45*i)))*CF(0,0.25,0) | |
3152 | weldBetween(KBASE,PRT) | |
3153 | end | |
3154 | local PRT = CreatePart(3, KEY, "Neon", 0, 0, "Eggplant", "Key", VT(0.3, 0.1, 0.1),false) | |
3155 | PRT.CFrame = KBASE.CFrame*CF(-0.15,-0.45,0) | |
3156 | weldBetween(KBASE,PRT) | |
3157 | local PRT = CreatePart(3, KEY, "Neon", 0, 0, "Eggplant", "Key", VT(0.3, 0.1, 0.1),false) | |
3158 | PRT.CFrame = KBASE.CFrame*CF(-0.15,-0.25,0) | |
3159 | weldBetween(KBASE,PRT) | |
3160 | -------------- | |
3161 | Rooted = true | |
3162 | Pose("Prepare key",1.5,1.2,false,GYRO,TORSO) | |
3163 | coroutine.resume(coroutine.create(function() | |
3164 | for i = 1, 10 do | |
3165 | Swait() | |
3166 | GYRO2.cframe = CF(TORSO.Position,RootPart.Position) | |
3167 | GYRO.cframe = CF(RootPart.Position,TORSO.Position) | |
3168 | end | |
3169 | CreateSound(1149318312,BASE,5,1,false) | |
3170 | CreateSound(160772554,BASE,3,1,false) | |
3171 | LOCK2:SetPrimaryPartCFrame(BASE.CFrame*CF(0,0.8,0)*ANGLES(RAD(0),RAD(0),RAD(90))*CF(0,1,0)) | |
3172 | for i = 1, 4 do | |
3173 | 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"Eggplant".Color, SoundID = nil, SoundPitch = nil, SoundVolume = nil}) | |
3174 | end | |
3175 | 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"Eggplant".Color, SoundID = nil, SoundPitch = MRANDOM(8,12)/10, SoundVolume = 5}) | |
3176 | wait(1) | |
3177 | TORSO.Parent.Parent = LOCK | |
3178 | for i = 1, 75 do | |
3179 | Swait() | |
3180 | local CHILDREN = KEY:GetDescendants() | |
3181 | for index, CHILD in pairs(CHILDREN) do | |
3182 | if CHILD:IsA("BasePart") then | |
3183 | CHILD.Transparency = i/25 | |
3184 | end | |
3185 | end | |
3186 | local CHILDREN = LOCK:GetDescendants() | |
3187 | for index, CHILD in pairs(CHILDREN) do | |
3188 | if CHILD:IsA("BasePart") and CHILD.Name ~= "HumanoidRootPart" then | |
3189 | CHILD.Transparency = CHILD.Transparency + 1/75 | |
3190 | elseif CHILD.ClassName == "Decal" then | |
3191 | CHILD.Transparency = CHILD.Transparency + 1/75 | |
3192 | end | |
3193 | end | |
3194 | end | |
3195 | TORSO.Parent:ClearAllChildren() | |
3196 | KEY:remove() | |
3197 | LOCK:remove() | |
3198 | end)) | |
3199 | Pose("Turn key",0.8,1.2,false,GYRO,TORSO) | |
3200 | GYRO:remove() | |
3201 | ATTACK = false | |
3202 | Rooted = false | |
3203 | end | |
3204 | end | |
3205 | end | |
3206 | ||
3207 | function Hat() | |
3208 | ATTACK = true | |
3209 | Rooted = false | |
3210 | Pose("Taunt",0.4,1.2,false) | |
3211 | ATTACK = false | |
3212 | Rooted = false | |
3213 | end | |
3214 | ||
3215 | --//=================================\\ | |
3216 | --|| ASSIGN THINGS TO KEYS | |
3217 | --\\=================================// | |
3218 | ||
3219 | function MouseDown(Mouse) | |
3220 | HOLD = true | |
3221 | if ATTACK == false then | |
3222 | end | |
3223 | end | |
3224 | ||
3225 | function CastProperRay2(StartPos, Vec, Length, Ignore) | |
3226 | local Direction = CFrame.new(StartPos, Vec).lookVector | |
3227 | local Ignore = ((type(Ignore) == "table" and Ignore) or {Ignore}) | |
3228 | local RayHit, RayPos, RayNormal = game:GetService("Workspace"):FindPartOnRayWithIgnoreList(Ray.new(StartPos, Direction * Length), Ignore) | |
3229 | return RayHit, RayPos, RayNormal | |
3230 | end | |
3231 | ||
3232 | function MouseUp(Mouse) | |
3233 | HOLD = false | |
3234 | end | |
3235 | ||
3236 | function KeyDown(Key) | |
3237 | KEYHOLD = true | |
3238 | if TRUEFORM == false then | |
3239 | ||
3240 | if Key == "z" and ATTACK == false then | |
3241 | Warden_Zap() | |
3242 | end | |
3243 | ||
3244 | if Key == "f" and ATTACK == false then | |
3245 | Teleport() | |
3246 | end | |
3247 | ||
3248 | if Key == "g" and ATTACK == false then | |
3249 | Prison_Key() | |
3250 | end | |
3251 | ||
3252 | if Key == "e" and ATTACK == false then | |
3253 | VoidStar() | |
3254 | end | |
3255 | ||
3256 | if Key == "q" and ATTACK == false then | |
3257 | VoidBox() | |
3258 | end | |
3259 | ||
3260 | if Key == "b" and ATTACK == false then | |
3261 | VoidThunder() | |
3262 | end | |
3263 | ||
3264 | if Key == "c" and ATTACK == false then | |
3265 | Inferno_Ring() | |
3266 | end | |
3267 | ||
3268 | if Key == "v" and ATTACK == false then | |
3269 | Warden_Wall() | |
3270 | end | |
3271 | ||
3272 | if Key == "x" and ATTACK == false then | |
3273 | VoidBeam() | |
3274 | end | |
3275 | ||
3276 | if Key == "t" and ATTACK == false then | |
3277 | Hat() | |
3278 | end | |
3279 | ||
3280 | if Key == "p" and ATTACK == false then | |
3281 | RiftForm() | |
3282 | lightning.Enabled = true | |
3283 | eeeffecto.Enabled = true | |
3284 | SKILL2TEXT:remove() | |
3285 | SKILL5TEXT:remove() | |
3286 | SKILL9TEXT:remove() | |
3287 | SKILL2TEXT = CreateLabel(SKILL2FRAME, "[B] Rift Thunder", SKILLTEXTCOLOR2, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0, "Text 2") | |
3288 | SKILL5TEXT = CreateLabel(SKILL5FRAME, "[X] Rift Beam", SKILLTEXTCOLOR2, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0, "Text 5") | |
3289 | SKILL9TEXT = CreateLabel(SKILL9FRAME, "[E] Rift Star", SKILLTEXTCOLOR2, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0, "Text 9") | |
3290 | RiftWorld() | |
3291 | end | |
3292 | else | |
3293 | if Key == "p" and ATTACK == false then | |
3294 | TRUEFORM = false | |
3295 | lightning.Enabled = false | |
3296 | eeeffecto.Enabled = false | |
3297 | SKILL2TEXT:remove() | |
3298 | SKILL5TEXT:remove() | |
3299 | SKILL9TEXT:remove() | |
3300 | SKILL2TEXT = CreateLabel(SKILL2FRAME, "[B] Void Thunder", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0, "Text 2") | |
3301 | SKILL5TEXT = CreateLabel(SKILL5FRAME, "[X] Void Beam", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0, "Text 5") | |
3302 | SKILL9TEXT = CreateLabel(SKILL9FRAME, "[E] Void Star", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0, "Text 9") | |
3303 | local sillsky = Instance.new('Sky', game:GetService'Lighting') | |
3304 | back:remove() | |
3305 | sillsky:remove() | |
3306 | game.Lighting.FogEnd = 90000000 | |
3307 | CreateSound(464600985, Character, 99999, 0.8, false) | |
3308 | end | |
3309 | ||
3310 | if Key == "z" and ATTACK == false then | |
3311 | Warden_Zap() | |
3312 | end | |
3313 | ||
3314 | if Key == "f" and ATTACK == false then | |
3315 | Teleport() | |
3316 | end | |
3317 | ||
3318 | if Key == "g" and ATTACK == false then | |
3319 | Prison_Key() | |
3320 | end | |
3321 | ||
3322 | if Key == "e" and ATTACK == false then | |
3323 | Nuke() | |
3324 | end | |
3325 | ||
3326 | if Key == "q" and ATTACK == false then | |
3327 | VoidBox() | |
3328 | end | |
3329 | ||
3330 | if Key == "b" and ATTACK == false then | |
3331 | VoidThunder2() | |
3332 | end | |
3333 | ||
3334 | if Key == "c" and ATTACK == false then | |
3335 | Inferno_Ring() | |
3336 | end | |
3337 | ||
3338 | if Key == "v" and ATTACK == false then | |
3339 | Warden_Wall() | |
3340 | end | |
3341 | ||
3342 | if Key == "x" and ATTACK == false then | |
3343 | Beam() | |
3344 | end | |
3345 | ||
3346 | if Key == "t" and ATTACK == false then | |
3347 | Hat() | |
3348 | end | |
3349 | end | |
3350 | end | |
3351 | ||
3352 | function KeyUp(Key) | |
3353 | KEYHOLD = false | |
3354 | end | |
3355 | ||
3356 | Mouse.Button1Down:connect(function(NEWKEY) | |
3357 | MouseDown(NEWKEY) | |
3358 | end) | |
3359 | Mouse.Button1Up:connect(function(NEWKEY) | |
3360 | MouseUp(NEWKEY) | |
3361 | end) | |
3362 | Mouse.KeyDown:connect(function(NEWKEY) | |
3363 | KeyDown(NEWKEY) | |
3364 | end) | |
3365 | Mouse.KeyUp:connect(function(NEWKEY) | |
3366 | KeyUp(NEWKEY) | |
3367 | end) | |
3368 | ||
3369 | --//=================================\\ | |
3370 | --\\=================================// | |
3371 | ||
3372 | ||
3373 | function unanchor() | |
3374 | if UNANCHOR == true then | |
3375 | g = Character:GetChildren() | |
3376 | for i = 1, #g do | |
3377 | if g[i].ClassName == "Part" then | |
3378 | g[i].Anchored = false | |
3379 | end | |
3380 | end | |
3381 | end | |
3382 | end | |
3383 | ||
3384 | ||
3385 | ||
3386 | --//=================================\\ | |
3387 | --|| WRAP THE WHOLE SCRIPT UP | |
3388 | --\\=================================// | |
3389 | ||
3390 | local FF = IT("ForceField",Character) | |
3391 | FF.Visible = false | |
3392 | ||
3393 | Humanoid.Changed:connect(function(Jump) | |
3394 | if Jump == "Jump" and (Disable_Jump == true) then | |
3395 | Humanoid.Jump = false | |
3396 | end | |
3397 | end) | |
3398 | ||
3399 | while true do | |
3400 | Swait() | |
3401 | script.Parent = WEAPONGUI | |
3402 | Humanoid.Parent = Character | |
3403 | if Humanoid then | |
3404 | local IDLEANIMATION = Humanoid:LoadAnimation(ROBLOXIDLEANIMATION) | |
3405 | IDLEANIMATION:Play() | |
3406 | end | |
3407 | if ANIMATE.Parent == Character then | |
3408 | ANIMATE:Destroy() | |
3409 | end | |
3410 | SINE = SINE + CHANGE | |
3411 | local TORSOVELOCITY = (RootPart.Velocity * VT(1, 0, 1)).magnitude | |
3412 | local TORSOVERTICALVELOCITY = RootPart.Velocity.y | |
3413 | Humanoid.HipHeight = 1 | |
3414 | Humanoid.Name = "VoidWarden" | |
3415 | Humanoid.PlatformStand = false | |
3416 | if PLAYMAINANIM == true then | |
3417 | if TORSOVELOCITY < 1 then | |
3418 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
3419 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(15 - 6.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
3420 | RightShoulder.C0 = Clerp(RightShoulder.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)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed) | |
3421 | 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, 0.15 / Animation_Speed) | |
3422 | 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)), 0.15 / Animation_Speed) | |
3423 | 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) | |
3424 | elseif TORSOVELOCITY > 1 then | |
3425 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(5), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
3426 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(10 - 6.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
3427 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.25, 0.5 + 0.15 * COS(SINE / 12) - 0.05 * COS(SINE / 12), 0.5) * ANGLES(RAD(-35), RAD(0), RAD(-45)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed) | |
3428 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25, 0.5 + 0.15 * COS(SINE / 12) - 0.05 * COS(SINE / 12), 0.5) * ANGLES(RAD(-35), RAD(0), RAD(45)) * LEFTSHOULDERC0, 0.15 / Animation_Speed) | |
3429 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.5, -0.5) * ANGLES(RAD(0), RAD(65), RAD(0)) * ANGLES(RAD(-3), RAD(0), RAD(-20)), 0.15 / Animation_Speed) | |
3430 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(10)), 0.15 / Animation_Speed) | |
3431 | end | |
3432 | end | |
3433 | unanchor() | |
3434 | Humanoid.MaxHealth = 1.0E298 | |
3435 | Humanoid.Health = 1.0E298 | |
3436 | if Rooted == false then | |
3437 | Disable_Jump = false | |
3438 | Humanoid.WalkSpeed = Speed | |
3439 | elseif Rooted == true then | |
3440 | Disable_Jump = true | |
3441 | Humanoid.WalkSpeed = 0 | |
3442 | end | |
3443 | for _, c in pairs(Character:GetChildren()) do | |
3444 | if c.ClassName == "Part" and c.Name ~= "Eye" then | |
3445 | c.Material = "Neon" | |
3446 | if c:FindFirstChildOfClass("ParticleEmitter") then | |
3447 | c:FindFirstChildOfClass("ParticleEmitter"):remove() | |
3448 | end | |
3449 | c.Color = C3(1,1,1) | |
3450 | if c == Head then | |
3451 | if c:FindFirstChild("face") then | |
3452 | c.face:remove() | |
3453 | end | |
3454 | end | |
3455 | elseif c.ClassName == "CharacterMesh" or c.ClassName == "Accessory" or c.ClassName == "Hat" or c.Name == "Body Colors" then | |
3456 | c:remove() | |
3457 | elseif (c.ClassName == "Shirt" or c.ClassName == "Pants") and c.Name ~= "Cloth" then | |
3458 | c:remove() | |
3459 | end | |
3460 | end | |
3461 | sick.SoundId = "rbxassetid://1427189017" | |
3462 | sick.Looped = true | |
3463 | sick.Pitch = 1 | |
3464 | sick.Volume = 3 | |
3465 | sick:Resume() | |
3466 | sick.Parent = Torso | |
3467 | refit() | |
3468 | if Head:FindFirstChildOfClass("Sound") then | |
3469 | Head:FindFirstChildOfClass("Sound"):remove() | |
3470 | end | |
3471 | end | |
3472 | ||
3473 | if Humanoid.Health < 1.0E298 then | |
3474 | refit() | |
3475 | Humanoid.MaxHealth = 1.0E298 | |
3476 | Humanoid.Health = Humanoid.Health + 1.0E298 | |
3477 | ||
3478 | end | |
3479 | ||
3480 | ||
3481 | --//=================================\\ | |
3482 | --\\=================================// | |
3483 | ||
3484 | ||
3485 | ||
3486 | ||
3487 | ||
3488 | --//====================================================\\-- | |
3489 | --|| END OF SCRIPT | |
3490 | --\\====================================================//-- |