View difference between Paste ID: e6k183pN and n2fhBTex
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 Reappear()
174
	for _, c in pairs(Character:GetChildren()) do
175
		if c.ClassName == "Part" and c.Name ~= "HumanoidRootPart" then
176
			c.Transparency = 0
177
			if c:FindFirstChildOfClass("Decal") then
178
				c:FindFirstChildOfClass("Decal").Transparency = 0
179
			end
180
			if c:FindFirstChildOfClass("ParticleEmitter") then
181
				c:FindFirstChildOfClass("ParticleEmitter").Enabled = true
182
			end
183
		elseif c.ClassName == "Accessory" then
184
			c.Handle.Transparency = 0
185
			if c.Handle:FindFirstChildOfClass("ParticleEmitter") then
186
				c.Handle:FindFirstChildOfClass("ParticleEmitter").Enabled = true
187
			end
188
		end
189
	end
190
end
191
192
function CreateDebreeRing(FLOOR,POSITION,SIZE,BLOCKSIZE,SWAIT)
193
	if FLOOR ~= nil then
194
		coroutine.resume(coroutine.create(function()
195
			local PART = CreatePart(3, Effects, "Plastic", 0, 1, "Really red", "DebreeCenter", VT(0,0,0))
196
			PART.CFrame = CF(POSITION)
197
			for i = 1, 45 do
198
				local RingPiece = CreatePart(3, Effects, "Plastic", 0, 0, "Really red", "DebreePart", BLOCKSIZE)
199
				RingPiece.Material = FLOOR.Material
200
				RingPiece.Color = FLOOR.Color
201
				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)))
202
				Debris:AddItem(RingPiece,SWAIT)
203
			end
204
			PART:remove()
205
		end))
206
	end
207
end
208
209
function CreateRing(SIZE,DOESROT,ROT,WAIT,CFRAME,COLOR,GROW)
210
	local wave = CreatePart(3, Effects, "Neon", 0, 0.5, BRICKC(COLOR), "Effect", VT(0,0,0))
211
	local mesh = IT("SpecialMesh",wave)
212
	mesh.MeshType = "FileMesh"
213
	mesh.MeshId = "http://www.roblox.com/asset/?id=3270017"
214
	mesh.Scale = SIZE
215
	mesh.Offset = VT(0,0,0)
216
	wave.CFrame = CFRAME
217
	coroutine.resume(coroutine.create(function(PART)
218
		for i = 1, WAIT do
219
			Swait()
220
			mesh.Scale = mesh.Scale + GROW
221
			if DOESROT == true then
222
				wave.CFrame = wave.CFrame * CFrame.fromEulerAnglesXYZ(0,ROT,0)
223
			end
224
			wave.Transparency = wave.Transparency + (0.5/WAIT)
225
			if wave.Transparency > 0.99 then
226
				wave:remove()
227
			end
228
		end
229
	end))
230
end
231
232
function VanishPlayer()
233
	for _, c in pairs(Character:GetChildren()) do
234
		if c.ClassName == "Part" then
235
			c.Transparency = 1
236
			if c:FindFirstChildOfClass("Decal") then
237
				c:FindFirstChildOfClass("Decal").Transparency = 1
238
			end
239
			if c:FindFirstChildOfClass("ParticleEmitter") then
240
				c:FindFirstChildOfClass("ParticleEmitter").Enabled = false
241
			end
242
		elseif c.ClassName == "Accessory" then
243
			c.Handle.Transparency = 1
244
			if c.Handle:FindFirstChildOfClass("ParticleEmitter") then
245
				c.Handle:FindFirstChildOfClass("ParticleEmitter").Enabled = false
246
			end
247
		end
248
	end
249
end
250
251
function Raycast(POSITION, DIRECTION, RANGE, IGNOREDECENDANTS)
252
	return workspace:FindPartOnRay(Ray.new(POSITION, DIRECTION.unit * RANGE), IGNOREDECENDANTS)
253
end
254
255
function PositiveAngle(NUMBER)
256
	if NUMBER >= 0 then
257
		NUMBER = 0
258
	end
259
	return NUMBER
260
end
261
262
function NegativeAngle(NUMBER)
263
	if NUMBER <= 0 then
264
		NUMBER = 0
265
	end
266
	return NUMBER
267
end
268
269
function Swait(NUMBER)
270
	if NUMBER == 0 or NUMBER == nil then
271
		ArtificialHB.Event:wait()
272
	else
273
		for i = 1, NUMBER do
274
			ArtificialHB.Event:wait()
275
		end
276
	end
277
end
278
279
function CreateMesh(MESH, PARENT, MESHTYPE, MESHID, TEXTUREID, SCALE, OFFSET)
280
	local NEWMESH = IT(MESH)
281
	if MESH == "SpecialMesh" then
282
		NEWMESH.MeshType = MESHTYPE
283
		if MESHID ~= "nil" and MESHID ~= "" then
284
			NEWMESH.MeshId = "http://www.roblox.com/asset/?id="..MESHID
285
		end
286
		if TEXTUREID ~= "nil" and TEXTUREID ~= "" then
287
			NEWMESH.TextureId = "http://www.roblox.com/asset/?id="..TEXTUREID
288
		end
289
	end
290
	NEWMESH.Offset = OFFSET or VT(0, 0, 0)
291
	NEWMESH.Scale = SCALE
292
	NEWMESH.Parent = PARENT
293
	return NEWMESH
294
end
295
296
function CreatePart(FORMFACTOR, PARENT, MATERIAL, REFLECTANCE, TRANSPARENCY, BRICKCOLOR, NAME, SIZE, ANCHOR)
297
	local NEWPART = IT("Part")
298
	NEWPART.formFactor = FORMFACTOR
299
	NEWPART.Reflectance = REFLECTANCE
300
	NEWPART.Transparency = TRANSPARENCY
301
	NEWPART.CanCollide = false
302
	NEWPART.Locked = true
303
	NEWPART.Anchored = true
304
	if ANCHOR == false then
305
		NEWPART.Anchored = false
306
	end
307
	NEWPART.BrickColor = BRICKC(tostring(BRICKCOLOR))
308
	NEWPART.Name = NAME
309
	NEWPART.Size = SIZE
310
	NEWPART.Position = Torso.Position
311
	NEWPART.Material = MATERIAL
312
	NEWPART:BreakJoints()
313
	NEWPART.Parent = PARENT
314
	return NEWPART
315
end
316
317
	local function weldBetween(a, b)
318
	    local weldd = Instance.new("ManualWeld")
319
	    weldd.Part0 = a
320
	    weldd.Part1 = b
321
	    weldd.C0 = CFrame.new()
322
	    weldd.C1 = b.CFrame:inverse() * a.CFrame
323
	    weldd.Parent = a
324
	    return weldd
325
	end
326
327
328
function QuaternionFromCFrame(cf)
329
	local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
330
	local trace = m00 + m11 + m22
331
	if trace > 0 then 
332
		local s = math.sqrt(1 + trace)
333
		local recip = 0.5 / s
334
		return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5
335
	else
336
		local i = 0
337
		if m11 > m00 then
338
			i = 1
339
		end
340
		if m22 > (i == 0 and m00 or m11) then
341
			i = 2
342
		end
343
		if i == 0 then
344
			local s = math.sqrt(m00 - m11 - m22 + 1)
345
			local recip = 0.5 / s
346
			return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip
347
		elseif i == 1 then
348
			local s = math.sqrt(m11 - m22 - m00 + 1)
349
			local recip = 0.5 / s
350
			return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip
351
		elseif i == 2 then
352
			local s = math.sqrt(m22 - m00 - m11 + 1)
353
			local recip = 0.5 / s return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip
354
		end
355
	end
356
end
357
 
358
function QuaternionToCFrame(px, py, pz, x, y, z, w)
359
	local xs, ys, zs = x + x, y + y, z + z
360
	local wx, wy, wz = w * xs, w * ys, w * zs
361
	local xx = x * xs
362
	local xy = x * ys
363
	local xz = x * zs
364
	local yy = y * ys
365
	local yz = y * zs
366
	local zz = z * zs
367
	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))
368
end
369
 
370
function QuaternionSlerp(a, b, t)
371
	local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4]
372
	local startInterp, finishInterp;
373
	if cosTheta >= 0.0001 then
374
		if (1 - cosTheta) > 0.0001 then
375
			local theta = ACOS(cosTheta)
376
			local invSinTheta = 1 / SIN(theta)
377
			startInterp = SIN((1 - t) * theta) * invSinTheta
378
			finishInterp = SIN(t * theta) * invSinTheta
379
		else
380
			startInterp = 1 - t
381
			finishInterp = t
382
		end
383
	else
384
		if (1 + cosTheta) > 0.0001 then
385
			local theta = ACOS(-cosTheta)
386
			local invSinTheta = 1 / SIN(theta)
387
			startInterp = SIN((t - 1) * theta) * invSinTheta
388
			finishInterp = SIN(t * theta) * invSinTheta
389
		else
390
			startInterp = t - 1
391
			finishInterp = t
392
		end
393
	end
394
	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
395
end
396
397
function Clerp(a, b, t)
398
	local qa = {QuaternionFromCFrame(a)}
399
	local qb = {QuaternionFromCFrame(b)}
400
	local ax, ay, az = a.x, a.y, a.z
401
	local bx, by, bz = b.x, b.y, b.z
402
	local _t = 1 - t
403
	return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t))
404
end
405
406
function CreateFrame(PARENT, TRANSPARENCY, BORDERSIZEPIXEL, POSITION, SIZE, COLOR, BORDERCOLOR, NAME)
407
	local frame = IT("Frame")
408
	frame.BackgroundTransparency = TRANSPARENCY
409
	frame.BorderSizePixel = BORDERSIZEPIXEL
410
	frame.Position = POSITION
411
	frame.Size = SIZE
412
	frame.BackgroundColor3 = COLOR
413
	frame.BorderColor3 = BORDERCOLOR
414
	frame.Name = NAME
415
	frame.Parent = PARENT
416
	return frame
417
end
418
419
function CreateLabel(PARENT, TEXT, TEXTCOLOR, TEXTFONTSIZE, TEXTFONT, TRANSPARENCY, BORDERSIZEPIXEL, STROKETRANSPARENCY, NAME)
420
	local label = IT("TextLabel")
421
	label.BackgroundTransparency = 1
422
	label.Size = UD2(1, 0, 1, 0)
423
	label.Position = UD2(0, 0, 0, 0)
424
	label.TextColor3 = TEXTCOLOR
425
	label.TextStrokeTransparency = STROKETRANSPARENCY
426
	label.TextTransparency = TRANSPARENCY
427
	label.FontSize = TEXTFONTSIZE
428
	label.Font = TEXTFONT
429
	label.BorderSizePixel = BORDERSIZEPIXEL
430
	label.TextStrokeColor3 = C3(1,1,1)
431
	label.TextScaled = false
432
	label.Text = TEXT
433
	label.Name = NAME
434
	label.Parent = PARENT
435
	return label
436
end
437
438
function NoOutlines(PART)
439
	PART.TopSurface, PART.BottomSurface, PART.LeftSurface, PART.RightSurface, PART.FrontSurface, PART.BackSurface = 10, 10, 10, 10, 10, 10
440
end
441
442
function CreateWeldOrSnapOrMotor(TYPE, PARENT, PART0, PART1, C0, C1)
443
	local NEWWELD = IT(TYPE)
444
	NEWWELD.Part0 = PART0
445
	NEWWELD.Part1 = PART1
446
	NEWWELD.C0 = C0
447
	NEWWELD.C1 = C1
448
	NEWWELD.Parent = PARENT
449
	return NEWWELD
450
end
451
452
local S = IT("Sound")
453
function CreateSound(ID, PARENT, VOLUME, PITCH, DOESLOOP)
454
	local NEWSOUND = nil
455
	coroutine.resume(coroutine.create(function()
456
		NEWSOUND = S:Clone()
457
		NEWSOUND.Parent = PARENT
458
		NEWSOUND.Volume = VOLUME
459
		NEWSOUND.Pitch = PITCH
460
		NEWSOUND.SoundId = "http://www.roblox.com/asset/?id="..ID
461
		NEWSOUND:play()
462
		if DOESLOOP == true then
463
			NEWSOUND.Looped = true
464
		else
465
			repeat wait(1) until NEWSOUND.Playing == false
466
			NEWSOUND:remove()
467
		end
468
	end))
469
	return NEWSOUND
470
end
471
472
function CFrameFromTopBack(at, top, back)
473
	local right = top:Cross(back)
474
	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)
475
end
476
477
--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})
478
function WACKYEFFECT(Table)
479
	local TYPE = (Table.EffectType or "Sphere")
480
	local SIZE = (Table.Size or VT(1,1,1))
481
	local ENDSIZE = (Table.Size2 or VT(0,0,0))
482
	local TRANSPARENCY = (Table.Transparency or 0)
483
	local ENDTRANSPARENCY = (Table.Transparency2 or 1)
484
	local CFRAME = (Table.CFrame or Torso.CFrame)
485
	local MOVEDIRECTION = (Table.MoveToPos or nil)
486
	local ROTATION1 = (Table.RotationX or 0)
487
	local ROTATION2 = (Table.RotationY or 0)
488
	local ROTATION3 = (Table.RotationZ or 0)
489
	local MATERIAL = (Table.Material or "Neon")
490
	local COLOR = (Table.Color or C3(1,1,1))
491
	local TIME = (Table.Time or 45)
492
	local SOUNDID = (Table.SoundID or nil)
493
	local SOUNDPITCH = (Table.SoundPitch or nil)
494
	local SOUNDVOLUME = (Table.SoundVolume or nil)
495
	coroutine.resume(coroutine.create(function()
496
		local PLAYSSOUND = false
497
		local SOUND = nil
498
		local EFFECT = CreatePart(3, Effects, MATERIAL, 0, TRANSPARENCY, BRICKC("Pearl"), "Effect", VT(1,1,1), true)
499
		if SOUNDID ~= nil and SOUNDPITCH ~= nil and SOUNDVOLUME ~= nil then
500
			PLAYSSOUND = true
501
			SOUND = CreateSound(SOUNDID, EFFECT, SOUNDVOLUME, SOUNDPITCH, false)
502
		end
503
		EFFECT.Color = COLOR
504
		local MSH = nil
505
		if TYPE == "Sphere" then
506
			MSH = CreateMesh("SpecialMesh", EFFECT, "Sphere", "", "", SIZE, VT(0,0,0))
507
		elseif TYPE == "Block" then
508
			MSH = IT("BlockMesh",EFFECT)
509
			MSH.Scale = VT(SIZE.X,SIZE.X,SIZE.X)
510
		elseif TYPE == "Wave" then
511
			MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "20329976", "", SIZE, VT(0,0,-SIZE.X/8))
512
		elseif TYPE == "Ring" then
513
			MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "559831844", "", VT(SIZE.X,SIZE.X,0.1), VT(0,0,0))
