SHOW:
|
|
- or go back to the newest paste.
1 | --//====================================================\\-- | |
2 | --|| CREATED BY SHACKLUSTER | |
3 | --\\====================================================//-- | |
4 | ||
5 | print'Pandora Edit By UndeniableInfinity.' | |
6 | print'Script name: "INSANITY PANDORA"' | |
7 | print'Insanity Pandora is an edit which makes it more op.' | |
8 | print'The Upgrades are:' | |
9 | warn'More Magic Bullets, which is now named Bullet Hell.' | |
10 | warn'Much Bigger Impact Of "Warp Meteor" which is now named "Warp Apocalypse"' | |
11 | warn'"Times up", which is now named "Game Over" has now Ultra-Fast Wave/Pulse Killing.' | |
12 | warn'WAVES ARE NOW INSANELY FAST. at this point i do not know if anyone can touch you. except Ghosts.' | |
13 | warn'Chained Punch was only SLIGHTLY buffed.' | |
14 | warn'"Pandoras Box", which is now named "Insanity Box", has now;' | |
15 | warn'More "Ghosts" Spawn.' | |
16 | warn'Bigger Black Hole And Gravity Orb...thing.' | |
17 | warn'Bigger Box Explosion.' | |
18 | warn'Added Two Moves that came from OTHER Shackluster Scripts.' | |
19 | print'MOVES BELOW' | |
20 | warn'[Z] Bullet Hell' | |
21 | warn'[B] Game Over' | |
22 | warn'[V] Warp Apocalypse' | |
23 | warn'[C] Chained Punch' | |
24 | warn'[X] Insanity Box' | |
25 | warn'[Q] Isolation (Warden Lock)' | |
26 | warn'[E] Void Blast (Ravager Beam)' | |
27 | print'Welp, Thats it all covered up.' | |
28 | print'Credits to Shackluster, as there are some moves from other scripts he did too. this may be a Minor Mix, and kind of major edit.' | |
29 | ||
30 | wait(0.2) | |
31 | ||
32 | Player = game:GetService("Players").LocalPlayer | |
33 | PlayerGui = Player.PlayerGui | |
34 | Cam = workspace.CurrentCamera | |
35 | Backpack = Player.Backpack | |
36 | Character = Player.Character | |
37 | Humanoid = Character.Humanoid | |
38 | Mouse = Player:GetMouse() | |
39 | RootPart = Character["HumanoidRootPart"] | |
40 | Torso = Character["Torso"] | |
41 | Head = Character["Head"] | |
42 | RightArm = Character["Right Arm"] | |
43 | LeftArm = Character["Left Arm"] | |
44 | RightLeg = Character["Right Leg"] | |
45 | LeftLeg = Character["Left Leg"] | |
46 | RootJoint = RootPart["RootJoint"] | |
47 | Neck = Torso["Neck"] | |
48 | RightShoulder = Torso["Right Shoulder"] | |
49 | LeftShoulder = Torso["Left Shoulder"] | |
50 | RightHip = Torso["Right Hip"] | |
51 | LeftHip = Torso["Left Hip"] | |
52 | Character.Archivable = true | |
53 | Player:ClearCharacterAppearance() | |
54 | ||
55 | IT = Instance.new | |
56 | CF = CFrame.new | |
57 | VT = Vector3.new | |
58 | RAD = math.rad | |
59 | C3 = Color3.new | |
60 | UD2 = UDim2.new | |
61 | BRICKC = BrickColor.new | |
62 | ANGLES = CFrame.Angles | |
63 | EULER = CFrame.fromEulerAnglesXYZ | |
64 | COS = math.cos | |
65 | ACOS = math.acos | |
66 | SIN = math.sin | |
67 | ASIN = math.asin | |
68 | ABS = math.abs | |
69 | MRANDOM = math.random | |
70 | FLOOR = math.floor | |
71 | ||
72 | --//=================================\\ | |
73 | --|| USEFUL VALUES | |
74 | --\\=================================// | |
75 | ||
76 | Animation_Speed = 3 | |
77 | Frame_Speed = 1 / 60 -- (1 / 30) OR (1 / 60) | |
78 | local Speed = 20 | |
79 | local SIZE = 1.4 | |
80 | local ROOTC0 = CF(0, 0, 0) * ANGLES(RAD(-90), RAD(0), RAD(180)) | |
81 | local NECKC0 = CF(0, 1, 0) * ANGLES(RAD(-90), RAD(0), RAD(180)) | |
82 | local RIGHTSHOULDERC0 = CF(-0.5, 0, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) | |
83 | local LEFTSHOULDERC0 = CF(0.5, 0, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) | |
84 | local DAMAGEMULTIPLIER = 1 | |
85 | local ANIM = "Idle" | |
86 | local ATTACK = false | |
87 | local EQUIPPED = false | |
88 | local HOLD = false | |
89 | local COMBO = 1 | |
90 | local Rooted = false | |
91 | local SINE = 0 | |
92 | local KEYHOLD = false | |
93 | local CHANGE = 2 / Animation_Speed | |
94 | local WALKINGANIM = false | |
95 | local VALUE1 = false | |
96 | local VALUE2 = false | |
97 | local ROBLOXIDLEANIMATION = IT("Animation") | |
98 | ROBLOXIDLEANIMATION.Name = "Roblox Idle Animation" | |
99 | ROBLOXIDLEANIMATION.AnimationId = "http://www.roblox.com/asset/?id=180435571" | |
100 | local ATANIM = IT("Animation") | |
101 | ATANIM.Name = "Attack Animation" | |
102 | ATANIM.AnimationId = "http://www.roblox.com/asset/?id=74894663" | |
103 | --ROBLOXIDLEANIMATION.Parent = Humanoid | |
104 | local WEAPONGUI = IT("ScreenGui", PlayerGui) | |
105 | WEAPONGUI.Name = "Weapon GUI" | |
106 | local Weapon = IT("Model") | |
107 | Weapon.Name = "Adds" | |
108 | local Effects = IT("Folder", Weapon) | |
109 | Effects.Name = "Effects" | |
110 | local ANIMATOR = Humanoid.Animator | |
111 | local ANIMATE = Character.Animate | |
112 | local UNANCHOR = true | |
113 | local CLOCKLOOP = 0 | |
114 | local SONG = 1382488262 | |
115 | local CLOCKTARGET = nil | |
116 | local CLOCKSPEED = 50 | |
117 | script.Parent = WEAPONGUI | |
118 | local CLONE = Character:Clone() | |
119 | CLONE.Parent = nil | |
120 | Character.Archivable = false | |
121 | local sick = Instance.new("Sound",Torso) | |
122 | local HITPLAYERSOUNDS = {--[["199149137", "199149186", "199149221", "199149235", "199149269", "199149297"--]]"263032172", "263032182", "263032200", "263032221", "263032252", "263033191"} | |
123 | local HITARMORSOUNDS = {"199149321", "199149338", "199149367", "199149409", "199149452"} | |
124 | local HITWEAPONSOUNDS = {"199148971", "199149025", "199149072", "199149109", "199149119"} | |
125 | local HITBLOCKSOUNDS = {"199148933", "199148947"} | |
126 | ||
127 | --//=================================\\ | |
128 | --\\=================================// | |
129 | ||
130 | ||
131 | --//=================================\\ | |
132 | --|| SAZERENOS' ARTIFICIAL HEARTBEAT | |
133 | --\\=================================// | |
134 | ||
135 | ArtificialHB = Instance.new("BindableEvent", script) | |
136 | ArtificialHB.Name = "ArtificialHB" | |
137 | ||
138 | script:WaitForChild("ArtificialHB") | |
139 | ||
140 | frame = Frame_Speed | |
141 | tf = 0 | |
142 | allowframeloss = false | |
143 | tossremainder = false | |
144 | lastframe = tick() | |
145 | script.ArtificialHB:Fire() | |
146 | ||
147 | game:GetService("RunService").Heartbeat:connect(function(s, p) | |
148 | tf = tf + s | |
149 | if tf >= frame then | |
150 | if allowframeloss then | |
151 | script.ArtificialHB:Fire() | |
152 | lastframe = tick() | |
153 | else | |
154 | for i = 1, math.floor(tf / frame) do | |
155 | script.ArtificialHB:Fire() | |
156 | end | |
157 | lastframe = tick() | |
158 | end | |
159 | if tossremainder then | |
160 | tf = 0 | |
161 | else | |
162 | tf = tf - frame * math.floor(tf / frame) | |
163 | end | |
164 | end | |
165 | end) | |
166 | ||
167 | --//=================================\\ | |
168 | --\\=================================// | |
169 | ||
170 | --//=================================\\ | |
171 | --|| SOME FUNCTIONS | |
172 | --\\=================================// | |
173 | function RemoveOutlines(part) | |
174 | part.TopSurface, part.BottomSurface, part.LeftSurface, part.RightSurface, part.FrontSurface, part.BackSurface = 10, 10, 10, 10, 10, 10 | |
175 | end | |
176 | ||
177 | local RbxUtility = LoadLibrary("RbxUtility") | |
178 | local Create = RbxUtility.Create | |
179 | ||
180 | ||
181 | CFuncs = { | |
182 | Part = { | |
183 | Create = function(Parent, Material, Reflectance, Transparency, BColor, Name, Size) | |
184 | local Part = Create("Part"){ | |
185 | Parent = Parent, | |
186 | Reflectance = Reflectance, | |
187 | Transparency = Transparency, | |
188 | CanCollide = false, | |
189 | Locked = true, | |
190 | BrickColor = BrickColor.new(tostring(BColor)), | |
191 | Name = Name, | |
192 | Size = Size, | |
193 | Material = Material, | |
194 | } | |
195 | RemoveOutlines(Part) | |
196 | if Size == Vector3.new() then | |
197 | Part.Size = Vector3.new(0.2, 0.2, 0.2) | |
198 | else | |
199 | Part.Size = Size | |
200 | end | |
201 | return Part | |
202 | end; | |
203 | }; | |
204 | ||
205 | Mesh = { | |
206 | Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale) | |
207 | local Msh = Create(Mesh){ | |
208 | Parent = Part, | |
209 | Offset = OffSet, | |
210 | Scale = Scale, | |
211 | } | |
212 | if Mesh == "SpecialMesh" then | |
213 | Msh.MeshType = MeshType | |
214 | Msh.MeshId = MeshId | |
215 | end | |
216 | return Msh | |
217 | end; | |
218 | }; | |
219 | ||
220 | Weld = { | |
221 | Create = function(Parent, Part0, Part1, C0, C1) | |
222 | local Weld = Create("Weld"){ | |
223 | Parent = Parent, | |
224 | Part0 = Part0, | |
225 | Part1 = Part1, | |
226 | C0 = C0, | |
227 | C1 = C1, | |
228 | } | |
229 | return Weld | |
230 | end; | |
231 | }; | |
232 | ||
233 | Sound = { | |
234 | Create = function(id, par, vol, pit) | |
235 | local Sound = Create("Sound"){ | |
236 | Volume = vol, | |
237 | Pitch = pit or 1, | |
238 | Name = "aa", | |
239 | SoundId = "rbxassetid://" .. id, | |
240 | Parent = par or workspace, | |
241 | } | |
242 | Sound:play() | |
243 | return Sound | |
244 | end; | |
245 | }; | |
246 | ||
247 | Decal = { | |
248 | Create = function(Color, Texture, Transparency, Name, Parent) | |
249 | local Decal = Create("Decal"){ | |
250 | Color3 = Color, | |
251 | Texture = "rbxassetid://" .. Texture, | |
252 | Transparency = Transparency, | |
253 | Name = Name, | |
254 | Parent = Parent, | |
255 | } | |
256 | return Decal | |
257 | end; | |
258 | }; | |
259 | ||
260 | BillboardGui = { | |
261 | Create = function(Parent, Image, Position, Size) | |
262 | local BillPar = CFuncs.Part.Create(Parent, "SmoothPlastic", 0, 1, BrickColor.new("Black"), "BillboardGuiPart", Vector3.new(1, 1, 1)) | |
263 | BillPar.CFrame = CFrame.new(Position) | |
264 | local Bill = Create("BillboardGui"){ | |
265 | Parent = BillPar, | |
266 | Adornee = BillPar, | |
267 | Size = UDim2.new(1, 0, 1, 0), | |
268 | SizeOffset = Vector2.new(Size, Size), | |
269 | } | |
270 | local d = Create("ImageLabel", Bill){ | |
271 | Parent = Bill, | |
272 | BackgroundTransparency = 1, | |
273 | Size = UDim2.new(1, 0, 1, 0), | |
274 | Image = "rbxassetid://" .. Image, | |
275 | } | |
276 | return BillPar | |
277 | end | |
278 | }; | |
279 | ||
280 | ParticleEmitter = { | |
281 | Create = function(Parent, Color1, Color2, LightEmission, Size, Texture, Transparency, ZOffset, Accel, Drag, LockedToPart, VelocityInheritance, EmissionDirection, Enabled, LifeTime, Rate, Rotation, RotSpeed, Speed, VelocitySpread) | |
282 | local Particle = Create("ParticleEmitter"){ | |
283 | Parent = Parent, | |
284 | Color = Color3.new(0,0,0), | |
285 | LightEmission = LightEmission, | |
286 | Size = Size, | |
287 | Texture = Texture, | |
288 | Transparency = Transparency, | |
289 | ZOffset = ZOffset, | |
290 | Acceleration = Accel, | |
291 | Drag = Drag, | |
292 | LockedToPart = LockedToPart, | |
293 | VelocityInheritance = VelocityInheritance, | |
294 | EmissionDirection = EmissionDirection, | |
295 | Enabled = Enabled, | |
296 | Lifetime = LifeTime, | |
297 | Rate = Rate, | |
298 | Rotation = Rotation, | |
299 | RotSpeed = RotSpeed, | |
300 | Speed = Speed, | |
301 | VelocitySpread = VelocitySpread, | |
302 | } | |
303 | return Particle | |
304 | end; | |
305 | }; | |
306 | ||
307 | CreateTemplate = { | |
308 | ||
309 | }; | |
310 | } | |
311 | ||
312 | function MagnitudeDamage(Part, Magnitude, MinimumDamage, MaximumDamage, KnockBack, Type, HitSound, HitPitch) | |
313 | for _, c in pairs(workspace:children()) do | |
314 | local hum = c:findFirstChildOfClass("Humanoid") | |
315 | if hum ~= nil then | |
316 | local head = c:findFirstChild("Torso") | |
317 | if head ~= nil then | |
318 | local targ = head.Position - Part.Position | |
319 | local mag = targ.magnitude | |
320 | if mag <= Magnitude and c.Name ~= Player.Name then | |
321 | Damage(head, head, MinimumDamage, MaximumDamage, KnockBack, Type, RootPart, .1, "rbxassetid://" .. HitSound, HitPitch) | |
322 | Effects.Lightning.Create(Part.Position, head.Position, 2, 5, "Really black", 1, 0, 3) | |
323 | end | |
324 | end | |
325 | end | |
326 | end | |
327 | end | |
328 | ||
329 | ||
330 | function PlayAnimationFromTable(table, speed, bool) | |
331 | RootJoint.C0 = clerp(RootJoint.C0, table[1], speed) | |
332 | Torso.Neck.C0 = clerp(Torso.Neck.C0, table[2], speed) | |
333 | RW.C0 = clerp(RW.C0, table[3], speed) | |
334 | LW.C0 = clerp(LW.C0, table[4], speed) | |
335 | RH.C0 = clerp(RH.C0, table[5], speed) | |
336 | LH.C0 = clerp(LH.C0, table[6], speed) | |
337 | if bool == true then | |
338 | if resetc1 == false then | |
339 | resetc1 = true | |
340 | RootJoint.C1 = RootJoint.C1 | |
341 | Torso.Neck.C1 = Torso.Neck.C1 | |
342 | RW.C1 = rarmc1 | |
343 | LW.C1 = larmc1 | |
344 | RH.C1 = rlegc1 | |
345 | LH.C1 = llegc1 | |
346 | end | |
347 | end | |
348 | end | |
349 | ||
350 | ||
351 | function Reappear() | |
352 | for _, c in pairs(Character:GetChildren()) do | |
353 | if c.ClassName == "Part" and c.Name ~= "HumanoidRootPart" then | |
354 | c.Transparency = 0 | |
355 | if c:FindFirstChildOfClass("Decal") then | |
356 | c:FindFirstChildOfClass("Decal").Transparency = 0 | |
357 | end | |
358 | if c:FindFirstChildOfClass("ParticleEmitter") then | |
359 | c:FindFirstChildOfClass("ParticleEmitter").Enabled = true | |
360 | end | |
361 | elseif c.ClassName == "Accessory" then | |
362 | c.Handle.Transparency = 0 | |
363 | if c.Handle:FindFirstChildOfClass("ParticleEmitter") then | |
364 | c.Handle:FindFirstChildOfClass("ParticleEmitter").Enabled = true | |
365 | end | |
366 | end | |
367 | end | |
368 | end | |
369 | ||
370 | function CreateDebreeRing(FLOOR,POSITION,SIZE,BLOCKSIZE,SWAIT) | |
371 | if FLOOR ~= nil then | |
372 | coroutine.resume(coroutine.create(function() | |
373 | local PART = CreatePart(3, Effects, "Plastic", 0, 1, "Really red", "DebreeCenter", VT(0,0,0)) | |
374 | PART.CFrame = CF(POSITION) | |
375 | for i = 1, 45 do | |
376 | local RingPiece = CreatePart(3, Effects, "Plastic", 0, 0, "Really red", "DebreePart", BLOCKSIZE) | |
377 | RingPiece.Material = FLOOR.Material | |
378 | RingPiece.Color = FLOOR.Color | |
379 | RingPiece.CFrame = PART.CFrame * ANGLES(RAD(0), RAD(i*8), RAD(0)) * CF(SIZE*4, 0, 0) * ANGLES(RAD(MRANDOM(-360,360)),RAD(MRANDOM(-360,360)),RAD(MRANDOM(-360,360))) | |
380 | Debris:AddItem(RingPiece,SWAIT) | |
381 | end | |
382 | PART:remove() | |
383 | end)) | |
384 | end | |
385 | end | |
386 | ||
387 | function CreateRing(SIZE,DOESROT,ROT,WAIT,CFRAME,COLOR,GROW) | |
388 | local wave = CreatePart(3, Effects, "Neon", 0, 0.5, BRICKC(COLOR), "Effect", VT(0,0,0)) | |
389 | local mesh = IT("SpecialMesh",wave) | |
390 | mesh.MeshType = "FileMesh" | |
391 | mesh.MeshId = "http://www.roblox.com/asset/?id=3270017" | |
392 | mesh.Scale = SIZE | |
393 | mesh.Offset = VT(0,0,0) | |
394 | wave.CFrame = CFRAME | |
395 | coroutine.resume(coroutine.create(function(PART) | |
396 | for i = 1, WAIT do | |
397 | Swait() | |
398 | mesh.Scale = mesh.Scale + GROW | |
399 | if DOESROT == true then | |
400 | wave.CFrame = wave.CFrame * CFrame.fromEulerAnglesXYZ(0,ROT,0) | |
401 | end | |
402 | wave.Transparency = wave.Transparency + (0.5/WAIT) | |
403 | if wave.Transparency > 0.99 then | |
404 | wave:remove() | |
405 | end | |
406 | end | |
407 | end)) | |
408 | end | |
409 | ||
410 | function VanishPlayer() | |
411 | for _, c in pairs(Character:GetChildren()) do | |
412 | if c.ClassName == "Part" then | |
413 | c.Transparency = 1 | |
414 | if c:FindFirstChildOfClass("Decal") then | |
415 | c:FindFirstChildOfClass("Decal").Transparency = 1 | |
416 | end | |
417 | if c:FindFirstChildOfClass("ParticleEmitter") then | |
418 | c:FindFirstChildOfClass("ParticleEmitter").Enabled = false | |
419 | end | |
420 | elseif c.ClassName == "Accessory" then | |
421 | c.Handle.Transparency = 1 | |
422 | if c.Handle:FindFirstChildOfClass("ParticleEmitter") then | |
423 | c.Handle:FindFirstChildOfClass("ParticleEmitter").Enabled = false | |
424 | end | |
425 | end | |
426 | end | |
427 | end | |
428 | ||
429 | function Raycast(POSITION, DIRECTION, RANGE, IGNOREDECENDANTS) | |
430 | return workspace:FindPartOnRay(Ray.new(POSITION, DIRECTION.unit * RANGE), IGNOREDECENDANTS) | |
431 | end | |
432 | ||
433 | function PositiveAngle(NUMBER) | |
434 | if NUMBER >= 0 then | |
435 | NUMBER = 0 | |
436 | end | |
437 | return NUMBER | |
438 | end | |
439 | ||
440 | function NegativeAngle(NUMBER) | |
441 | if NUMBER <= 0 then | |
442 | NUMBER = 0 | |
443 | end | |
444 | return NUMBER | |
445 | end | |
446 | ||
447 | function Swait(NUMBER) | |
448 | if NUMBER == 0 or NUMBER == nil then | |
449 | ArtificialHB.Event:wait() | |
450 | else | |
451 | for i = 1, NUMBER do | |
452 | ArtificialHB.Event:wait() | |
453 | end | |
454 | end | |
455 | end | |
456 | ||
457 | function CreateMesh(MESH, PARENT, MESHTYPE, MESHID, TEXTUREID, SCALE, OFFSET) | |
458 | local NEWMESH = IT(MESH) | |
459 | if MESH == "SpecialMesh" then | |
460 | NEWMESH.MeshType = MESHTYPE | |
461 | if MESHID ~= "nil" and MESHID ~= "" then | |
462 | NEWMESH.MeshId = "http://www.roblox.com/asset/?id="..MESHID | |
463 | end | |
464 | if TEXTUREID ~= "nil" and TEXTUREID ~= "" then | |
465 | NEWMESH.TextureId = "http://www.roblox.com/asset/?id="..TEXTUREID | |
466 | end | |
467 | end | |
468 | NEWMESH.Offset = OFFSET or VT(0, 0, 0) | |
469 | NEWMESH.Scale = SCALE | |
470 | NEWMESH.Parent = PARENT | |
471 | return NEWMESH | |
472 | end | |
473 | ||
474 | function CreatePart(FORMFACTOR, PARENT, MATERIAL, REFLECTANCE, TRANSPARENCY, BRICKCOLOR, NAME, SIZE, ANCHOR) | |
475 | local NEWPART = IT("Part") | |
476 | NEWPART.formFactor = FORMFACTOR | |
477 | NEWPART.Reflectance = REFLECTANCE | |
478 | NEWPART.Transparency = TRANSPARENCY | |
479 | NEWPART.CanCollide = false | |
480 | NEWPART.Locked = true | |
481 | NEWPART.Anchored = true | |
482 | if ANCHOR == false then | |
483 | NEWPART.Anchored = false | |
484 | end | |
485 | NEWPART.BrickColor = BRICKC(tostring(BRICKCOLOR)) | |
486 | NEWPART.Name = NAME | |
487 | NEWPART.Size = SIZE | |
488 | NEWPART.Position = Torso.Position | |
489 | NEWPART.Material = MATERIAL | |
490 | NEWPART:BreakJoints() | |
491 | NEWPART.Parent = PARENT | |
492 | return NEWPART | |
493 | end | |
494 | ||
495 | local function weldBetween(a, b) | |
496 | local weldd = Instance.new("ManualWeld") | |
497 | weldd.Part0 = a | |
498 | weldd.Part1 = b | |
499 | weldd.C0 = CFrame.new() | |
500 | weldd.C1 = b.CFrame:inverse() * a.CFrame | |
501 | weldd.Parent = a | |
502 | return weldd | |
503 | end | |
504 | ||
505 | ||
506 | function QuaternionFromCFrame(cf) | |
507 | local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components() | |
508 | local trace = m00 + m11 + m22 | |
509 | if trace > 0 then | |
510 | local s = math.sqrt(1 + trace) | |
511 | local recip = 0.5 / s | |
512 | return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5 | |
513 | else | |
514 | local i = 0 | |
515 | if m11 > m00 then | |
516 | i = 1 | |
517 | end | |
518 | if m22 > (i == 0 and m00 or m11) then | |
519 | i = 2 | |
520 | end | |
521 | if i == 0 then | |
522 | local s = math.sqrt(m00 - m11 - m22 + 1) | |
523 | local recip = 0.5 / s | |
524 | return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip | |
525 | elseif i == 1 then | |
526 | local s = math.sqrt(m11 - m22 - m00 + 1) | |
527 | local recip = 0.5 / s | |
528 | return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip | |
529 | elseif i == 2 then | |
530 | local s = math.sqrt(m22 - m00 - m11 + 1) | |
531 | local recip = 0.5 / s return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip | |
532 | end | |
533 | end | |
534 | end | |
535 | ||
536 | function QuaternionToCFrame(px, py, pz, x, y, z, w) | |
537 | local xs, ys, zs = x + x, y + y, z + z | |
538 | local wx, wy, wz = w * xs, w * ys, w * zs | |
539 | local xx = x * xs | |
540 | local xy = x * ys | |
541 | local xz = x * zs | |
542 | local yy = y * ys | |
543 | local yz = y * zs | |
544 | local zz = z * zs | |
545 | 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)) | |
546 | end | |
547 | ||
548 | function QuaternionSlerp(a, b, t) | |
549 | local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4] | |
550 | local startInterp, finishInterp; | |
551 | if cosTheta >= 0.0001 then | |
552 | if (1 - cosTheta) > 0.0001 then | |
553 | local theta = ACOS(cosTheta) | |
554 | local invSinTheta = 1 / SIN(theta) | |
555 | startInterp = SIN((1 - t) * theta) * invSinTheta | |
556 | finishInterp = SIN(t * theta) * invSinTheta | |
557 | else | |
558 | startInterp = 1 - t | |
559 | finishInterp = t | |
560 | end | |
561 | else | |
562 | if (1 + cosTheta) > 0.0001 then | |
563 | local theta = ACOS(-cosTheta) | |
564 | local invSinTheta = 1 / SIN(theta) | |
565 | startInterp = SIN((t - 1) * theta) * invSinTheta | |
566 | finishInterp = SIN(t * theta) * invSinTheta | |
567 | else | |
568 | startInterp = t - 1 | |
569 | finishInterp = t | |
570 | end | |
571 | end | |
572 | 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 | |
573 | end | |
574 | ||
575 | function Clerp(a, b, t) | |
576 | local qa = {QuaternionFromCFrame(a)} | |
577 | local qb = {QuaternionFromCFrame(b)} | |
578 | local ax, ay, az = a.x, a.y, a.z | |
579 | local bx, by, bz = b.x, b.y, b.z | |
580 | local _t = 1 - t | |
581 | return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t)) | |
582 | end | |
583 | ||
584 | function CreateFrame(PARENT, TRANSPARENCY, BORDERSIZEPIXEL, POSITION, SIZE, COLOR, BORDERCOLOR, NAME) | |
585 | local frame = IT("Frame") | |
586 | frame.BackgroundTransparency = TRANSPARENCY | |
587 | frame.BorderSizePixel = BORDERSIZEPIXEL | |
588 | frame.Position = POSITION | |
589 | frame.Size = SIZE | |
590 | frame.BackgroundColor3 = COLOR | |
591 | frame.BorderColor3 = BORDERCOLOR | |
592 | frame.Name = NAME | |
593 | frame.Parent = PARENT | |
594 | return frame | |
595 | end | |
596 | ||
597 | function CreateLabel(PARENT, TEXT, TEXTCOLOR, TEXTFONTSIZE, TEXTFONT, TRANSPARENCY, BORDERSIZEPIXEL, STROKETRANSPARENCY, NAME) | |
598 | local label = IT("TextLabel") | |
599 | label.BackgroundTransparency = 1 | |
600 | label.Size = UD2(1, 0, 1, 0) | |
601 | label.Position = UD2(0, 0, 0, 0) | |
602 | label.TextColor3 = TEXTCOLOR | |
603 | label.TextStrokeTransparency = STROKETRANSPARENCY | |
604 | label.TextTransparency = TRANSPARENCY | |
605 | label.FontSize = TEXTFONTSIZE | |
606 | label.Font = TEXTFONT | |
607 | label.BorderSizePixel = BORDERSIZEPIXEL | |
608 | label.TextStrokeColor3 = C3(1,1,1) | |
609 | label.TextScaled = false | |
610 | label.Text = TEXT | |
611 | label.Name = NAME | |
612 | label.Parent = PARENT | |
613 | return label | |
614 | end | |
615 | ||
616 | function NoOutlines(PART) | |
617 | PART.TopSurface, PART.BottomSurface, PART.LeftSurface, PART.RightSurface, PART.FrontSurface, PART.BackSurface = 10, 10, 10, 10, 10, 10 | |
618 | end | |
619 | ||
620 | function CreateWeldOrSnapOrMotor(TYPE, PARENT, PART0, PART1, C0, C1) | |
621 | local NEWWELD = IT(TYPE) | |
622 | NEWWELD.Part0 = PART0 | |
623 | NEWWELD.Part1 = PART1 | |
624 | NEWWELD.C0 = C0 | |
625 | NEWWELD.C1 = C1 | |
626 | NEWWELD.Parent = PARENT | |
627 | return NEWWELD | |
628 | end | |
629 | ||
630 | local S = IT("Sound") | |
631 | function CreateSound(ID, PARENT, VOLUME, PITCH, DOESLOOP) | |
632 | local NEWSOUND = nil | |
633 | coroutine.resume(coroutine.create(function() | |
634 | NEWSOUND = S:Clone() | |
635 | NEWSOUND.Parent = PARENT | |
636 | NEWSOUND.Volume = VOLUME | |
637 | NEWSOUND.Pitch = PITCH | |
638 | NEWSOUND.SoundId = "http://www.roblox.com/asset/?id="..ID | |
639 | NEWSOUND:play() | |
640 | if DOESLOOP == true then | |
641 | NEWSOUND.Looped = true | |
642 | else | |
643 | repeat wait(1) until NEWSOUND.Playing == false | |
644 | NEWSOUND:remove() | |
645 | end | |
646 | end)) | |
647 | return NEWSOUND | |
648 | end | |
649 | ||
650 | function CFrameFromTopBack(at, top, back) | |
651 | local right = top:Cross(back) | |
652 | 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) | |
653 | end | |
654 | ||
655 | --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}) | |
656 | function WACKYEFFECT(Table) | |
657 | local TYPE = (Table.EffectType or "Sphere") | |
658 | local SIZE = (Table.Size or VT(1,1,1)) | |
659 | local ENDSIZE = (Table.Size2 or VT(0,0,0)) | |
660 | local TRANSPARENCY = (Table.Transparency or 0) | |
661 | local ENDTRANSPARENCY = (Table.Transparency2 or 1) | |
662 | local CFRAME = (Table.CFrame or Torso.CFrame) | |
663 | local MOVEDIRECTION = (Table.MoveToPos or nil) | |
664 | local ROTATION1 = (Table.RotationX or 0) | |
665 | local ROTATION2 = (Table.RotationY or 0) | |
666 | local ROTATION3 = (Table.RotationZ or 0) | |
667 | local MATERIAL = (Table.Material or "Neon") | |
668 | local COLOR = (Table.Color or C3(1,1,1)) | |
669 | local TIME = (Table.Time or 45) | |
670 | local SOUNDID = (Table.SoundID or nil) | |
671 | local SOUNDPITCH = (Table.SoundPitch or nil) | |
672 | local SOUNDVOLUME = (Table.SoundVolume or nil) | |
673 | coroutine.resume(coroutine.create(function() | |
674 | local PLAYSSOUND = false | |
675 | local SOUND = nil | |
676 | local EFFECT = CreatePart(3, Effects, MATERIAL, 0, TRANSPARENCY, BRICKC("Pearl"), "Effect", VT(1,1,1), true) | |
677 | if SOUNDID ~= nil and SOUNDPITCH ~= nil and SOUNDVOLUME ~= nil then | |
678 | PLAYSSOUND = true | |
679 | SOUND = CreateSound(SOUNDID, EFFECT, SOUNDVOLUME, SOUNDPITCH, false) | |
680 | end | |
681 | EFFECT.Color = COLOR | |
682 | local MSH = nil | |
683 | if TYPE == "Sphere" then | |
684 | MSH = CreateMesh("SpecialMesh", EFFECT, "Sphere", "", "", SIZE, VT(0,0,0)) | |
685 | elseif TYPE == "Block" then | |
686 | MSH = IT("BlockMesh",EFFECT) | |
687 | MSH.Scale = VT(SIZE.X,SIZE.X,SIZE.X) | |
688 | elseif TYPE == "Wave" then | |
689 | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "20329976", "", SIZE, VT(0,0,-SIZE.X/8)) | |
690 | elseif TYPE == "Ring" then | |
691 | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "559831844", "", VT(SIZE.X,SIZE.X,0.1), VT(0,0,0)) | |
692 | elseif TYPE == "Slash" then | |
693 | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662586858", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0)) | |
694 | elseif TYPE == "Round Slash" then | |
695 | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662585058", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0)) | |
696 | elseif TYPE == "Swirl" then | |
697 | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "1051557", "", SIZE, VT(0,0,0)) | |
698 | elseif TYPE == "Skull" then | |
699 | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "4770583", "", SIZE, VT(0,0,0)) | |
700 | elseif TYPE == "Crystal" then | |
701 | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "9756362", "", SIZE, VT(0,0,0)) | |
702 | end | |
703 | if MSH ~= nil then | |
704 | local MOVESPEED = nil | |
705 | if MOVEDIRECTION ~= nil then | |
706 | MOVESPEED = (CFRAME.p - MOVEDIRECTION).Magnitude/TIME | |
707 | end | |
708 | local GROWTH = SIZE - ENDSIZE | |
709 | local TRANS = TRANSPARENCY - ENDTRANSPARENCY | |
710 | if TYPE == "Block" then | |
711 | EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360))) | |
712 | else | |
713 | EFFECT.CFrame = CFRAME | |
714 | end | |
715 | for LOOP = 1, TIME+1 do | |
716 | Swait() | |
717 | MSH.Scale = MSH.Scale - GROWTH/TIME | |
718 | if TYPE == "Wave" then | |
719 | MSH.Offset = VT(0,0,-MSH.Scale.X/8) | |
720 | end | |
721 | EFFECT.Transparency = EFFECT.Transparency - TRANS/TIME | |
722 | if TYPE == "Block" then | |
723 | EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360))) | |
724 | else | |
725 | EFFECT.CFrame = EFFECT.CFrame*ANGLES(RAD(ROTATION1),RAD(ROTATION2),RAD(ROTATION3)) | |
726 | end | |
727 | if MOVEDIRECTION ~= nil then | |
728 | local ORI = EFFECT.Orientation | |
729 | EFFECT.CFrame = CF(EFFECT.Position,MOVEDIRECTION)*CF(0,0,-MOVESPEED) | |
730 | EFFECT.Orientation = ORI | |
731 | end | |
732 | end | |
733 | if PLAYSSOUND == false then | |
734 | EFFECT:remove() | |
735 | else | |
736 | repeat Swait() until SOUND.Playing == false | |
737 | EFFECT:remove() | |
738 | end | |
739 | else | |
740 | if PLAYSSOUND == false then | |
741 | EFFECT:remove() | |
742 | else | |
743 | repeat Swait() until SOUND.Playing == false | |
744 | EFFECT:remove() | |
745 | end | |
746 | end | |
747 | end)) | |
748 | end | |
749 | function killnearest(position,range,maxstrength) | |
750 | for i,v in ipairs(workspace:GetChildren()) do | |
751 | local body = v:GetChildren() | |
752 | for part = 1, #body do | |
753 | if((body[part].ClassName == "Part" or body[part].ClassName == "MeshPart") and v ~= Character) then | |
754 | if(body[part].Position - position).Magnitude < range then | |
755 | if v.ClassName == "Model" then | |
756 | v:BreakJoints() | |
757 | end | |
758 | --table.insert(Effects2,{body[part],"Disappear",0.02,2,2,2,2}) | |
759 | body[part].Velocity = CFrame.new(position,body[part].Position).lookVector*5*maxstrength | |
760 | end | |
761 | end | |
762 | end | |
763 | if v.ClassName == "Part" then | |
764 | if v.Anchored == false and (v.Position - position).Magnitude < range then | |
765 | --table.insert(Effects2,{v,"Disappear",0.02,2,2,2,2}) | |
766 | v.Velocity = CFrame.new(position,v.Position).lookVector*5*maxstrength | |
767 | end | |
768 | end | |
769 | end | |
770 | end | |
771 | ||
772 | function CheckTableForString(Table, String) | |
773 | for i, v in pairs(Table) do | |
774 | if string.find(string.lower(String), string.lower(v)) then | |
775 | return true | |
776 | end | |
777 | end | |
778 | return false | |
779 | end | |
780 | ||
781 | function CheckIntangible(Hit) | |
782 | local ProjectileNames = {"Water", "Arrow", "Projectile", "Effect", "Rail", "Lightning", "Bullet"} | |
783 | if Hit and Hit.Parent then | |
784 | if ((not Hit.CanCollide or CheckTableForString(ProjectileNames, Hit.Name)) and not Hit.Parent:FindFirstChild("Humanoid")) then | |
785 | return true | |
786 | end | |
787 | end | |
788 | return false | |
789 | end | |
790 | ||
791 | function MakeForm(PART,TYPE) | |
792 | if TYPE == "Cyl" then | |
793 | local MSH = IT("CylinderMesh",PART) | |
794 | elseif TYPE == "Ball" then | |
795 | local MSH = IT("SpecialMesh",PART) | |
796 | MSH.MeshType = "Sphere" | |
797 | elseif TYPE == "Wedge" then | |
798 | local MSH = IT("SpecialMesh",PART) | |
799 | MSH.MeshType = "Wedge" | |
800 | end | |
801 | end | |
802 | ||
803 | Debris = game:GetService("Debris") | |
804 | ||
805 | function CastProperRay(StartPos, EndPos, Distance, Ignore) | |
806 | local DIRECTION = CF(StartPos,EndPos).lookVector | |
807 | return Raycast(StartPos, DIRECTION, Distance, Ignore) | |
808 | end | |
809 | ||
810 | function turnto(position) | |
811 | RootPart.CFrame=CFrame.new(RootPart.CFrame.p,VT(position.X,RootPart.Position.Y,position.Z)) * CFrame.new(0, 0, 0) | |
812 | end | |
813 | ||
814 | function Pose(WhichPose,Speed,Time,Magic,Gyro,Tors) | |
815 | PLAYMAINANIM = false | |
816 | if WhichPose == "Cast1" then | |
817 | for i=0, Time, 0.1 / Animation_Speed do | |
818 | Swait() | |
819 | if Magic == true then | |
820 | 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"Lavender".Color, SoundID = nil, SoundPitch = nil, SoundVolume = nil}) | |
821 | end | |
822 | if Gyro ~= nil and Gyro ~= false then | |
823 | Gyro.cframe = CF(RootPart.Position,Mouse.Hit.p) | |
824 | end | |
825 | 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) | |
826 | 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) | |
827 | 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) | |
828 | 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) | |
829 | 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) | |
830 | 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) | |
831 | end | |
832 | elseif WhichPose == "Cast2" then | |
833 | for i=0, Time, 0.1 / Animation_Speed do | |
834 | Swait() | |
835 | if Magic == true then | |
836 | 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"Lavender".Color, SoundID = nil, SoundPitch = nil, SoundVolume = nil}) | |
837 | 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"Lavender".Color, SoundID = nil, SoundPitch = nil, SoundVolume = nil}) | |
838 | end | |
839 | if Gyro ~= nil and Gyro ~= false then | |
840 | Gyro.cframe = CF(RootPart.Position,Mouse.Hit.p) | |
841 | end | |
842 | 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) | |
843 | 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) | |
844 | 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) | |
845 | 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) | |
846 | 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) | |
847 | 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) | |
848 | end | |
849 | elseif WhichPose == "RightArmUp" then | |
850 | for i=0, Time, 0.1 / Animation_Speed do | |
851 | Swait() | |
852 | if Magic == true then | |
853 | 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"Lavender".Color, SoundID = nil, SoundPitch = nil, SoundVolume = nil}) | |
854 | end | |
855 | if Gyro ~= nil and Gyro ~= false then | |
856 | Gyro.cframe = CF(RootPart.Position,Mouse.Hit.p) | |
857 | end | |
858 | 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) | |
859 | 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) | |
860 | 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) | |
861 | 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) | |
862 | 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) | |
863 | 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) | |
864 | end | |
865 | elseif WhichPose == "Taunt" then | |
866 | for i=0, Time, 0.1 / Animation_Speed do | |
867 | Swait() | |
868 | 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) | |
869 | 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) | |
870 | 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) | |
871 | 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) | |
872 | 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) | |
873 | 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) | |
874 | end | |
875 | HATWELD.Part0 = RightArm | |
876 | HATWELD.C0 = CF(0,-1.1,-0.4) * ANGLES(RAD(0), RAD(0), RAD(180)) * ANGLES(RAD(-20), RAD(0), RAD(0)) | |
877 | CreateSound(221057812,Torso,10,1,false) | |
878 | for i=0, Time*2, 0.1 / Animation_Speed do | |
879 | Swait() | |
880 | 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) | |
881 | 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) | |
882 | 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) | |
883 | 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) | |
884 | 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) | |
885 | 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) | |
886 | end | |
887 | for i=0, Time, 0.1 / Animation_Speed do | |
888 | Swait() | |
889 | 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) | |
890 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(5), RAD(0), RAD(0)), Speed / Animation_Speed) | |
891 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.35, 0.65, -0.5) * ANGLES(RAD(175), RAD(0), RAD(-35)) * RIGHTSHOULDERC0, Speed / Animation_Speed) | |
892 | 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) | |
893 | 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) | |
894 | 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) | |
895 | 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) | |
896 | end | |
897 | HATWELD.Part0 = Head | |
898 | HATWELD.C0 = CF(0,0.35,0) | |
899 | elseif WhichPose == "Prepare key" then | |
900 | for i=0, Time, 0.1 / Animation_Speed do | |
901 | Swait() | |
902 | if Gyro ~= nil and Gyro ~= false then | |
903 | Gyro.cframe = CF(RootPart.Position,Tors.Position) | |
904 | end | |
905 | 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) | |
906 | 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) | |
907 | 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) | |
908 | 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) | |
909 | 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) | |
910 | 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) | |
911 | end | |
912 | elseif WhichPose == "Turn key" then | |
913 | for i=0, Time, 0.1 / Animation_Speed do | |
914 | Swait() | |
915 | if Gyro ~= nil and Gyro ~= false then | |
916 | Gyro.cframe = CF(RootPart.Position,Tors.Position) | |
917 | end | |
918 | 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) | |
919 | 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) | |
920 | 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) | |
921 | 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) | |
922 | 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) | |
923 | 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) | |
924 | end | |
925 | end | |
926 | PLAYMAINANIM = true | |
927 | end | |
928 | ||
929 | --Lightning({Color = C3(1,1,1), Start = Torso.Position, End = Mouse.Hit.p, SegmentL = 2, Thickness = 0.1, DoesFade = false, Ignore = Character, MaxDist = 400, Branches = false}) | |
930 | function Lightning(Table) | |
931 | local Color = Table.Color or C3(1,1,1) | |
932 | local StartPos = Table.Start or Torso.Position | |
933 | local EndPos = Table.End or Mouse.Hit.p | |
934 | local SegmentLength = Table.SegmentL or 2 | |
935 | local Thickness = Table.Thickness or 0.1 | |
936 | local Dissapear = Table.DoesFade or false | |
937 | local Parent = Table.Ignore or Character | |
938 | local MaxDist = Table.MaxDist or 400 | |
939 | local Branches = Table.Branches or false | |
940 | local HIT,HITPOS = CastProperRay(StartPos, EndPos, MaxDist, Parent) | |
941 | local DISTANCE = math.ceil((StartPos - HITPOS).Magnitude/SegmentLength) | |
942 | local LIGHTNINGMODEL = IT("Model",Effects) | |
943 | LIGHTNINGMODEL.Name = "Lightning" | |
944 | local LastBolt = nil | |
945 | for E = 1, DISTANCE do | |
946 | local ExtraSize = (DISTANCE-E)/15 | |
947 | local PART = CreatePart(3, LIGHTNINGMODEL, "Neon", 0, 0, BRICKC("Pearl"), "LightningPart"..E, VT(Thickness+ExtraSize,SegmentLength,Thickness+ExtraSize)) | |
948 | PART.Color = Color | |
949 | MakeForm(PART,"Cyl") | |
950 | if LastBolt == nil then | |
951 | PART.CFrame = CF(StartPos,HITPOS)*ANGLES(RAD(90),RAD(0),RAD(0))*CF(0,-PART.Size.Y/2,0) | |
952 | else | |
953 | 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) | |
954 | end | |
955 | LastBolt = PART | |
956 | if Branches == true then | |
957 | local CHOICE = MRANDOM(1,7+((DISTANCE-E)*2)) | |
958 | if CHOICE == 1 then | |
959 | local LASTBRANCH = nil | |
960 | for i = 1, MRANDOM(2,5) do | |
961 | local ExtraSize2 = ((DISTANCE-E)/25)/i | |
962 | local PART = CreatePart(3, LIGHTNINGMODEL, "Neon", 0, 0, BRICKC("Pearl"), "Branch"..E.."-"..i, VT(Thickness+ExtraSize2,SegmentLength,Thickness+ExtraSize2)) | |
963 | PART.Color = Color | |
964 | MakeForm(PART,"Cyl") | |
965 | if LASTBRANCH == nil then | |
966 | 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) | |
967 | else | |
968 | 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) | |
969 | end | |
970 | LASTBRANCH = PART | |
971 | end | |
972 | end | |
973 | end | |
974 | end | |
975 | if Dissapear == true then | |
976 | coroutine.resume(coroutine.create(function() | |
977 | for i = 1, 10 do | |
978 | Swait() | |
979 | for _, c in pairs(LIGHTNINGMODEL:GetChildren()) do | |
980 | if c.ClassName == "Part" then | |
981 | c.Transparency = i/10 | |
982 | end | |
983 | end | |
984 | end | |
985 | LIGHTNINGMODEL:remove() | |
986 | end)) | |
987 | elseif Dissapear == false then | |
988 | Debris:AddItem(LIGHTNINGMODEL,0.1) | |
989 | end | |
990 | return {End = LastBolt.CFrame*CF(0,0,-LastBolt.Size.Z/2).p,LastBolt = LastBolt,Model = LIGHTNINGMODEL} | |
991 | end | |
992 | ||
993 | --//=================================\\ | |
994 | --|| WEAPON CREATION | |
995 | --\\=================================// | |
996 | ||
997 | RootPart.Size = RootPart.Size*SIZE | |
998 | Torso.Size = Torso.Size*SIZE | |
999 | RightArm.Size = RightArm.Size*SIZE | |
1000 | RightLeg.Size = RightLeg.Size*SIZE | |
1001 | LeftArm.Size = LeftArm.Size*SIZE | |
1002 | LeftLeg.Size = LeftLeg.Size*SIZE | |
1003 | RootJoint.C0 = ROOTC0 * CF(0 * SIZE, 0 * SIZE, 0 * SIZE) * ANGLES(RAD(0), RAD(0), RAD(0)) | |
1004 | RootJoint.C1 = ROOTC0 * CF(0 * SIZE, 0 * SIZE, 0 * SIZE) * ANGLES(RAD(0), RAD(0), RAD(0)) | |
1005 | Neck.C0 = NECKC0 * CF(0 * SIZE, 0 * SIZE, 0 + ((1 * SIZE) - 1)) * ANGLES(RAD(0), RAD(0), RAD(0)) | |
1006 | Neck.C1 = CF(0 * SIZE, -0.5 * SIZE, 0 * SIZE) * ANGLES(RAD(-90), RAD(0), RAD(180)) | |
1007 | RightShoulder.C1 = CF(0 * SIZE, 0.5 * SIZE, -0.35 * SIZE) | |
1008 | LeftShoulder.C1 = CF(0 * SIZE, 0.5 * SIZE, -0.35 * SIZE) | |
1009 | RightHip.C0 = CF(1 * SIZE, -1 * SIZE, 0 * SIZE) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)) | |
1010 | LeftHip.C0 = CF(-1 * SIZE, -1 * SIZE, 0 * SIZE) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)) | |
1011 | RightHip.C1 = CF(0.5 * SIZE, 1 * SIZE, 0 * SIZE) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)) | |
1012 | LeftHip.C1 = CF(-0.5 * SIZE, 1 * SIZE, 0 * SIZE) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)) | |
1013 | Head.Size = Head.Size*SIZE | |
1014 | RootJoint.Parent = RootPart | |
1015 | Neck.Parent = Torso | |
1016 | RightShoulder.Parent = Torso | |
1017 | LeftShoulder.Parent = Torso | |
1018 | RightHip.Parent = Torso | |
1019 | LeftHip.Parent = Torso | |
1020 | ||
1021 | Humanoid.DisplayDistanceType = "None" | |
1022 | local naeeym2 = IT("BillboardGui",Character) | |
1023 | naeeym2.AlwaysOnTop = true | |
1024 | naeeym2.Size = UDim2.new(5,35,2,15) | |
1025 | naeeym2.StudsOffset = Vector3.new(0,2,0) | |
1026 | naeeym2.MaxDistance = 75 | |
1027 | naeeym2.Adornee = Character.Head | |
1028 | naeeym2.Name = "Name" | |
1029 | local tecks2 = IT("TextLabel",naeeym2) | |
1030 | tecks2.BackgroundTransparency = 1 | |
1031 | tecks2.TextScaled = true | |
1032 | tecks2.BorderSizePixel = 0 | |
1033 | tecks2.Text = "!Insanity! Pandora" | |
1034 | tecks2.Font = "Fantasy" | |
1035 | tecks2.TextSize = 30 | |
1036 | tecks2.TextStrokeTransparency = 0 | |
1037 | tecks2.TextColor3 = C3(1,1,1) | |
1038 | tecks2.TextStrokeColor3 = C3(159/255, 111/255, 183/255) | |
1039 | tecks2.Size = UDim2.new(1,0,0.5,0) | |
1040 | tecks2.Parent = naeeym2 | |
1041 | local top = Instance.new("Shirt") | |
1042 | top.ShirtTemplate = "rbxassetid://1533635803" | |
1043 | top.Parent = Character | |
1044 | top.Name = "Cloth" | |
1045 | local bottom = Instance.new("Pants") | |
1046 | bottom.PantsTemplate = "rbxassetid://1460022985" | |
1047 | bottom.Parent = Character | |
1048 | bottom.Name = "Cloth" | |
1049 | local PRT = CreatePart(3, Weapon, "Fabric", 0, 0, "Really black", "Hat", VT(1,1,1),false) | |
1050 | PRT.Color = C3(0,0,0) | |
1051 | CreateWeldOrSnapOrMotor("Weld", Head, Head, PRT, CF(0,0.72*SIZE,0.1) * ANGLES(RAD(15), RAD(0), RAD(0)), CF(0, 0, 0)) | |
1052 | CreateMesh("SpecialMesh", PRT, "FileMesh", "26768040", "", VT(1,1,1)*SIZE, VT(0,0,0)) | |
1053 | local PRT = CreatePart(3, Character, "Fabric", 0, 0, "Really black", "Detail", VT(1,1,1),false) | |
1054 | PRT.Color = C3(1,1,1) | |
1055 | CreateWeldOrSnapOrMotor("Weld", Head, Head, PRT, CF(0,0,-.5*SIZE), CF(0, 0, 0)) | |
1056 | CreateMesh("SpecialMesh", PRT, "FileMesh", "13520257", "", VT(1,1,1)*SIZE, VT(0,0,0)) | |
1057 | local PRT = CreatePart(3, Character, "Neon", 0, 0, "Really red", "Detail", VT(1,1.2,0.2),false) | |
1058 | PRT.Color = C3(159/255, 111/255, 183/255) | |
1059 | MakeForm(PRT,"Ball") | |
1060 | CreateWeldOrSnapOrMotor("Weld", Head, Head, PRT, CF(0,0,-.5*SIZE), CF(0, 0, 0)) | |
1061 | local PRT = CreatePart(3, Character, "Neon", 0, 0, "Really red", "Detail", VT(0.5,0.4,0.5),false) | |
1062 | PRT.Color = C3(159/255, 111/255, 183/255) | |
1063 | MakeForm(PRT,"Ball") | |
1064 | CreateWeldOrSnapOrMotor("Weld", Head, Head, PRT, CF(0,-0.3,-.5*SIZE), CF(0, 0, 0)) | |
1065 | local PRT = CreatePart(3, Character, "Neon", 0, 0, "Really red", "Detail", VT(0.5,0.3,0.3),false) | |
1066 | PRT.Color = C3(159/255, 111/255, 183/255) | |
1067 | MakeForm(PRT,"Ball") | |
1068 | CreateWeldOrSnapOrMotor("Weld", Head, Head, PRT, CF(0.25,0.25,-.5*SIZE), CF(0, 0, 0)) | |
1069 | local PRT = CreatePart(3, Character, "Neon", 0, 0, "Really red", "Detail", VT(0.5,0.3,0.3),false) | |
1070 | PRT.Color = C3(159/255, 111/255, 183/255) | |
1071 | MakeForm(PRT,"Ball") | |
1072 | CreateWeldOrSnapOrMotor("Weld", Head, Head, PRT, CF(-0.25,0.25,-.5*SIZE), CF(0, 0, 0)) | |
1073 | local PRT = CreatePart(3, Character, "Neon", 0, 0, "Really red", "Detail", VT(0.4,0.4,0.3),false) | |
1074 | PRT.Color = C3(159/255, 111/255, 183/255) | |
1075 | MakeForm(PRT,"Ball") | |
1076 | CreateWeldOrSnapOrMotor("Weld", Head, Head, PRT, CF(-0.17,-0.25,-.5*SIZE) * ANGLES(RAD(-15), RAD(15), RAD(0)), CF(0, 0, 0)) | |
1077 | local PRT = CreatePart(3, Character, "Neon", 0, 0, "Really red", "Detail", VT(0.4,0.4,0.3),false) | |
1078 | PRT.Color = C3(159/255, 111/255, 183/255) | |
1079 | MakeForm(PRT,"Ball") | |
1080 | CreateWeldOrSnapOrMotor("Weld", Head, Head, PRT, CF(0.17,-0.25,-.5*SIZE) * ANGLES(RAD(-15), RAD(-15), RAD(0)), CF(0, 0, 0)) | |
1081 | ||
1082 | local LASTPART = Head | |
1083 | for i = 1, 24 do | |
1084 | local MATH = (1-(i/30)) | |
1085 | if LASTPART == Head then | |
1086 | local Horn = CreatePart(3, Character, "SmoothPlastic", 0, 0, "Dirt brown", "Detail", VT(0.25*MATH,0.15,0.25*MATH),false) | |
1087 | CreateWeldOrSnapOrMotor("Weld", LASTPART, LASTPART, Horn, CF(0.8, 0.3, -0.4) * ANGLES(RAD(-25), RAD(220), RAD(90)), CF(0, 0, 0)) | |
1088 | LASTPART = Horn | |
1089 | Horn.Color = C3(0,0,0) | |
1090 | else | |
1091 | local Horn = CreatePart(3, Character, "SmoothPlastic", 0, 0, "Dirt brown", "Detail", VT(0.25*MATH,0.15,0.25*MATH),false) | |
1092 | CreateWeldOrSnapOrMotor("Weld", LASTPART, LASTPART, Horn, CF(0, Horn.Size.Y/2, 0) * ANGLES(RAD(5), RAD(3), RAD(0)), CF(0, -Horn.Size.Y/2, 0)) | |
1093 | LASTPART = Horn | |
1094 | Horn.Color = C3(0,0,0) | |
1095 | end | |
1096 | end | |
1097 | local LASTPART = Head | |
1098 | for i = 1, 24 do | |
1099 | local MATH = (1-(i/30)) | |
1100 | if LASTPART == Head then | |
1101 | local Horn = CreatePart(3, Character, "SmoothPlastic", 0, 0, "Dirt brown", "Detail", VT(0.25*MATH,0.15,0.25*MATH),false) | |
1102 | CreateWeldOrSnapOrMotor("Weld", LASTPART, LASTPART, Horn, CF(-0.8, 0.3, -0.4) * ANGLES(RAD(-25), RAD(-220), RAD(-90)), CF(0, 0, 0)) | |
1103 | LASTPART = Horn | |
1104 | Horn.Color = C3(0,0,0) | |
1105 | else | |
1106 | local Horn = CreatePart(3, Character, "SmoothPlastic", 0, 0, "Dirt brown", "Detail", VT(0.25*MATH,0.15,0.25*MATH),false) | |
1107 | CreateWeldOrSnapOrMotor("Weld", LASTPART, LASTPART, Horn, CF(0, Horn.Size.Y/2, 0) * ANGLES(RAD(5), RAD(-3), RAD(0)), CF(0, -Horn.Size.Y/2, 0)) | |
1108 | LASTPART = Horn | |
1109 | Horn.Color = C3(0,0,0) | |
1110 | end | |
1111 | end | |
1112 | local LASTPART = Head | |
1113 | for i = 1, 8 do | |
1114 | local MATH = (1-(i/14)) | |
1115 | if LASTPART == Head then | |
1116 | local Horn = CreatePart(3, Character, "SmoothPlastic", 0, 0, "Dirt brown", "Detail", VT(0.25*MATH,0.15,0.25*MATH),false) | |
1117 | CreateWeldOrSnapOrMotor("Weld", LASTPART, LASTPART, Horn, CF(0.65, -0.3, -0.4) * ANGLES(RAD(-25), RAD(250), RAD(90)), CF(0, 0, 0)) | |
1118 | LASTPART = Horn | |
1119 | Horn.Color = C3(0,0,0) | |
1120 | else | |
1121 | local Horn = CreatePart(3, Character, "SmoothPlastic", 0, 0, "Dirt brown", "Detail", VT(0.25*MATH,0.15,0.25*MATH),false) | |
1122 | CreateWeldOrSnapOrMotor("Weld", LASTPART, LASTPART, Horn, CF(0, Horn.Size.Y/2, 0) * ANGLES(RAD(10), RAD(3), RAD(0)), CF(0, -Horn.Size.Y/2, 0)) | |
1123 | LASTPART = Horn | |
1124 | Horn.Color = C3(0,0,0) | |
1125 | end | |
1126 | end | |
1127 | local LASTPART = Head | |
1128 | for i = 1, 8 do | |
1129 | local MATH = (1-(i/14)) | |
1130 | if LASTPART == Head then | |
1131 | local Horn = CreatePart(3, Character, "SmoothPlastic", 0, 0, "Dirt brown", "Detail", VT(0.25*MATH,0.15,0.25*MATH),false) | |
1132 | CreateWeldOrSnapOrMotor("Weld", LASTPART, LASTPART, Horn, CF(-0.65, -0.3, -0.4) * ANGLES(RAD(-25), RAD(-250), RAD(-90)), CF(0, 0, 0)) | |
1133 | LASTPART = Horn | |
1134 | Horn.Color = C3(0,0,0) | |
1135 | else | |
1136 | local Horn = CreatePart(3, Character, "SmoothPlastic", 0, 0, "Dirt brown", "Detail", VT(0.25*MATH,0.15,0.25*MATH),false) | |
1137 | CreateWeldOrSnapOrMotor("Weld", LASTPART, LASTPART, Horn, CF(0, Horn.Size.Y/2, 0) * ANGLES(RAD(10), RAD(-3), RAD(0)), CF(0, -Horn.Size.Y/2, 0)) | |
1138 | LASTPART = Horn | |
1139 | Horn.Color = C3(0,0,0) | |
1140 | end | |
1141 | end | |
1142 | local PRT = CreatePart(3, Weapon, "Metal", 0, 0, "Really black", "Watch", VT(1.05,0.06,1.05)*SIZE,false) | |
1143 | CreateWeldOrSnapOrMotor("Weld", RightArm, RightArm, PRT, CF(0,-0.5*SIZE,0) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0)) | |
1144 | local PRT = CreatePart(3, Weapon, "Metal", 0, 0, "Really black", "Watch", VT(0.5,0.1,0.5)*SIZE,false) | |
1145 | CreateWeldOrSnapOrMotor("Weld", RightArm, RightArm, PRT, CF(0,-0.5*SIZE,0) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, -0.5*SIZE, 0)) | |
1146 | MakeForm(PRT,"Cyl") | |
1147 | local PRT = CreatePart(3, Weapon, "Neon", 0, 0, "Really red", "Watch", VT(0.45,0.11,0.45)*SIZE,false) | |
1148 | CreateWeldOrSnapOrMotor("Weld", RightArm, RightArm, PRT, CF(0,-0.5*SIZE,0) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, -0.5*SIZE, 0)) | |
1149 | MakeForm(PRT,"Cyl") | |
1150 | PRT.Color = C3(159/255, 111/255, 183/255) | |
1151 | local RING = CreatePart(3, Weapon, "Metal", 0, 0, "Really black", "Watch", VT(0.055,0.15,0.055)*SIZE,false) | |
1152 | CreateWeldOrSnapOrMotor("Weld", RightArm, RightArm, RING, CF(0,-0.5*SIZE,0) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, -0.5*SIZE, 0)) | |
1153 | MakeForm(RING,"Cyl") | |
1154 | RING.Color = C3(0,0,0) | |
1155 | for i = 1, 12 do | |
1156 | local PRT = CreatePart(3, Weapon, "Metal", 0, 0, "Really black", "Watch", VT(0,0.15,0)*SIZE,false) | |
1157 | PRT.Color = C3(0,0,0) | |
1158 | local MSH = IT("BlockMesh",PRT) | |
1159 | MSH.Scale = VT(0.6,1,1) | |
1160 | CreateWeldOrSnapOrMotor("Weld", RightArm, RightArm, PRT, CF(0,-0.5*SIZE,0) * ANGLES(RAD(90), RAD((360/12)*i), RAD(0)), CF(0, -0.49*SIZE, 0) * CF(0, 0, -0.2*SIZE)) | |
1161 | end | |
1162 | local PRT = CreatePart(3, Weapon, "Metal", 0, 0, "Really black", "Watch", VT(0,0.15,0.15)*SIZE,false) | |
1163 | PRT.Color = C3(0,0,0) | |
1164 | local MSH = IT("BlockMesh",PRT) | |
1165 | MSH.Scale = VT(0.4,1,1) | |
1166 | local WATCH1 = CreateWeldOrSnapOrMotor("Weld", RightArm, RightArm, PRT, CF(0,-0.5*SIZE,0) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, -0.49*SIZE, 0) * CF(0, 0, -0.075*SIZE)) | |
1167 | local PRT = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Watch", VT(0,0.15,0.15/1.5)*SIZE,false) | |
1168 | PRT.Color = C3(0,0,0) | |
1169 | local MSH = IT("BlockMesh",PRT) | |
1170 | MSH.Scale = VT(0.4,1,1) | |
1171 | local WATCH2 = CreateWeldOrSnapOrMotor("Weld", RightArm, RightArm, PRT, CF(0,-0.5*SIZE,0) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, -0.49*SIZE, 0) * CF(0, 0, -(0.075/1.5)*SIZE)) | |
1172 | coroutine.resume(coroutine.create(function() | |
1173 | while true do | |
1174 | Swait() | |
1175 | CLOCKLOOP = CLOCKLOOP - 1*CLOCKSPEED | |
1176 | WATCH1.C0 = Clerp(WATCH1.C0, CF(0,-0.5*SIZE,0) * ANGLES(RAD(90), RAD(CLOCKLOOP*5), RAD(0)), 1 / Animation_Speed) | |
1177 | WATCH2.C0 = Clerp(WATCH2.C0, CF(0,-0.5*SIZE,0) * ANGLES(RAD(90), RAD(CLOCKLOOP*5/2), RAD(0)), 1 / Animation_Speed) | |
1178 | if CLOCKLOOP <= -150 then | |
1179 | if VALUE1 == false then | |
1180 | CLOCKLOOP = 0 | |
1181 | WACKYEFFECT({Time = 15, EffectType = "Sphere", Size = VT(0.45,0.11,0.45)*SIZE, Size2 = VT(3,3,3), Transparency = 0, Transparency2 = 1, CFrame = RING.CFrame, MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(159/255, 111/255, 183/255), SoundID = 743521450, SoundPitch = 1.2, SoundVolume = 4}) | |
1182 | local HITFLOOR,HITPOS = Raycast(RootPart.Position, (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 25*SIZE, Character) | |
1183 | ApplyAoE(HITPOS,10,15,45,75,false) | |
1184 | WACKYEFFECT({Time = 15, EffectType = "Wave", Size = VT(0.45,0.11,0.45)*SIZE, Size2 = VT(15,2,15), Transparency = 0, Transparency2 = 1, CFrame = CF(HITPOS), MoveToPos = nil, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(159/255, 111/255, 183/255), SoundID = nil, SoundPitch = 0.5, SoundVolume = 6}) | |
1185 | WACKYEFFECT({Time = 15, EffectType = "Wave", Size = VT(0.45,0.11,0.45)*SIZE, Size2 = VT(12,3,12), Transparency = 0, Transparency2 = 1, CFrame = CF(HITPOS), MoveToPos = nil, RotationX = 0, RotationY = 15, RotationZ = 0, Material = "Neon", Color = C3(159/255, 111/255, 183/255), SoundID = nil, SoundPitch = 0.5, SoundVolume = 6}) | |
1186 | if CLOCKTARGET ~= nil then | |
1187 | CLOCKTARGET.Health = CLOCKTARGET.Health - 20 | |
1188 | if CLOCKTARGET.Torso ~= nil then | |
1189 | CLOCKTARGET.Torso.CFrame = CLOCKTARGET.Torso.CFrame * ANGLES(RAD(MRANDOM(0,360)), RAD(MRANDOM(0,360)), RAD(MRANDOM(0,360))) | |
1190 | end | |
1191 | if CLOCKTARGET.Health == 0 then | |
1192 | CLOCKTARGET = nil | |
1193 | end | |
1194 | end | |
1195 | end | |
1196 | end | |
1197 | end | |
1198 | end)) | |
1199 | ||
1200 | for _, c in pairs(Weapon:GetChildren()) do | |
1201 | if c.ClassName == "Part" then | |
1202 | c.CustomPhysicalProperties = PhysicalProperties.new(0, 0, 0, 0, 0) | |
1203 | end | |
1204 | end | |
1205 | ||
1206 | Neck.Name = "Weld" | |
1207 | RootJoint.Name = "Weld" | |
1208 | RightShoulder.Name = "Weld" | |
1209 | LeftShoulder.Name = "Weld" | |
1210 | RightHip.Name = "Weld" | |
1211 | LeftHip.Name = "Weld" | |
1212 | ||
1213 | local SKILLTEXTCOLOR = C3(255/255, 0/255, 0/255) | |
1214 | local SKILLFONT = "Fantasy" | |
1215 | local SKILLTEXTSIZE = 7 | |
1216 | ||
1217 | Weapon.Parent = Character | |
1218 | Humanoid.Parent = Character | |
1219 | ||
1220 | Humanoid.Died:connect(function() | |
1221 | ATTACK = true | |
1222 | end) | |
1223 | ||
1224 | --//=================================\\ | |
1225 | --|| DAMAGING | |
1226 | --\\=================================// | |
1227 | ||
1228 | function ApplyDamage(Humanoid,Damage,TorsoPart) | |
1229 | local defence = Instance.new("BoolValue",Humanoid.Parent) | |
1230 | defence.Name = ("HitBy"..Player.Name) | |
1231 | game:GetService("Debris"):AddItem(defence, 0.001) | |
1232 | Damage = Damage * DAMAGEMULTIPLIER | |
1233 | if Humanoid.Health ~= 0 then | |
1234 | local CritChance = MRANDOM(1,100) | |
1235 | if Damage > Humanoid.Health then | |
1236 | Damage = math.ceil(Humanoid.Health) | |
1237 | if Damage == 0 then | |
1238 | Damage = 0.1 | |
1239 | end | |
1240 | end | |
1241 | Humanoid.Health = Humanoid.Health - Damage | |
1242 | end | |
1243 | end | |
1244 | ||
1245 | function ApplyAoE(POSITION,RANGE,MINDMG,MAXDMG,FLING,INSTAKILL) | |
1246 | local CHILDREN = workspace:GetDescendants() | |
1247 | for index, CHILD in pairs(CHILDREN) do | |
1248 | if CHILD.ClassName == "Model" and CHILD ~= Character and CHILD.Parent ~= Effects then | |
1249 | local HUM = CHILD:FindFirstChildOfClass("Humanoid") | |
1250 | if HUM then | |
1251 | local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso") | |
1252 | if TORSO then | |
1253 | if (TORSO.Position - POSITION).Magnitude <= RANGE then | |
1254 | if INSTAKILL == true then | |
1255 | CHILD:BreakJoints() | |
1256 | else | |
1257 | local DMG = MRANDOM(MINDMG,MAXDMG) | |
1258 | ApplyDamage(HUM,DMG,TORSO) | |
1259 | end | |
1260 | if FLING > 0 then | |
1261 | for _, c in pairs(CHILD:GetChildren()) do | |
1262 | if c:IsA("BasePart") then | |
1263 | local bv = Instance.new("BodyVelocity") | |
1264 | bv.maxForce = Vector3.new(1e9, 1e9, 1e9) | |
1265 | bv.velocity = CF(POSITION,TORSO.Position).lookVector*FLING | |
1266 | bv.Parent = c | |
1267 | Debris:AddItem(bv,0.05) | |
1268 | end | |
1269 | end | |
1270 | end | |
1271 | end | |
1272 | end | |
1273 | end | |
1274 | end | |
1275 | end | |
1276 | end | |
1277 | ||
1278 | function MagicSphere2(size,waitt,cframe,color) | |
1279 | local wave = CreatePart(3, Effects, "Neon", 0, 1, BRICKC(color), "Effect", VT(1,1,1)) | |
1280 | local mesh = IT("SpecialMesh",wave) | |
1281 | mesh.MeshType = "Sphere" | |
1282 | mesh.Scale = VT(size,size,size) | |
1283 | mesh.Offset = VT(0,0,0) | |
1284 | wave.CFrame = cframe | |
1285 | coroutine.resume(coroutine.create(function(PART) | |
1286 | for i = 1, waitt do | |
1287 | Swait() | |
1288 | mesh.Scale = mesh.Scale - VT(size/waitt,size/waitt,size/waitt) | |
1289 | wave.Transparency = wave.Transparency - (1/waitt) | |
1290 | end | |
1291 | wave:remove() | |
1292 | end)) | |
1293 | end | |
1294 | ||
1295 | function MagicSphere(size,waitt,cframe,color) | |
1296 | local wave = CreatePart(3, Effects, "Neon", 0, 0, BRICKC(color), "Effect", VT(1,1,1)) | |
1297 | local mesh = IT("SpecialMesh",wave) | |
1298 | mesh.MeshType = "Sphere" | |
1299 | mesh.Scale = VT(size,size,size) | |
1300 | mesh.Offset = VT(0,0,0) | |
1301 | wave.CFrame = cframe | |
1302 | coroutine.resume(coroutine.create(function(PART) | |
1303 | for i = 1, waitt do | |
1304 | Swait() | |
1305 | mesh.Scale = mesh.Scale + VT(size/5,size/5,size/5) | |
1306 | wave.Transparency = wave.Transparency + (1/waitt) | |
1307 | if wave.Transparency > 0.99 then | |
1308 | wave:remove() | |
1309 | end | |
1310 | end | |
1311 | end)) | |
1312 | end | |
1313 | ||
1314 | function CastZapRay(StartPos, Vec, Length, Ignore, DelayIfHit) | |
1315 | local Direction = CFrame.new(StartPos, Vec).lookVector | |
1316 | local Ignore = ((type(Ignore) == "table" and Ignore) or {Ignore}) | |
1317 | local RayHit, RayPos, RayNormal = game:GetService("Workspace"):FindPartOnRayWithIgnoreList(Ray.new(StartPos, Direction * Length), Ignore) | |
1318 | if RayHit and CheckIntangible(RayHit) then | |
1319 | if DelayIfHit then | |
1320 | wait() | |
1321 | end | |
1322 | RayHit, RayPos, RayNormal = CastZapRay((RayPos + (Vec * 0.01)), Vec, (Length - ((StartPos - RayPos).magnitude)), Ignore, DelayIfHit) | |
1323 | end | |
1324 | return RayHit, RayPos, RayNormal | |
1325 | end | |
1326 | ||
1327 | function CreateSwirl(inair,size,doesrotate,rotatedirection,waitt,cframe,color) | |
1328 | local wave = CreatePart(3, Effects, "Neon", 0, 0.5, BRICKC(color), "Effect", VT(0,0,0)) | |
1329 | local mesh = IT("SpecialMesh",wave) | |
1330 | mesh.MeshType = "FileMesh" | |
1331 | mesh.MeshId = "http://www.roblox.com/asset/?id=1051557" | |
1332 | mesh.Scale = VT(size,size,size) | |
1333 | wave.CFrame = cframe | |
1334 | coroutine.resume(coroutine.create(function(PART) | |
1335 | for i = 1, waitt do | |
1336 | Swait() | |
1337 | mesh.Scale = mesh.Scale + VT(size/5,0,size/5) | |
1338 | if doesrotate == true then | |
1339 | wave.CFrame = wave.CFrame * CFrame.fromEulerAnglesXYZ(0, rotatedirection, 0) | |
1340 | end | |
1341 | wave.Transparency = wave.Transparency + (0.5/waitt) | |
1342 | if wave.Transparency > 0.99 then | |
1343 | wave:remove() | |
1344 | end | |
1345 | end | |
1346 | end)) | |
1347 | end | |
1348 | ||
1349 | --//=================================\\ | |
1350 | --|| ATTACK FUNCTIONS AND STUFF | |
1351 | --\\=================================// | |
1352 | ||
1353 | function MagicMissiles() | |
1354 | ATTACK = true | |
1355 | Rooted = true | |
1356 | local SELECTING = true | |
1357 | local SPOTS = {} | |
1358 | coroutine.resume(coroutine.create(function() | |
1359 | local LOOP = 0 | |
1360 | repeat | |
1361 | LOOP = LOOP + 1 | |
1362 | Swait() | |
1363 | if LOOP >= 20 then | |
1364 | LOOP = 0 | |
1365 | for i = 1, #SPOTS do | |
1366 | if SPOTS[i] ~= nil then | |
1367 | WACKYEFFECT({Time = 15, EffectType = "Wave", Size = VT(0,0,0)*SIZE, Size2 = VT(8,2,8), Transparency = 0, Transparency2 = 1, CFrame = SPOTS[i], MoveToPos = nil, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(159/255, 111/255, 183/255), SoundID = nil, SoundPitch = 0.5, SoundVolume = 6}) | |
1368 | WACKYEFFECT({Time = 15, EffectType = "Wave", Size = VT(0,0,0)*SIZE, Size2 = VT(6,3,6), Transparency = 0, Transparency2 = 1, CFrame = SPOTS[i], MoveToPos = nil, RotationX = 0, RotationY = 15, RotationZ = 0, Material = "Neon", Color = C3(159/255, 111/255, 183/255), SoundID = nil, SoundPitch = 0.5, SoundVolume = 6}) | |
1369 | end | |
1370 | end | |
1371 | end | |
1372 | 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) | |
1373 | 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) | |
1374 | 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) | |
1375 | 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) | |
1376 | 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) | |
1377 | 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) | |
1378 | until SELECTING == false | |
1379 | Rooted = false | |
1380 | repeat | |
1381 | LOOP = LOOP + 1 | |
1382 | Swait() | |
1383 | if LOOP >= 20 then | |
1384 | LOOP = 0 | |
1385 | for i = 1, #SPOTS do | |
1386 | if SPOTS[i] ~= nil then | |
1387 | WACKYEFFECT({Time = 15, EffectType = "Wave", Size = VT(0,0,0)*SIZE, Size2 = VT(8,2,8), Transparency = 0, Transparency2 = 1, CFrame = SPOTS[i], MoveToPos = nil, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(159/255, 111/255, 183/255), SoundID = nil, SoundPitch = 0.5, SoundVolume = 6}) | |
1388 | WACKYEFFECT({Time = 15, EffectType = "Wave", Size = VT(0,0,0)*SIZE, Size2 = VT(6,3,6), Transparency = 0, Transparency2 = 1, CFrame = SPOTS[i], MoveToPos = nil, RotationX = 0, RotationY = 15, RotationZ = 0, Material = "Neon", Color = C3(159/255, 111/255, 183/255), SoundID = nil, SoundPitch = 0.5, SoundVolume = 6}) | |
1389 | end | |
1390 | end | |
1391 | end | |
1392 | 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) | |
1393 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1.1*SIZE) - 1)) * ANGLES(RAD(0 - 4 * SIN(SINE / 12)), RAD(25), RAD(0)), 1 / Animation_Speed) | |
1394 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.35*SIZE, 0.65*SIZE, 0*SIZE) * ANGLES(RAD(90), RAD(0), RAD(35)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
1395 | 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) | |
1396 | 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) | |
1397 | 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) | |
1398 | until ATTACK == false | |
1399 | end)) | |
1400 | repeat | |
1401 | repeat Swait() until HOLD == true | |
1402 | local DIST = (RootPart.Position - Mouse.Hit.p).Magnitude | |
1403 | if DIST > 9999 then | |
1404 | DIST = 9999 | |
1405 | end | |
1406 | local RAY,RAYPOS = Raycast(RootPart.Position, (CF(RootPart.Position, Mouse.Hit.p)).lookVector, DIST, workspace) | |
1407 | local HITFLOOR,HITPOS,NORMAL = Raycast(RAYPOS+VT(0,1,0), (CF(RAYPOS, RAYPOS + VT(0, -1, 0))).lookVector, 25*SIZE, Character) | |
1408 | if HITFLOOR ~= nil then | |
1409 | table.insert(SPOTS,CF(HITPOS,HITPOS+NORMAL) * ANGLES(RAD(90), RAD(0), RAD(0))) | |
1410 | WACKYEFFECT({Time = 15, EffectType = "Wave", Size = VT(0,0,0)*SIZE, Size2 = VT(6,2,6), Transparency = 0, Transparency2 = 1, CFrame = RightArm.CFrame*CF(0,-1.2,0) * ANGLES(RAD(180), RAD(0), RAD(0)), MoveToPos = nil, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(159/255, 111/255, 183/255), SoundID = 90655239, SoundPitch = 1, SoundVolume = 6}) | |
1411 | WACKYEFFECT({Time = 15, EffectType = "Wave", Size = VT(0,0,0)*SIZE, Size2 = VT(4,3,4), Transparency = 0, Transparency2 = 1, CFrame = RightArm.CFrame*CF(0,-1.2,0) * ANGLES(RAD(180), RAD(0), RAD(0)), MoveToPos = nil, RotationX = 0, RotationY = 15, RotationZ = 0, Material = "Neon", Color = C3(159/255, 111/255, 183/255), SoundID = nil, SoundPitch = 0.5, SoundVolume = 6}) | |
1412 | end | |
1413 | repeat Swait() until HOLD == false | |
1414 | until #SPOTS == 15 | |
1415 | SELECTING = false | |
1416 | for i = 1, #SPOTS do | |
1417 | if SPOTS[i] ~= nil then | |
1418 | local POS = SPOTS[i] | |
1419 | coroutine.resume(coroutine.create(function() | |
1420 | local MISSILE = IT("Model",Effects) | |
1421 | MISSILE.Name = "Missile" | |
1422 | local BASEPART = CreatePart(3, MISSILE, "Neon", 0, 1, "Alder", "Part", VT(2,2,2)) | |
1423 | MakeForm(BASEPART,"Cyl") | |
1424 | MISSILE.PrimaryPart = BASEPART | |
1425 | BASEPART.CFrame = POS*CF(0,-30*3,0) | |
1426 | local HEAD = CreatePart(3, MISSILE, "Neon", 0, 1, "Alder", "Part", VT(2,4,2)) | |
1427 | MakeForm(HEAD,"Ball") | |
1428 | HEAD.CFrame = BASEPART.CFrame*CF(0,1,0) | |
1429 | local TAIL = CreatePart(3, MISSILE, "Neon", 0, 1, "Alder", "Part", VT(2.5,0.1,2.5)) | |
1430 | MakeForm(TAIL,"Cyl") | |
1431 | TAIL.CFrame = BASEPART.CFrame*CF(0,-1,0) | |
1432 | for i = 1, 10 do | |
1433 | Swait() | |
1434 | for _, c in pairs(MISSILE:GetChildren()) do | |
1435 | if c.ClassName == "Part" then | |
1436 | c.Transparency = c.Transparency - 1/10 | |
1437 | end | |
1438 | end | |
1439 | end | |
1440 | for i = 1, 15*1.5 do | |
1441 | Swait() | |
1442 | MISSILE:SetPrimaryPartCFrame(BASEPART.CFrame*CF(0,1.35*3,0)) | |
1443 | end | |
1444 | ApplyAoE(BASEPART.CFrame.p,20,35,45,75,false) | |
1445 | WACKYEFFECT({Time = 25, EffectType = "Sphere", Size = VT(0,0,0), Size2 = VT(75,1,75), Transparency = 0.5, Transparency2 = 1, CFrame = BASEPART.CFrame, MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(159/255, 111/255, 183/255), SoundID = nil, SoundPitch = 1.2, SoundVolume = 4}) | |
1446 | WACKYEFFECT({Time = 45, EffectType = "Sphere", Size = VT(0,0,0), Size2 = VT(35,35,35), Transparency = 0, Transparency2 = 1, CFrame = BASEPART.CFrame, MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(159/255, 111/255, 183/255), SoundID = 165970126, SoundPitch = MRANDOM(13,15)/10, SoundVolume = 4}) | |
1447 | WACKYEFFECT({Time = 45, EffectType = "Wave", Size = VT(0,0,0)*SIZE, Size2 = VT(22,2,22), Transparency = 0, Transparency2 = 1, CFrame = POS * ANGLES(RAD(180), RAD(0), RAD(0)), MoveToPos = nil, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(159/255, 111/255, 183/255), SoundID = nil, SoundPitch = 0.5, SoundVolume = 6}) | |
1448 | WACKYEFFECT({Time = 45, EffectType = "Wave", Size = VT(0,0,0)*SIZE, Size2 = VT(20,3,20), Transparency = 0, Transparency2 = 1, CFrame = POS * ANGLES(RAD(180), RAD(0), RAD(0)), MoveToPos = nil, RotationX = 0, RotationY = 15, RotationZ = 0, Material = "Neon", Color = C3(159/255, 111/255, 183/255), SoundID = nil, SoundPitch = 0.5, SoundVolume = 6}) | |
1449 | MISSILE:remove() | |
1450 | end)) | |
1451 | end | |
1452 | end | |
1453 | wait(0.6) | |
1454 | ATTACK = false | |
1455 | Rooted = false | |
1456 | end | |
1457 | ||
1458 | ||
1459 | ||
1460 | function TimesUp() | |
1461 | CLOCKTARGET = nil | |
1462 | if Mouse.Target.Parent ~= Character and Mouse.Target.Parent.Parent ~= Character and Mouse.Target.Parent:FindFirstChildOfClass("Humanoid") ~= nil then | |
1463 | local HUM = Mouse.Target.Parent:FindFirstChildOfClass("Humanoid") | |
1464 | local TORSO = HUM.Parent:FindFirstChild("Torso") or HUM.Parent:FindFirstChild("UpperTorso") | |
1465 | if TORSO then | |
1466 | ATTACK = true | |
1467 | Rooted = false | |
1468 | coroutine.resume(coroutine.create(function() | |
1469 | repeat | |
1470 | Swait() | |
1471 | 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) | |
1472 | 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) | |
1473 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.35*SIZE, 0.5*SIZE, -0.2*SIZE) * ANGLES(RAD(75), RAD(45), RAD(0)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
1474 | 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) | |
1475 | 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) | |
1476 | 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) | |
1477 | until ATTACK == false | |
1478 | end)) | |
1479 | if Effects:FindFirstChild("NeonDoll") then | |
1480 | repeat Swait() until Effects:FindFirstChild("NeonDoll") == nil | |
1481 | end | |
1482 | wait(0.5) | |
1483 | local FAKECHARACTER = IT("Model",Effects) | |
1484 | FAKECHARACTER.Name = "NeonDoll" | |
1485 | local TORS = CreatePart(3, FAKECHARACTER, "Neon", 0, 1, "Alder", "Part", VT(0.3,0.3,0.15),false) | |
1486 | CreateWeldOrSnapOrMotor("Weld", RING, RING, TORS, CF(0,0.6,0), CF(0,0,0)) | |
1487 | local LEG = CreatePart(3, FAKECHARACTER, "Neon", 0, 1, "Alder", "Part", VT(0.15,0.3,0.15),false) | |
1488 | CreateWeldOrSnapOrMotor("Weld", TORS, TORS, LEG, CF(0.15/2,-0.15,0) * ANGLES(RAD(0), RAD(0), RAD(15)), CF(0,0.15,0)) | |
1489 | local LEG = CreatePart(3, FAKECHARACTER, "Neon", 0, 1, "Alder", "Part", VT(0.15,0.3,0.15),false) | |
1490 | CreateWeldOrSnapOrMotor("Weld", TORS, TORS, LEG, CF(-0.15/2,-0.15,0) * ANGLES(RAD(0), RAD(0), RAD(-15)), CF(0,0.15,0)) | |
1491 | local ARM = CreatePart(3, FAKECHARACTER, "Neon", 0, 1, "Alder", "Part", VT(0.15,0.3,0.15),false) | |
1492 | CreateWeldOrSnapOrMotor("Weld", TORS, TORS, ARM, CF(0.15,0.15/2,0) * ANGLES(RAD(0), RAD(0), RAD(90)), CF(0,0.15,0)) | |
1493 | local ARM = CreatePart(3, FAKECHARACTER, "Neon", 0, 1, "Alder", "Part", VT(0.15,0.3,0.15),false) | |
1494 | CreateWeldOrSnapOrMotor("Weld", TORS, TORS, ARM, CF(-0.15,0.15/2,0) * ANGLES(RAD(0), RAD(0), RAD(-90)), CF(0,0.15,0)) | |
1495 | local HEAD = CreatePart(3, FAKECHARACTER, "Neon", 0, 1, "Alder", "Part", VT(0.15,0.15,0.15),false) | |
1496 | CreateWeldOrSnapOrMotor("Weld", TORS, TORS, HEAD, CF(0,0.225,0), CF(0,0,0)) | |
1497 | CreateSound(201858045, TORS, 5, 0.4, false) | |
1498 | for i = 1, 150 do | |
1499 | Swait() | |
1500 | CLOCKSPEED = 100 | |
1501 | for _, c in pairs(FAKECHARACTER:GetChildren()) do | |
1502 | if c.ClassName == "Part" then | |
1503 | c.Transparency = c.Transparency - 0.5/150 | |
1504 | end | |
1505 | end | |
1506 | end | |
1507 | CLOCKTARGET = HUM | |
1508 | coroutine.resume(coroutine.create(function() | |
1509 | repeat Swait() CLOCKSPEED = 100 until CLOCKTARGET == nil | |
1510 | for i = 1, 25 do | |
1511 | Swait() | |
1512 | for _, c in pairs(FAKECHARACTER:GetChildren()) do | |
1513 | if c.ClassName == "Part" then | |
1514 | c.Transparency = c.Transparency + 0.5/25 | |
1515 | end | |
1516 | end | |
1517 | end | |
1518 | CLOCKSPEED = 100 | |
1519 | FAKECHARACTER:remove() | |
1520 | end)) | |
1521 | wait(0.5) | |
1522 | ATTACK = false | |
1523 | Rooted = false | |
1524 | end | |
1525 | end | |
1526 | end | |
1527 | ||
1528 | function ChainPunch() | |
1529 | ATTACK = true | |
1530 | Rooted = false | |
1531 | local GYRO = IT("BodyGyro",RootPart) | |
1532 | GYRO.D = 25 | |
1533 | GYRO.P = 2000 | |
1534 | GYRO.MaxTorque = VT(0,40000,0) | |
1535 | GYRO.cframe = CF(RootPart.Position,Mouse.Hit.p) | |
1536 | repeat | |
1537 | Swait() | |
1538 | GYRO.cframe = CF(RootPart.Position,Mouse.Hit.p) | |
1539 | 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) | |
1540 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1.1*SIZE) - 1)) * ANGLES(RAD(0 - 4 * SIN(SINE / 12)), RAD(25), RAD(0)), 1 / Animation_Speed) | |
1541 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.35*SIZE, 0.65*SIZE, 0*SIZE) * ANGLES(RAD(90), RAD(0), RAD(5)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
1542 | 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) | |
1543 | 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) | |
1544 | 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) | |
1545 | until HOLD == true | |
1546 | local POS = Mouse.Hit.p | |
1547 | local CHAINS = false | |
1548 | local CHAINLINKS = {} | |
1549 | local A = IT("Attachment",RightArm) | |
1550 | A.Position = VT(1,-1,0)*SIZE | |
1551 | A.Orientation = VT(-90, -89.982, 0) | |
1552 | local B = IT("Attachment",RightArm) | |
1553 | B.Position = VT(-1,-1,0)*SIZE | |
1554 | B.Orientation = VT(-90, 89.988, 0) | |
1555 | local C = IT("Attachment",RightArm) | |
1556 | C.Position = VT(0.5,-1.3,0)*SIZE | |
1557 | C.Orientation = VT(-90, -89.982, 0) | |
1558 | local D = IT("Attachment",RightArm) | |
1559 | D.Position = VT(-0.5,-1.3,0)*SIZE | |
1560 | D.Orientation = VT(-90, 89.988, 0) | |
1561 | local LIGHT = IT("Attachment",RightArm) | |
1562 | LIGHT.Position = VT(0,-1,0)*SIZE | |
1563 | local LIGHT2 = IT("PointLight",LIGHT) | |
1564 | LIGHT2.Range = 7 | |
1565 | LIGHT2.Brightness = 5 | |
1566 | LIGHT2.Color = SKILLTEXTCOLOR | |
1567 | for i = 1, 2 do | |
1568 | local TWIST = -2 | |
1569 | local START = A | |
1570 | local END = B | |
1571 | if i == 1 then | |
1572 | START = B | |
1573 | END = A | |
1574 | end | |
1575 | local ChainLink = IT("Beam",Torso) | |
1576 | ChainLink.Texture = "rbxassetid://73042633" | |
1577 | ChainLink.Color = ColorSequence.new(SKILLTEXTCOLOR) | |
1578 | ChainLink.TextureSpeed = 1 | |
1579 | ChainLink.Width0 = 1 | |
1580 | ChainLink.Width1 = 1 | |
1581 | ChainLink.TextureLength = 2.5 | |
1582 | ChainLink.Attachment0 = START | |
1583 | ChainLink.Attachment1 = END | |
1584 | ChainLink.CurveSize0 = TWIST | |
1585 | ChainLink.CurveSize1 = TWIST | |
1586 | --ChainLink.FaceCamera = true | |
1587 | ChainLink.Segments = 45 | |
1588 | ChainLink.Transparency = NumberSequence.new(1) | |
1589 | table.insert(CHAINLINKS,ChainLink) | |
1590 | end | |
1591 | for i = 1, 2 do | |
1592 | local TWIST = -1 | |
1593 | local START = C | |
1594 | local END = D | |
1595 | if i == 1 then | |
1596 | START = D | |
1597 | END = C | |
1598 | end | |
1599 | local ChainLink = IT("Beam",Torso) | |
1600 | ChainLink.Texture = "rbxassetid://73042633" | |
1601 | ChainLink.Color = ColorSequence.new(SKILLTEXTCOLOR) | |
1602 | ChainLink.TextureSpeed = 1 | |
1603 | ChainLink.Width0 = 1 | |
1604 | ChainLink.Width1 = 1 | |
1605 | ChainLink.TextureLength = 5 | |
1606 | ChainLink.Attachment0 = START | |
1607 | ChainLink.Attachment1 = END | |
1608 | ChainLink.CurveSize0 = TWIST | |
1609 | ChainLink.CurveSize1 = TWIST | |
1610 | --ChainLink.FaceCamera = true | |
1611 | ChainLink.Segments = 25 | |
1612 | ChainLink.LightEmission = 0.5 | |
1613 | ChainLink.Transparency = NumberSequence.new(1) | |
1614 | table.insert(CHAINLINKS,ChainLink) | |
1615 | end | |
1616 | coroutine.resume(coroutine.create(function() | |
1617 | repeat | |
1618 | Swait() | |
1619 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0*SIZE, 0*SIZE, 0*SIZE + 0.05*SIZE * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(-45)), 1 / Animation_Speed) | |
1620 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1.1*SIZE) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(45)), 0.15 / Animation_Speed) | |
1621 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.35*SIZE, 0.65*SIZE, 0.2*SIZE) * ANGLES(RAD(60), RAD(0), RAD(-25)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
1622 | 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) | |
1623 | RightHip.C0 = Clerp(RightHip.C0, CF(1*SIZE, -1*SIZE - 0.05*SIZE * COS(SINE / 12), -0.01*SIZE) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1624 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1*SIZE, -1*SIZE - 0.05*SIZE * COS(SINE / 12), -0.01*SIZE) * ANGLES(RAD(0), RAD(-75), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1625 | until CHAINS == true | |
1626 | repeat | |
1627 | Swait() | |
1628 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0*SIZE, 0*SIZE, 0*SIZE + 0.05*SIZE * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(45)), 1 / Animation_Speed) | |
1629 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1.1*SIZE) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(-45)), 1 / Animation_Speed) | |
1630 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.35*SIZE, 0.65*SIZE, -0.2*SIZE) * ANGLES(RAD(90), RAD(0), RAD(45)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
1631 | 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) | |
1632 | RightHip.C0 = Clerp(RightHip.C0, CF(1*SIZE, -1*SIZE - 0.05*SIZE * COS(SINE / 12), -0.01*SIZE) * ANGLES(RAD(0), RAD(75), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1633 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1*SIZE, -1*SIZE - 0.05*SIZE * COS(SINE / 12), -0.01*SIZE) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1634 | until ATTACK == false | |
1635 | for e = 1, 15 do | |
1636 | Swait() | |
1637 | for i = 1, #CHAINLINKS do | |
1638 | CHAINLINKS[i].Transparency = NumberSequence.new((e/15)) | |
1639 | end | |
1640 | end | |
1641 | A:remove() | |
1642 | B:remove() | |
1643 | C:remove() | |
1644 | D:remove() | |
1645 | end)) | |
1646 | CreateSound(233856115, RightArm, 5, 1.2, false) | |
1647 | for e = 1, 15 do | |
1648 | Swait() | |
1649 | for i = 1, #CHAINLINKS do | |
1650 | CHAINLINKS[i].Transparency = NumberSequence.new(1-(e/15)) | |
1651 | end | |
1652 | end | |
1653 | CHAINS = true | |
1654 | Rooted = true | |
1655 | wait(0.25) | |
1656 | local FIST = CreatePart(3, Effects, "Neon", 0, 0.5, "Alder", "Part", VT(2,2,2)) | |
1657 | FIST.Color = C3(1, 215/255, 1) | |
1658 | FIST.CFrame = CF(RightArm.CFrame*CF(0,-1.3*SIZE,0).p,POS) * ANGLES(RAD(90), RAD(0), RAD(0)) | |
1659 | local LIGHT3 = IT("PointLight",FIST) | |
1660 | LIGHT3.Range = 7 | |
1661 | LIGHT3.Brightness = 5 | |
1662 | LIGHT3.Color = SKILLTEXTCOLOR | |
1663 | CreateMesh("SpecialMesh", FIST, "FileMesh", "90718752", "", VT(10,10,10), VT(0,0,0)) | |
1664 | local FISTA = IT("Attachment",FIST) | |
1665 | FISTA.Position = VT(0.062, 0.977, 0) | |
1666 | local ChainLink = IT("Beam",Torso) | |
1667 | ChainLink.Texture = "rbxassetid://73042633" | |
1668 | ChainLink.Color = ColorSequence.new(SKILLTEXTCOLOR) | |
1669 | ChainLink.TextureSpeed = 0 | |
1670 | ChainLink.Width0 = 3 | |
1671 | ChainLink.Width1 = 3 | |
1672 | ChainLink.TextureLength = 12 | |
1673 | ChainLink.Attachment0 = LIGHT | |
1674 | ChainLink.Attachment1 = FISTA | |
1675 | ChainLink.FaceCamera = true | |
1676 | ChainLink.Segments = 45 | |
1677 | ChainLink.LightEmission = 0.5 | |
1678 | ChainLink.Transparency = NumberSequence.new(0.25) | |
1679 | local FISTSOUND = CreateSound(288641686, FIST, 5, 1.2, false) | |
1680 | for i = 1, 85 do | |
1681 | Swait() | |
1682 | FIST.CFrame = FIST.CFrame*CF(0,-2,0) | |
1683 | ChainLink.TextureLength = 12+(i*2) | |
1684 | ApplyAoE(FIST.Position,40,15,20,100,false) | |
1685 | WACKYEFFECT({Time = 5, EffectType = "Wave", Size = VT(5,0,5)*SIZE, Size2 = VT(20,0,20), Transparency = 0.5, Transparency2 = 1, CFrame = FIST.CFrame*CF(0,-1,0) * ANGLES(RAD(0), RAD(i*15), RAD(0)), MoveToPos = nil, RotationX = 0, RotationY = -5, RotationZ = 0, Material = "Neon", Color = C3(159/255, 111/255, 183/255), SoundID = nil, SoundPitch = 0.5, SoundVolume = 6}) | |
1686 | local HITFLOOR = Raycast(FIST.Position, (CF(FIST.Position, FIST.CFrame*CF(0,-1,0).p)).lookVector, 2.1, Character) | |
1687 | if HITFLOOR ~= nil then | |
1688 | HITFLOOR:BreakJoints() | |
1689 | coroutine.resume(coroutine.create(function() | |
1690 | for i = 1, 15 do | |
1691 | Swait() | |
1692 | FISTSOUND.Volume = FISTSOUND.Volume - 0.15 | |
1693 | ApplyAoE(FIST.Position,10+(i*2),5,15,5,false) | |
1694 | WACKYEFFECT({Time = 15, EffectType = "Wave", Size = VT(5,0,5)*SIZE, Size2 = VT(60,3,60), Transparency = 0.5, Transparency2 = 1, CFrame = FIST.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(159/255, 111/255, 183/255), SoundID = nil, SoundPitch = 0.5, SoundVolume = 6}) | |
1695 | end | |
1696 | end)) | |
1697 | break | |
1698 | end | |
1699 | end | |
1700 | coroutine.resume(coroutine.create(function() | |
1701 | for i = 1, 50 do | |
1702 | Swait() | |
1703 | FIST.Transparency = FIST.Transparency + 0.5/50 | |
1704 | LIGHT3.Range = LIGHT3.Range - 7/50 | |
1705 | end | |
1706 | FIST:remove() | |
1707 | end)) | |
1708 | LIGHT:remove() | |
1709 | GYRO:remove() | |
1710 | ATTACK = false | |
1711 | Rooted = false | |
1712 | end | |
1713 | ||
1714 | function WarpMeteor() | |
1715 | local DIST = (RootPart.Position - Mouse.Hit.p).Magnitude | |
1716 | if DIST > 180 then | |
1717 | DIST = 180 | |
1718 | end | |
1719 | local RAY,RAYPOS = Raycast(RootPart.Position, (CF(RootPart.Position, Mouse.Hit.p)).lookVector, DIST, workspace) | |
1720 | local HITFLOOR,HITPOS,NORMAL = Raycast(RAYPOS+VT(0,45,0), (CF(RAYPOS, RAYPOS + VT(0, -1, 0))).lookVector, 75*SIZE, Character) | |
1721 | if HITFLOOR then | |
1722 | local POS = HITPOS | |
1723 | ATTACK = true | |
1724 | Rooted = true | |
1725 | local WARPED = false | |
1726 | local SMASHED = false | |
1727 | local HITFLOOR,HITPOS,NORMAL = Raycast(RootPart.Position+VT(0,1,0), (CF(RAYPOS, RAYPOS + VT(0, -1, 0))).lookVector, 25*SIZE, Character) | |
1728 | coroutine.resume(coroutine.create(function() | |
1729 | repeat | |
1730 | Swait() | |
1731 | 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) | |
1732 | 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) | |
1733 | RightShoulder.C0 = Clerp(RightShoulder.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))) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
1734 | 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) | |
1735 | 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) | |
1736 | 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) | |
1737 | until WARPED == true | |
1738 | repeat | |
1739 | Swait() | |
1740 | 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) | |
1741 | 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) | |
1742 | RightShoulder.C0 = Clerp(RightShoulder.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))) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
1743 | 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) | |
1744 | RightHip.C0 = Clerp(RightHip.C0, CF(1*SIZE, -0.5*SIZE + 0.06 * SIN(SINE / 24) - 0.1*SIZE * COS(SINE / 12), -0.5*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) | |
1745 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1*SIZE, -1*SIZE - 0.06 * SIN(SINE / 24) - 0.1*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) | |
1746 | until SMASHED == true | |
1747 | repeat | |
1748 | Swait() | |
1749 | RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0*SIZE, 0*SIZE, 0*SIZE) * ANGLES(RAD(90), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1750 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0*SIZE, 0*SIZE, 0 + ((1.1*SIZE) - 1)) * ANGLES(RAD(-40), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1751 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5*SIZE, 0.5*SIZE, 0*SIZE) * ANGLES(RAD(170), RAD(-15), RAD(20)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
1752 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5*SIZE, 0.5*SIZE, 0*SIZE) * ANGLES(RAD(170), RAD(15), RAD(-20)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
1753 | RightHip.C0 = Clerp(RightHip.C0, CF(1*SIZE, -1*SIZE, -0.3*SIZE) * ANGLES(RAD(0), RAD(75), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(-20)), 1 / Animation_Speed) | |
1754 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1*SIZE, -1*SIZE, -0.3*SIZE) * ANGLES(RAD(0), RAD(-75), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1755 | until ATTACK == false | |
1756 | end)) | |
1757 | VALUE1 = true | |
1758 | CreateSound(233856115, Torso, 5, 1.6, false) | |
1759 | for i = 1, 25 do | |
1760 | Swait() | |
1761 | for _, c in pairs(Character:GetChildren()) do | |
1762 | if c.ClassName == "Part" then | |
1763 | c.Transparency = c.Transparency + 1/25 | |
1764 | end | |
1765 | end | |
1766 | for _, c in pairs(Weapon:GetChildren()) do | |
1767 | if c.ClassName == "Part" then | |
1768 | c.Transparency = c.Transparency + 1/25 | |
1769 | end | |
1770 | end | |
1771 | end | |
1772 | UNANCHOR = false | |
1773 | RootPart.Anchored = true | |
1774 | RootPart.Velocity = VT(0,0,0) | |
1775 | local ROOTPOS = RootPart.Position | |
1776 | RootPart.CFrame = CF(POS+VT(0,300,0),VT(ROOTPOS.X,POS.Y+300,ROOTPOS.Z)) | |
1777 | WARPED = true | |
1778 | for i = 1, 25 do | |
1779 | Swait() | |
1780 | for _, c in pairs(Character:GetChildren()) do | |
1781 | if c.ClassName == "Part" then | |
1782 | c.Transparency = c.Transparency - 1/25 | |
1783 | end | |
1784 | end | |
1785 | for _, c in pairs(Weapon:GetChildren()) do | |
1786 | if c.ClassName == "Part" then | |
1787 | c.Transparency = c.Transparency - 1/25 | |
1788 | end | |
1789 | end | |
1790 | end | |
1791 | local SHELL = CreatePart(3, Effects, "Neon", 0, 1, "Alder", "Part", VT(0,0,0)) | |
1792 | SHELL.CFrame = RootPart.CFrame | |
1793 | MakeForm(SHELL,"Ball") | |
1794 | CreateSound(402981977, SHELL, 5, 1.6, false) | |
1795 | for i = 1, 10 do | |
1796 | Swait() | |
1797 | SHELL.Transparency = SHELL.Transparency - 1/10 | |
1798 | SHELL.Size = SHELL.Size + VT(2,2,2)*1.8 | |
1799 | end | |
1800 | for i = 1, math.ceil(75/2) do | |
1801 | Swait() | |
1802 | RootPart.CFrame = RootPart.CFrame*CF(0,-3.5*2,0) | |
1803 | SHELL.CFrame = CF(RootPart.Position) | |
1804 | WACKYEFFECT({Time = 5, EffectType = "Sphere", Size = SHELL.Size, Size2 = VT(10,6,10), Transparency = 0.5, Transparency2 = 1, CFrame = SHELL.CFrame, MoveToPos = SHELL.Position+VT(0,15,0), RotationX = 0, RotationY = -5, RotationZ = 0, Material = "Neon", Color = SHELL.Color, SoundID = nil, SoundPitch = 0.75, SoundVolume = 6}) | |
1805 | end | |
1806 | RootPart.CFrame = CF(POS+VT(0,1,0),VT(ROOTPOS.X,HITPOS.Y+1,ROOTPOS.Z)) | |
1807 | SHELL.CFrame = CF(RootPart.Position) | |
1808 | WACKYEFFECT({Time = 45, EffectType = "Sphere", Size = SHELL.Size, Size2 = VT(100,100,100)*4, Transparency = 0, Transparency2 = 1, CFrame = SHELL.CFrame, MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = SHELL.Color, SoundID = 165970126, SoundPitch = 0.75, SoundVolume = 6}) | |
1809 | WACKYEFFECT({Time = 55, EffectType = "Wave", Size = VT(SHELL.Size.X,5,SHELL.Size.Z), Size2 = VT(60,6,60)*3.8, Transparency = 0, Transparency2 = 1, CFrame = SHELL.CFrame, MoveToPos = nil, RotationX = 0, RotationY = -5, RotationZ = 0, Material = "Neon", Color = SHELL.Color, SoundID = nil, SoundPitch = 0.75, SoundVolume = 6}) | |
1810 | WACKYEFFECT({Time = 55, EffectType = "Wave", Size = VT(SHELL.Size.X,5,SHELL.Size.Z), Size2 = VT(60,6,60)*4, Transparency = 0, Transparency2 = 1, CFrame = SHELL.CFrame, MoveToPos = nil, RotationX = 0, RotationY = 5, RotationZ = 0, Material = "Neon", Color = SHELL.Color, SoundID = nil, SoundPitch = 0.75, SoundVolume = 6}) | |
1811 | for i = 1, 5 do | |
1812 | WACKYEFFECT({Time = 35, EffectType = "Wave", Size = VT(5,0,5)*SIZE, Size2 = VT(50,5,50)*4, Transparency = 0.5, Transparency2 = 1, CFrame = RootPart.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(159/255, 111/255, 183/255), SoundID = nil, SoundPitch = 0.5, SoundVolume = 6}) | |
1813 | end | |
1814 | SHELL:remove() | |
1815 | ApplyAoE(RootPart.Position,75,35,75,300,false) | |
1816 | SMASHED = true | |
1817 | wait(1) | |
1818 | VALUE1 = false | |
1819 | UNANCHOR = true | |
1820 | ATTACK = false | |
1821 | Rooted = false | |
1822 | end | |
1823 | end | |
1824 | ||
1825 | function PandorasBox() | |
1826 | 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) | |
1827 | if HITFLOOR ~= nil then | |
1828 | ATTACK = true | |
1829 | Rooted = true | |
1830 | local RINGSPIN = true | |
1831 | local CONSTRUCTING = true | |
1832 | local RING = CreatePart(3, Effects, "Neon", 0, 1, "Alder", "Ring", VT(0,0,0)) | |
1833 | RING.Color = C3(0,0,0) | |
1834 | MakeForm(RING,"Cyl") | |
1835 | RING.CFrame = CF(HITPOS) | |
1836 | CreateSound(402981977, RING, 5, 1.2, false) | |
1837 | coroutine.resume(coroutine.create(function() | |
1838 | repeat | |
1839 | Swait() | |
1840 | RING.CFrame = RING.CFrame * ANGLES(RAD(0), RAD(5), RAD(0)) | |
1841 | 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) | |
1842 | 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) | |
1843 | 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) | |
1844 | 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) | |
1845 | 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) | |
1846 | 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) | |
1847 | until CONSTRUCTING == false | |
1848 | repeat | |
1849 | Swait() | |
1850 | RING.CFrame = RING.CFrame * ANGLES(RAD(0), RAD(5), RAD(0)) | |
1851 | until RINGSPIN == false | |
1852 | for i = 1, 25 do | |
1853 | Swait() | |
1854 | RING.CFrame = RING.CFrame * ANGLES(RAD(0), RAD(5), RAD(0)) | |
1855 | RING.Size = RING.Size - VT(0.15,0,0.15) | |
1856 | --DECAL.Transparency = DECAL.Transparency + 1/25 | |
1857 | RING.Transparency = RING.Transparency + 1/25 | |
1858 | end | |
1859 | RING:remove() | |
1860 | end)) | |
1861 | for i = 1, 15 do | |
1862 | Swait() | |
1863 | RING.Size = RING.Size + VT(0.75,0,0.75) | |
1864 | RING.Transparency = RING.Transparency - 1/15 | |
1865 | end | |
1866 | local BOXSPIN = true | |
1867 | local PANDORASBOX = IT("Model",Effects) | |
1868 | PANDORASBOX.Name = "Pandora's Box" | |
1869 | local BOX = IT("Model",PANDORASBOX) | |
1870 | BOX.Name = "Body" | |
1871 | local LID = IT("Model",PANDORASBOX) | |
1872 | LID.Name = "Lid" | |
1873 | --BUILDING THE BOX-- | |
1874 | local BASE = CreatePart(3, BOX, "Neon", 0, 0, "Alder", "Black", VT(2,1.8,2)) | |
1875 | BASE.Color = C3(0,0,0) | |
1876 | PANDORASBOX.PrimaryPart = BASE | |
1877 | BASE.CFrame = CF(HITPOS+VT(0,-8,0),VT(RootPart.Position.X,HITPOS.Y-8,RootPart.Position.Z)) | |
1878 | local WOOD = CreatePart(3, BOX, "Marble", 0, 0, "Bright yellow", "Marble", VT(0.2,1.9,0.2)) | |
1879 | WOOD.CFrame = BASE.CFrame*CF(1,0,1) | |
1880 | local WOOD = CreatePart(3, BOX, "Marble", 0, 0, "Bright yellow", "Marble", VT(0.2,1.9,0.2)) | |
1881 | WOOD.CFrame = BASE.CFrame*CF(1,0,-1) | |
1882 | local WOOD = CreatePart(3, BOX, "Marble", 0, 0, "Bright yellow", "Marble", VT(0.2,1.9,0.2)) | |
1883 | WOOD.CFrame = BASE.CFrame*CF(-1,0,1) | |
1884 | local WOOD = CreatePart(3, BOX, "Marble", 0, 0, "Bright yellow", "Marble", VT(0.2,1.9,0.2)) | |
1885 | WOOD.CFrame = BASE.CFrame*CF(-1,0,-1) | |
1886 | local WOOD = CreatePart(3, BOX, "Marble", 0, 0, "Bright yellow", "Marble", VT(2.1,0.2,0.2)) | |
1887 | WOOD.CFrame = BASE.CFrame*CF(0,0.9,1) | |
1888 | local WOOD = CreatePart(3, BOX, "Marble", 0, 0, "Bright yellow", "Marble", VT(2.1,0.2,0.2)) | |
1889 | WOOD.CFrame = BASE.CFrame*CF(0,0.9,-1) | |
1890 | local WOOD = CreatePart(3, BOX, "Marble", 0, 0, "Bright yellow", "Marble", VT(0.2,0.2,2.1)) | |
1891 | WOOD.CFrame = BASE.CFrame*CF(1,0.9,0) | |
1892 | local WOOD = CreatePart(3, BOX, "Marble", 0, 0, "Bright yellow", "Marble", VT(0.2,0.2,2.1)) | |
1893 | WOOD.CFrame = BASE.CFrame*CF(-1,0.9,0) | |
1894 | local WOOD = CreatePart(3, BOX, "Marble", 0, 0, "Bright yellow", "Marble", VT(2.1,0.2,0.2)) | |
1895 | WOOD.CFrame = BASE.CFrame*CF(0,-0.9,1) | |
1896 | local WOOD = CreatePart(3, BOX, "Marble", 0, 0, "Bright yellow", "Marble", VT(2.1,0.2,0.2)) | |
1897 | WOOD.CFrame = BASE.CFrame*CF(0,-0.9,-1) | |
1898 | local WOOD = CreatePart(3, BOX, "Marble", 0, 0, "Bright yellow", "Marble", VT(0.2,0.2,2.1)) | |
1899 | WOOD.CFrame = BASE.CFrame*CF(1,-0.9,0) | |
1900 | local WOOD = CreatePart(3, BOX, "Marble", 0, 0, "Bright yellow", "Marble", VT(0.2,0.2,2.1)) | |
1901 | WOOD.CFrame = BASE.CFrame*CF(-1,-0.9,0) | |
1902 | local WOOD = CreatePart(3, BOX, "Marble", 0, 0, "Daisy orange", "Marble", VT(2.1,1.9,0.1)) | |
1903 | WOOD.CFrame = BASE.CFrame*CF(0,0,1) | |
1904 | local WOOD = CreatePart(3, BOX, "Marble", 0, 0, "Daisy orange", "Marble", VT(2.1,1.9,0.1)) | |
1905 | WOOD.CFrame = BASE.CFrame*CF(0,0,-1) | |
1906 | local WOOD = CreatePart(3, BOX, "Marble", 0, 0, "Daisy orange", "Marble", VT(0.1,1.9,2.1)) | |
1907 | WOOD.CFrame = BASE.CFrame*CF(1,0,0) | |
1908 | local WOOD = CreatePart(3, BOX, "Marble", 0, 0, "Daisy orange", "Marble", VT(0.1,1.9,2.1)) | |
1909 | WOOD.CFrame = BASE.CFrame*CF(-1,0,0) | |
1910 | local WOOD = CreatePart(3, BOX, "Marble", 0, 0, "Daisy orange", "Marble", VT(2.1,0.1,2.1)) | |
1911 | WOOD.CFrame = BASE.CFrame*CF(0,-0.9,0) | |
1912 | ------------- | |
1913 | local LIDPART = CreatePart(3, LID, "Marble", 0, 0, "Daisy orange", "Marble", VT(2.1,0.1,2.1)) | |
1914 | LIDPART.CFrame = BASE.CFrame*CF(0,1,0) | |
1915 | LID.PrimaryPart = LIDPART | |
1916 | local WOOD = CreatePart(3, LID, "Marble", 0, 0, "Bright yellow", "Marble", VT(2.1,0.2,0.2)) | |
1917 | WOOD.CFrame = LIDPART.CFrame*CF(0,0,-1) | |
1918 | local WOOD = CreatePart(3, LID, "Marble", 0, 0, "Bright yellow", "Marble", VT(2.1,0.2,0.2)) | |
1919 | WOOD.CFrame = LIDPART.CFrame*CF(0,0,1) | |
1920 | local WOOD = CreatePart(3, LID, "Marble", 0, 0, "Bright yellow", "Marble", VT(0.2,0.2,2.1)) | |
1921 | WOOD.CFrame = LIDPART.CFrame*CF(1,0,0) | |
1922 | local WOOD = CreatePart(3, LID, "Marble", 0, 0, "Bright yellow", "Marble", VT(0.2,0.2,2.1)) | |
1923 | WOOD.CFrame = LIDPART.CFrame*CF(-1,0,0) | |
1924 | local DECAL = IT("Decal",LIDPART) | |
1925 | DECAL.Face = "Top" | |
1926 | DECAL.Texture = "http://www.roblox.com/asset/?id=1501226061" | |
1927 | DECAL.Color3 = C3(0,0,0) | |
1928 | --BUILDING THE BOX-- | |
1929 | coroutine.resume(coroutine.create(function() | |
1930 | repeat | |
1931 | Swait() | |
1932 | PANDORASBOX:SetPrimaryPartCFrame(BASE.CFrame * ANGLES(RAD(0), RAD(2.45), RAD(0))) | |
1933 | until BOXSPIN == false | |
1934 | end)) | |
1935 | for i = 1, 25 do | |
1936 | Swait() | |
1937 | PANDORASBOX:SetPrimaryPartCFrame(BASE.CFrame * CF(0,1.5-(i/12.5),0)) | |
1938 | end | |
1939 | wait(0.5) | |
1940 | BOXSPIN = false | |
1941 | CONSTRUCTING = false | |
1942 | coroutine.resume(coroutine.create(function() | |
1943 | 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}) | |
1944 | --[[for i = 1, 45 do | |
1945 | Swait() | |
1946 | LID:SetPrimaryPartCFrame(LIDPART.CFrame * CF(0,1.5-(i/12.5),0.5) * ANGLES(RAD(0.7), RAD(0), RAD(0))) | |
1947 | end- | |
1948 | LID:remove()]]-- | |
1949 | for _, c in pairs(LID:GetChildren()) do | |
1950 | if c.ClassName == "Part" then | |
1951 | c.Anchored = false | |
1952 | c.CanCollide = true | |
1953 | if c ~= LIDPART then | |
1954 | weldBetween(LIDPART,c) | |
1955 | end | |
1956 | end | |
1957 | end | |
1958 | LIDPART.Velocity = CF(LIDPART.Position,LIDPART.CFrame*CF(15,25,0).p).lookVector*65 | |
1959 | Debris:AddItem(LID,15) | |
1960 | wait(0.5) | |
1961 | local RANDOMEFFECT = MRANDOM(1,4) | |
1962 | if RANDOMEFFECT == 1 then | |
1963 | for i = 1, 45 do | |
1964 | wait((2-(i/15))/15) | |
1965 | 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}) | |
1966 | end | |
1967 | wait(1) | |
1968 | WACKYEFFECT({Time = 45, EffectType = "Sphere", Size = VT(0,0,0), Size2 = VT(70,70,70)*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}) | |
1969 | WACKYEFFECT({Time = 55, EffectType = "Wave", Size = VT(0,0,0), Size2 = VT(60,6,60)*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}) | |
1970 | WACKYEFFECT({Time = 55, EffectType = "Wave", Size = VT(0,0,0), Size2 = VT(60,6,60)*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}) | |
1971 | for i = 1, 5 do | |
1972 | WACKYEFFECT({Time = 35, EffectType = "Wave", Size = VT(5,0,5)*SIZE, Size2 = VT(60,6,60)*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}) | |
1973 | end | |
1974 | ApplyAoE(BASE.Position,50,1,200,375,false) | |
1975 | ApplyAoE(BASE.Position,250,35,75,475,false) | |
1976 | elseif RANDOMEFFECT == 2 then | |
1977 | local FIELD = CreatePart(3, Effects, "Neon", 0, 0, "Alder", "Field", VT(0.3,0.3,0.3)) | |
1978 | FIELD.CFrame = BASE.CFrame | |
1979 | MakeForm(FIELD,"Ball") | |
1980 | for i = 1, 50 do | |
1981 | Swait() | |
1982 | FIELD.Size = FIELD.Size + VT(1,1,1) | |
1983 | FIELD.CFrame = FIELD.CFrame * CF(0,0.75-(i/45),0) | |
1984 | end | |
1985 | wait(0.2) | |
1986 | local LOOP = CreateSound(1393698948, FIELD, 0, 1.2, true) | |
1987 | coroutine.resume(coroutine.create(function() | |
1988 | for i = 1, 75 do | |
1989 | Swait() | |
1990 | LOOP.Volume = LOOP.Volume + 10/75 | |
1991 | LOOP.Parent = FIELD | |
1992 | local CHILDREN = workspace:GetDescendants() | |
1993 | for index, CHILD in pairs(CHILDREN) do | |
1994 | if CHILD.ClassName == "Model" and CHILD ~= Character and CHILD.Parent ~= Effects then | |
1995 | local HUM = CHILD:FindFirstChildOfClass("Humanoid") | |
1996 | if HUM then | |
1997 | local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso") | |
1998 | if TORSO then | |
1999 | if (TORSO.Position - FIELD.Position).Magnitude <= FIELD.Size.X/2 then | |
2000 | HUM.Health = HUM.Health - 0.1 | |
2001 | TORSO.Velocity = VT(0,5,0) | |
2002 | HUM.PlatformStand = true | |
2003 | if TORSO.RotVelocity.Magnitude < 15 then | |
2004 | TORSO.RotVelocity = VT(MRANDOM(-45,45),MRANDOM(-45,45),MRANDOM(-45,45)) | |
2005 | end | |
2006 | end | |
2007 | end | |
2008 | end | |
2009 | end | |
2010 | end | |
2011 | FIELD.Size = FIELD.Size + VT(6,6,6) | |
2012 | FIELD.Transparency = FIELD.Transparency + 0.8/75 | |
2013 | end | |
2014 | for i = 1, 500 do | |
2015 | Swait() | |
2016 | LOOP.Parent = FIELD | |
2017 | local CHILDREN = workspace:GetDescendants() | |
2018 | for index, CHILD in pairs(CHILDREN) do | |
2019 | if CHILD.ClassName == "Model" and CHILD ~= Character and CHILD.Parent ~= Effects then | |
2020 | local HUM = CHILD:FindFirstChildOfClass("Humanoid") | |
2021 | if HUM then | |
2022 | local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso") | |
2023 | if TORSO then | |
2024 | if (TORSO.Position - FIELD.Position).Magnitude <= FIELD.Size.X/2 then | |
2025 | TORSO.Velocity = VT(0,5,0) | |
2026 | HUM.Health = HUM.Health - 0.1 | |
2027 | HUM.PlatformStand = true | |
2028 | if TORSO.RotVelocity.Magnitude < 15 then | |
2029 | TORSO.RotVelocity = VT(MRANDOM(-45,45),MRANDOM(-45,45),MRANDOM(-45,45)) | |
2030 | end | |
2031 | end | |
2032 | end | |
2033 | end | |
2034 | end | |
2035 | end | |
2036 | end | |
2037 | for i = 1, 25 do | |
2038 | Swait() | |
2039 | LOOP.Volume = LOOP.Volume + 10/25 | |
2040 | LOOP.Parent = FIELD | |
2041 | local CHILDREN = workspace:GetDescendants() | |
2042 | for index, CHILD in pairs(CHILDREN) do | |
2043 | if CHILD.ClassName == "Model" and CHILD ~= Character and CHILD.Parent ~= Effects then | |
2044 | local HUM = CHILD:FindFirstChildOfClass("Humanoid") | |
2045 | if HUM then | |
2046 | local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso") | |
2047 | if TORSO then | |
2048 | if (TORSO.Position - FIELD.Position).Magnitude <= FIELD.Size.X/1.8 then | |
2049 | TORSO.Velocity = VT(0,5,0) | |
2050 | HUM.Health = HUM.Health - 0.1 | |
2051 | HUM.PlatformStand = false | |
2052 | if TORSO.RotVelocity.Magnitude < 15 then | |
2053 | TORSO.RotVelocity = VT(MRANDOM(-45,45),MRANDOM(-45,45),MRANDOM(-45,45)) | |
2054 | end | |
2055 | end | |
2056 | end | |
2057 | end | |
2058 | end | |
2059 | end | |
2060 | FIELD.Size = FIELD.Size - VT(9,9,9) | |
2061 | FIELD.Transparency = FIELD.Transparency + 0.2/25 | |
2062 | end | |
2063 | FIELD:remove() | |
2064 | end)) | |
2065 | elseif RANDOMEFFECT == 3 then | |
2066 | for i = 1, 20 do | |
2067 | wait(0.15) | |
2068 | 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}) | |
2069 | coroutine.resume(coroutine.create(function() | |
2070 | local MINION = CLONE:Clone() | |
2071 | MINION.Parent = Effects | |
2072 | MINION.Name = "Shadow" | |
2073 | MINION.HumanoidRootPart.CFrame = BASE.CFrame*CF(0,5,0) * ANGLES(RAD(0), RAD(MRANDOM(0,360)), RAD(0)) | |
2074 | MINION.HumanoidRootPart.Velocity = CF(MINION.HumanoidRootPart.Position,MINION.HumanoidRootPart.CFrame*CF(0,8,-15).p).lookVector*MRANDOM(55,100) | |
2075 | for _, c in pairs(MINION:GetChildren()) do | |
2076 | if c.ClassName == "Part" then | |
2077 | c.Material = "Neon" | |
2078 | c.Color = C3(0,0,0) | |
2079 | c.Transparency = 0.25 | |
2080 | if c.Name == "Head" then | |
2081 | c:ClearAllChildren() | |
2082 | local MSH = IT("BlockMesh",c) | |
2083 | MSH.Scale = VT(0.5,1,1) | |
2084 | end | |
2085 | end | |
2086 | end | |
2087 | local TORSO = MINION.Torso | |
2088 | local HUMAN = MINION.Humanoid | |
2089 | HUMAN.WalkSpeed = 20 | |
2090 | HUMAN.MaxHealth = math.huge | |
2091 | HUMAN.Health = math.huge | |
2092 | HUMAN.DisplayDistanceType = "None" | |
2093 | HUMAN.Died:connect(function() | |
2094 | MINION:remove() | |
2095 | --CreateSound(SHOUTS[MRANDOM(1,3)], TORSO, 3, 0.5, false) | |
2096 | end) | |
2097 | wait(1) | |
2098 | local findNearestTorso = function(POS) | |
2099 | local list = game.Workspace:GetDescendants() | |
2100 | local torso = nil | |
2101 | local dist = 500 | |
2102 | local temp = nil | |
2103 | local human = nil | |
2104 | local temp2 = nil | |
2105 | for x = 1, #list do | |
2106 | temp2 = list[x] | |
2107 | if (temp2.className == "Model") and (temp2 ~= Character) and (temp2.Parent ~= Effects) then | |
2108 | temp = temp2:findFirstChild("Torso") or temp2:findFirstChild("UpperTorso") | |
2109 | human = temp2:findFirstChildOfClass("Humanoid") | |
2110 | if (temp ~= nil) and (human ~= nil) and (human.Health > 0) then | |
2111 | if (temp.Position - POS).magnitude < dist then | |
2112 | torso = temp | |
2113 | dist = (temp.Position - POS).magnitude | |
2114 | end | |
2115 | end | |
2116 | end | |
2117 | end | |
2118 | return torso, dist | |
2119 | end | |
2120 | for i = 1, 40 do | |
2121 | if HUMAN.Health == 0 then | |
2122 | break | |
2123 | end | |
2124 | wait(0.3) | |
2125 | local target,dist= findNearestTorso(TORSO.Position) | |
2126 | if target then | |
2127 | HUMAN:MoveTo(target.Position) | |
2128 | if dist < 25 then | |
2129 | CreateSound(348663022, TORSO, 10, 1, true) | |
2130 | wait(2) | |
2131 | --local ANIM = HUMAN:LoadAnimation(ATANIM) | |
2132 | --ANIM:Play() | |
2133 | --CreateSound(SHOUTS[MRANDOM(1,3)], TORSO, 1, 1, false) | |
2134 | ApplyAoE(TORSO.Position,10,0,0,85,true) | |
2135 | 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}) | |
2136 | for i = 1, 5 do | |
2137 | 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}) | |
2138 | end | |
2139 | break | |
2140 | end | |
2141 | end | |
2142 | end | |
2143 | MINION:remove() | |
2144 | end)) | |
2145 | end | |
2146 | elseif RANDOMEFFECT == 4 then | |
2147 | local FIELD = CreatePart(3, Effects, "Neon", 0, 0, "Alder", "Field", VT(0.3,0.3,0.3)) | |
2148 | FIELD.Color = C3(0,0,0) | |
2149 | FIELD.CFrame = BASE.CFrame | |
2150 | MakeForm(FIELD,"Ball") | |
2151 | FIELD.CanCollide = true | |
2152 | for i = 1, 50 do | |
2153 | Swait() | |
2154 | FIELD.Size = FIELD.Size + VT(1,1,1) | |
2155 | FIELD.CFrame = FIELD.CFrame * CF(0,0.75-(i/45),0) | |
2156 | end | |
2157 | wait(0.2) | |
2158 | local LOOP = CreateSound(487214658, FIELD, 0, 1, true) | |
2159 | coroutine.resume(coroutine.create(function() | |
2160 | local E = 0 | |
2161 | for i = 1, 75 do | |
2162 | E = E + 1 | |
2163 | Swait() | |
2164 | if E >= 60 then | |
2165 | E = 0 | |
2166 | WACKYEFFECT({Time = 25, EffectType = "Sphere", Size = FIELD.Size*80, 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}) | |
2167 | end | |
2168 | LOOP.Volume = LOOP.Volume + 10/75 | |
2169 | LOOP.Parent = FIELD | |
2170 | local CHILDREN = workspace:GetDescendants() | |
2171 | for index, CHILD in pairs(CHILDREN) do | |
2172 | if CHILD.ClassName == "Model" and CHILD ~= Character and CHILD.Parent ~= Effects then | |
2173 | local HUM = CHILD:FindFirstChildOfClass("Humanoid") | |
2174 | if HUM then | |
2175 | local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso") | |
2176 | if TORSO then | |
2177 | if (TORSO.Position - FIELD.Position).Magnitude <= FIELD.Size.X*30 then | |
2178 | for _, c in pairs(CHILD:GetChildren()) do | |
2179 | if c:IsA("BasePart") then | |
2180 | local bv = Instance.new("BodyVelocity") | |
2181 | bv.maxForce = Vector3.new(1e9, 1e9, 1e9) | |
2182 | bv.velocity = CF(FIELD.Position,c.Position).lookVector*-50 | |
2183 | bv.Parent = c | |
2184 | Debris:AddItem(bv,0.05) | |
2185 | end | |
2186 | end | |
2187 | HUM.Health = HUM.Health - 0.3 | |
2188 | end | |
2189 | end | |
2190 | end | |
2191 | end | |
2192 | end | |
2193 | FIELD.Size = FIELD.Size + VT(10,10,10)/5 | |
2194 | end | |
2195 | for i = 1, 180 do | |
2196 | E = E + 1 | |
2197 | Swait() | |
2198 | if E >= 60 then | |
2199 | E = 0 | |
2200 | WACKYEFFECT({Time = 25, EffectType = "Sphere", Size = FIELD.Size*60, 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}) | |
2201 | end | |
2202 | LOOP.Parent = FIELD | |
2203 | local CHILDREN = workspace:GetDescendants() | |
2204 | for index, CHILD in pairs(CHILDREN) do | |
2205 | if CHILD.ClassName == "Model" and CHILD ~= Character and CHILD.Parent ~= Effects then | |
2206 | local HUM = CHILD:FindFirstChildOfClass("Humanoid") | |
2207 | if HUM then | |
2208 | local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso") | |
2209 | if TORSO then | |
2210 | if (TORSO.Position - FIELD.Position).Magnitude <= FIELD.Size.X*30 then | |
2211 | for _, c in pairs(CHILD:GetChildren()) do | |
2212 | if c:IsA("BasePart") then | |
2213 | local bv = Instance.new("BodyVelocity") | |
2214 | bv.maxForce = Vector3.new(1e9, 1e9, 1e9) | |
2215 | bv.velocity = CF(FIELD.Position,c.Position).lookVector*-50 | |
2216 | bv.Parent = c | |
2217 | Debris:AddItem(bv,0.05) | |
2218 | end | |
2219 | end | |
2220 | HUM.Health = HUM.Health - 0.3 | |
2221 | end | |
2222 | end | |
2223 | end | |
2224 | end | |
2225 | end | |
2226 | end | |
2227 | ApplyAoE(FIELD.Position,40,100,20,400,false) | |
2228 | 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}) | |
2229 | for i = 1, 5 do | |
2230 | 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}) | |
2231 | end | |
2232 | FIELD:remove() | |
2233 | end)) | |
2234 | elseif RANDOMEFFECT == 5 then | |
2235 | end | |
2236 | wait(0.5) | |
2237 | for i = 1, 25 do | |
2238 | Swait() | |
2239 | PANDORASBOX:SetPrimaryPartCFrame(BASE.CFrame * CF(0,-0.3,0)) | |
2240 | end | |
2241 | PANDORASBOX:remove() | |
2242 | RINGSPIN = false | |
2243 | end)) | |
2244 | ATTACK = false | |
2245 | Rooted = false | |
2246 | end | |
2247 | end | |
2248 | ||
2249 | function Taunt() | |
2250 | ATTACK = true | |
2251 | local LAUGH = nil | |
2252 | coroutine.resume(coroutine.create(function() | |
2253 | repeat | |
2254 | Swait() | |
2255 | 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) | |
2256 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1.1*SIZE) - 1)) * ANGLES(RAD(5), RAD(0), RAD(-45)), 1 / Animation_Speed) | |
2257 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.25*SIZE, 0.15*SIZE, -0.5*SIZE) * ANGLES(RAD(170), RAD(-25), RAD(-15)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
2258 | 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) | |
2259 | 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) | |
2260 | 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) | |
2261 | until LAUGH ~= nil | |
2262 | repeat | |
2263 | Swait() | |
2264 | LAUGH.Parent = Head | |
2265 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 - 0.04 * SIN(SINE / 24)*SIZE, 0 + 0.04 * SIN(SINE / 12)*SIZE, 0+(0.1*LAUGH.PlaybackLoudness/75) + 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) | |
2266 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1.1*SIZE+(0.1*LAUGH.PlaybackLoudness/75)) - 1)) * ANGLES(RAD(5), RAD(0), RAD(-45)), 1 / Animation_Speed) | |
2267 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.25*SIZE, 0.15*SIZE+(0.1*LAUGH.PlaybackLoudness/75), -0.5*SIZE) * ANGLES(RAD(170), RAD(-25), RAD(-15)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
2268 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25*SIZE, 0.5*SIZE+(0.1*LAUGH.PlaybackLoudness/75), 0.5*SIZE) * ANGLES(RAD(-35), RAD(25 - 2.5 * SIN(SINE / 12)), RAD(55 - 2.5 * SIN(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
2269 | RightHip.C0 = Clerp(RightHip.C0, CF(1*SIZE, -1*SIZE-(0.1*LAUGH.PlaybackLoudness/75) + 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) | |
2270 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1*SIZE, -1*SIZE-(0.1*LAUGH.PlaybackLoudness/75) - 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) | |
2271 | until LAUGH.Playing == false | |
2272 | ATTACK = false | |
2273 | end)) | |
2274 | wait(0.1) | |
2275 | sick:Pause() | |
2276 | LAUGH = CreateSound(525166232, Head, 10, 1, false) | |
2277 | wait(1) | |
2278 | sick:Resume() | |
2279 | end | |
2280 | ||
2281 | function Prison_Key() | |
2282 | if Mouse.Target ~= nil then | |
2283 | if Mouse.Target.Parent ~= Character and Mouse.Target.Parent.Parent ~= Character and Mouse.Target.Parent:FindFirstChildOfClass("Humanoid") ~= nil then | |
2284 | local HUM = Mouse.Target.Parent:FindFirstChildOfClass("Humanoid") | |
2285 | local TORSO = HUM.Parent:FindFirstChild("Torso") or HUM.Parent:FindFirstChild("UpperTorso") | |
2286 | local GYRO = IT("BodyGyro",RootPart) | |
2287 | GYRO.D = 750 | |
2288 | GYRO.P = 20000 | |
2289 | GYRO.MaxTorque = VT(0,40000000,0) | |
2290 | local grav = Instance.new("BodyPosition",TORSO) | |
2291 | grav.D = 15 | |
2292 | grav.P = 20000 | |
2293 | grav.maxForce = Vector3.new(math.huge,math.huge,math.huge) | |
2294 | grav.position = TORSO.Position | |
2295 | local GYRO2 = IT("BodyGyro",TORSO) | |
2296 | GYRO2.D = 750 | |
2297 | GYRO2.P = 20000 | |
2298 | GYRO2.MaxTorque = VT(0,40000000,0) | |
2299 | GYRO2.cframe = CF(TORSO.Position,RootPart.Position) | |
2300 | grav.Name = "Jail" | |
2301 | local LOCKPARTS = {} | |
2302 | ATTACK = true | |
2303 | Rooted = false | |
2304 | local LOCK = IT("Model",Effects) | |
2305 | LOCK.Name = "Lock" | |
2306 | local LOCK2 = IT("Model",LOCK) | |
2307 | LOCK2.Name = "Metal" | |
2308 | --CREATE LOCK-- | |
2309 | local BASE = CreatePart(3, LOCK, "Glass", 0, 0, "Gold", "Keylock", VT(3, 2.5, 1)) | |
2310 | LOCK.PrimaryPart = BASE | |
2311 | BASE.CFrame = CF(TORSO.Position,RootPart.Position)*CF(0,0,-4) | |
2312 | local PRT = CreatePart(3, LOCK, "Glass", 0, 0, "Gold", "Keylock", VT(3, 1, 3)) | |
2313 | PRT.CFrame = BASE.CFrame*CF(0,-1.25,0)*ANGLES(RAD(90),RAD(0),RAD(0)) | |
2314 | MakeForm(PRT,"Cyl") | |
2315 | local PRT = CreatePart(3, LOCK, "Glass", 0, 0, "White", "Hole", VT(1, 1, 1)) | |
2316 | PRT.Color = C3(0,0,0) | |
2317 | PRT.CFrame = BASE.CFrame*CF(0,0.3,-0.01)*ANGLES(RAD(90),RAD(0),RAD(0)) | |
2318 | MakeForm(PRT,"Cyl") | |
2319 | local PRT = CreatePart(3, LOCK, "Glass", 0, 0, "White", "Hole", VT(0.5, 1, 1)) | |
2320 | PRT.Color = C3(0,0,0) | |
2321 | PRT.CFrame = BASE.CFrame*CF(0,-0.2,-0.01) | |
2322 | for i = 1, 45 do | |
2323 | local PRT = CreatePart(3, LOCK2, "Glass", 0, 0, "Grey", "Keylock", VT(0.5, 0.5, 0.5)) | |
2324 | PRT.CFrame = BASE.CFrame*CF(0,2,0)*ANGLES(RAD(0),RAD(0),RAD(-90+(360/90*i)))*CF(0,1,0) | |
2325 | end | |
2326 | local PRT = CreatePart(3, LOCK2, "Glass", 0, 0, "Grey", "Keylock", VT(0.5, 0.5, 0.5)) | |
2327 | PRT.CFrame = BASE.CFrame*CF(0,1.5,0)*ANGLES(RAD(0),RAD(0),RAD(90))*CF(0,1,0) | |
2328 | LOCK2.PrimaryPart = PRT | |
2329 | --------------- | |
2330 | local CHILDREN = LOCK:GetDescendants() | |
2331 | for index, CHILD in pairs(CHILDREN) do | |
2332 | if CHILD:IsA("BasePart") then | |
2333 | CHILD.Transparency = 1 | |
2334 | end | |
2335 | end | |
2336 | for i = 1, 75 do | |
2337 | LOCK:SetPrimaryPartCFrame(CF(TORSO.Position,RootPart.Position)*CF(0,0,-4)) | |
2338 | Swait() | |
2339 | GYRO2.cframe = CF(TORSO.Position,RootPart.Position) | |
2340 | GYRO.cframe = CF(RootPart.Position,TORSO.Position) | |
2341 | local CHILDREN = LOCK:GetDescendants() | |
2342 | for index, CHILD in pairs(CHILDREN) do | |
2343 | if CHILD:IsA("BasePart") then | |
2344 | - | if Key == "r" and ATTACK == false then |
2344 | + | |
2345 | end | |
2346 | end | |
2347 | end | |
2348 | HUM.DisplayDistanceType = "None" | |
2349 | local KEY = IT("Model",Effects) | |
2350 | KEY.Name = "Key" | |
2351 | --CREATE KEY-- | |
2352 | local KBASE = CreatePart(3, KEY, "Neon", 0, 0, "Lavender", "KeyBase", VT(0.1, 1, 0.1),false) | |
2353 | KEY.PrimaryPart = KBASE | |
2354 | KBASE.CFrame = RightArm.CFrame*CF(0,-2.1,0)*ANGLES(RAD(0),RAD(90),RAD(0)) | |
2355 | local WLD = weldBetween(RightArm,KBASE) | |
2356 | for i = 1, 45 do | |
2357 | local PRT = CreatePart(3, KEY, "Neon", 0, 0, "Lavender", "Key", VT(0.1, 0.1, 0.1),false) | |
2358 | PRT.CFrame = KBASE.CFrame*CF(0,0.8,0)*ANGLES(RAD(0),RAD(0),RAD((360/45*i)))*CF(0,0.25,0) | |
2359 | weldBetween(KBASE,PRT) | |
2360 | end | |
2361 | local PRT = CreatePart(3, KEY, "Neon", 0, 0, "Lavender", "Key", VT(0.3, 0.1, 0.1),false) | |
2362 | PRT.CFrame = KBASE.CFrame*CF(-0.15,-0.45,0) | |
2363 | weldBetween(KBASE,PRT) | |
2364 | local PRT = CreatePart(3, KEY, "Neon", 0, 0, "Lavender", "Key", VT(0.3, 0.1, 0.1),false) | |
2365 | PRT.CFrame = KBASE.CFrame*CF(-0.15,-0.25,0) | |
2366 | weldBetween(KBASE,PRT) | |
2367 | -------------- | |
2368 | Rooted = true | |
2369 | Pose("Prepare key",1.5,1.2,false,GYRO,TORSO) | |
2370 | coroutine.resume(coroutine.create(function() | |
2371 | for i = 1, 10 do | |
2372 | Swait() | |
2373 | GYRO2.cframe = CF(TORSO.Position,RootPart.Position) | |
2374 | GYRO.cframe = CF(RootPart.Position,TORSO.Position) | |
2375 | end | |
2376 | CreateSound(1149318312,BASE,5,1,false) | |
2377 | CreateSound(160772554,BASE,3,1,false) | |
2378 | LOCK2:SetPrimaryPartCFrame(BASE.CFrame*CF(0,0.8,0)*ANGLES(RAD(0),RAD(0),RAD(90))*CF(0,1,0)) | |
2379 | for i = 1, 4 do | |
2380 | 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"Lavender".Color, SoundID = nil, SoundPitch = nil, SoundVolume = nil}) | |
2381 | end | |
2382 | 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"Lavender".Color, SoundID = nil, SoundPitch = MRANDOM(8,12)/10, SoundVolume = 5}) | |
2383 | wait(1) | |
2384 | TORSO.Parent.Parent = LOCK | |
2385 | for i = 1, 75 do | |
2386 | Swait() | |
2387 | local CHILDREN = KEY:GetDescendants() | |
2388 | for index, CHILD in pairs(CHILDREN) do | |
2389 | if CHILD:IsA("BasePart") then | |
2390 | CHILD.Transparency = i/25 | |
2391 | end | |
2392 | end | |
2393 | local CHILDREN = LOCK:GetDescendants() | |
2394 | for index, CHILD in pairs(CHILDREN) do | |
2395 | if CHILD:IsA("BasePart") and CHILD.Name ~= "HumanoidRootPart" then | |
2396 | CHILD.Transparency = CHILD.Transparency + 1/75 | |
2397 | elseif CHILD.ClassName == "Decal" then | |
2398 | CHILD.Transparency = CHILD.Transparency + 1/75 | |
2399 | end | |
2400 | end | |
2401 | end | |
2402 | TORSO.Parent:ClearAllChildren() | |
2403 | KEY:remove() | |
2404 | LOCK:remove() | |
2405 | end)) | |
2406 | Pose("Turn key",0.8,1.2,false,GYRO,TORSO) | |
2407 | GYRO:remove() | |
2408 | ATTACK = false | |
2409 | Rooted = false | |
2410 | end | |
2411 | end | |
2412 | end | |
2413 | ||
2414 | function RavagingOverthrower() | |
2415 | ATTACK = true | |
2416 | Rooted = true | |
2417 | for i=0, 1, 0.1 / Animation_Speed do | |
2418 | Swait() | |
2419 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 * SIZE, 0 * SIZE, 0 * SIZE + 0.05 * COS(SINE / 12) * SIZE) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
2420 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * SIZE, 0 * SIZE, 0 + ((1 * SIZE) - 1)) * ANGLES(RAD(5 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
2421 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * SIZE, 0.5 * SIZE, 0 * SIZE) * ANGLES(RAD(180), RAD(0), RAD(25)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed) | |
2422 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * SIZE, 0.5 * SIZE, 0 * SIZE) * ANGLES(RAD(180), RAD(0), RAD(-25)) * LEFTSHOULDERC0, 0.15 / Animation_Speed) | |
2423 | RightHip.C0 = Clerp(RightHip.C0, CF(1 * SIZE, -1 * SIZE, -0 * SIZE) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-15), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
2424 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * SIZE, -1 * SIZE, -0 * SIZE) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-15), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
2425 | end | |
2426 | CreateSound("348663022", Torso, 5, 1) | |
2427 | local StartPos = RootPart.CFrame * CF(0,10,0).p | |
2428 | for i = 1, 5 do | |
2429 | MagicSphere2(25,25,CF(StartPos),"Royal purple") | |
2430 | Swait(15) | |
2431 | end | |
2432 | local soundeffect = IT("Sound",Torso) | |
2433 | soundeffect.SoundId = "rbxassetid://487186990" | |
2434 | soundeffect.Looped = true | |
2435 | soundeffect.Volume = 10 | |
2436 | soundeffect.Playing = true | |
2437 | repeat | |
2438 | turnto(Mouse.Hit.p) | |
2439 | MagicSphere2(25,25,CF(StartPos),"Royal purple") | |
2440 | MagicSphere(25/10,25,CF(StartPos),"Royal purple") | |
2441 | local RayHit, RayPos, RayNormal = CastZapRay(StartPos, Mouse.Hit.p, 750, Character, false) | |
2442 | local distance = (StartPos - RayPos).magnitude | |
2443 | local RayBeam = IT("Part",Effects) | |
2444 | RayBeam.Material = "Neon" | |
2445 | RayBeam.Anchored = true | |
2446 | RayBeam.BrickColor = BRICKC"Royal purple" | |
2447 | local mesh = IT("SpecialMesh",RayBeam) | |
2448 | mesh.MeshType = "Cylinder" | |
2449 | RayBeam.Size = Vector3.new(distance+10, 5, 5) | |
2450 | RayBeam.CFrame = CFrame.new(StartPos, RayPos) * CFrame.new(0, 0, -distance/2) * ANGLES(RAD(0),RAD(90),RAD(0)) | |
2451 | MagicSphere(15,5,CF(RayPos),"Royal purple") | |
2452 | killnearest(RayPos,15,100) | |
2453 | for i = 1, 3 do | |
2454 | 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") | |
2455 | end | |
2456 | Swait() | |
2457 | if KEYHOLD == false then | |
2458 | coroutine.resume(coroutine.create(function() | |
2459 | for i = 1, 5 do | |
2460 | RayBeam.Transparency = RayBeam.Transparency + 1/5 | |
2461 | Swait() | |
2462 | end | |
2463 | RayBeam:remove() | |
2464 | end)) | |
2465 | else | |
2466 | RayBeam:remove() | |
2467 | end | |
2468 | until KEYHOLD == false | |
2469 | soundeffect:remove() | |
2470 | ATTACK = false | |
2471 | Rooted = false | |
2472 | end | |
2473 | ||
2474 | local deathrain = false | |
2475 | ||
2476 | function armagedd() | |
2477 | local Player = game.Players.localPlayer | |
2478 | local Mouse = Player:GetMouse() | |
2479 | local Character = Player.Character | |
2480 | local Humanoid = Character.Humanoid | |
2481 | local Head = Character.Head | |
2482 | local RootPart = Character.HumanoidRootPart | |
2483 | local Torso = Character.Torso | |
2484 | local LeftArm = Character["Left Arm"] | |
2485 | local RightArm = Character["Right Arm"] | |
2486 | local LeftLeg = Character["Left Leg"] | |
2487 | local RightLeg = Character["Right Leg"] | |
2488 | local Camera = game.Workspace.CurrentCamera | |
2489 | local RootJoint = RootPart.RootJoint | |
2490 | local Equipped = false | |
2491 | local Attack = false | |
2492 | local Anim = 'Idle' | |
2493 | local Idle = 0 | |
2494 | local Combo = 1 | |
2495 | local UIS = game:GetService("UserInputService") | |
2496 | local TorsoVelocity = (RootPart.Velocity * Vector3.new(1, 0, 1)).magnitude | |
2497 | local Velocity = RootPart.Velocity.y | |
2498 | local Sine = 0 | |
2499 | local Change = 1 | |
2500 | local maincol = Color3.new(0,0,0) | |
2501 | local maincol2 = Torso.Color | |
2502 | local dash = false | |
2503 | Character.Humanoid.Name = "help" | |
2504 | humanoid = Character.help | |
2505 | local taken = {} | |
2506 | local S = setmetatable({},{__index = function(s,i) return game:service(i) end}) | |
2507 | RootCF = CFrame.fromEulerAnglesXYZ(-1.57, 0, 3.14) | |
2508 | NeckCF = CFrame.new(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0) | |
2509 | ||
2510 | local RW = newMotor(Torso, RightArm, CFrame.new(1.5, 0, 0), CFrame.new(0, 0, 0)) | |
2511 | local LW = newMotor(Torso, LeftArm, CFrame.new(-1.5, 0, 0), CFrame.new(0, 0, 0)) | |
2512 | local RH = newMotor(Torso, RightLeg, CFrame.new(.5, -2, 0), CFrame.new(0, 0, 0)) | |
2513 | local LH = newMotor(Torso, LeftLeg, CFrame.new(-.5, -2, 0), CFrame.new(0, 0, 0)) | |
2514 | RootJoint.C1 = CFrame.new(0, 0, 0) | |
2515 | RootJoint.C0 = CFrame.new(0, 0, 0) | |
2516 | Torso.Neck.C1 = CFrame.new(0, 0, 0) | |
2517 | Torso.Neck.C0 = CFrame.new(0, 1.5, 0) | |
2518 | ||
2519 | local rarmc1 = RW.C1 | |
2520 | local larmc1 = LW.C1 | |
2521 | local rlegc1 = RH.C1 | |
2522 | local llegc1 = LH.C1 | |
2523 | ||
2524 | local resetc1 = false | |
2525 | ATTACK = true | |
2526 | deathrain = true | |
2527 | for i = 0, 1, 0.1 do | |
2528 | swait() | |
2529 | PlayAnimationFromTable({ | |
2530 | CFrame.new(0, 1.25783896, 0.0750579834, 1, 0, 0, 0, 1, 0, 0, 0, 1) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
2531 | CFrame.new(0, 1.5722059, -0.165335715, 1, 0, 0, 0, 0.996194661, 0.087155968, 0, -0.087155968, 0.996194661) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
2532 | CFrame.new(0.770152092, 1.15917587, -0.772684395, 0.669632077, 0.727706194, -0.14844726, 0.385775059, -0.511604249, -0.767749131, -0.634642065, 0.456842214, -0.62331754) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
2533 | CFrame.new(-1.29209483, 1.91917002, -0.0983848572, -0.225760028, -0.171030968, 0.959052086, 0.12644501, -0.981284738, -0.145230755, 0.965942144, 0.0884800404, 0.243160874) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
2534 | CFrame.new(0.5, -1.38367569, -0.476289868, 1, 0, -0, 0, 0.996194661, -0.087155968, 0, 0.087155968, 0.996194661) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
2535 | CFrame.new(-0.5, -1.97375119, -0.383697003, 1, 0, -0, 0, 0.996194661, -0.087155968, 0, 0.087155968, 0.996194661) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
2536 | }, .2, false) | |
2537 | end | |
2538 | local shur = Instance.new("Part",Camera) | |
2539 | shur.CFrame = Mouse.Hit | |
2540 | shur.Anchored = true | |
2541 | shur.CanCollide = false | |
2542 | shur.Transparency = 1 | |
2543 | shur.Rotation = Vector3.new(0,500,0) | |
2544 | CreateSound("331888777", shur, 10, .9) | |
2545 | for i = 0, 2, 0.1 do | |
2546 | swait() | |
2547 | PlayAnimationFromTable({ | |
2548 | CFrame.new(0, 1.50806487, -0.0493182242, 1, 0, 0, 0, 0.965925872, 0.258818984, 0, -0.258818984, 0.965925872) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
2549 | CFrame.new(0, 1.57220507, -0.165325716, 1, 0, 0, 0, 0.99619478, -0.0871558785, 0, 0.0871558785, 0.99619478) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
2550 | CFrame.new(0.770143628, 1.15917659, -0.772669554, 0.669632196, 0.727706075, -0.148447335, 0.385774463, -0.511604011, -0.767749667, -0.634642303, 0.456842661, -0.623317003) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
2551 | CFrame.new(-1.15002179, 0.770601869, -1.3447417, 0.150704995, -0.239807919, 0.959051669, 0.988570929, 0.0404406041, -0.145231575, -0.00395695865, 0.969977796, 0.243161768) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
2552 | CFrame.new(0.5, -1.38367522, -0.476285875, 1, 0, 0, 0, 0.99619478, -0.0871558785, 0, 0.0871558785, 0.99619478) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
2553 | CFrame.new(-0.5, -1.97375286, -0.38368547, 1, 0, 0, 0, 0.99619478, -0.0871558785, 0, 0.0871558785, 0.99619478) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
2554 | }, .2, false) | |
2555 | end | |
2556 | ATTACK = false | |
2557 | for i = 1, 40 do | |
2558 | local met = Instance.new("Part",workspace) | |
2559 | met.CFrame = shur.CFrame * CFrame.new(math.random(-200,200),300,math.random(-200,200)) | |
2560 | met.Anchored = false | |
2561 | met.CanCollide = false | |
2562 | met.Transparency = 0 | |
2563 | met.Size = Vector3.new(.1,.1,.1) | |
2564 | met.Material = "Neon" | |
2565 | met.BrickColor = BrickColor.new(maincol) | |
2566 | local mbewm2 = Instance.new("SpecialMesh", met) | |
2567 | mbewm2.MeshType = "Sphere" | |
2568 | mbewm2.Scale = Vector3.new(100,100,100) | |
2569 | local con = met.Touched:connect(function(hit) | |
2570 | if hit ~= met and hit.Name ~= "Effect" and hit.Name ~= "what" then | |
2571 | MagnitudeDamage(met, 30, 0, 0, 20, "Normal", " ", 1) | |
2572 | CFuncs.Sound.Create("239000203", workspace, .5, 1) | |
2573 | Effects.Sphere2.Create(BrickColor.random, EffectModel, met.CFrame, 1, 3, 1, 5, 10, 5, .01) | |
2574 | Effects.Sphere2.Create(BrickColor.new(maincol), EffectModel, met.CFrame, 2, 4, 2, 6, 11, 6, .01) | |
2575 | ||
2576 | for i = 0, 5 do | |
2577 | local frag = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, "Really black", "Effect", Vector3.new(.1,.1,.1)) | |
2578 | frag.Anchored = false | |
2579 | frag.CFrame = met.CFrame * CFrame.new(math.random(-5,5), 10,math.random(-5,5)) | |
2580 | frag.CanCollide = false | |
2581 | frag.Velocity = Vector3.new(math.random(-200,200),math.random(-200,200),math.random(-200,200)) | |
2582 | local flame = Instance.new("Fire",frag) | |
2583 | flame.SecondaryColor = Color3.new(math.random(0,255),math.random(0,255),math.random(0,255)) | |
2584 | flame.Color = Color3.new(math.random(0,255),math.random(0,255),math.random(0,255)) | |
2585 | flame.Heat = 15 | |
2586 | local mbewm2 = Instance.new("SpecialMesh", frag) | |
2587 | mbewm2.MeshType = "Sphere" | |
2588 | mbewm2.Scale = Vector3.new(100,100,100) | |
2589 | local con = frag.Touched:connect(function(hit) | |
2590 | if hit ~= met and hit.Name ~= "Effect" and hit.Name ~= frag then | |
2591 | MagnitudeDamage(frag, 25, 0, 0, 20, "Normal", " ", 1) | |
2592 | CFuncs.Sound.Create("206049428", workspace, .5, 1) | |
2593 | Effects.Sphere2.Create(BrickColor.new("Smoky grey"), EffectModel, frag.CFrame, .5, 2, .5, 3, 5, 3, .03) | |
2594 | Effects.Sphere2.Create(BrickColor.new(maincol), EffectModel, frag.CFrame, .6, 3, .6, 4, 6, 4, .03) | |
2595 | frag:Destroy() | |
2596 | end | |
2597 | end) | |
2598 | met:Destroy()end end end) | |
2599 | Effects.Sphere2.Create(BrickColor.new("Smoky grey"), EffectModel, shur.CFrame, .5, 2, .5, .5, 10, .5, .03) | |
2600 | wait(.5) | |
2601 | end | |
2602 | deathrain = false | |
2603 | shur:Destroy() | |
2604 | end | |
2605 | ||
2606 | ||
2607 | function obliterate() | |
2608 | Attack = true | |
2609 | Humanoid.WalkSpeed = 0 | |
2610 | Humanoid.JumpPower = 0 | |
2611 | Humanoid.AutoRotate = false | |
2612 | local refpart = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 1, "Really black", "Effect", Vector3.new()) | |
2613 | refpart.Anchored = true | |
2614 | refpart.CFrame = RootPart.CFrame * CFrame.new(0,80,0) | |
2615 | local smonk1 = Instance.new("ParticleEmitter",refpart) | |
2616 | smonk1.LightEmission = .5 | |
2617 | smonk1.Size = NumberSequence.new(0.2) | |
2618 | smonk1.Texture = "rbxassetid://382425306" | |
2619 | aaa = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(.2, 5),NumberSequenceKeypoint.new(.4, 10),NumberSequenceKeypoint.new(.564, 20),NumberSequenceKeypoint.new(.784, 50),NumberSequenceKeypoint.new(1, 100)}) | |
2620 | bbb = NumberSequence.new({NumberSequenceKeypoint.new(0, .3), NumberSequenceKeypoint.new(.7, .5), NumberSequenceKeypoint.new(1, 1)}) | |
2621 | smonk1.Transparency = bbb | |
2622 | smonk1.Size = aaa | |
2623 | smonk1.ZOffset = .5 | |
2624 | smonk1.Acceleration = Vector3.new(0, 0, 0) | |
2625 | smonk1.LockedToPart = false | |
2626 | smonk1.EmissionDirection = "Top" | |
2627 | smonk1.Lifetime = NumberRange.new(3, 3) | |
2628 | smonk1.Rate = 5 | |
2629 | smonk1.Rotation = NumberRange.new(0, 50) | |
2630 | smonk1.RotSpeed = NumberRange.new(50, 50) | |
2631 | smonk1.Speed = NumberRange.new(0) | |
2632 | smonk1.VelocitySpread = 0 | |
2633 | smonk1.Enabled=true | |
2634 | local startColor = maincol | |
2635 | local endColor = maincol | |
2636 | local sequence2 = Color3.new(math.random(0,255), math.random(0,255), math.random(0,255)) | |
2637 | smonk1.Color = Color3.new(math.random(0,255),math.random(0,255),math.random(0,255)) | |
2638 | local smonk2 = Instance.new("ParticleEmitter",refpart) | |
2639 | smonk2.LightEmission = .5 | |
2640 | smonk2.Size = NumberSequence.new(0.2) | |
2641 | smonk2.Texture = "rbxassetid://95648201" | |
2642 | aaa = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(.2, 5),NumberSequenceKeypoint.new(.4, 10),NumberSequenceKeypoint.new(.564, 20),NumberSequenceKeypoint.new(.784, 50),NumberSequenceKeypoint.new(1, 100)}) | |
2643 | bbb = NumberSequence.new({NumberSequenceKeypoint.new(0, 0), NumberSequenceKeypoint.new(1, 1)}) | |
2644 | smonk2.Transparency = bbb | |
2645 | smonk2.Size = aaa | |
2646 | smonk2.ZOffset = .5 | |
2647 | smonk2.Acceleration = Vector3.new(0, 0, 0) | |
2648 | smonk2.LockedToPart = false | |
2649 | smonk2.EmissionDirection = "Top" | |
2650 | smonk2.Lifetime = NumberRange.new(3, 3) | |
2651 | smonk2.Rate = 5 | |
2652 | smonk2.Rotation = NumberRange.new(0, 50) | |
2653 | smonk2.RotSpeed = NumberRange.new(50, 50) | |
2654 | smonk2.Speed = NumberRange.new(0) | |
2655 | smonk2.VelocitySpread = 0 | |
2656 | smonk2.Enabled=true | |
2657 | local startColor = maincol | |
2658 | local startColor = maincol | |
2659 | local endColor = maincol | |
2660 | local sequence3 = ColorSequence.new(startColor, endColor) | |
2661 | smonk2.Color = sequence3 | |
2662 | CFuncs.Sound.Create("376020049", refpart, 1, 1) | |
2663 | local void = Instance.new("Sound", refpart) | |
2664 | void.Looped = true | |
2665 | void.SoundId = "rbxassetid://565538601" | |
2666 | void:Play() | |
2667 | ||
2668 | for i = 0, 8, 0.1 do | |
2669 | swait() | |
2670 | PlayAnimationFromTable({ | |
2671 | CFrame.new(0, 1.25783896, 0.0750579834, 1, 0, 0, 0, 1, 0, 0, 0, 1) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
2672 | CFrame.new(0, 1.5722059, -0.165335715, 1, 0, 0, 0, 0.996194661, 0.087155968, 0, -0.087155968, 0.996194661) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
2673 | CFrame.new(0.770152092, 1.15917587, -0.772684395, 0.669632077, 0.727706194, -0.14844726, 0.385775059, -0.511604249, -0.767749131, -0.634642065, 0.456842214, -0.62331754) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
2674 | CFrame.new(-1.29209483, 1.91917002, -0.0983848572, -0.225760028, -0.171030968, 0.959052086, 0.12644501, -0.981284738, -0.145230755, 0.965942144, 0.0884800404, 0.243160874) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
2675 | CFrame.new(0.5, -1.38367569, -0.476289868, 1, 0, -0, 0, 0.996194661, -0.087155968, 0, 0.087155968, 0.996194661) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
2676 | CFrame.new(-0.5, -1.97375119, -0.383697003, 1, 0, -0, 0, 0.996194661, -0.087155968, 0, 0.087155968, 0.996194661) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
2677 | }, .1, false) | |
2678 | Effects.Sphere2.Create(BrickColor.new(maincol), EffectModel, refpart.CFrame, 2, 2, 2, 2, 2, 2, .01) | |
2679 | armagedd() | |
2680 | end | |
2681 | Humanoid.WalkSpeed = 8 | |
2682 | Humanoid.JumpPower = 0 | |
2683 | Humanoid.AutoRotate = true | |
2684 | Attack = false | |
2685 | for i = 0, 100, 0.1 do | |
2686 | swait() | |
2687 | local startColor = maincol | |
2688 | local endColor = maincol | |
2689 | local sequence2 = Color3.new(math.random(0,255),math.random(0,255),math.random(0,255)) | |
2690 | smonk1.Color = sequence2 | |
2691 | shoot(Mouse,8,refpart,0,7) | |
2692 | Effects.Sphere2.Create(BrickColor.new(maincol), EffectModel, refpart.CFrame, 2, 2, 2, 2, 2, 2, .01) | |
2693 | end | |
2694 | refpart:Destroy() | |
2695 | end | |
2696 | ||
2697 | ||
2698 | --//=================================\\ | |
2699 | --|| ASSIGN THINGS TO KEYS | |
2700 | --\\=================================// | |
2701 | ||
2702 | function MouseDown(Mouse) | |
2703 | HOLD = true | |
2704 | if ATTACK == false then | |
2705 | end | |
2706 | end | |
2707 | ||
2708 | function MouseUp(Mouse) | |
2709 | HOLD = false | |
2710 | end | |
2711 | ||
2712 | function KeyDown(Key) | |
2713 | KEYHOLD = true | |
2714 | if Key == "z" and ATTACK == false then | |
2715 | MagicMissiles() | |
2716 | end | |
2717 | ||
2718 | if Key == "b" and ATTACK == false then | |
2719 | TimesUp() | |
2720 | end | |
2721 | ||
2722 | if Key == "c" and ATTACK == false then | |
2723 | ChainPunch() | |
2724 | end | |
2725 | ||
2726 | if Key == "v" and ATTACK == false then | |
2727 | WarpMeteor() | |
2728 | end | |
2729 | ||
2730 | if Key == "x" and ATTACK == false then | |
2731 | PandorasBox() | |
2732 | end | |
2733 | ||
2734 | if Key == "t" and ATTACK == false then | |
2735 | Taunt() | |
2736 | end | |
2737 | ||
2738 | if Key == "q" and ATTACK == false then | |
2739 | Prison_Key() | |
2740 | end | |
2741 | ||
2742 | if Key == "e" and ATTACK == false then | |
2743 | RavagingOverthrower() | |
2744 | end | |
2745 | if Key == "r" and ATTACK == false and deathrain == false then | |
2746 | obliterate() | |
2747 | end | |
2748 | end | |
2749 | ||
2750 | function KeyUp(Key) | |
2751 | KEYHOLD = false | |
2752 | end | |
2753 | ||
2754 | Mouse.Button1Down:connect(function(NEWKEY) | |
2755 | MouseDown(NEWKEY) | |
2756 | end) | |
2757 | Mouse.Button1Up:connect(function(NEWKEY) | |
2758 | MouseUp(NEWKEY) | |
2759 | end) | |
2760 | Mouse.KeyDown:connect(function(NEWKEY) | |
2761 | KeyDown(NEWKEY) | |
2762 | end) | |
2763 | Mouse.KeyUp:connect(function(NEWKEY) | |
2764 | KeyUp(NEWKEY) | |
2765 | end) | |
2766 | ||
2767 | --//=================================\\ | |
2768 | --\\=================================// | |
2769 | ||
2770 | ||
2771 | function unanchor() | |
2772 | if UNANCHOR == true then | |
2773 | RootPart.Anchored = false | |
2774 | end | |
2775 | g = Character:GetChildren() | |
2776 | for i = 1, #g do | |
2777 | if g[i].ClassName == "Part" and g[i] ~= RootPart then | |
2778 | g[i].Anchored = false | |
2779 | end | |
2780 | end | |
2781 | g = Weapon:GetChildren() | |
2782 | for i = 1, #g do | |
2783 | if g[i].ClassName == "Part" then | |
2784 | g[i].Anchored = false | |
2785 | end | |
2786 | end | |
2787 | end | |
2788 | ||
2789 | ||
2790 | --//=================================\\ | |
2791 | --|| WRAP THE WHOLE SCRIPT UP | |
2792 | --\\=================================// | |
2793 | ||
2794 | Humanoid.Changed:connect(function(Jump) | |
2795 | if Jump == "Jump" and (Disable_Jump == true) then | |
2796 | Humanoid.Jump = false | |
2797 | end | |
2798 | end) | |
2799 | ||
2800 | while true do | |
2801 | Swait() | |
2802 | script.Parent = WEAPONGUI | |
2803 | for _,v in next, Humanoid:GetPlayingAnimationTracks() do | |
2804 | v:Stop(); | |
2805 | end | |
2806 | ANIMATE.Parent = nil | |
2807 | SINE = SINE + CHANGE*1.5 | |
2808 | local TORSOVELOCITY = (RootPart.Velocity * VT(1, 0, 1)).magnitude | |
2809 | local TORSOVERTICALVELOCITY = RootPart.Velocity.y | |
2810 | local HITFLOOR = Raycast(RootPart.Position, (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 4*SIZE, Character) | |
2811 | local WALKSPEEDVALUE = 10 / (Humanoid.WalkSpeed / 16) | |
2812 | if ANIM == "Walk" and TORSOVELOCITY > 1 then | |
2813 | RootJoint.C1 = Clerp(RootJoint.C1, ROOTC0 * CF(0, 0, -0.15 * COS(SINE / (WALKSPEEDVALUE / 2))) * ANGLES(RAD(0), RAD(0) - RootPart.RotVelocity.Y / 75, RAD(0)), 2 * (Humanoid.WalkSpeed / 16) / Animation_Speed) | |
2814 | Neck.C1 = Clerp(Neck.C1, CF(0, -0.5, 0) * ANGLES(RAD(-90), RAD(0), RAD(180)) * ANGLES(RAD(2.5 * SIN(SINE / (WALKSPEEDVALUE / 2))), RAD(0), RAD(0) - Head.RotVelocity.Y / 30), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed) | |
2815 | RightHip.C1 = Clerp(RightHip.C1, CF(0.5*SIZE, 0.875*SIZE - 0.125 * SIN(SINE / WALKSPEEDVALUE)*SIZE - 0.15 * COS(SINE / WALKSPEEDVALUE*2), 0 +0.5+ 0.2 * COS(SINE / WALKSPEEDVALUE)) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0) - RightLeg.RotVelocity.Y / 75, RAD(0), RAD(25+80 * COS(SINE / WALKSPEEDVALUE))), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed) | |
2816 | LeftHip.C1 = Clerp(LeftHip.C1, CF(-0.5*SIZE, 0.875*SIZE + 0.125 * SIN(SINE / WALKSPEEDVALUE)*SIZE - 0.15 * COS(SINE / WALKSPEEDVALUE*2), 0 +0.5+ -0.2 * COS(SINE / WALKSPEEDVALUE)) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0) + LeftLeg.RotVelocity.Y / 75, RAD(0), RAD(-25+80 * COS(SINE / WALKSPEEDVALUE))), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed) | |
2817 | elseif (ANIM ~= "Walk") or (TORSOVELOCITY < 1) then | |
2818 | RootJoint.C1 = Clerp(RootJoint.C1, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed) | |
2819 | Neck.C1 = Clerp(Neck.C1, CF(0, -0.5, 0) * ANGLES(RAD(-90), RAD(0), RAD(180)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
2820 | RightHip.C1 = Clerp(RightHip.C1, CF(0.5*SIZE, 1*SIZE, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
2821 | LeftHip.C1 = Clerp(LeftHip.C1, CF(-0.5*SIZE, 1*SIZE, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
2822 | end | |
2823 | if TORSOVERTICALVELOCITY > 1 and HITFLOOR == nil then | |
2824 | ANIM = "Jump" | |
2825 | if ATTACK == false then | |
2826 | RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0*SIZE, 0*SIZE, 0*SIZE) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
2827 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0*SIZE, 0*SIZE, 0 + ((1.1*SIZE) - 1)) * ANGLES(RAD(-20), RAD(0), RAD(0)), 1 / Animation_Speed) | |
2828 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5*SIZE, 0.5*SIZE, 0*SIZE) * ANGLES(RAD(-40), RAD(0), RAD(20)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
2829 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5*SIZE, 0.5*SIZE, 0*SIZE) * ANGLES(RAD(-40), RAD(0), RAD(-20)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
2830 | RightHip.C0 = Clerp(RightHip.C0, CF(1*SIZE, -1*SIZE, -0.3*SIZE) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(-20)), 1 / Animation_Speed) | |
2831 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1*SIZE, -1*SIZE, -0.3*SIZE) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(20)), 1 / Animation_Speed) | |
2832 | end | |
2833 | elseif TORSOVERTICALVELOCITY < -1 and HITFLOOR == nil then | |
2834 | ANIM = "Fall" | |
2835 | if ATTACK == false then | |
2836 | RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0*SIZE, 0*SIZE, 0*SIZE) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
2837 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0*SIZE, 0*SIZE, 0 + ((1.1*SIZE) - 1)) * ANGLES(RAD(20), RAD(0), RAD(0)), 1 / Animation_Speed) | |
2838 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5*SIZE, 0.5*SIZE, 0*SIZE) * ANGLES(RAD(0), RAD(0), RAD(60)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
2839 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5*SIZE, 0.5*SIZE, 0*SIZE) * ANGLES(RAD(0), RAD(0), RAD(-60)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
2840 | RightHip.C0 = Clerp(RightHip.C0, CF(1*SIZE, -1*SIZE, 0*SIZE) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(20)), 1 / Animation_Speed) | |
2841 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1*SIZE, -1*SIZE, 0*SIZE) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(10)), 1 / Animation_Speed) | |
2842 | end | |
2843 | elseif TORSOVELOCITY < 1 and HITFLOOR ~= nil then | |
2844 | ANIM = "Idle" | |
2845 | if ATTACK == false then | |
2846 | 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) | |
2847 | 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) | |
2848 | RightShoulder.C0 = Clerp(RightShoulder.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))) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
2849 | 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) | |
2850 | 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) | |
2851 | 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) | |
2852 | end | |
2853 | elseif TORSOVELOCITY > 1 and HITFLOOR ~= nil then | |
2854 | ANIM = "Walk" | |
2855 | if ATTACK == false then | |
2856 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0*SIZE, 0*SIZE, -0.1*SIZE) * ANGLES(RAD(5), RAD(0), RAD(0)), 1 / Animation_Speed) | |
2857 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1.1*SIZE) - 1)) * ANGLES(RAD(15 - 1 * SIN(SINE / (WALKSPEEDVALUE / 2))), RAD(0), RAD(0)), 1/ Animation_Speed) | |
2858 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.25*SIZE, 0.5*SIZE, 0.5*SIZE) * ANGLES(RAD(-35), RAD(-25 + 2.5 * SIN(SINE / WALKSPEEDVALUE)), RAD(-55 + 2.5 * SIN(SINE / WALKSPEEDVALUE))) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
2859 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25*SIZE, 0.5*SIZE, 0.5*SIZE) * ANGLES(RAD(-35), RAD(25 - 2.5 * SIN(SINE / WALKSPEEDVALUE)), RAD(55 - 2.5 * SIN(SINE / WALKSPEEDVALUE))) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
2860 | RightHip.C0 = Clerp(RightHip.C0, CF(1*SIZE , -1*SIZE, 0*SIZE) * ANGLES(RAD(0), RAD(85), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 2 / Animation_Speed) | |
2861 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1*SIZE, -1*SIZE, 0*SIZE) * ANGLES(RAD(0), RAD(-85), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 2 / Animation_Speed) | |
2862 | end | |
2863 | end | |
2864 | unanchor() | |
2865 | Humanoid.MaxHealth = "inf" | |
2866 | Humanoid.Health = "inf" | |
2867 | if Rooted == false then | |
2868 | Disable_Jump = false | |
2869 | Humanoid.WalkSpeed = Speed | |
2870 | elseif Rooted == true then | |
2871 | Disable_Jump = true | |
2872 | Humanoid.WalkSpeed = 0 | |
2873 | end | |
2874 | for _, c in pairs(Character:GetChildren()) do | |
2875 | if c.ClassName == "Part" and c.Name ~= "Detail" then | |
2876 | c.Material = "Fabric" | |
2877 | if c:FindFirstChildOfClass("ParticleEmitter") then | |
2878 | c:FindFirstChildOfClass("ParticleEmitter"):remove() | |
2879 | end | |
2880 | if c ~= Head then | |
2881 | c.Color = C3(0,0,0) | |
2882 | else | |
2883 | c.Color = C3(1,1,1) | |
2884 | end | |
2885 | if c == Head then | |
2886 | if c:FindFirstChild("face") then | |
2887 | c.face:remove() | |
2888 | end | |
2889 | end | |
2890 | elseif c.ClassName == "CharacterMesh" or c.ClassName == "Accessory" or c.Name == "Body Colors" then | |
2891 | c:remove() | |
2892 | elseif (c.ClassName == "Shirt" or c.ClassName == "Pants") and c.Name ~= "Cloth" then | |
2893 | c:remove() | |
2894 | end | |
2895 | end | |
2896 | sick.SoundId = "rbxassetid://"..SONG | |
2897 | sick.Looped = true | |
2898 | sick.Pitch = 1 | |
2899 | sick.Volume = 5 | |
2900 | sick.Parent = Torso | |
2901 | sick:Resume() | |
2902 | --sick.Playing = false | |
2903 | Humanoid.Name = "Pandora = "..Player.Name | |
2904 | end | |
2905 | ||
2906 | --//=================================\\ | |
2907 | --\\=================================// | |
2908 | ||
2909 | ||
2910 | ||
2911 | ||
2912 | ||
2913 | --//====================================================\\-- | |
2914 | --|| END OF SCRIPT | |
2915 | --\\====================================================//-- |