514
		elseif TYPE == "Slash" then
515
			MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662586858", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0))
516
		elseif TYPE == "Round Slash" then
517
			MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662585058", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0))
518
		elseif TYPE == "Swirl" then
519
			MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "1051557", "", SIZE, VT(0,0,0))
520
		elseif TYPE == "Skull" then
521
			MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "4770583", "", SIZE, VT(0,0,0))
522
		elseif TYPE == "Crystal" then
523
			MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "9756362", "", SIZE, VT(0,0,0))
524
		end
525
		if MSH ~= nil then
526
			local MOVESPEED = nil
527
			if MOVEDIRECTION ~= nil then
528
				MOVESPEED = (CFRAME.p - MOVEDIRECTION).Magnitude/TIME
529
			end
530
			local GROWTH = SIZE - ENDSIZE
531
			local TRANS = TRANSPARENCY - ENDTRANSPARENCY
532
			if TYPE == "Block" then
533
				EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))
534
			else
535
				EFFECT.CFrame = CFRAME
536
			end
537
			for LOOP = 1, TIME+1 do
538
				Swait()
539
				MSH.Scale = MSH.Scale - GROWTH/TIME
540
				if TYPE == "Wave" then
541
					MSH.Offset = VT(0,0,-MSH.Scale.X/8)
542
				end
543
				EFFECT.Transparency = EFFECT.Transparency - TRANS/TIME
544
				if TYPE == "Block" then
545
					EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))
546
				else
547
					EFFECT.CFrame = EFFECT.CFrame*ANGLES(RAD(ROTATION1),RAD(ROTATION2),RAD(ROTATION3))
548
				end
549
				if MOVEDIRECTION ~= nil then
550
					local ORI = EFFECT.Orientation
551
					EFFECT.CFrame = CF(EFFECT.Position,MOVEDIRECTION)*CF(0,0,-MOVESPEED)
552
					EFFECT.Orientation = ORI
553
				end
554
			end
555
			if PLAYSSOUND == false then
556
				EFFECT:remove()
557
			else
558
				repeat Swait() until SOUND.Playing == false
559
				EFFECT:remove()
560
			end
561
		else
562
			if PLAYSSOUND == false then
563
				EFFECT:remove()
564
			else
565
				repeat Swait() until SOUND.Playing == false
566
				EFFECT:remove()
567
			end
568
		end
569
	end))
570
end
571
function killnearest(position,range,maxstrength)
572
	for i,v in ipairs(workspace:GetChildren()) do
573
	local body = v:GetChildren()
574
		for part = 1, #body do
575
			if((body[part].ClassName == "Part" or body[part].ClassName == "MeshPart") and v ~= Character) then
576
				if(body[part].Position - position).Magnitude < range then
577
					if v.ClassName == "Model" then
578
						v:BreakJoints()
579
					end
580
					--table.insert(Effects2,{body[part],"Disappear",0.02,2,2,2,2})
581
					body[part].Velocity = CFrame.new(position,body[part].Position).lookVector*5*maxstrength
582
				end
583
			end
584
		end
585
		if v.ClassName == "Part" then
586
			if v.Anchored == false and (v.Position - position).Magnitude < range then
587
				--table.insert(Effects2,{v,"Disappear",0.02,2,2,2,2})
588
				v.Velocity = CFrame.new(position,v.Position).lookVector*5*maxstrength
589
			end
590
		end
591
	end
592
end
593
594
function CheckTableForString(Table, String)
595
	for i, v in pairs(Table) do
596
		if string.find(string.lower(String), string.lower(v)) then
597
			return true
598
		end
599
	end
600
	return false
601
end
602
603
function CheckIntangible(Hit)
604
	local ProjectileNames = {"Water", "Arrow", "Projectile", "Effect", "Rail", "Lightning", "Bullet"}
605
	if Hit and Hit.Parent then
606
		if ((not Hit.CanCollide or CheckTableForString(ProjectileNames, Hit.Name)) and not Hit.Parent:FindFirstChild("Humanoid")) then
607
			return true
608
		end
609
	end
610
	return false
611
end
612
613
function MakeForm(PART,TYPE)
614
	if TYPE == "Cyl" then
615
		local MSH = IT("CylinderMesh",PART)
616
	elseif TYPE == "Ball" then
617
		local MSH = IT("SpecialMesh",PART)
618
		MSH.MeshType = "Sphere"
619
	elseif TYPE == "Wedge" then
620
		local MSH = IT("SpecialMesh",PART)
621
		MSH.MeshType = "Wedge"
622
	end
623
end
624
625
Debris = game:GetService("Debris")
626
627
function CastProperRay(StartPos, EndPos, Distance, Ignore)
628
	local DIRECTION = CF(StartPos,EndPos).lookVector
629
	return Raycast(StartPos, DIRECTION, Distance, Ignore)
630
end
631
632
function turnto(position)
633
	RootPart.CFrame=CFrame.new(RootPart.CFrame.p,VT(position.X,RootPart.Position.Y,position.Z)) * CFrame.new(0, 0, 0)
634
end
635
636
function Pose(WhichPose,Speed,Time,Magic,Gyro,Tors)
637
	PLAYMAINANIM = false
638
	if WhichPose == "Cast1" then
639
		for i=0, Time, 0.1 / Animation_Speed do
640
			Swait()
641
			if Magic == true then
642
				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})
643
			end
644
			if Gyro ~= nil and Gyro ~= false then
645
				Gyro.cframe = CF(RootPart.Position,Mouse.Hit.p)
646
			end
647
			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)
648
			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)
649
			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)
650
			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)
651
			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)
652
			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)
653
		end
654
	elseif WhichPose == "Cast2" then
655
		for i=0, Time, 0.1 / Animation_Speed do
656
			Swait()
657
			if Magic == true then
658
				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})
659
				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})
660
			end
661
			if Gyro ~= nil and Gyro ~= false then
662
				Gyro.cframe = CF(RootPart.Position,Mouse.Hit.p)
663
			end
664
			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)
665
			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)
666
			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)
667
			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)
668
			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)
669
			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)
670
		end
671
	elseif WhichPose == "RightArmUp" then
672-
Humanoid.Parent = nil
672+
673
			Swait()
674
			if Magic == true then
675
				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})
676
			end
677
			if Gyro ~= nil and Gyro ~= false then
678
				Gyro.cframe = CF(RootPart.Position,Mouse.Hit.p)
679
			end
680
			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)
681
			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)
682
			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)
683
			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)
684
			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)
685
			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)
686
		end
687
	elseif WhichPose == "Taunt" then
688
		for i=0, Time, 0.1 / Animation_Speed do
689
			Swait()
690
			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)
691
			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)
692
			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)
693
			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)
694
			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)
695
			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)
696
		end
697
		HATWELD.Part0 = RightArm
698
		HATWELD.C0 = CF(0,-1.1,-0.4) * ANGLES(RAD(0), RAD(0), RAD(180)) * ANGLES(RAD(-20), RAD(0), RAD(0))
699
		CreateSound(221057812,Torso,10,1,false)
700
		for i=0, Time*2, 0.1 / Animation_Speed do
701
			Swait()
702
			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)
703
			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)
704
			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)
705
			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)
706
			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)
707
			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)
708
		end
709-
tecks2.Text = "Pandora"
709+
710
			Swait()
711
			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)
712
			Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(5), RAD(0), RAD(0)), Speed / Animation_Speed)
713
			RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.35, 0.65, -0.5) * ANGLES(RAD(175), RAD(0), RAD(-35)) * RIGHTSHOULDERC0, Speed / Animation_Speed)
714
			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)
715
			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)
716
			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)
717
			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)
718
		end
719
		HATWELD.Part0 = Head
720
		HATWELD.C0 = CF(0,0.35,0)
721
	elseif WhichPose == "Prepare key" then
722
		for i=0, Time, 0.1 / Animation_Speed do
723
			Swait()
724
			if Gyro ~= nil and Gyro ~= false then
725
				Gyro.cframe = CF(RootPart.Position,Tors.Position)
726
			end
727
			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)
728
			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)
729
			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)
730
			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)
731
			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)
732
			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)
733-
local PRT = CreatePart(3, Character, "Neon", 0, 0, "Really black", "Detail", VT(1,1.2,0.2),false)
733+
734
	elseif WhichPose == "Turn key" then
735
		for i=0, Time, 0.1 / Animation_Speed do
736
			Swait()
737-
local PRT = CreatePart(3, Character, "Neon", 0, 0, "Really black", "Detail", VT(0.5,0.4,0.5),false)
737+
738
				Gyro.cframe = CF(RootPart.Position,Tors.Position)
739
			end
740
			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)
741-
local PRT = CreatePart(3, Character, "Neon", 0, 0, "Really black", "Detail", VT(0.5,0.3,0.3),false)
741+
742
			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)
743
			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)
744
			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)
745-
local PRT = CreatePart(3, Character, "Neon", 0, 0, "Really black", "Detail", VT(0.5,0.3,0.3),false)
745+
746
		end
747
	end
748
	PLAYMAINANIM = true
749-
local PRT = CreatePart(3, Character, "Neon", 0, 0, "Really black", "Detail", VT(0.4,0.4,0.3),false)
749+
750
751
--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})
752
function Lightning(Table)
753-
local PRT = CreatePart(3, Character, "Neon", 0, 0, "Really black", "Detail", VT(0.4,0.4,0.3),false)
753+
754
	local StartPos = Table.Start or Torso.Position
755
	local EndPos = Table.End or Mouse.Hit.p
756
	local SegmentLength = Table.SegmentL or 2
757
	local Thickness = Table.Thickness or 0.1
758
	local Dissapear = Table.DoesFade or false
759
	local Parent = Table.Ignore or Character
760
	local MaxDist = Table.MaxDist or 400
761
	local Branches = Table.Branches or false
762
	local HIT,HITPOS = CastProperRay(StartPos, EndPos, MaxDist, Parent)
763
	local DISTANCE = math.ceil((StartPos - HITPOS).Magnitude/SegmentLength)
764
	local LIGHTNINGMODEL = IT("Model",Effects)
765-
		Horn.Color = C3(1-((i*4-4)/255),1-((i*6-6)/255),1-((i*3-3)/255))
765+
766
	local LastBolt = nil
767
	for E = 1, DISTANCE do
768
		local ExtraSize = (DISTANCE-E)/15
769
		local PART = CreatePart(3, LIGHTNINGMODEL, "Neon", 0, 0, BRICKC("Pearl"), "LightningPart"..E, VT(Thickness+ExtraSize,SegmentLength,Thickness+ExtraSize))
770-
		Horn.Color = C3(1-((i*4-4)/255),1-((i*6-6)/255),1-((i*3-3)/255))
770+
771
		MakeForm(PART,"Cyl")
772
		if LastBolt == nil then
773
			PART.CFrame = CF(StartPos,HITPOS)*ANGLES(RAD(90),RAD(0),RAD(0))*CF(0,-PART.Size.Y/2,0)
774
		else
775
			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)
776
		end
777
		LastBolt = PART
778
		if Branches == true then
779
			local CHOICE = MRANDOM(1,7+((DISTANCE-E)*2))
780-
		Horn.Color = C3(1-((i*4-4)/255),1-((i*6-6)/255),1-((i*3-3)/255))
780+
781
				local LASTBRANCH = nil
782
				for i = 1, MRANDOM(2,5) do
783
					local ExtraSize2 = ((DISTANCE-E)/25)/i
784
					local PART = CreatePart(3, LIGHTNINGMODEL, "Neon", 0, 0, BRICKC("Pearl"), "Branch"..E.."-"..i, VT(Thickness+ExtraSize2,SegmentLength,Thickness+ExtraSize2))
785-
		Horn.Color = C3(1-((i*4-4)/255),1-((i*6-6)/255),1-((i*3-3)/255))
785+
786
					MakeForm(PART,"Cyl")
787
					if LASTBRANCH == nil then
788
						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)
789
					else
790
						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)
791
					end
792
					LASTBRANCH = PART
793
				end
794
			end
795-
		Horn.Color = C3(1-((i*4-4)/255),1-((i*6-6)/255),1-((i*3-3)/255))
795+
796
	end
797
	if Dissapear == true then
798
		coroutine.resume(coroutine.create(function()
799
			for i = 1, 10 do
800-
		Horn.Color = C3(1-((i*4-4)/255),1-((i*6-6)/255),1-((i*3-3)/255))
800+
801
				for _, c in pairs(LIGHTNINGMODEL:GetChildren()) do
802
					if c.ClassName == "Part" then
803
						c.Transparency = i/10
804
					end
805
				end
806
			end
807
			LIGHTNINGMODEL:remove()
808
		end))
809
	elseif Dissapear == false then
810-
		Horn.Color = C3(1-((i*4-4)/255),1-((i*6-6)/255),1-((i*3-3)/255))
810+
811
	end
812
	return {End = LastBolt.CFrame*CF(0,0,-LastBolt.Size.Z/2).p,LastBolt = LastBolt,Model = LIGHTNINGMODEL}
813
end
814
815-
		Horn.Color = C3(1-((i*4-4)/255),1-((i*6-6)/255),1-((i*3-3)/255))
815+
816
--||	     WEAPON CREATION
817
--\\=================================//
818-
local PRT = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Watch", VT(1.05,0.06,1.05)*SIZE,false)
818+
819
RootPart.Size = RootPart.Size*SIZE
820-
local PRT = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Watch", VT(0.5,0.1,0.5)*SIZE,false)
820+
821
RightArm.Size = RightArm.Size*SIZE
822
RightLeg.Size = RightLeg.Size*SIZE
823-
local PRT = CreatePart(3, Weapon, "Neon", 0, 0, "Mid gray", "Watch", VT(0.45,0.11,0.45)*SIZE,false)
823+
824
LeftLeg.Size = LeftLeg.Size*SIZE
825
RootJoint.C0 = ROOTC0 * CF(0 * SIZE, 0 * SIZE, 0 * SIZE) * ANGLES(RAD(0), RAD(0), RAD(0))
826
RootJoint.C1 = ROOTC0 * CF(0 * SIZE, 0 * SIZE, 0 * SIZE) * ANGLES(RAD(0), RAD(0), RAD(0))
827-
local RING = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Watch", VT(0.055,0.15,0.055)*SIZE,false)
827+
828
Neck.C1 = CF(0 * SIZE, -0.5 * SIZE, 0 * SIZE) * ANGLES(RAD(-90), RAD(0), RAD(180))
829
RightShoulder.C1 = CF(0 * SIZE, 0.5 * SIZE, -0.35 * SIZE)
830
LeftShoulder.C1 = CF(0 * SIZE, 0.5 * SIZE, -0.35 * SIZE)
831
RightHip.C0 = CF(1 * SIZE, -1 * SIZE, 0 * SIZE) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0))
832-
	local PRT = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Watch", VT(0,0.15,0)*SIZE,false)
832+
833
RightHip.C1 = CF(0.5 * SIZE, 1 * SIZE, 0 * SIZE) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0))
834
LeftHip.C1 = CF(-0.5 * SIZE, 1 * SIZE, 0 * SIZE) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0))
835
Head.Size = Head.Size*SIZE
836
RootJoint.Parent = RootPart
837
Neck.Parent = Torso
838-
local PRT = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Watch", VT(0,0.15,0.15)*SIZE,false)
838+
839
LeftShoulder.Parent = Torso
840
RightHip.Parent = Torso
841
LeftHip.Parent = Torso
842
843
Humanoid.DisplayDistanceType = "None"
844
local naeeym2 = IT("BillboardGui",Character)
845
naeeym2.AlwaysOnTop = true
846
naeeym2.Size = UDim2.new(5,35,2,15)
847
naeeym2.StudsOffset = Vector3.new(0,2,0)
848
naeeym2.MaxDistance = 75
849
naeeym2.Adornee = Character.Head
850
naeeym2.Name = "Name"
851
local tecks2 = IT("TextLabel",naeeym2)
852
tecks2.BackgroundTransparency = 1
853
tecks2.TextScaled = true
854
tecks2.BorderSizePixel = 0
855
tecks2.Text = "!Insanity! Pandora"
856
tecks2.Font = "Fantasy"
857
tecks2.TextSize = 30
858
tecks2.TextStrokeTransparency = 0
859
tecks2.TextColor3 = C3(1,1,1)
860
tecks2.TextStrokeColor3 = C3(159/255, 111/255, 183/255)
861
tecks2.Size = UDim2.new(1,0,0.5,0)
862
tecks2.Parent = naeeym2
863
local top = Instance.new("Shirt")
864
top.ShirtTemplate = "rbxassetid://1533635803"
865
top.Parent = Character
866
top.Name = "Cloth"
867
local bottom = Instance.new("Pants")
868
bottom.PantsTemplate = "rbxassetid://1460022985"
869
bottom.Parent = Character
870
bottom.Name = "Cloth"
871
local PRT = CreatePart(3, Weapon, "Fabric", 0, 0, "Really black", "Hat", VT(1,1,1),false)
872
PRT.Color = C3(0,0,0)
873
CreateWeldOrSnapOrMotor("Weld", Head, Head, PRT, CF(0,0.72*SIZE,0.1) * ANGLES(RAD(15), RAD(0), RAD(0)), CF(0, 0, 0))
874
CreateMesh("SpecialMesh", PRT, "FileMesh", "26768040", "", VT(1,1,1)*SIZE, VT(0,0,0))
875
local PRT = CreatePart(3, Character, "Fabric", 0, 0, "Really black", "Detail", VT(1,1,1),false)
876
PRT.Color = C3(1,1,1)
877
CreateWeldOrSnapOrMotor("Weld", Head, Head, PRT, CF(0,0,-.5*SIZE), CF(0, 0, 0))
878
CreateMesh("SpecialMesh", PRT, "FileMesh", "13520257", "", VT(1,1,1)*SIZE, VT(0,0,0))
879
local PRT = CreatePart(3, Character, "Neon", 0, 0, "Really red", "Detail", VT(1,1.2,0.2),false)
880
PRT.Color = C3(159/255, 111/255, 183/255)
881
MakeForm(PRT,"Ball")
882
CreateWeldOrSnapOrMotor("Weld", Head, Head, PRT, CF(0,0,-.5*SIZE), CF(0, 0, 0))
883
local PRT = CreatePart(3, Character, "Neon", 0, 0, "Really red", "Detail", VT(0.5,0.4,0.5),false)
884
PRT.Color = C3(159/255, 111/255, 183/255)
885
MakeForm(PRT,"Ball")
886
CreateWeldOrSnapOrMotor("Weld", Head, Head, PRT, CF(0,-0.3,-.5*SIZE), CF(0, 0, 0))
887
local PRT = CreatePart(3, Character, "Neon", 0, 0, "Really red", "Detail", VT(0.5,0.3,0.3),false)
888
PRT.Color = C3(159/255, 111/255, 183/255)
889-
local SKILLTEXTCOLOR = C3(159/255, 111/255, 183/255)
889+
890
CreateWeldOrSnapOrMotor("Weld", Head, Head, PRT, CF(0.25,0.25,-.5*SIZE), CF(0, 0, 0))
891
local PRT = CreatePart(3, Character, "Neon", 0, 0, "Really red", "Detail", VT(0.5,0.3,0.3),false)
892
PRT.Color = C3(159/255, 111/255, 183/255)
893
MakeForm(PRT,"Ball")
894
CreateWeldOrSnapOrMotor("Weld", Head, Head, PRT, CF(-0.25,0.25,-.5*SIZE), CF(0, 0, 0))
895
local PRT = CreatePart(3, Character, "Neon", 0, 0, "Really red", "Detail", VT(0.4,0.4,0.3),false)
896
PRT.Color = C3(159/255, 111/255, 183/255)
897
MakeForm(PRT,"Ball")
898
CreateWeldOrSnapOrMotor("Weld", Head, Head, PRT, CF(-0.17,-0.25,-.5*SIZE) * ANGLES(RAD(-15), RAD(15), RAD(0)), CF(0, 0, 0))
899
local PRT = CreatePart(3, Character, "Neon", 0, 0, "Really red", "Detail", VT(0.4,0.4,0.3),false)
900-
local SKILL1FRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.23-.20, 0, 0.84, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 1 Frame")
900+
901-
local SKILL2FRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.50+.20, 0, 0.84, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 2 Frame")
901+
902-
local SKILL3FRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.23, 0, 0.90, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 3 Frame")
902+
903-
local SKILL4FRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.50, 0, 0.90, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 4 Frame")
903+
904-
local SKILL5FRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.365, 0, 0.86, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 5 Frame")
904+
905
for i = 1, 24 do
906-
local SKILL1TEXT = CreateLabel(SKILL1FRAME, "[Z] Magic Missiles", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0, "Text 1")
906+
907-
local SKILL2TEXT = CreateLabel(SKILL2FRAME, "[B] Times up", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0, "Text 2")
907+
908-
local SKILL3TEXT = CreateLabel(SKILL3FRAME, "[C] Chained Punch", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0, "Text 3")
908+
909-
local SKILL4TEXT = CreateLabel(SKILL4FRAME, "[V] Warp Meteor", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0, "Text 4")
909+
910-
local SKILL5TEXT = CreateLabel(SKILL5FRAME, "[X] Pandora's Box", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0, "Text 5")
910+
911
		Horn.Color = C3(0,0,0)
912
	else
913
		local Horn = CreatePart(3, Character, "SmoothPlastic", 0, 0, "Dirt brown", "Detail", VT(0.25*MATH,0.15,0.25*MATH),false)
914
		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))
915
		LASTPART = Horn
916
		Horn.Color = C3(0,0,0)
917
	end
918
end
919
local LASTPART = Head
920
for i = 1, 24 do
921
	local MATH = (1-(i/30))
922
	if LASTPART == Head then
923
		local Horn = CreatePart(3, Character, "SmoothPlastic", 0, 0, "Dirt brown", "Detail", VT(0.25*MATH,0.15,0.25*MATH),false)
924
		CreateWeldOrSnapOrMotor("Weld", LASTPART, LASTPART, Horn, CF(-0.8, 0.3, -0.4) * ANGLES(RAD(-25), RAD(-220), RAD(-90)), CF(0, 0, 0))
925
		LASTPART = Horn
926
		Horn.Color = C3(0,0,0)
927
	else
928
		local Horn = CreatePart(3, Character, "SmoothPlastic", 0, 0, "Dirt brown", "Detail", VT(0.25*MATH,0.15,0.25*MATH),false)
929
		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))
930
		LASTPART = Horn
931
		Horn.Color = C3(0,0,0)
932
	end
933
end
934
local LASTPART = Head
935
for i = 1, 8 do
936
	local MATH = (1-(i/14))
937
	if LASTPART == Head then
938
		local Horn = CreatePart(3, Character, "SmoothPlastic", 0, 0, "Dirt brown", "Detail", VT(0.25*MATH,0.15,0.25*MATH),false)
939
		CreateWeldOrSnapOrMotor("Weld", LASTPART, LASTPART, Horn, CF(0.65, -0.3, -0.4) * ANGLES(RAD(-25), RAD(250), RAD(90)), CF(0, 0, 0))
940
		LASTPART = Horn
941
		Horn.Color = C3(0,0,0)
942
	else
943
		local Horn = CreatePart(3, Character, "SmoothPlastic", 0, 0, "Dirt brown", "Detail", VT(0.25*MATH,0.15,0.25*MATH),false)
944
		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))
945
		LASTPART = Horn
946
		Horn.Color = C3(0,0,0)
947
	end
948
end
949
local LASTPART = Head
950
for i = 1, 8 do
951
	local MATH = (1-(i/14))
952
	if LASTPART == Head then
953
		local Horn = CreatePart(3, Character, "SmoothPlastic", 0, 0, "Dirt brown", "Detail", VT(0.25*MATH,0.15,0.25*MATH),false)
954
		CreateWeldOrSnapOrMotor("Weld", LASTPART, LASTPART, Horn, CF(-0.65, -0.3, -0.4) * ANGLES(RAD(-25), RAD(-250), RAD(-90)), CF(0, 0, 0))
955
		LASTPART = Horn
956
		Horn.Color = C3(0,0,0)
957
	else
958
		local Horn = CreatePart(3, Character, "SmoothPlastic", 0, 0, "Dirt brown", "Detail", VT(0.25*MATH,0.15,0.25*MATH),false)
959
		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))
960
		LASTPART = Horn
961
		Horn.Color = C3(0,0,0)
962
	end
963
end
964
local PRT = CreatePart(3, Weapon, "Metal", 0, 0, "Really black", "Watch", VT(1.05,0.06,1.05)*SIZE,false)
965
CreateWeldOrSnapOrMotor("Weld", RightArm, RightArm, PRT, CF(0,-0.5*SIZE,0) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
966
local PRT = CreatePart(3, Weapon, "Metal", 0, 0, "Really black", "Watch", VT(0.5,0.1,0.5)*SIZE,false)
967
CreateWeldOrSnapOrMotor("Weld", RightArm, RightArm, PRT, CF(0,-0.5*SIZE,0) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, -0.5*SIZE, 0))
968
MakeForm(PRT,"Cyl")
969
local PRT = CreatePart(3, Weapon, "Neon", 0, 0, "Really red", "Watch", VT(0.45,0.11,0.45)*SIZE,false)
970
CreateWeldOrSnapOrMotor("Weld", RightArm, RightArm, PRT, CF(0,-0.5*SIZE,0) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, -0.5*SIZE, 0))
971
MakeForm(PRT,"Cyl")
972
PRT.Color = C3(159/255, 111/255, 183/255)
973
local RING = CreatePart(3, Weapon, "Metal", 0, 0, "Really black", "Watch", VT(0.055,0.15,0.055)*SIZE,false)
974
CreateWeldOrSnapOrMotor("Weld", RightArm, RightArm, RING, CF(0,-0.5*SIZE,0) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, -0.5*SIZE, 0))
975
MakeForm(RING,"Cyl")
976
RING.Color = C3(0,0,0)
977
for i = 1, 12 do
978
	local PRT = CreatePart(3, Weapon, "Metal", 0, 0, "Really black", "Watch", VT(0,0.15,0)*SIZE,false)
979
	PRT.Color = C3(0,0,0)
980-
			if LOOP >= 10 then
980+
981
	MSH.Scale = VT(0.6,1,1)
982
	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))
983
end
984
local PRT = CreatePart(3, Weapon, "Metal", 0, 0, "Really black", "Watch", VT(0,0.15,0.15)*SIZE,false)
985
PRT.Color = C3(0,0,0)
986
local MSH = IT("BlockMesh",PRT)
987
MSH.Scale = VT(0.4,1,1)
988
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))
989
local PRT = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Watch", VT(0,0.15,0.15/1.5)*SIZE,false)
990
PRT.Color = C3(0,0,0)
991
local MSH = IT("BlockMesh",PRT)
992
MSH.Scale = VT(0.4,1,1)
993
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))
994
coroutine.resume(coroutine.create(function()
995
	while true do
996
		Swait()
997
		CLOCKLOOP = CLOCKLOOP - 1*CLOCKSPEED
998
		WATCH1.C0 = Clerp(WATCH1.C0, CF(0,-0.5*SIZE,0) * ANGLES(RAD(90), RAD(CLOCKLOOP*5), RAD(0)), 1 / Animation_Speed)
999
		WATCH2.C0 = Clerp(WATCH2.C0, CF(0,-0.5*SIZE,0) * ANGLES(RAD(90), RAD(CLOCKLOOP*5/2), RAD(0)), 1 / Animation_Speed)
1000-
			if LOOP >= 10 then
1000+
1001
			if VALUE1 == false then
1002
				CLOCKLOOP = 0
1003
				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})
1004
				local HITFLOOR,HITPOS = Raycast(RootPart.Position, (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 25*SIZE, Character)
1005
				ApplyAoE(HITPOS,10,15,45,75,false)
1006
				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})
1007
				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})
1008
				if CLOCKTARGET ~= nil then
1009
					CLOCKTARGET.Health = CLOCKTARGET.Health - 20
1010
					if CLOCKTARGET.Torso ~= nil then
1011
						CLOCKTARGET.Torso.CFrame = CLOCKTARGET.Torso.CFrame * ANGLES(RAD(MRANDOM(0,360)), RAD(MRANDOM(0,360)), RAD(MRANDOM(0,360)))
1012
					end
1013
					if CLOCKTARGET.Health == 0 then
1014
						CLOCKTARGET = nil
1015
					end
1016
				end
1017
			end
1018
		end
1019
	end
1020-
			if DIST > 65 then
1020+
1021-
				DIST = 65
1021+
1022
for _, c in pairs(Weapon:GetChildren()) do
1023
	if c.ClassName == "Part" then
1024
		c.CustomPhysicalProperties = PhysicalProperties.new(0, 0, 0, 0, 0)
1025
	end
1026
end
1027
1028
Neck.Name = "Weld"
1029
RootJoint.Name = "Weld"
1030
RightShoulder.Name = "Weld"
1031-
	until #SPOTS == 5
1031+
1032
RightHip.Name = "Weld"
1033
LeftHip.Name = "Weld"
1034
1035
local SKILLTEXTCOLOR = C3(255/255, 0/255, 0/255)
1036
local SKILLFONT = "Fantasy"
1037
local SKILLTEXTSIZE = 7
1038
1039
Weapon.Parent = Character
1040
Humanoid.Parent = Character
1041
1042
Humanoid.Died:connect(function()
1043
	ATTACK = true
1044
end)
1045
1046
--//=================================\\
1047
--||			DAMAGING
1048
--\\=================================//
1049
1050
function ApplyDamage(Humanoid,Damage,TorsoPart)
1051
	local defence = Instance.new("BoolValue",Humanoid.Parent)
1052
	defence.Name = ("HitBy"..Player.Name)
1053
	game:GetService("Debris"):AddItem(defence, 0.001)
1054
	Damage = Damage * DAMAGEMULTIPLIER
1055
	if Humanoid.Health ~= 0 then
1056
		local CritChance = MRANDOM(1,100)
1057
		if Damage > Humanoid.Health then
1058
			Damage = math.ceil(Humanoid.Health)
1059
			if Damage == 0 then
1060
				Damage = 0.1
1061
			end
1062
		end
1063
		Humanoid.Health = Humanoid.Health - Damage
1064
	end
1065
end
1066
1067
function ApplyAoE(POSITION,RANGE,MINDMG,MAXDMG,FLING,INSTAKILL)
1068
	local CHILDREN = workspace:GetDescendants()
1069
	for index, CHILD in pairs(CHILDREN) do
1070
		if CHILD.ClassName == "Model" and CHILD ~= Character and CHILD.Parent ~= Effects then
1071
			local HUM = CHILD:FindFirstChildOfClass("Humanoid")
1072
			if HUM then
1073
				local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso")
1074
				if TORSO then
1075
					if (TORSO.Position - POSITION).Magnitude <= RANGE then
1076
						if INSTAKILL == true then
1077
							CHILD:BreakJoints()
1078
						else
1079
							local DMG = MRANDOM(MINDMG,MAXDMG)
1080
							ApplyDamage(HUM,DMG,TORSO)
1081
						end
1082
						if FLING > 0 then
1083
							for _, c in pairs(CHILD:GetChildren()) do
1084
								if c:IsA("BasePart") then
1085
									local bv = Instance.new("BodyVelocity") 
1086
									bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
1087
									bv.velocity = CF(POSITION,TORSO.Position).lookVector*FLING
1088
									bv.Parent = c
1089
									Debris:AddItem(bv,0.05)
1090
								end
1091
							end
1092
						end
1093
					end
1094
				end
1095
			end
1096
		end
1097
	end
1098
end
1099
1100
function MagicSphere2(size,waitt,cframe,color)
1101
	local wave = CreatePart(3, Effects, "Neon", 0, 1, BRICKC(color), "Effect", VT(1,1,1))
1102
	local mesh = IT("SpecialMesh",wave)
1103
	mesh.MeshType = "Sphere"
1104
	mesh.Scale = VT(size,size,size)
1105
	mesh.Offset = VT(0,0,0)
1106
	wave.CFrame = cframe
1107
	coroutine.resume(coroutine.create(function(PART)
1108
		for i = 1, waitt do
1109
			Swait()
1110
			mesh.Scale = mesh.Scale - VT(size/waitt,size/waitt,size/waitt)
1111
			wave.Transparency = wave.Transparency - (1/waitt)
1112
		end
1113
		wave:remove()
1114
	end))
1115
end
1116
1117
function MagicSphere(size,waitt,cframe,color)
1118
	local wave = CreatePart(3, Effects, "Neon", 0, 0, BRICKC(color), "Effect", VT(1,1,1))
1119
	local mesh = IT("SpecialMesh",wave)
1120
	mesh.MeshType = "Sphere"
1121
	mesh.Scale = VT(size,size,size)
1122
	mesh.Offset = VT(0,0,0)
1123
	wave.CFrame = cframe
1124
	coroutine.resume(coroutine.create(function(PART)
1125
		for i = 1, waitt do
1126
			Swait()
1127
			mesh.Scale = mesh.Scale + VT(size/5,size/5,size/5)
1128
			wave.Transparency = wave.Transparency + (1/waitt)
1129
			if wave.Transparency > 0.99 then
1130
				wave:remove()
1131
			end
1132
		end
1133
	end))
1134
end
1135
1136
function CastZapRay(StartPos, Vec, Length, Ignore, DelayIfHit)
1137
	local Direction = CFrame.new(StartPos, Vec).lookVector
1138
	local Ignore = ((type(Ignore) == "table" and Ignore) or {Ignore})
1139
	local RayHit, RayPos, RayNormal = game:GetService("Workspace"):FindPartOnRayWithIgnoreList(Ray.new(StartPos, Direction * Length), Ignore)
1140
	if RayHit and CheckIntangible(RayHit) then
1141
		if DelayIfHit then
1142
			wait()
1143
		end
1144
		RayHit, RayPos, RayNormal = CastZapRay((RayPos + (Vec * 0.01)), Vec, (Length - ((StartPos - RayPos).magnitude)), Ignore, DelayIfHit)
1145
	end
1146
	return RayHit, RayPos, RayNormal
1147
end
1148
1149
function CreateSwirl(inair,size,doesrotate,rotatedirection,waitt,cframe,color)
1150
	local wave = CreatePart(3, Effects, "Neon", 0, 0.5, BRICKC(color), "Effect", VT(0,0,0))
1151
	local mesh = IT("SpecialMesh",wave)
1152
	mesh.MeshType = "FileMesh"
1153
	mesh.MeshId = "http://www.roblox.com/asset/?id=1051557"
1154
	mesh.Scale = VT(size,size,size)
1155
	wave.CFrame = cframe
1156
	coroutine.resume(coroutine.create(function(PART)
1157
		for i = 1, waitt do
1158
			Swait()
1159
			mesh.Scale = mesh.Scale + VT(size/5,0,size/5)
1160
			if doesrotate == true then
1161
				wave.CFrame = wave.CFrame * CFrame.fromEulerAnglesXYZ(0, rotatedirection, 0)
1162
			end
1163
			wave.Transparency = wave.Transparency + (0.5/waitt)
1164
			if wave.Transparency > 0.99 then
1165
				wave:remove()
1166
			end
1167
		end
1168
	end))
1169
end
1170
1171
--//=================================\\
1172
--||	ATTACK FUNCTIONS AND STUFF
1173
--\\=================================//
1174
1175
function MagicMissiles()
1176
	ATTACK = true
1177
	Rooted = true
1178
	local SELECTING = true
1179
	local SPOTS = {}
1180
	coroutine.resume(coroutine.create(function()
1181
		local LOOP = 0
1182
		repeat
1183
			LOOP = LOOP + 1
1184
			Swait()
1185
			if LOOP >= 20 then
1186
				LOOP = 0
1187
				for i = 1, #SPOTS do
1188
					if SPOTS[i] ~= nil then
1189
						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})
1190
						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})
1191
					end
1192
				end
1193
			end
1194
			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)
1195
			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)
1196
			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)
1197
			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)
1198
			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)
1199
			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)
1200
		until SELECTING == false
1201
		Rooted = false
1202
		repeat
1203
			LOOP = LOOP + 1
1204
			Swait()
1205
			if LOOP >= 20 then
1206
				LOOP = 0
1207
				for i = 1, #SPOTS do
1208
					if SPOTS[i] ~= nil then
1209
						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})
1210
						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})
1211
					end
1212
				end
1213
			end
1214
			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)
1215
			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)
1216
			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)
1217
			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)
1218
			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)
1219
			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)
1220
		until ATTACK == false
1221
	end))
1222
	repeat
1223
		repeat Swait() until HOLD == true
1224
			local DIST = (RootPart.Position - Mouse.Hit.p).Magnitude
1225
			if DIST > 9999 then
1226
				DIST = 9999
1227
			end
1228
			local RAY,RAYPOS = Raycast(RootPart.Position, (CF(RootPart.Position, Mouse.Hit.p)).lookVector, DIST, workspace)	
1229
			local HITFLOOR,HITPOS,NORMAL = Raycast(RAYPOS+VT(0,1,0), (CF(RAYPOS, RAYPOS + VT(0, -1, 0))).lookVector, 25*SIZE, Character)	
1230
			if HITFLOOR ~= nil then
1231
				table.insert(SPOTS,CF(HITPOS,HITPOS+NORMAL) * ANGLES(RAD(90), RAD(0), RAD(0)))
1232
				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})
1233
				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})
1234
			end
1235
		repeat Swait() until HOLD == false
1236
	until #SPOTS == 15
1237
	SELECTING = false
1238
	for i = 1, #SPOTS do
1239
		if SPOTS[i] ~= nil then
1240
			local POS = SPOTS[i]
1241
			coroutine.resume(coroutine.create(function()
1242
				local MISSILE = IT("Model",Effects)
1243
				MISSILE.Name = "Missile"
1244
				local BASEPART = CreatePart(3, MISSILE, "Neon", 0, 1, "Alder", "Part", VT(2,2,2))
1245
				MakeForm(BASEPART,"Cyl")
1246
				MISSILE.PrimaryPart = BASEPART
1247
				BASEPART.CFrame = POS*CF(0,-30*3,0)
1248
				local HEAD = CreatePart(3, MISSILE, "Neon", 0, 1, "Alder", "Part", VT(2,4,2))
1249
				MakeForm(HEAD,"Ball")
1250
				HEAD.CFrame = BASEPART.CFrame*CF(0,1,0)
1251
				local TAIL = CreatePart(3, MISSILE, "Neon", 0, 1, "Alder", "Part", VT(2.5,0.1,2.5))
1252
				MakeForm(TAIL,"Cyl")
1253
				TAIL.CFrame = BASEPART.CFrame*CF(0,-1,0)
1254
				for i = 1, 10 do
1255
					Swait()
1256
					for _, c in pairs(MISSILE:GetChildren()) do
1257
						if c.ClassName == "Part" then
1258
							c.Transparency = c.Transparency - 1/10
1259
						end
1260
					end
1261
				end
1262
				for i = 1, 15*1.5 do
1263
					Swait()
1264
					MISSILE:SetPrimaryPartCFrame(BASEPART.CFrame*CF(0,1.35*3,0))
1265
				end
1266
				ApplyAoE(BASEPART.CFrame.p,20,35,45,75,false)
1267
				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})
1268
				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})
1269
				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})
1270
				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})
1271
				MISSILE:remove()
1272
			end))
1273
		end
1274
	end
1275
	wait(0.6)
1276
	ATTACK = false
1277
	Rooted = false
1278
end
1279
1280
1281
1282
function TimesUp()
1283
	CLOCKTARGET = nil
1284
	if Mouse.Target.Parent ~= Character and Mouse.Target.Parent.Parent ~= Character and Mouse.Target.Parent:FindFirstChildOfClass("Humanoid") ~= nil then
1285
		local HUM = Mouse.Target.Parent:FindFirstChildOfClass("Humanoid")
1286
		local TORSO = HUM.Parent:FindFirstChild("Torso") or HUM.Parent:FindFirstChild("UpperTorso")
1287
		if TORSO then
1288
			ATTACK = true
1289
			Rooted = false
1290
			coroutine.resume(coroutine.create(function()
1291
				repeat
1292
					Swait()
1293
					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)
1294
					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)
1295
					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)
1296
					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)
1297
					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)
1298
					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)
1299-
		ApplyAoE(FIST.Position,10,15,25,100,false)
1299+
1300-
		WACKYEFFECT({Time = 5, EffectType = "Wave", Size = VT(5,0,5)*SIZE, Size2 = VT(15,1,15), 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})
1300+
1301
			if Effects:FindFirstChild("NeonDoll") then
1302
				repeat Swait() until Effects:FindFirstChild("NeonDoll") == nil
1303
			end
1304
			wait(0.5)
1305
			local FAKECHARACTER = IT("Model",Effects)
1306
			FAKECHARACTER.Name = "NeonDoll"
1307
			local TORS = CreatePart(3, FAKECHARACTER, "Neon", 0, 1, "Alder", "Part", VT(0.3,0.3,0.15),false)
1308
			CreateWeldOrSnapOrMotor("Weld", RING, RING, TORS, CF(0,0.6,0), CF(0,0,0))
1309-
					WACKYEFFECT({Time = 15, EffectType = "Wave", Size = VT(5,0,5)*SIZE, Size2 = VT(35,3,35), 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})
1309+
1310
			CreateWeldOrSnapOrMotor("Weld", TORS, TORS, LEG, CF(0.15/2,-0.15,0) * ANGLES(RAD(0), RAD(0), RAD(15)), CF(0,0.15,0))
1311
			local LEG = CreatePart(3, FAKECHARACTER, "Neon", 0, 1, "Alder", "Part", VT(0.15,0.3,0.15),false)
1312
			CreateWeldOrSnapOrMotor("Weld", TORS, TORS, LEG, CF(-0.15/2,-0.15,0) * ANGLES(RAD(0), RAD(0), RAD(-15)), CF(0,0.15,0))
1313
			local ARM = CreatePart(3, FAKECHARACTER, "Neon", 0, 1, "Alder", "Part", VT(0.15,0.3,0.15),false)
1314
			CreateWeldOrSnapOrMotor("Weld", TORS, TORS, ARM, CF(0.15,0.15/2,0) * ANGLES(RAD(0), RAD(0), RAD(90)), CF(0,0.15,0))
1315
			local ARM = CreatePart(3, FAKECHARACTER, "Neon", 0, 1, "Alder", "Part", VT(0.15,0.3,0.15),false)
1316
			CreateWeldOrSnapOrMotor("Weld", TORS, TORS, ARM, CF(-0.15,0.15/2,0) * ANGLES(RAD(0), RAD(0), RAD(-90)), CF(0,0.15,0))
1317
			local HEAD = CreatePart(3, FAKECHARACTER, "Neon", 0, 1, "Alder", "Part", VT(0.15,0.15,0.15),false)
1318
			CreateWeldOrSnapOrMotor("Weld", TORS, TORS, HEAD, CF(0,0.225,0), CF(0,0,0))
1319
			CreateSound(201858045, TORS, 5, 0.4, false)
1320
			for i = 1, 150 do
1321
				Swait()
1322
				CLOCKSPEED = 100
1323
				for _, c in pairs(FAKECHARACTER:GetChildren()) do
1324
					if c.ClassName == "Part" then
1325
						c.Transparency = c.Transparency - 0.5/150
1326
					end
1327
				end
1328
			end
1329
			CLOCKTARGET = HUM
1330
			coroutine.resume(coroutine.create(function()
1331
				repeat Swait() CLOCKSPEED = 100 until CLOCKTARGET == nil
1332
				for i = 1, 25 do
1333
					Swait()
1334
					for _, c in pairs(FAKECHARACTER:GetChildren()) do
1335
						if c.ClassName == "Part" then
1336
							c.Transparency = c.Transparency + 0.5/25
1337
						end
1338
					end
1339
				end
1340
				CLOCKSPEED = 100
1341
				FAKECHARACTER:remove()
1342
			end))
1343
			wait(0.5)
1344
			ATTACK = false
1345
			Rooted = false
1346
		end
1347
	end
1348
end
1349
1350
function ChainPunch()
1351
	ATTACK = true
1352
	Rooted = false
1353
	local GYRO = IT("BodyGyro",RootPart)
1354
	GYRO.D = 25
1355
	GYRO.P = 2000
1356
	GYRO.MaxTorque = VT(0,40000,0)
1357
	GYRO.cframe = CF(RootPart.Position,Mouse.Hit.p)
1358
	repeat
1359
		Swait()
1360
		GYRO.cframe = CF(RootPart.Position,Mouse.Hit.p)
1361
		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)
1362
		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)
1363
		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)
1364
		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)
1365
		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)
1366
		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)
1367
	until HOLD == true
1368
	local POS = Mouse.Hit.p
1369
	local CHAINS = false
1370
	local CHAINLINKS = {}
1371
	local A = IT("Attachment",RightArm)
1372
	A.Position = VT(1,-1,0)*SIZE
1373
	A.Orientation = VT(-90, -89.982, 0)
1374
	local B = IT("Attachment",RightArm)
1375
	B.Position = VT(-1,-1,0)*SIZE
1376
	B.Orientation = VT(-90, 89.988, 0)
1377
	local C = IT("Attachment",RightArm)
1378
	C.Position = VT(0.5,-1.3,0)*SIZE
1379
	C.Orientation = VT(-90, -89.982, 0)
1380
	local D = IT("Attachment",RightArm)
1381
	D.Position = VT(-0.5,-1.3,0)*SIZE
1382
	D.Orientation = VT(-90, 89.988, 0)
1383
	local LIGHT = IT("Attachment",RightArm)
1384
	LIGHT.Position = VT(0,-1,0)*SIZE
1385
	local LIGHT2 = IT("PointLight",LIGHT)
1386
	LIGHT2.Range = 7
1387
	LIGHT2.Brightness = 5
1388
	LIGHT2.Color = SKILLTEXTCOLOR
1389
	for i = 1, 2 do
1390
		local TWIST = -2
1391
		local START = A
1392
		local END = B
1393
		if i == 1 then
1394
			START = B
1395
			END = A
1396
		end
1397
		local ChainLink = IT("Beam",Torso)
1398
		ChainLink.Texture = "rbxassetid://73042633"
1399
		ChainLink.Color = ColorSequence.new(SKILLTEXTCOLOR)
1400
		ChainLink.TextureSpeed = 1
1401
		ChainLink.Width0 = 1
1402
		ChainLink.Width1 = 1
1403
		ChainLink.TextureLength = 2.5
1404
		ChainLink.Attachment0 = START
1405
		ChainLink.Attachment1 = END
1406
		ChainLink.CurveSize0 = TWIST
1407
		ChainLink.CurveSize1 = TWIST
1408
		--ChainLink.FaceCamera = true
1409
		ChainLink.Segments = 45
1410
		ChainLink.Transparency = NumberSequence.new(1)
1411
		table.insert(CHAINLINKS,ChainLink)
1412
	end
1413-
			SHELL.Size = SHELL.Size + VT(0.6,0.6,0.6)*1.8
1413+
1414
		local TWIST = -1
1415
		local START = C
1416
		local END = D
1417
		if i == 1 then
1418
			START = D
1419-
			WACKYEFFECT({Time = 5, EffectType = "Sphere", Size = SHELL.Size, Size2 = VT(5,3,5), 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})
1419+
1420
		end
1421
		local ChainLink = IT("Beam",Torso)
1422
		ChainLink.Texture = "rbxassetid://73042633"
1423-
		WACKYEFFECT({Time = 45, EffectType = "Sphere", Size = SHELL.Size, Size2 = VT(35,35,35)*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})
1423+
1424-
		WACKYEFFECT({Time = 55, EffectType = "Wave", Size = VT(SHELL.Size.X,5,SHELL.Size.Z), Size2 = VT(45,3,45)*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})
1424+
1425-
		WACKYEFFECT({Time = 55, EffectType = "Wave", Size = VT(SHELL.Size.X,5,SHELL.Size.Z), Size2 = VT(45,3,45)*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})
1425+
1426
		ChainLink.Width1 = 1
1427-
			WACKYEFFECT({Time = 35, EffectType = "Wave", Size = VT(5,0,5)*SIZE, Size2 = VT(35,3,35)*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})
1427+
1428
		ChainLink.Attachment0 = START
1429
		ChainLink.Attachment1 = END
1430-
		ApplyAoE(RootPart.Position,75,35,75,175,false)
1430+
1431
		ChainLink.CurveSize1 = TWIST
1432
		--ChainLink.FaceCamera = true
1433
		ChainLink.Segments = 25
1434
		ChainLink.LightEmission = 0.5
1435
		ChainLink.Transparency = NumberSequence.new(1)
1436
		table.insert(CHAINLINKS,ChainLink)
1437
	end
1438
	coroutine.resume(coroutine.create(function()
1439
		repeat
1440
			Swait()
1441
			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)
1442
			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)
1443
			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)
1444
			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)
1445
			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)
1446
			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)
1447
		until CHAINS == true
1448
		repeat
1449
			Swait()
1450
			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)
1451
			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)
1452
			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)
1453
			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)
1454
			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)
1455
			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)
1456
		until ATTACK == false
1457
		for e = 1, 15 do
1458
			Swait()
1459
			for i = 1, #CHAINLINKS do
1460
				CHAINLINKS[i].Transparency = NumberSequence.new((e/15))
1461
			end
1462
		end
1463
		A:remove()
1464
		B:remove()
1465
		C:remove()
1466
		D:remove()
1467
	end))
1468
	CreateSound(233856115, RightArm, 5, 1.2, false)
1469
	for e = 1, 15 do
1470
		Swait()
1471
		for i = 1, #CHAINLINKS do
1472
			CHAINLINKS[i].Transparency = NumberSequence.new(1-(e/15))
1473
		end
1474
	end
1475
	CHAINS = true
1476
	Rooted = true
1477
	wait(0.25)
1478
	local FIST = CreatePart(3, Effects, "Neon", 0, 0.5, "Alder", "Part", VT(2,2,2))
1479
	FIST.Color = C3(1, 215/255, 1)
1480
	FIST.CFrame = CF(RightArm.CFrame*CF(0,-1.3*SIZE,0).p,POS) * ANGLES(RAD(90), RAD(0), RAD(0)) 
1481
	local LIGHT3 = IT("PointLight",FIST)
1482
	LIGHT3.Range = 7
1483
	LIGHT3.Brightness = 5
1484
	LIGHT3.Color = SKILLTEXTCOLOR
1485
	CreateMesh("SpecialMesh", FIST, "FileMesh", "90718752", "", VT(10,10,10), VT(0,0,0))
1486
	local FISTA = IT("Attachment",FIST)
1487
	FISTA.Position = VT(0.062, 0.977, 0)
1488
	local ChainLink = IT("Beam",Torso)
1489
	ChainLink.Texture = "rbxassetid://73042633"
1490
	ChainLink.Color = ColorSequence.new(SKILLTEXTCOLOR)
1491
	ChainLink.TextureSpeed = 0
1492
	ChainLink.Width0 = 3
1493
	ChainLink.Width1 = 3
1494
	ChainLink.TextureLength = 12
1495
	ChainLink.Attachment0 = LIGHT
1496
	ChainLink.Attachment1 = FISTA
1497
	ChainLink.FaceCamera = true
1498
	ChainLink.Segments = 45
1499
	ChainLink.LightEmission = 0.5
1500
	ChainLink.Transparency = NumberSequence.new(0.25)
1501
	local FISTSOUND = CreateSound(288641686, FIST, 5, 1.2, false)
1502
	for i = 1, 85 do
1503
		Swait()
1504
		FIST.CFrame = FIST.CFrame*CF(0,-2,0)
1505
		ChainLink.TextureLength = 12+(i*2)
1506
		ApplyAoE(FIST.Position,40,15,20,100,false)
1507
		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})
1508
		local HITFLOOR = Raycast(FIST.Position, (CF(FIST.Position, FIST.CFrame*CF(0,-1,0).p)).lookVector, 2.1, Character)
1509
		if HITFLOOR ~= nil then
1510
			HITFLOOR:BreakJoints()
1511
			coroutine.resume(coroutine.create(function()
1512
				for i = 1, 15 do
1513
					Swait()
1514
					FISTSOUND.Volume = FISTSOUND.Volume - 0.15
1515
					ApplyAoE(FIST.Position,10+(i*2),5,15,5,false)
1516
					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})
1517
				end
1518
			end))
1519
			break
1520
		end
1521
	end
1522
	coroutine.resume(coroutine.create(function()
1523
		for i = 1, 50 do
1524
			Swait()
1525
			FIST.Transparency = FIST.Transparency + 0.5/50
1526
			LIGHT3.Range = LIGHT3.Range - 7/50
1527
		end
1528
		FIST:remove()
1529
	end))
1530
	LIGHT:remove()
1531
	GYRO:remove()
1532
	ATTACK = false
1533
	Rooted = false
1534
end
1535
1536
function WarpMeteor()
1537
	local DIST = (RootPart.Position - Mouse.Hit.p).Magnitude
1538
	if DIST > 180 then
1539
		DIST = 180
1540
	end
1541
	local RAY,RAYPOS = Raycast(RootPart.Position, (CF(RootPart.Position, Mouse.Hit.p)).lookVector, DIST, workspace)	
1542
	local HITFLOOR,HITPOS,NORMAL = Raycast(RAYPOS+VT(0,45,0), (CF(RAYPOS, RAYPOS + VT(0, -1, 0))).lookVector, 75*SIZE, Character)
1543
	if HITFLOOR then
1544
		local POS = HITPOS	
1545
		ATTACK = true
1546
		Rooted = true
1547
		local WARPED = false
1548
		local SMASHED = false
1549
		local HITFLOOR,HITPOS,NORMAL = Raycast(RootPart.Position+VT(0,1,0), (CF(RAYPOS, RAYPOS + VT(0, -1, 0))).lookVector, 25*SIZE, Character)
1550
		coroutine.resume(coroutine.create(function()
1551
			repeat
1552
				Swait()
1553
				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)
1554
				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)
1555
				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)
1556
				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)
1557
				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)
1558
				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)
1559
			until WARPED == true
1560
			repeat
1561
				Swait()
1562
				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)
1563
				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)
1564
				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)
1565
				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)
1566
				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)
1567
				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)
1568
			until SMASHED == true
1569
			repeat
1570
				Swait()
1571
			RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0*SIZE, 0*SIZE, 0*SIZE) * ANGLES(RAD(90), RAD(0), RAD(0)), 1 / Animation_Speed)
1572
			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)
1573
			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)
1574
			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)
1575
			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)
1576
			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)
1577
			until ATTACK == false
1578
		end))
1579
		VALUE1 = true
1580
		CreateSound(233856115, Torso, 5, 1.6, false)
1581
		for i = 1, 25 do
1582
			Swait()
1583-
				WACKYEFFECT({Time = 45, EffectType = "Sphere", Size = VT(0,0,0), Size2 = VT(35,35,35)*12, Transparency = 0, Transparency2 = 1, CFrame = BASE.CFrame, MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = BASE.Color, SoundID = 165970126, SoundPitch = 0.75, SoundVolume = 6})
1583+
1584-
				WACKYEFFECT({Time = 55, EffectType = "Wave", Size = VT(0,0,0), Size2 = VT(45,3,45)*10, Transparency = 0, Transparency2 = 1, CFrame = CF(HITPOS), MoveToPos = nil, RotationX = 0, RotationY = -5, RotationZ = 0, Material = "Neon", Color = BASE.Color, SoundID = 469345336, SoundPitch = 0.75, SoundVolume = 6})
1584+
1585-
				WACKYEFFECT({Time = 55, EffectType = "Wave", Size = VT(0,0,0), Size2 = VT(45,3,45)*9, Transparency = 0, Transparency2 = 1, CFrame = CF(HITPOS), MoveToPos = nil, RotationX = 0, RotationY = 5, RotationZ = 0, Material = "Neon", Color = BASE.Color, SoundID = nil, SoundPitch = 0.75, SoundVolume = 6})
1585+
1586
				end
1587-
					WACKYEFFECT({Time = 35, EffectType = "Wave", Size = VT(5,0,5)*SIZE, Size2 = VT(35,3,35)*12, Transparency = 0.5, Transparency2 = 1, CFrame = BASE.CFrame * ANGLES(RAD(MRANDOM(0,360)), RAD(MRANDOM(0,360)), RAD(MRANDOM(0,360))), MoveToPos = nil, RotationX = 0, RotationY = -5, RotationZ = 0, Material = "Neon", Color = C3(0,0,0), SoundID = nil, SoundPitch = 0.5, SoundVolume = 6})
1587+
1588
			for _, c in pairs(Weapon:GetChildren()) do
1589
				if c.ClassName == "Part" then
1590-
				ApplyAoE(BASE.Position,250,35,75,175,false)
1590+
1591
				end
1592
			end
1593
		end
1594
		UNANCHOR = false
1595
		RootPart.Anchored = true
1596
		RootPart.Velocity = VT(0,0,0)
1597-
					FIELD.Size = FIELD.Size + VT(0.01,0.01,0.01)
1597+
1598
		RootPart.CFrame = CF(POS+VT(0,300,0),VT(ROOTPOS.X,POS.Y+300,ROOTPOS.Z))
1599
		WARPED = true
1600
		for i = 1, 25 do
1601
			Swait()
1602
			for _, c in pairs(Character:GetChildren()) do
1603
				if c.ClassName == "Part" then
1604
					c.Transparency = c.Transparency - 1/25
1605
				end
1606
			end
1607
			for _, c in pairs(Weapon:GetChildren()) do
1608
				if c.ClassName == "Part" then
1609
					c.Transparency = c.Transparency - 1/25
1610
				end
1611
			end
1612
		end
1613
		local SHELL = CreatePart(3, Effects, "Neon", 0, 1, "Alder", "Part", VT(0,0,0))
1614
		SHELL.CFrame = RootPart.CFrame
1615
		MakeForm(SHELL,"Ball")
1616
		CreateSound(402981977, SHELL, 5, 1.6, false)
1617
		for i = 1, 10 do
1618
			Swait()
1619
			SHELL.Transparency = SHELL.Transparency - 1/10
1620
			SHELL.Size = SHELL.Size + VT(2,2,2)*1.8
1621
		end
1622
		for i = 1, math.ceil(75/2) do
1623
			Swait()
1624
			RootPart.CFrame = RootPart.CFrame*CF(0,-3.5*2,0)
1625
			SHELL.CFrame = CF(RootPart.Position)
1626-
						FIELD.Size = FIELD.Size + VT(3,3,3)
1626+
			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})
1627
		end
1628
		RootPart.CFrame = CF(POS+VT(0,1,0),VT(ROOTPOS.X,HITPOS.Y+1,ROOTPOS.Z))
1629
		SHELL.CFrame = CF(RootPart.Position)
1630
		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})
1631
		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})
1632
		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})
1633
		for i = 1, 5 do
1634
			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})
1635
		end
1636
		SHELL:remove()
1637
		ApplyAoE(RootPart.Position,75,35,75,300,false)
1638
		SMASHED = true
1639
		wait(1)
1640
		VALUE1 = false
1641
		UNANCHOR = true
1642
		ATTACK = false
1643
		Rooted = false
1644
	end
1645
end
1646
1647
function PandorasBox()
1648
	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)
1649
	if HITFLOOR ~= nil then
1650
		ATTACK = true
1651
		Rooted = true
1652
		local RINGSPIN = true
1653
		local CONSTRUCTING = true
1654
		local RING = CreatePart(3, Effects, "Neon", 0, 1, "Alder", "Ring", VT(0,0,0))
1655
		RING.Color = C3(0,0,0)
1656
		MakeForm(RING,"Cyl")
1657
		RING.CFrame = CF(HITPOS)
1658
		CreateSound(402981977, RING, 5, 1.2, false)
1659
		coroutine.resume(coroutine.create(function()
1660
			repeat
1661
				Swait()
1662
				RING.CFrame = RING.CFrame * ANGLES(RAD(0), RAD(5), RAD(0))
1663
				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)
1664
				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)
1665
				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)
1666
				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)
1667
				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)
1668
				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)
1669
			until CONSTRUCTING == false
1670
			repeat 
1671
				Swait() 
1672
				RING.CFrame = RING.CFrame * ANGLES(RAD(0), RAD(5), RAD(0))
1673
			until RINGSPIN == false
1674
			for i = 1, 25 do
1675-
						FIELD.Size = FIELD.Size - VT(3,3,3)
1675+
1676
				RING.CFrame = RING.CFrame * ANGLES(RAD(0), RAD(5), RAD(0))
1677
				RING.Size = RING.Size - VT(0.15,0,0.15)
1678
				--DECAL.Transparency = DECAL.Transparency + 1/25
1679
				RING.Transparency = RING.Transparency + 1/25
1680
			end
1681
			RING:remove()
1682
		end))
1683
		for i = 1, 15 do
1684
			Swait()
1685
			RING.Size = RING.Size + VT(0.75,0,0.75)
1686
			RING.Transparency = RING.Transparency - 1/15
1687
		end
1688
		local BOXSPIN = true
1689
		local PANDORASBOX = IT("Model",Effects)
1690
		PANDORASBOX.Name = "Pandora's Box"
1691
		local BOX = IT("Model",PANDORASBOX)
1692
		BOX.Name = "Body"
1693
		local LID = IT("Model",PANDORASBOX)
1694
		LID.Name = "Lid"
1695
		--BUILDING THE BOX--
1696
			local BASE = CreatePart(3, BOX, "Neon", 0, 0, "Alder", "Black", VT(2,1.8,2))
1697
			BASE.Color = C3(0,0,0)
1698
			PANDORASBOX.PrimaryPart = BASE
1699
			BASE.CFrame = CF(HITPOS+VT(0,-8,0),VT(RootPart.Position.X,HITPOS.Y-8,RootPart.Position.Z))
1700
			local WOOD = CreatePart(3, BOX, "Marble", 0, 0, "Bright yellow", "Marble", VT(0.2,1.9,0.2))
1701
			WOOD.CFrame = BASE.CFrame*CF(1,0,1)
1702
			local WOOD = CreatePart(3, BOX, "Marble", 0, 0, "Bright yellow", "Marble", VT(0.2,1.9,0.2))
1703
			WOOD.CFrame = BASE.CFrame*CF(1,0,-1)
1704
			local WOOD = CreatePart(3, BOX, "Marble", 0, 0, "Bright yellow", "Marble", VT(0.2,1.9,0.2))
1705
			WOOD.CFrame = BASE.CFrame*CF(-1,0,1)
1706
			local WOOD = CreatePart(3, BOX, "Marble", 0, 0, "Bright yellow", "Marble", VT(0.2,1.9,0.2))
1707
			WOOD.CFrame = BASE.CFrame*CF(-1,0,-1)
1708
			local WOOD = CreatePart(3, BOX, "Marble", 0, 0, "Bright yellow", "Marble", VT(2.1,0.2,0.2))
1709
			WOOD.CFrame = BASE.CFrame*CF(0,0.9,1)
1710
			local WOOD = CreatePart(3, BOX, "Marble", 0, 0, "Bright yellow", "Marble", VT(2.1,0.2,0.2))
1711
			WOOD.CFrame = BASE.CFrame*CF(0,0.9,-1)
1712
			local WOOD = CreatePart(3, BOX, "Marble", 0, 0, "Bright yellow", "Marble", VT(0.2,0.2,2.1))
1713
			WOOD.CFrame = BASE.CFrame*CF(1,0.9,0)
1714
			local WOOD = CreatePart(3, BOX, "Marble", 0, 0, "Bright yellow", "Marble", VT(0.2,0.2,2.1))
1715
			WOOD.CFrame = BASE.CFrame*CF(-1,0.9,0)
1716
			local WOOD = CreatePart(3, BOX, "Marble", 0, 0, "Bright yellow", "Marble", VT(2.1,0.2,0.2))
1717
			WOOD.CFrame = BASE.CFrame*CF(0,-0.9,1)
1718
			local WOOD = CreatePart(3, BOX, "Marble", 0, 0, "Bright yellow", "Marble", VT(2.1,0.2,0.2))
1719
			WOOD.CFrame = BASE.CFrame*CF(0,-0.9,-1)
1720
			local WOOD = CreatePart(3, BOX, "Marble", 0, 0, "Bright yellow", "Marble", VT(0.2,0.2,2.1))
1721
			WOOD.CFrame = BASE.CFrame*CF(1,-0.9,0)
1722
			local WOOD = CreatePart(3, BOX, "Marble", 0, 0, "Bright yellow", "Marble", VT(0.2,0.2,2.1))
1723
			WOOD.CFrame = BASE.CFrame*CF(-1,-0.9,0)
1724
			local WOOD = CreatePart(3, BOX, "Marble", 0, 0, "Daisy orange", "Marble", VT(2.1,1.9,0.1))
1725
			WOOD.CFrame = BASE.CFrame*CF(0,0,1)
1726
			local WOOD = CreatePart(3, BOX, "Marble", 0, 0, "Daisy orange", "Marble", VT(2.1,1.9,0.1))
1727
			WOOD.CFrame = BASE.CFrame*CF(0,0,-1)
1728
			local WOOD = CreatePart(3, BOX, "Marble", 0, 0, "Daisy orange", "Marble", VT(0.1,1.9,2.1))
1729
			WOOD.CFrame = BASE.CFrame*CF(1,0,0)
1730
			local WOOD = CreatePart(3, BOX, "Marble", 0, 0, "Daisy orange", "Marble", VT(0.1,1.9,2.1))
1731
			WOOD.CFrame = BASE.CFrame*CF(-1,0,0)
1732
			local WOOD = CreatePart(3, BOX, "Marble", 0, 0, "Daisy orange", "Marble", VT(2.1,0.1,2.1))
1733
			WOOD.CFrame = BASE.CFrame*CF(0,-0.9,0)
1734
			-------------
1735
			local LIDPART = CreatePart(3, LID, "Marble", 0, 0, "Daisy orange", "Marble", VT(2.1,0.1,2.1))
1736
			LIDPART.CFrame = BASE.CFrame*CF(0,1,0)
1737
			LID.PrimaryPart = LIDPART
1738
			local WOOD = CreatePart(3, LID, "Marble", 0, 0, "Bright yellow", "Marble", VT(2.1,0.2,0.2))
1739
			WOOD.CFrame = LIDPART.CFrame*CF(0,0,-1)
1740
			local WOOD = CreatePart(3, LID, "Marble", 0, 0, "Bright yellow", "Marble", VT(2.1,0.2,0.2))
1741
			WOOD.CFrame = LIDPART.CFrame*CF(0,0,1)
1742
			local WOOD = CreatePart(3, LID, "Marble", 0, 0, "Bright yellow", "Marble", VT(0.2,0.2,2.1))
1743
			WOOD.CFrame = LIDPART.CFrame*CF(1,0,0)
1744
			local WOOD = CreatePart(3, LID, "Marble", 0, 0, "Bright yellow", "Marble", VT(0.2,0.2,2.1))
1745
			WOOD.CFrame = LIDPART.CFrame*CF(-1,0,0)
1746
			local DECAL = IT("Decal",LIDPART)
1747
			DECAL.Face = "Top"
1748
			DECAL.Texture = "http://www.roblox.com/asset/?id=1501226061"
1749
			DECAL.Color3 = C3(0,0,0)
1750
		--BUILDING THE BOX--
1751
		coroutine.resume(coroutine.create(function()
1752
			repeat
1753
				Swait()
1754
				PANDORASBOX:SetPrimaryPartCFrame(BASE.CFrame * ANGLES(RAD(0), RAD(2.45), RAD(0)))
1755
			until BOXSPIN == false
1756
		end))
1757
		for i = 1, 25 do
1758
			Swait()
1759
			PANDORASBOX:SetPrimaryPartCFrame(BASE.CFrame * CF(0,1.5-(i/12.5),0))
1760
		end
1761
		wait(0.5)
1762
		BOXSPIN = false
1763
		CONSTRUCTING = false	
1764
		coroutine.resume(coroutine.create(function()
1765
			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})
1766
			--[[for i = 1, 45 do
1767
				Swait()
1768
				LID:SetPrimaryPartCFrame(LIDPART.CFrame * CF(0,1.5-(i/12.5),0.5) * ANGLES(RAD(0.7), RAD(0), RAD(0)))
1769-
					FIELD.Size = FIELD.Size + VT(0.01,0.01,0.01)
1769+
1770
			LID:remove()]]--
1771
			for _, c in pairs(LID:GetChildren()) do
1772
				if c.ClassName == "Part" then
1773
					c.Anchored = false
1774
					c.CanCollide = true
1775
					if c ~= LIDPART then
1776
						weldBetween(LIDPART,c)
1777
					end
1778
				end
1779-
						if E >= 35 then
1779+
1780
			LIDPART.Velocity = CF(LIDPART.Position,LIDPART.CFrame*CF(15,25,0).p).lookVector*65
1781-
							WACKYEFFECT({Time = 25, EffectType = "Sphere", Size = FIELD.Size*30, Size2 = FIELD.Size, Transparency = 0.8, Transparency2 = 1, CFrame = FIELD.CFrame, MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = BASE.Color, SoundID = nil, SoundPitch = 1, SoundVolume = 6})
1781+
1782
			wait(0.5)
1783
			local RANDOMEFFECT = MRANDOM(1,4)
1784
			if RANDOMEFFECT == 1 then
1785
				for i = 1, 45 do
1786
					wait((2-(i/15))/15)
1787
					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})
1788
				end	
1789
				wait(1)
1790
				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})
1791
				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})
1792
				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})
1793
				for i = 1, 5 do
1794
					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})
1795
				end
1796
				ApplyAoE(BASE.Position,50,1,200,375,false)
1797
				ApplyAoE(BASE.Position,250,35,75,475,false)
1798
			elseif RANDOMEFFECT == 2 then
1799
				local FIELD = CreatePart(3, Effects, "Neon", 0, 0, "Alder", "Field", VT(0.3,0.3,0.3))
1800
				FIELD.CFrame = BASE.CFrame
1801
				MakeForm(FIELD,"Ball")
1802
				for i = 1, 50 do
1803
					Swait()
1804
					FIELD.Size = FIELD.Size + VT(1,1,1)
1805
					FIELD.CFrame = FIELD.CFrame * CF(0,0.75-(i/45),0)
1806
				end
1807
				wait(0.2)
1808-
						FIELD.Size = FIELD.Size + VT(0.3,0.3,0.3)/5
1808+
1809
				coroutine.resume(coroutine.create(function()
1810
					for i = 1, 75 do
1811
						Swait()
1812
						LOOP.Volume = LOOP.Volume + 10/75
1813-
						if E >= 35 then
1813+
1814
						local CHILDREN = workspace:GetDescendants()
1815-
							WACKYEFFECT({Time = 25, EffectType = "Sphere", Size = FIELD.Size*30, Size2 = FIELD.Size, Transparency = 0.8, Transparency2 = 1, CFrame = FIELD.CFrame, MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = BASE.Color, SoundID = nil, SoundPitch = 1, SoundVolume = 6})
1815+
1816
							if CHILD.ClassName == "Model" and CHILD ~= Character and CHILD.Parent ~= Effects then
1817
								local HUM = CHILD:FindFirstChildOfClass("Humanoid")
1818
								if HUM then
1819
									local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso")
1820
									if TORSO then
1821
										if (TORSO.Position - FIELD.Position).Magnitude <= FIELD.Size.X/2 then
1822
											HUM.Health = HUM.Health - 0.1
1823
											TORSO.Velocity = VT(0,5,0)
1824
											HUM.PlatformStand = true
1825
											if TORSO.RotVelocity.Magnitude < 15 then
1826
										 		TORSO.RotVelocity = VT(MRANDOM(-45,45),MRANDOM(-45,45),MRANDOM(-45,45))
1827
											end
1828
										end
1829
									end
1830
								end
1831
							end
1832
						end
1833
						FIELD.Size = FIELD.Size + VT(6,6,6)
1834
						FIELD.Transparency = FIELD.Transparency + 0.8/75
1835
					end
1836
					for i = 1, 500 do
1837
						Swait()
1838
						LOOP.Parent = FIELD
1839
						local CHILDREN = workspace:GetDescendants()
1840
						for index, CHILD in pairs(CHILDREN) do
1841
							if CHILD.ClassName == "Model" and CHILD ~= Character and CHILD.Parent ~= Effects then
1842-
					ApplyAoE(FIELD.Position,40,15,20,375,false)
1842+
1843
								if HUM then
1844
									local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso")
1845
									if TORSO then
1846
										if (TORSO.Position - FIELD.Position).Magnitude <= FIELD.Size.X/2 then
1847
											TORSO.Velocity = VT(0,5,0)
1848
											HUM.Health = HUM.Health - 0.1
1849
											HUM.PlatformStand = true
1850
											if TORSO.RotVelocity.Magnitude < 15 then
1851
										 		TORSO.RotVelocity = VT(MRANDOM(-45,45),MRANDOM(-45,45),MRANDOM(-45,45))
1852
											end
1853
										end
1854
									end
1855
								end
1856
							end
1857
						end
1858
					end
1859
					for i = 1, 25 do
1860
						Swait()
1861
						LOOP.Volume = LOOP.Volume + 10/25
1862
						LOOP.Parent = FIELD
1863
						local CHILDREN = workspace:GetDescendants()
1864
						for index, CHILD in pairs(CHILDREN) do
1865
							if CHILD.ClassName == "Model" and CHILD ~= Character and CHILD.Parent ~= Effects then
1866
								local HUM = CHILD:FindFirstChildOfClass("Humanoid")
1867
								if HUM then
1868
									local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso")
1869
									if TORSO then
1870
										if (TORSO.Position - FIELD.Position).Magnitude <= FIELD.Size.X/1.8 then
1871
											TORSO.Velocity = VT(0,5,0)
1872
											HUM.Health = HUM.Health - 0.1
1873
											HUM.PlatformStand = false
1874
											if TORSO.RotVelocity.Magnitude < 15 then
1875
										 		TORSO.RotVelocity = VT(MRANDOM(-45,45),MRANDOM(-45,45),MRANDOM(-45,45))
1876
											end
1877
										end
1878
									end
1879
								end
1880
							end
1881
						end
1882
						FIELD.Size = FIELD.Size - VT(9,9,9)
1883
						FIELD.Transparency = FIELD.Transparency + 0.2/25
1884
					end	
1885
					FIELD:remove()
1886
				end))
1887
			elseif RANDOMEFFECT == 3 then
1888
				for i = 1, 20 do
1889
					wait(0.15)
1890
					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})
1891
					coroutine.resume(coroutine.create(function()
1892
						local MINION = CLONE:Clone()
1893
						MINION.Parent = Effects
1894
						MINION.Name = "Shadow"
1895
						MINION.HumanoidRootPart.CFrame = BASE.CFrame*CF(0,5,0) * ANGLES(RAD(0), RAD(MRANDOM(0,360)), RAD(0))
1896
						MINION.HumanoidRootPart.Velocity = CF(MINION.HumanoidRootPart.Position,MINION.HumanoidRootPart.CFrame*CF(0,8,-15).p).lookVector*MRANDOM(55,100)
1897
						for _, c in pairs(MINION:GetChildren()) do
1898
							if c.ClassName == "Part" then
1899
								c.Material = "Neon"
1900
								c.Color = C3(0,0,0)
1901
								c.Transparency = 0.25
1902
								if c.Name == "Head" then
1903
									c:ClearAllChildren()
1904
									local MSH = IT("BlockMesh",c)
1905
									MSH.Scale = VT(0.5,1,1)
1906
								end
1907
							end
1908
						end
1909
						local TORSO = MINION.Torso
1910
						local HUMAN = MINION.Humanoid
1911
						HUMAN.WalkSpeed = 20
1912
						HUMAN.MaxHealth = math.huge
1913
						HUMAN.Health = math.huge
1914
						HUMAN.DisplayDistanceType = "None"
1915
						HUMAN.Died:connect(function()
1916
							MINION:remove()
1917
							--CreateSound(SHOUTS[MRANDOM(1,3)], TORSO, 3, 0.5, false)
1918
						end)
1919
						wait(1)
1920
						local findNearestTorso = function(POS)
1921
							local list = game.Workspace:GetDescendants()
1922
							local torso = nil
1923
							local dist = 500
1924
							local temp = nil
1925
							local human = nil
1926
							local temp2 = nil
1927
							for x = 1, #list do
1928
								temp2 = list[x]
1929
								if (temp2.className == "Model") and (temp2 ~= Character) and (temp2.Parent ~= Effects) then
1930
									temp = temp2:findFirstChild("Torso") or temp2:findFirstChild("UpperTorso")
1931
									human = temp2:findFirstChildOfClass("Humanoid")
1932
									if (temp ~= nil) and (human ~= nil) and (human.Health > 0) then
1933
										if (temp.Position - POS).magnitude < dist then
1934
											torso = temp
1935
											dist = (temp.Position - POS).magnitude
1936
										end
1937
									end
1938
								end
1939
							end
1940
							return torso, dist
1941
						end
1942
						for i = 1, 40 do
1943
							if HUMAN.Health == 0 then
1944
								break
1945
							end
1946
							wait(0.3)
1947
							local target,dist= findNearestTorso(TORSO.Position)
1948
							if target then
1949
								HUMAN:MoveTo(target.Position)
1950
								if dist < 25 then
1951
									CreateSound(348663022, TORSO, 10, 1, true)
1952
									wait(2)
1953
									--local ANIM = HUMAN:LoadAnimation(ATANIM)
1954
									--ANIM:Play()
1955
									--CreateSound(SHOUTS[MRANDOM(1,3)], TORSO, 1, 1, false)
1956
									ApplyAoE(TORSO.Position,10,0,0,85,true)
1957
									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})
1958
									for i = 1, 5 do
1959
										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})
1960
									end
1961
									break
1962
								end
1963
							end
1964
						end
1965
						MINION:remove()
1966
					end))
1967
				end
1968
			elseif RANDOMEFFECT == 4 then
1969
				local FIELD = CreatePart(3, Effects, "Neon", 0, 0, "Alder", "Field", VT(0.3,0.3,0.3))
1970
				FIELD.Color = C3(0,0,0)
1971
				FIELD.CFrame = BASE.CFrame
1972
				MakeForm(FIELD,"Ball")
1973
				FIELD.CanCollide = true
1974
				for i = 1, 50 do
1975
					Swait()
1976
					FIELD.Size = FIELD.Size + VT(1,1,1)
1977
					FIELD.CFrame = FIELD.CFrame * CF(0,0.75-(i/45),0)
1978
				end
1979
				wait(0.2)
1980
				local LOOP = CreateSound(487214658, FIELD, 0, 1, true)
1981
				coroutine.resume(coroutine.create(function()
1982
					local E = 0
1983
					for i = 1, 75 do
1984
						E = E + 1
1985
						Swait()
1986
						if E >= 60 then
1987
							E = 0
1988
							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})
1989
						end
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*30 then
2000
											for _, c in pairs(CHILD:GetChildren()) do
2001
												if c:IsA("BasePart") then
2002
													local bv = Instance.new("BodyVelocity") 
2003
													bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
2004
													bv.velocity = CF(FIELD.Position,c.Position).lookVector*-50
2005
													bv.Parent = c
2006
													Debris:AddItem(bv,0.05)
2007
												end
2008
											end
2009
											HUM.Health = HUM.Health - 0.3
2010
										end
2011
									end
2012
								end
2013
							end
2014
						end
2015
						FIELD.Size = FIELD.Size + VT(10,10,10)/5
2016
					end
2017
					for i = 1, 180 do
2018
						E = E + 1
2019
						Swait()
2020
						if E >= 60 then
2021
							E = 0
2022
							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})
2023
						end
2024
						LOOP.Parent = FIELD
2025
						local CHILDREN = workspace:GetDescendants()
2026
						for index, CHILD in pairs(CHILDREN) do
2027
							if CHILD.ClassName == "Model" and CHILD ~= Character and CHILD.Parent ~= Effects then
2028
								local HUM = CHILD:FindFirstChildOfClass("Humanoid")
2029
								if HUM then
2030
									local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso")
2031
									if TORSO then
2032
										if (TORSO.Position - FIELD.Position).Magnitude <= FIELD.Size.X*30 then
2033
											for _, c in pairs(CHILD:GetChildren()) do
2034
												if c:IsA("BasePart") then
2035
													local bv = Instance.new("BodyVelocity") 
2036
													bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
2037
													bv.velocity = CF(FIELD.Position,c.Position).lookVector*-50
2038
													bv.Parent = c
2039
													Debris:AddItem(bv,0.05)
2040
												end
2041
											end
2042
											HUM.Health = HUM.Health - 0.3
2043
										end
2044
									end
2045
								end
2046
							end
2047
						end
2048
					end
2049
					ApplyAoE(FIELD.Position,40,100,20,400,false)
2050
					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})
2051
					for i = 1, 5 do
2052
						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})
2053
					end
2054
					FIELD:remove()
2055
				end))
2056
			elseif RANDOMEFFECT == 5 then
2057
			end
2058
			wait(0.5)
2059
			for i = 1, 25 do
2060
				Swait()
2061
				PANDORASBOX:SetPrimaryPartCFrame(BASE.CFrame * CF(0,-0.3,0))
2062
			end
2063
			PANDORASBOX:remove()
2064
			RINGSPIN = false
2065
		end))
2066
		ATTACK = false
2067
		Rooted = false
2068
	end
2069
end
2070
2071
function Taunt()
2072
	ATTACK = true
2073
	local LAUGH = nil
2074
	coroutine.resume(coroutine.create(function()
2075
		repeat
2076
			Swait()
2077
			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)
2078
			Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1.1*SIZE) - 1)) * ANGLES(RAD(5), RAD(0), RAD(-45)), 1 / Animation_Speed)
2079
			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)
2080
			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)
2081
			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)
2082
			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)
2083
		until LAUGH ~= nil
2084
		repeat
2085
			Swait()
2086
			LAUGH.Parent = Head
2087
			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)
2088
			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)
2089
			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)
2090
			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)
2091
			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)
2092
			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)
2093
		until LAUGH.Playing == false
2094
	ATTACK = false
2095
	end))
2096
	wait(0.1)
2097
	sick:Pause()
2098
	LAUGH = CreateSound(525166232, Head, 10, 1, false)
2099
	wait(1)
2100
	sick:Resume()
2101
end
2102
2103
function Prison_Key()
2104
	if Mouse.Target ~= nil then
2105
		if Mouse.Target.Parent ~= Character and Mouse.Target.Parent.Parent ~= Character and Mouse.Target.Parent:FindFirstChildOfClass("Humanoid") ~= nil then
2106
			local HUM = Mouse.Target.Parent:FindFirstChildOfClass("Humanoid")
2107
			local TORSO = HUM.Parent:FindFirstChild("Torso") or HUM.Parent:FindFirstChild("UpperTorso")
2108
			local GYRO = IT("BodyGyro",RootPart)
2109
			GYRO.D = 750
2110
			GYRO.P = 20000
2111
			GYRO.MaxTorque = VT(0,40000000,0)
2112
			local grav = Instance.new("BodyPosition",TORSO)
2113
			grav.D = 15
2114
			grav.P = 20000
2115
			grav.maxForce = Vector3.new(math.huge,math.huge,math.huge)
2116
			grav.position = TORSO.Position
2117
			local GYRO2 = IT("BodyGyro",TORSO)
2118
			GYRO2.D = 750
2119
			GYRO2.P = 20000
2120
			GYRO2.MaxTorque = VT(0,40000000,0)
2121
			GYRO2.cframe = CF(TORSO.Position,RootPart.Position)
2122
			grav.Name = "Jail"
2123
			local LOCKPARTS = {}
2124
			ATTACK = true
2125
			Rooted = false
2126
			local LOCK = IT("Model",Effects)
2127
			LOCK.Name = "Lock"
2128
			local LOCK2 = IT("Model",LOCK)
2129
			LOCK2.Name = "Metal"
2130
			--CREATE LOCK--
2131
				local BASE = CreatePart(3, LOCK, "Glass", 0, 0, "Gold", "Keylock", VT(3, 2.5, 1))
2132
				LOCK.PrimaryPart = BASE
2133
				BASE.CFrame = CF(TORSO.Position,RootPart.Position)*CF(0,0,-4)
2134
				local PRT = CreatePart(3, LOCK, "Glass", 0, 0, "Gold", "Keylock", VT(3, 1, 3))
2135
				PRT.CFrame = BASE.CFrame*CF(0,-1.25,0)*ANGLES(RAD(90),RAD(0),RAD(0))
2136
				MakeForm(PRT,"Cyl")
2137
				local PRT = CreatePart(3, LOCK, "Glass", 0, 0, "White", "Hole", VT(1, 1, 1))
2138
				PRT.Color = C3(0,0,0)
2139
				PRT.CFrame = BASE.CFrame*CF(0,0.3,-0.01)*ANGLES(RAD(90),RAD(0),RAD(0))
2140
				MakeForm(PRT,"Cyl")
2141
				local PRT = CreatePart(3, LOCK, "Glass", 0, 0, "White", "Hole", VT(0.5, 1, 1))
2142
				PRT.Color = C3(0,0,0)
2143
				PRT.CFrame = BASE.CFrame*CF(0,-0.2,-0.01)
2144
				for i = 1, 45 do
2145
					local PRT = CreatePart(3, LOCK2, "Glass", 0, 0, "Grey", "Keylock", VT(0.5, 0.5, 0.5))
2146
					PRT.CFrame = BASE.CFrame*CF(0,2,0)*ANGLES(RAD(0),RAD(0),RAD(-90+(360/90*i)))*CF(0,1,0)
2147
				end
2148
				local PRT = CreatePart(3, LOCK2, "Glass", 0, 0, "Grey", "Keylock", VT(0.5, 0.5, 0.5))
2149
				PRT.CFrame = BASE.CFrame*CF(0,1.5,0)*ANGLES(RAD(0),RAD(0),RAD(90))*CF(0,1,0)
2150
				LOCK2.PrimaryPart = PRT
2151
			---------------
2152
			local CHILDREN = LOCK:GetDescendants()
2153
			for index, CHILD in pairs(CHILDREN) do
2154
				if CHILD:IsA("BasePart") then
2155
					CHILD.Transparency = 1
2156
				end
2157
			end
2158
			for i = 1, 75 do
2159
				LOCK:SetPrimaryPartCFrame(CF(TORSO.Position,RootPart.Position)*CF(0,0,-4))
2160
				Swait()
2161
				GYRO2.cframe = CF(TORSO.Position,RootPart.Position)
2162
				GYRO.cframe = CF(RootPart.Position,TORSO.Position)
2163
				local CHILDREN = LOCK:GetDescendants()
2164
				for index, CHILD in pairs(CHILDREN) do
2165
					if CHILD:IsA("BasePart") then
2166
						CHILD.Transparency = CHILD.Transparency - 1/75
2167
					end
2168
				end
2169
			end
2170
			HUM.DisplayDistanceType = "None"
2171
			local KEY = IT("Model",Effects)
2172
			KEY.Name = "Key"
2173
			--CREATE KEY--
2174
				local KBASE = CreatePart(3, KEY, "Neon", 0, 0, "Lavender", "KeyBase", VT(0.1, 1, 0.1),false)
2175
				KEY.PrimaryPart = KBASE
2176
				KBASE.CFrame = RightArm.CFrame*CF(0,-2.1,0)*ANGLES(RAD(0),RAD(90),RAD(0))
2177
				local WLD = weldBetween(RightArm,KBASE)
2178
				for i = 1, 45 do
2179
					local PRT = CreatePart(3, KEY, "Neon", 0, 0, "Lavender", "Key", VT(0.1, 0.1, 0.1),false)
2180
					PRT.CFrame = KBASE.CFrame*CF(0,0.8,0)*ANGLES(RAD(0),RAD(0),RAD((360/45*i)))*CF(0,0.25,0)
2181
					weldBetween(KBASE,PRT)
2182
				end
2183
				local PRT = CreatePart(3, KEY, "Neon", 0, 0, "Lavender", "Key", VT(0.3, 0.1, 0.1),false)
2184
				PRT.CFrame = KBASE.CFrame*CF(-0.15,-0.45,0)
2185
				weldBetween(KBASE,PRT)
2186
				local PRT = CreatePart(3, KEY, "Neon", 0, 0, "Lavender", "Key", VT(0.3, 0.1, 0.1),false)
2187
				PRT.CFrame = KBASE.CFrame*CF(-0.15,-0.25,0)
2188
				weldBetween(KBASE,PRT)
2189
			--------------
2190
			Rooted = true
2191
			Pose("Prepare key",1.5,1.2,false,GYRO,TORSO)
2192
			coroutine.resume(coroutine.create(function()
2193
				for i = 1, 10 do
2194
					Swait()
2195
					GYRO2.cframe = CF(TORSO.Position,RootPart.Position)
2196
					GYRO.cframe = CF(RootPart.Position,TORSO.Position)
2197
				end
2198
				CreateSound(1149318312,BASE,5,1,false)
2199
				CreateSound(160772554,BASE,3,1,false)
2200
				LOCK2:SetPrimaryPartCFrame(BASE.CFrame*CF(0,0.8,0)*ANGLES(RAD(0),RAD(0),RAD(90))*CF(0,1,0))
2201
				for i = 1, 4 do
2202
					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})
2203
				end
2204
				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})
2205
				wait(1)
2206
				TORSO.Parent.Parent = LOCK
2207
				for i = 1, 75 do
2208
					Swait()
2209
					local CHILDREN = KEY:GetDescendants()
2210
					for index, CHILD in pairs(CHILDREN) do
2211
						if CHILD:IsA("BasePart") then
2212
							CHILD.Transparency = i/25
2213
						end
2214
					end
2215
					local CHILDREN = LOCK:GetDescendants()
2216
					for index, CHILD in pairs(CHILDREN) do
2217
						if CHILD:IsA("BasePart") and CHILD.Name ~= "HumanoidRootPart" then
2218
							CHILD.Transparency = CHILD.Transparency + 1/75
2219
						elseif CHILD.ClassName == "Decal" then
2220
							CHILD.Transparency = CHILD.Transparency + 1/75
2221
						end
2222
					end
2223
				end
2224
				TORSO.Parent:ClearAllChildren()
2225
				KEY:remove()
2226
				LOCK:remove()
2227
			end))
2228
			Pose("Turn key",0.8,1.2,false,GYRO,TORSO)
2229
			GYRO:remove()
2230
			ATTACK = false
2231
			Rooted = false
2232
		end
2233
	end
2234
end
2235
2236
function RavagingOverthrower()
2237
	ATTACK = true
2238
	Rooted = true
2239
for i=0, 1, 0.1 / Animation_Speed do
2240
		Swait()
2241
		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)
2242
		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)
2243
		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)
2244
		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)
2245
		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)
2246
		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)
2247
	end
2248
	CreateSound("348663022", Torso, 5, 1)
2249
	local StartPos = RootPart.CFrame * CF(0,10,0).p
2250
	for i = 1, 5 do
2251
		MagicSphere2(25,25,CF(StartPos),"Royal purple")
2252
		Swait(15)
2253
	end
2254
	local soundeffect = IT("Sound",Torso)
2255
	soundeffect.SoundId = "rbxassetid://487186990"
2256
	soundeffect.Looped = true
2257
	soundeffect.Volume = 10
2258
	soundeffect.Playing = true
2259
	repeat
2260
		turnto(Mouse.Hit.p)
2261
		MagicSphere2(25,25,CF(StartPos),"Royal purple")
2262
		MagicSphere(25/10,25,CF(StartPos),"Royal purple")
2263
		local RayHit, RayPos, RayNormal = CastZapRay(StartPos, Mouse.Hit.p, 750, Character, false)
2264
		local distance = (StartPos - RayPos).magnitude
2265
		local RayBeam = IT("Part",Effects)
2266
		RayBeam.Material = "Neon"
2267
		RayBeam.Anchored = true
2268
		RayBeam.BrickColor = BRICKC"Royal purple"
2269
		local mesh = IT("SpecialMesh",RayBeam)
2270
		mesh.MeshType = "Cylinder"
2271
		RayBeam.Size = Vector3.new(distance+10, 5, 5)
2272
		RayBeam.CFrame = CFrame.new(StartPos, RayPos) * CFrame.new(0, 0, -distance/2) * ANGLES(RAD(0),RAD(90),RAD(0))
2273
		MagicSphere(15,5,CF(RayPos),"Royal purple")
2274
		killnearest(RayPos,15,100)
2275
		for i = 1, 3 do
2276
			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")
2277
		end
2278
		Swait()
2279
		if KEYHOLD == false then
2280
			coroutine.resume(coroutine.create(function()
2281
				for i = 1, 5 do
2282
					RayBeam.Transparency = RayBeam.Transparency + 1/5
2283
					Swait()
2284
				end
2285
				RayBeam:remove()
2286
			end))
2287
		else
2288
			RayBeam:remove()
2289
		end
2290
	until KEYHOLD == false
2291
	soundeffect:remove()
2292
	ATTACK = false
2293
	Rooted = false
2294
end
2295
2296
2297
--//=================================\\
2298
--||	  ASSIGN THINGS TO KEYS
2299
--\\=================================//
2300
2301
function MouseDown(Mouse)
2302
	HOLD = true
2303
	if ATTACK == false then
2304
	end
2305
end
2306
2307
function MouseUp(Mouse)
2308
HOLD = false
2309
end
2310
2311
function KeyDown(Key)
2312
	KEYHOLD = true
2313
	if Key == "z" and ATTACK == false then
2314
		MagicMissiles()
2315
	end
2316
2317
	if Key == "b" and ATTACK == false then
2318
		TimesUp()
2319
	end
2320
2321
	if Key == "c" and ATTACK == false then
2322
		ChainPunch()
2323
	end
2324
2325
	if Key == "v" and ATTACK == false then
2326
		WarpMeteor()
2327
	end
2328
2329
	if Key == "x" and ATTACK == false then
2330
		PandorasBox()
2331
	end
2332
2333
	if Key == "t" and ATTACK == false then
2334
		Taunt()
2335
	end
2336
2337
    if Key == "q" and ATTACK == false then
2338
		Prison_Key()
2339
	end
2340
2341
    if Key == "e" and ATTACK == false then
2342
        RavagingOverthrower()
2343
    end
2344
    if Key == "r" and ATTACK == false then
2345
    end
2346
end
2347
2348
function KeyUp(Key)
2349
	KEYHOLD = false
2350
end
2351
2352
	Mouse.Button1Down:connect(function(NEWKEY)
2353
		MouseDown(NEWKEY)
2354
	end)
2355
	Mouse.Button1Up:connect(function(NEWKEY)
2356
		MouseUp(NEWKEY)
2357
	end)
2358
	Mouse.KeyDown:connect(function(NEWKEY)
2359
		KeyDown(NEWKEY)
2360
	end)
2361
	Mouse.KeyUp:connect(function(NEWKEY)
2362
		KeyUp(NEWKEY)
2363
	end)
2364
2365
--//=================================\\
2366
--\\=================================//
2367
2368
2369
function unanchor()
2370
	if UNANCHOR == true then
2371
		RootPart.Anchored = false
2372
	end
2373
	g = Character:GetChildren()
2374
	for i = 1, #g do
2375
		if g[i].ClassName == "Part" and g[i] ~= RootPart then
2376
			g[i].Anchored = false
2377
		end
2378
	end
2379
	g = Weapon:GetChildren()
2380
	for i = 1, #g do
2381
		if g[i].ClassName == "Part" then
2382
			g[i].Anchored = false
2383
		end
2384
	end
2385
end
2386
2387
2388
--//=================================\\
2389
--||	WRAP THE WHOLE SCRIPT UP
2390
--\\=================================//
2391
2392
Humanoid.Changed:connect(function(Jump)
2393
	if Jump == "Jump" and (Disable_Jump == true) then
2394
		Humanoid.Jump = false
2395
	end
2396
end)
2397
2398
while true do
2399
	Swait()
2400
	script.Parent = WEAPONGUI
2401
	for _,v in next, Humanoid:GetPlayingAnimationTracks() do
2402
	    v:Stop();
2403
	end
2404
	ANIMATE.Parent = nil
2405
	SINE = SINE + CHANGE*1.5
2406
	local TORSOVELOCITY = (RootPart.Velocity * VT(1, 0, 1)).magnitude
2407
	local TORSOVERTICALVELOCITY = RootPart.Velocity.y
2408
	local HITFLOOR = Raycast(RootPart.Position, (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 4*SIZE, Character)
2409
	local WALKSPEEDVALUE = 10 / (Humanoid.WalkSpeed / 16)
2410
	if ANIM == "Walk" and TORSOVELOCITY > 1 then
2411
		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)
2412
		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)
2413
		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)
2414
		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)
2415
	elseif (ANIM ~= "Walk") or (TORSOVELOCITY < 1) then
2416
		RootJoint.C1 = Clerp(RootJoint.C1, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
2417
		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)
2418
		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)
2419
		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)
2420
	end
2421
	if TORSOVERTICALVELOCITY > 1 and HITFLOOR == nil then
2422
		ANIM = "Jump"
2423
		if ATTACK == false then
2424
			RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0*SIZE, 0*SIZE, 0*SIZE) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
2425
			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)
2426
			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)
2427
			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)
2428
			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)
2429
			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)
2430
	    end
2431
	elseif TORSOVERTICALVELOCITY < -1 and HITFLOOR == nil then
2432
		ANIM = "Fall"
2433
		if ATTACK == false then
2434
			RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0*SIZE, 0*SIZE, 0*SIZE) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
2435
			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)
2436
			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)
2437
			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)
2438
			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)
2439
			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)
2440
		end
2441
	elseif TORSOVELOCITY < 1 and HITFLOOR ~= nil then
2442
		ANIM = "Idle"
2443
		if ATTACK == false then
2444
			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)
2445
			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)
2446
			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)
2447
			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)
2448
			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)
2449
			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)
2450
		end
2451
	elseif TORSOVELOCITY > 1 and HITFLOOR ~= nil then
2452
		ANIM = "Walk"
2453
		if ATTACK == false then
2454
			RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0*SIZE, 0*SIZE, -0.1*SIZE) * ANGLES(RAD(5), RAD(0), RAD(0)), 1 / Animation_Speed)
2455
			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)
2456
			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)
2457
			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)
2458
			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)
2459
			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)
2460
		end
2461
	end
2462
	unanchor()
2463
	Humanoid.MaxHealth = "inf"
2464
	Humanoid.Health = "inf"
2465
	if Rooted == false then
2466
		Disable_Jump = false
2467
		Humanoid.WalkSpeed = Speed
2468
	elseif Rooted == true then
2469
		Disable_Jump = true
2470
		Humanoid.WalkSpeed = 0
2471
	end
2472
	for _, c in pairs(Character:GetChildren()) do
2473
		if c.ClassName == "Part" and c.Name ~= "Detail" then
2474
			c.Material = "Fabric"
2475
			if c:FindFirstChildOfClass("ParticleEmitter") then
2476
				c:FindFirstChildOfClass("ParticleEmitter"):remove()
2477
			end
2478
			if c ~= Head then
2479
				c.Color = C3(0,0,0)
2480
			else
2481
				c.Color = C3(1,1,1)
2482
			end
2483
			if c == Head then
2484
				if c:FindFirstChild("face") then
2485
					c.face:remove()
2486
				end
2487
			end
2488
		elseif c.ClassName == "CharacterMesh" or c.ClassName == "Accessory" or c.Name == "Body Colors" then
2489
			c:remove()
2490
		elseif (c.ClassName == "Shirt" or c.ClassName == "Pants") and c.Name ~= "Cloth" then
2491
			c:remove()
2492
		end
2493
	end
2494
	sick.SoundId = "rbxassetid://"..SONG
2495
	sick.Looped = true
2496
	sick.Pitch = 1
2497
	sick.Volume = 5
2498
	sick.Parent = Torso
2499
	sick:Resume()
2500
	--sick.Playing = false
2501
	Humanoid.Name = "Pandora = "..Player.Name
2502
end
2503
2504
--//=================================\\
2505
--\\=================================//
2506
2507
2508
2509
2510
2511
--//====================================================\\--
2512
--||			  		 END OF SCRIPT
2513
--\\====================================================//--