View difference between Paste ID: SPtLNwG7 and Tw0bsgjA
SHOW: | | - or go back to the newest paste.
1
--//====================================================\\--
2
--||			   CREATED BY SHACKLUSTER
3
--\\====================================================//--
4
5
wait(0.2)
6
7
Player = game:GetService("Players").LocalPlayer
8
PlayerGui = Player.PlayerGui
9
Cam = workspace.CurrentCamera
10
Backpack = Player.Backpack
11
Character = Player.Character
12
Humanoid = Character.Humanoid
13
Mouse = Player:GetMouse()
14
RootPart = Character["HumanoidRootPart"]
15
Torso = Character["Torso"]
16
Head = Character["Head"]
17
RightArm = Character["Right Arm"]
18
LeftArm = Character["Left Arm"]
19
RightLeg = Character["Right Leg"]
20
LeftLeg = Character["Left Leg"]
21
RootJoint = RootPart["RootJoint"]
22
Neck = Torso["Neck"]
23
RightShoulder = Torso["Right Shoulder"]
24
LeftShoulder = Torso["Left Shoulder"]
25
RightHip = Torso["Right Hip"]
26
LeftHip = Torso["Left Hip"]
27
Character.Archivable = true
28
Player:ClearCharacterAppearance()
29
30
IT = Instance.new
31
CF = CFrame.new
32
VT = Vector3.new
33
RAD = math.rad
34
C3 = Color3.new
35
UD2 = UDim2.new
36
BRICKC = BrickColor.new
37
ANGLES = CFrame.Angles
38
EULER = CFrame.fromEulerAnglesXYZ
39
COS = math.cos
40
ACOS = math.acos
41
SIN = math.sin
42
ASIN = math.asin
43
ABS = math.abs
44
MRANDOM = math.random
45
FLOOR = math.floor
46
47
--//=================================\\
48
--|| 	      USEFUL VALUES
49
--\\=================================//
50
51
Animation_Speed = 3
52
Frame_Speed = 1 / 60 -- (1 / 30) OR (1 / 60)
53
local Speed = 20
54
local SIZE = 1.4
55
local ROOTC0 = CF(0, 0, 0) * ANGLES(RAD(-90), RAD(0), RAD(180))
56
local NECKC0 = CF(0, 1, 0) * ANGLES(RAD(-90), RAD(0), RAD(180))
57
local RIGHTSHOULDERC0 = CF(-0.5, 0, 0) * ANGLES(RAD(0), RAD(90), RAD(0))
58
local LEFTSHOULDERC0 = CF(0.5, 0, 0) * ANGLES(RAD(0), RAD(-90), RAD(0))
59
local DAMAGEMULTIPLIER = 1
60
local ANIM = "Idle"
61
local ATTACK = false
62
local EQUIPPED = false
63
local HOLD = false
64
local COMBO = 1
65
local Rooted = false
66
local SINE = 0
67
local KEYHOLD = false
68
local CHANGE = 2 / Animation_Speed
69
local WALKINGANIM = false
70
local VALUE1 = false
71
local VALUE2 = false
72
local ROBLOXIDLEANIMATION = IT("Animation")
73
ROBLOXIDLEANIMATION.Name = "Roblox Idle Animation"
74
ROBLOXIDLEANIMATION.AnimationId = "http://www.roblox.com/asset/?id=180435571"
75
local ATANIM = IT("Animation")
76
ATANIM.Name = "Attack Animation"
77
ATANIM.AnimationId = "http://www.roblox.com/asset/?id=74894663"
78
--ROBLOXIDLEANIMATION.Parent = Humanoid
79
local WEAPONGUI = IT("ScreenGui", PlayerGui)
80
WEAPONGUI.Name = "Weapon GUI"
81
local Weapon = IT("Model")
82
Weapon.Name = "Adds"
83
local Effects = IT("Folder", Weapon)
84
Effects.Name = "Effects"
85
local ANIMATOR = Humanoid.Animator
86
local ANIMATE = Character.Animate
87
local UNANCHOR = true
88
local CLOCKLOOP = 0
89
local SONG = 510580450
90
local CLOCKTARGET = nil
91
local CLOCKSPEED = 30
92
script.Parent = WEAPONGUI
93
local CLONE = Character:Clone()
94
CLONE.Parent = nil
95
Character.Archivable = false
96
local sick = Instance.new("Sound",Torso)
97
98
--//=================================\\
99
--\\=================================//
100
101
102
--//=================================\\
103
--|| SAZERENOS' ARTIFICIAL HEARTBEAT
104
--\\=================================//
105
106
ArtificialHB = Instance.new("BindableEvent", script)
107
ArtificialHB.Name = "ArtificialHB"
108
109
script:WaitForChild("ArtificialHB")
110
111
frame = Frame_Speed
112
tf = 0
113
allowframeloss = false
114
tossremainder = false
115
lastframe = tick()
116
script.ArtificialHB:Fire()
117
118
game:GetService("RunService").Heartbeat:connect(function(s, p)
119
	tf = tf + s
120
	if tf >= frame then
121
		if allowframeloss then
122
			script.ArtificialHB:Fire()
123
			lastframe = tick()
124
		else
125
			for i = 1, math.floor(tf / frame) do
126
				script.ArtificialHB:Fire()
127
			end
128
		lastframe = tick()
129
		end
130
		if tossremainder then
131
			tf = 0
132
		else
133
			tf = tf - frame * math.floor(tf / frame)
134
		end
135
	end
136
end)
137
138
--//=================================\\
139
--\\=================================//
140
141
--//=================================\\
142
--|| 	      SOME FUNCTIONS
143
--\\=================================//
144
145
function Raycast(POSITION, DIRECTION, RANGE, IGNOREDECENDANTS)
146
	return workspace:FindPartOnRay(Ray.new(POSITION, DIRECTION.unit * RANGE), IGNOREDECENDANTS)
147
end
148
149
function PositiveAngle(NUMBER)
150
	if NUMBER >= 0 then
151
		NUMBER = 0
152
	end
153
	return NUMBER
154
end
155
156
function NegativeAngle(NUMBER)
157
	if NUMBER <= 0 then
158
		NUMBER = 0
159
	end
160
	return NUMBER
161
end
162
163
function Swait(NUMBER)
164
	if NUMBER == 0 or NUMBER == nil then
165
		ArtificialHB.Event:wait()
166
	else
167
		for i = 1, NUMBER do
168
			ArtificialHB.Event:wait()
169
		end
170
	end
171
end
172
173
function CreateMesh(MESH, PARENT, MESHTYPE, MESHID, TEXTUREID, SCALE, OFFSET)
174
	local NEWMESH = IT(MESH)
175
	if MESH == "SpecialMesh" then
176
		NEWMESH.MeshType = MESHTYPE
177
		if MESHID ~= "nil" and MESHID ~= "" then
178
			NEWMESH.MeshId = "http://www.roblox.com/asset/?id="..MESHID
179
		end
180
		if TEXTUREID ~= "nil" and TEXTUREID ~= "" then
181
			NEWMESH.TextureId = "http://www.roblox.com/asset/?id="..TEXTUREID
182
		end
183
	end
184
	NEWMESH.Offset = OFFSET or VT(0, 0, 0)
185
	NEWMESH.Scale = SCALE
186
	NEWMESH.Parent = PARENT
187
	return NEWMESH
188
end
189
190
function CreatePart(FORMFACTOR, PARENT, MATERIAL, REFLECTANCE, TRANSPARENCY, BRICKCOLOR, NAME, SIZE, ANCHOR)
191
	local NEWPART = IT("Part")
192
	NEWPART.formFactor = FORMFACTOR
193
	NEWPART.Reflectance = REFLECTANCE
194
	NEWPART.Transparency = TRANSPARENCY
195
	NEWPART.CanCollide = false
196
	NEWPART.Locked = true
197
	NEWPART.Anchored = true
198
	if ANCHOR == false then
199
		NEWPART.Anchored = false
200
	end
201
	NEWPART.BrickColor = BRICKC(tostring(BRICKCOLOR))
202
	NEWPART.Name = NAME
203
	NEWPART.Size = SIZE
204
	NEWPART.Position = Torso.Position
205
	NEWPART.Material = MATERIAL
206
	NEWPART:BreakJoints()
207
	NEWPART.Parent = PARENT
208
	return NEWPART
209
end
210
211
	local function weldBetween(a, b)
212
	    local weldd = Instance.new("ManualWeld")
213
	    weldd.Part0 = a
214
	    weldd.Part1 = b
215
	    weldd.C0 = CFrame.new()
216
	    weldd.C1 = b.CFrame:inverse() * a.CFrame
217
	    weldd.Parent = a
218
	    return weldd
219
	end
220
221
222
function QuaternionFromCFrame(cf)
223
	local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
224
	local trace = m00 + m11 + m22
225
	if trace > 0 then 
226
		local s = math.sqrt(1 + trace)
227
		local recip = 0.5 / s
228
		return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5
229
	else
230
		local i = 0
231
		if m11 > m00 then
232
			i = 1
233
		end
234
		if m22 > (i == 0 and m00 or m11) then
235
			i = 2
236
		end
237
		if i == 0 then
238
			local s = math.sqrt(m00 - m11 - m22 + 1)
239
			local recip = 0.5 / s
240
			return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip
241
		elseif i == 1 then
242
			local s = math.sqrt(m11 - m22 - m00 + 1)
243
			local recip = 0.5 / s
244
			return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip
245
		elseif i == 2 then
246
			local s = math.sqrt(m22 - m00 - m11 + 1)
247
			local recip = 0.5 / s return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip
248
		end
249
	end
250
end
251
 
252
function QuaternionToCFrame(px, py, pz, x, y, z, w)
253
	local xs, ys, zs = x + x, y + y, z + z
254
	local wx, wy, wz = w * xs, w * ys, w * zs
255
	local xx = x * xs
256
	local xy = x * ys
257
	local xz = x * zs
258
	local yy = y * ys
259
	local yz = y * zs
260
	local zz = z * zs
261
	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))
262
end
263
 
264
function QuaternionSlerp(a, b, t)
265
	local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4]
266
	local startInterp, finishInterp;
267
	if cosTheta >= 0.0001 then
268
		if (1 - cosTheta) > 0.0001 then
269
			local theta = ACOS(cosTheta)
270
			local invSinTheta = 1 / SIN(theta)
271
			startInterp = SIN((1 - t) * theta) * invSinTheta
272
			finishInterp = SIN(t * theta) * invSinTheta
273
		else
274
			startInterp = 1 - t
275
			finishInterp = t
276
		end
277
	else
278
		if (1 + cosTheta) > 0.0001 then
279
			local theta = ACOS(-cosTheta)
280
			local invSinTheta = 1 / SIN(theta)
281
			startInterp = SIN((t - 1) * theta) * invSinTheta
282
			finishInterp = SIN(t * theta) * invSinTheta
283
		else
284
			startInterp = t - 1
285
			finishInterp = t
286
		end
287
	end
288
	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
289
end
290
291
function Clerp(a, b, t)
292
	local qa = {QuaternionFromCFrame(a)}
293
	local qb = {QuaternionFromCFrame(b)}
294
	local ax, ay, az = a.x, a.y, a.z
295
	local bx, by, bz = b.x, b.y, b.z
296
	local _t = 1 - t
297
	return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t))
298
end
299
300
function CreateFrame(PARENT, TRANSPARENCY, BORDERSIZEPIXEL, POSITION, SIZE, COLOR, BORDERCOLOR, NAME)
301
	local frame = IT("Frame")
302
	frame.BackgroundTransparency = TRANSPARENCY
303
	frame.BorderSizePixel = BORDERSIZEPIXEL
304
	frame.Position = POSITION
305
	frame.Size = SIZE
306
	frame.BackgroundColor3 = COLOR
307
	frame.BorderColor3 = BORDERCOLOR
308
	frame.Name = NAME
309
	frame.Parent = PARENT
310
	return frame
311
end
312
313
function CreateLabel(PARENT, TEXT, TEXTCOLOR, TEXTFONTSIZE, TEXTFONT, TRANSPARENCY, BORDERSIZEPIXEL, STROKETRANSPARENCY, NAME)
314
	local label = IT("TextLabel")
315
	label.BackgroundTransparency = 1
316
	label.Size = UD2(1, 0, 1, 0)
317
	label.Position = UD2(0, 0, 0, 0)
318
	label.TextColor3 = TEXTCOLOR
319
	label.TextStrokeTransparency = STROKETRANSPARENCY
320
	label.TextTransparency = TRANSPARENCY
321
	label.FontSize = TEXTFONTSIZE
322
	label.Font = TEXTFONT
323
	label.BorderSizePixel = BORDERSIZEPIXEL
324
	label.TextStrokeColor3 = C3(1,1,1)
325
	label.TextScaled = false
326
	label.Text = TEXT
327
	label.Name = NAME
328
	label.Parent = PARENT
329
	return label
330
end
331
332
function NoOutlines(PART)
333
	PART.TopSurface, PART.BottomSurface, PART.LeftSurface, PART.RightSurface, PART.FrontSurface, PART.BackSurface = 10, 10, 10, 10, 10, 10
334
end
335
336
function CreateWeldOrSnapOrMotor(TYPE, PARENT, PART0, PART1, C0, C1)
337
	local NEWWELD = IT(TYPE)
338
	NEWWELD.Part0 = PART0
339
	NEWWELD.Part1 = PART1
340
	NEWWELD.C0 = C0
341
	NEWWELD.C1 = C1
342
	NEWWELD.Parent = PARENT
343
	return NEWWELD
344
end
345
346
local S = IT("Sound")
347
function CreateSound(ID, PARENT, VOLUME, PITCH, DOESLOOP)
348
	local NEWSOUND = nil
349
	coroutine.resume(coroutine.create(function()
350
		NEWSOUND = S:Clone()
351
		NEWSOUND.Parent = PARENT
352
		NEWSOUND.Volume = VOLUME
353
		NEWSOUND.Pitch = PITCH
354
		NEWSOUND.SoundId = "http://www.roblox.com/asset/?id="..ID
355
		NEWSOUND:play()
356
		if DOESLOOP == true then
357
			NEWSOUND.Looped = true
358
		else
359
			repeat wait(1) until NEWSOUND.Playing == false
360
			NEWSOUND:remove()
361
		end
362
	end))
363
	return NEWSOUND
364
end
365
366
function CFrameFromTopBack(at, top, back)
367
	local right = top:Cross(back)
368
	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)
369
end
370
371
--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})
372
function WACKYEFFECT(Table)
373
	local TYPE = (Table.EffectType or "Sphere")
374
	local SIZE = (Table.Size or VT(1,1,1))
375
	local ENDSIZE = (Table.Size2 or VT(0,0,0))
376
	local TRANSPARENCY = (Table.Transparency or 0)
377
	local ENDTRANSPARENCY = (Table.Transparency2 or 1)
378
	local CFRAME = (Table.CFrame or Torso.CFrame)
379
	local MOVEDIRECTION = (Table.MoveToPos or nil)
380
	local ROTATION1 = (Table.RotationX or 0)
381
	local ROTATION2 = (Table.RotationY or 0)
382
	local ROTATION3 = (Table.RotationZ or 0)
383
	local MATERIAL = (Table.Material or "Neon")
384
	local COLOR = (Table.Color or C3(1,1,1))
385
	local TIME = (Table.Time or 45)
386
	local SOUNDID = (Table.SoundID or nil)
387
	local SOUNDPITCH = (Table.SoundPitch or nil)
388
	local SOUNDVOLUME = (Table.SoundVolume or nil)
389
	coroutine.resume(coroutine.create(function()
390
		local PLAYSSOUND = false
391
		local SOUND = nil
392
		local EFFECT = CreatePart(3, Effects, MATERIAL, 0, TRANSPARENCY, BRICKC("Pearl"), "Effect", VT(1,1,1), true)
393
		if SOUNDID ~= nil and SOUNDPITCH ~= nil and SOUNDVOLUME ~= nil then
394
			PLAYSSOUND = true
395
			SOUND = CreateSound(SOUNDID, EFFECT, SOUNDVOLUME, SOUNDPITCH, false)
396
		end
397
		EFFECT.Color = COLOR
398
		local MSH = nil
399
		if TYPE == "Sphere" then
400
			MSH = CreateMesh("SpecialMesh", EFFECT, "Sphere", "", "", SIZE, VT(0,0,0))
401
		elseif TYPE == "Block" then
402
			MSH = IT("BlockMesh",EFFECT)
403
			MSH.Scale = VT(SIZE.X,SIZE.X,SIZE.X)
404
		elseif TYPE == "Wave" then
405
			MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "20329976", "", SIZE, VT(0,0,-SIZE.X/8))
406
		elseif TYPE == "Ring" then
407
			MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "559831844", "", VT(SIZE.X,SIZE.X,0.1), VT(0,0,0))
408
		elseif TYPE == "Slash" then
409
			MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662586858", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0))
410
		elseif TYPE == "Round Slash" then
411
			MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662585058", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0))
412
		elseif TYPE == "Swirl" then
413
			MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "1051557", "", SIZE, VT(0,0,0))
414
		elseif TYPE == "Skull" then
415
			MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "4770583", "", SIZE, VT(0,0,0))
416
		elseif TYPE == "Crystal" then
417
			MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "9756362", "", SIZE, VT(0,0,0))
418
		end
419
		if MSH ~= nil then
420
			local MOVESPEED = nil
421
			if MOVEDIRECTION ~= nil then
422
				MOVESPEED = (CFRAME.p - MOVEDIRECTION).Magnitude/TIME
423
			end
424
			local GROWTH = SIZE - ENDSIZE
425
			local TRANS = TRANSPARENCY - ENDTRANSPARENCY
426
			if TYPE == "Block" then
427
				EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))
428
			else
429
				EFFECT.CFrame = CFRAME
430
			end
431
			for LOOP = 1, TIME+1 do
432
				Swait()
433
				MSH.Scale = MSH.Scale - GROWTH/TIME
434
				if TYPE == "Wave" then
435
					MSH.Offset = VT(0,0,-MSH.Scale.X/8)
436
				end
437
				EFFECT.Transparency = EFFECT.Transparency - TRANS/TIME
438
				if TYPE == "Block" then
439
					EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))
440
				else
441
					EFFECT.CFrame = EFFECT.CFrame*ANGLES(RAD(ROTATION1),RAD(ROTATION2),RAD(ROTATION3))
442
				end
443
				if MOVEDIRECTION ~= nil then
444
					local ORI = EFFECT.Orientation
445
					EFFECT.CFrame = CF(EFFECT.Position,MOVEDIRECTION)*CF(0,0,-MOVESPEED)
446
					EFFECT.Orientation = ORI
447
				end
448
			end
449
			if PLAYSSOUND == false then
450
				EFFECT:remove()
451
			else
452
				repeat Swait() until SOUND.Playing == false
453
				EFFECT:remove()
454
			end
455
		else
456
			if PLAYSSOUND == false then
457
				EFFECT:remove()
458
			else
459
				repeat Swait() until SOUND.Playing == false
460
				EFFECT:remove()
461
			end
462
		end
463
	end))
464
end
465
466
function MakeForm(PART,TYPE)
467
	if TYPE == "Cyl" then
468
		local MSH = IT("CylinderMesh",PART)
469
	elseif TYPE == "Ball" then
470
		local MSH = IT("SpecialMesh",PART)
471
		MSH.MeshType = "Sphere"
472
	elseif TYPE == "Wedge" then
473
		local MSH = IT("SpecialMesh",PART)
474
		MSH.MeshType = "Wedge"
475
	end
476
end
477
478
Debris = game:GetService("Debris")
479
480
function CastProperRay(StartPos, EndPos, Distance, Ignore)
481
	local DIRECTION = CF(StartPos,EndPos).lookVector
482
	return Raycast(StartPos, DIRECTION, Distance, Ignore)
483
end
484
485
function turnto(position)
486
	RootPart.CFrame=CFrame.new(RootPart.CFrame.p,VT(position.X,RootPart.Position.Y,position.Z)) * CFrame.new(0, 0, 0)
487
end
488
489
--//=================================\\
490
--||	     WEAPON CREATION
491
--\\=================================//
492
493
Humanoid.Parent = nil
494
RootPart.Size = RootPart.Size*SIZE
495
Torso.Size = Torso.Size*SIZE
496
RightArm.Size = RightArm.Size*SIZE
497
RightLeg.Size = RightLeg.Size*SIZE
498
LeftArm.Size = LeftArm.Size*SIZE
499
LeftLeg.Size = LeftLeg.Size*SIZE
500
RootJoint.C0 = ROOTC0 * CF(0 * SIZE, 0 * SIZE, 0 * SIZE) * ANGLES(RAD(0), RAD(0), RAD(0))
501
RootJoint.C1 = ROOTC0 * CF(0 * SIZE, 0 * SIZE, 0 * SIZE) * ANGLES(RAD(0), RAD(0), RAD(0))
502
Neck.C0 = NECKC0 * CF(0 * SIZE, 0 * SIZE, 0 + ((1 * SIZE) - 1)) * ANGLES(RAD(0), RAD(0), RAD(0))
503
Neck.C1 = CF(0 * SIZE, -0.5 * SIZE, 0 * SIZE) * ANGLES(RAD(-90), RAD(0), RAD(180))
504
RightShoulder.C1 = CF(0 * SIZE, 0.5 * SIZE, -0.35 * SIZE)
505
LeftShoulder.C1 = CF(0 * SIZE, 0.5 * SIZE, -0.35 * SIZE)
506
RightHip.C0 = CF(1 * SIZE, -1 * SIZE, 0 * SIZE) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0))
507
LeftHip.C0 = CF(-1 * SIZE, -1 * SIZE, 0 * SIZE) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0))
508
RightHip.C1 = CF(0.5 * SIZE, 1 * SIZE, 0 * SIZE) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0))
509
LeftHip.C1 = CF(-0.5 * SIZE, 1 * SIZE, 0 * SIZE) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0))
510
Head.Size = Head.Size*SIZE
511
RootJoint.Parent = RootPart
512
Neck.Parent = Torso
513
RightShoulder.Parent = Torso
514
LeftShoulder.Parent = Torso
515
RightHip.Parent = Torso
516
LeftHip.Parent = Torso
517
518
Humanoid.DisplayDistanceType = "None"
519
local naeeym2 = IT("BillboardGui",Character)
520
naeeym2.AlwaysOnTop = true
521
naeeym2.Size = UDim2.new(5,35,2,15)
522
naeeym2.StudsOffset = Vector3.new(0,2,0)
523
naeeym2.MaxDistance = 75
524
naeeym2.Adornee = Character.Head
525
naeeym2.Name = "Name"
526
local tecks2 = IT("TextLabel",naeeym2)
527
tecks2.BackgroundTransparency = 1
528
tecks2.TextScaled = true
529
tecks2.BorderSizePixel = 0
530
tecks2.Text = "Gaster!"
531
tecks2.Font = "Fantasy"
532
tecks2.TextSize = 30
533
tecks2.TextStrokeTransparency = 0
534-
tecks2.TextColor3 = C3(1,1,1)
534+
535
tecks2.TextColor3 = Color3.new(math.random(),math.random(),math.random())
536
tecks2.TextStrokeColor3 = C3(0/0, 0/0, 0/0)
537
tecks2.Size = UDim2.new(1,0,0.5,0)
538
tecks2.Parent = naeeym2
539
local top = Instance.new("Shirt")
540
top.ShirtTemplate = "rbxassetid://1070896702"
541
top.Parent = Character
542
top.Name = "Cloth"
543
local bottom = Instance.new("Pants")
544
bottom.PantsTemplate = "rbxassetid://1227314211"
545
bottom.Parent = Character
546
bottom.Name = "Cloth"
547
local PRT = CreatePart(3, Weapon, "Fabric", 0, 0, "Really White", "Hat", VT(1,1,1),false)
548
PRT.Color = C3(0,0,0)
549
CreateWeldOrSnapOrMotor("Weld", Head, Head, PRT, CF(0,0.72*SIZE,0.1) * ANGLES(RAD(15), RAD(0), RAD(0)), CF(0, 0, 0))
550
CreateMesh("SpecialMesh", PRT, "FileMesh", "", "", VT(1,1,1)*SIZE, VT(0,0,0))
551
local PRT = CreatePart(3, Character, "Fabric", 0, 0, "Really black", "Detail", VT(1,1,1),false)
552
PRT.Color = C3(1,1,1)
553
CreateWeldOrSnapOrMotor("Weld", Head, Head, PRT, CF(0,0,-.5*SIZE), CF(0, 0, 0))
554
CreateMesh("SpecialMesh", PRT, "FileMesh", "13520257", "", VT(1,1,1)*SIZE, VT(0,0,0))
555
local PRT = CreatePart(3, Character, "Neon", 0, 0, "Really black", "Detail", VT(1,1.2,0.2),false)
556
PRT.Color = C3(0/0, 0/0, 0/0)
557
MakeForm(PRT,"Ball")
558
CreateWeldOrSnapOrMotor("Weld", Head, Head, PRT, CF(0,0,-.5*SIZE), CF(0, 0, 0))
559
local PRT = CreatePart(3, Character, "Neon", 0, 0, "Really black", "Detail", VT(0.5,0.4,0.5),false)
560
PRT.Color = C3(0/0, 0/0, 0/0)
561
MakeForm(PRT,"Ball")
562
CreateWeldOrSnapOrMotor("Weld", Head, Head, PRT, CF(0,-0.3,-.5*SIZE), CF(0, 0, 0))
563
local PRT = CreatePart(3, Character, "Neon", 0, 0, "Really black", "Detail", VT(0.5,0.3,0.3),false)
564
PRT.Color = C3(0/0, 0/0, 0/0)
565
MakeForm(PRT,"Ball")
566
CreateWeldOrSnapOrMotor("Weld", Head, Head, PRT, CF(0.25,0.25,-.5*SIZE), CF(0, 0, 0))
567
local PRT = CreatePart(3, Character, "Neon", 0, 0, "Really black", "Detail", VT(0.5,0.3,0.3),false)
568
PRT.Color = C3(0/0, 0/0, 0/0)
569
MakeForm(PRT,"Ball")
570
CreateWeldOrSnapOrMotor("Weld", Head, Head, PRT, CF(-0.25,0.25,-.5*SIZE), CF(0, 0, 0))
571
local PRT = CreatePart(3, Character, "Neon", 0, 0, "Really black", "Detail", VT(0.4,0.4,0.3),false)
572
PRT.Color = C3(0/0, 0/0, 0/0)
573
MakeForm(PRT,"Ball")
574
CreateWeldOrSnapOrMotor("Weld", Head, Head, PRT, CF(-0.17,-0.25,-.5*SIZE) * ANGLES(RAD(-15), RAD(15), RAD(0)), CF(0, 0, 0))
575
local PRT = CreatePart(3, Character, "Neon", 0, 0, "Really black", "Detail", VT(0.4,0.4,0.3),false)
576
PRT.Color = C3(0/0, 0/0, 0/0)
577
MakeForm(PRT,"Ball")
578
CreateWeldOrSnapOrMotor("Weld", Head, Head, PRT, CF(0.17,-0.25,-.5*SIZE) * ANGLES(RAD(-15), RAD(-15), RAD(0)), CF(0, 0, 0))
579
580
local PRT = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Watch", VT(1.05,0.06,1.05)*SIZE,false)
581
CreateWeldOrSnapOrMotor("Weld", RightArm, RightArm, PRT, CF(0,-0.5*SIZE,0) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
582
local PRT = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Watch", VT(0.5,0.1,0.5)*SIZE,false)
583
CreateWeldOrSnapOrMotor("Weld", RightArm, RightArm, PRT, CF(0,-0.5*SIZE,0) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, -0.5*SIZE, 0))
584
MakeForm(PRT,"Cyl")
585
local PRT = CreatePart(3, Weapon, "Neon", 0, 0, "Mid gray", "Watch", VT(0.45,0.11,0.45)*SIZE,false)
586
CreateWeldOrSnapOrMotor("Weld", RightArm, RightArm, PRT, CF(0,-0.5*SIZE,0) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, -0.5*SIZE, 0))
587
MakeForm(PRT,"Cyl")
588
PRT.Color = C3(159/255, 111/255, 183/255)
589
local RING = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Watch", VT(0.055,0.15,0.055)*SIZE,false)
590
CreateWeldOrSnapOrMotor("Weld", RightArm, RightArm, RING, CF(0,-0.5*SIZE,0) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, -0.5*SIZE, 0))
591
MakeForm(RING,"Cyl")
592
RING.Color = C3(0,0,0)
593
for i = 1, 12 do
594
    local PRT = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Watch", VT(0,0.15,0)*SIZE,false)
595
    PRT.Color = C3(0,0,0)
596-
	local PRT = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Watch", VT(0,0.15,0)*SIZE,false)
596+
    local MSH = IT("BlockMesh",PRT)
597-
	PRT.Color = C3(0,0,0)
597+
    MSH.Scale = VT(0.6,1,1)
598-
	local MSH = IT("BlockMesh",PRT)
598+
    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))
599-
	MSH.Scale = VT(0.6,1,1)
599+
600-
	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))
600+
601
PRT.Color = C3(0,0,0)
602
local MSH = IT("BlockMesh",PRT)
603
MSH.Scale = VT(0.4,1,1)
604
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))
605
local PRT = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Watch", VT(0,0.15,0.15/1.5)*SIZE,false)
606
PRT.Color = C3(0,0,0)
607
local MSH = IT("BlockMesh",PRT)
608
MSH.Scale = VT(0.4,1,1)
609
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))
610
coroutine.resume(coroutine.create(function()
611
    while true do
612
        Swait()
613-
	while true do
613+
        CLOCKLOOP = CLOCKLOOP - 1*CLOCKSPEED
614
        WATCH1.C0 = Clerp(WATCH1.C0, CF(0,-0.5*SIZE,0) * ANGLES(RAD(90), RAD(CLOCKLOOP*5), RAD(0)), 1 / Animation_Speed)
615-
		CLOCKLOOP = CLOCKLOOP - 1*CLOCKSPEED
615+
        WATCH2.C0 = Clerp(WATCH2.C0, CF(0,-0.5*SIZE,0) * ANGLES(RAD(90), RAD(CLOCKLOOP*5/2), RAD(0)), 1 / Animation_Speed)
616-
		WATCH1.C0 = Clerp(WATCH1.C0, CF(0,-0.5*SIZE,0) * ANGLES(RAD(90), RAD(CLOCKLOOP*5), RAD(0)), 1 / Animation_Speed)
616+
        if CLOCKLOOP <= -150 then
617-
		WATCH2.C0 = Clerp(WATCH2.C0, CF(0,-0.5*SIZE,0) * ANGLES(RAD(90), RAD(CLOCKLOOP*5/2), RAD(0)), 1 / Animation_Speed)
617+
            if VALUE1 == false then
618-
		if CLOCKLOOP <= -150 then
618+
                CLOCKLOOP = 0
619-
			if VALUE1 == false then
619+
                WACKYEFFECT({Time = 0, 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(0/0, 0/0, 0/0), SoundID = 141606337, SoundPitch = 1.2, SoundVolume = 4})
620-
				CLOCKLOOP = 0
620+
                local HITFLOOR,HITPOS = Raycast(RootPart.Position, (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 25*SIZE, Character)
621-
				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(0/0, 0/0, 0/0), SoundID = 141606337, SoundPitch = 1.2, SoundVolume = 4})
621+
                ApplyAoE(HITPOS,10,15,45,75,false)
622-
				local HITFLOOR,HITPOS = Raycast(RootPart.Position, (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 25*SIZE, Character)
622+
                WACKYEFFECT({Time = 0, 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(0/0, 0/0, 0/0), SoundID = nil, SoundPitch = 0.5, SoundVolume = 6})
623-
				ApplyAoE(HITPOS,10,15,45,75,false)
623+
                WACKYEFFECT({Time = 0, 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(0/0, 0/0, 0/0), SoundID = nil, SoundPitch = 0.5, SoundVolume = 6})
624-
				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(0/0, 0/0, 0/0), SoundID = nil, SoundPitch = 0.5, SoundVolume = 6})
624+
                if CLOCKTARGET ~= nil then
625-
				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(0/0, 0/0, 0/0), SoundID = nil, SoundPitch = 0.5, SoundVolume = 6})
625+
                    CLOCKTARGET.Health = CLOCKTARGET.Health - 20
626-
				if CLOCKTARGET ~= nil then
626+
                    if CLOCKTARGET.Torso ~= nil then
627-
					CLOCKTARGET.Health = CLOCKTARGET.Health - 20
627+
                        CLOCKTARGET.Torso.CFrame = CLOCKTARGET.Torso.CFrame * ANGLES(RAD(MRANDOM(0,360)), RAD(MRANDOM(0,360)), RAD(MRANDOM(0,360)))
628-
					if CLOCKTARGET.Torso ~= nil then
628+
                    end
629-
						CLOCKTARGET.Torso.CFrame = CLOCKTARGET.Torso.CFrame * ANGLES(RAD(MRANDOM(0,360)), RAD(MRANDOM(0,360)), RAD(MRANDOM(0,360)))
629+
                    if CLOCKTARGET.Health == 0 then
630
                        CLOCKTARGET = nil
631-
					if CLOCKTARGET.Health == 0 then
631+
                    end
632-
						CLOCKTARGET = nil
632+
                end
633
            end
634
        end
635
    end
636
end))
637
638
Neck.Name = "Weld"
639
RootJoint.Name = "Weld"
640-
for _, c in pairs(Weapon:GetChildren()) do
640+
641-
	if c.ClassName == "Part" then
641+
642-
		c.CustomPhysicalProperties = PhysicalProperties.new(0, 0, 0, 0, 0)
642+
643
LeftHip.Name = "Weld"
644
645
local SKILLTEXTCOLOR = C3(159/255, 111/255, 183/255)
646
local SKILLFONT = "Fantasy"
647
local SKILLTEXTSIZE = 7
648
649
Weapon.Parent = Character
650
Humanoid.Parent = Character
651
652
Humanoid.Died:connect(function()
653
	ATTACK = true
654
end)
655
656
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")
657
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")
658
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")
659
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")
660
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")
661
662
local SKILL1TEXT = CreateLabel(SKILL1FRAME, "[Z] Magic Missiles", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0, "Text 1")
663
local SKILL2TEXT = CreateLabel(SKILL2FRAME, "[B] Times up", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0, "Text 2")
664
local SKILL3TEXT = CreateLabel(SKILL3FRAME, "[C] Chained Punch", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0, "Text 3")
665
local SKILL4TEXT = CreateLabel(SKILL4FRAME, "[V] Warp Meteor", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0, "Text 4")
666
local SKILL5TEXT = CreateLabel(SKILL5FRAME, "[X] Pandora's Box", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0, "Text 5")
667
668
--//=================================\\
669
--||			DAMAGING
670
--\\=================================//
671
672
function ApplyDamage(Humanoid,Damage,TorsoPart)
673
	local defence = Instance.new("BoolValue",Humanoid.Parent)
674
	defence.Name = ("HitBy"..Player.Name)
675
	game:GetService("Debris"):AddItem(defence, 0.001)
676
	Damage = Damage * DAMAGEMULTIPLIER
677
	if Humanoid.Health ~= 0 then
678
		local CritChance = MRANDOM(1,100)
679
		if Damage > Humanoid.Health then
680
			Damage = math.ceil(Humanoid.Health)
681
			if Damage == 0 then
682
				Damage = 0.1
683
			end
684
		end
685
		Humanoid.Health = Humanoid.Health - Damage
686
	end
687
end
688
689
function ApplyAoE(POSITION,RANGE,MINDMG,MAXDMG,FLING,INSTAKILL)
690
	local CHILDREN = workspace:GetDescendants()
691
	for index, CHILD in pairs(CHILDREN) do
692
		if CHILD.ClassName == "Model" and CHILD ~= Character and CHILD.Parent ~= Effects then
693
			local HUM = CHILD:FindFirstChildOfClass("Humanoid")
694
			if HUM then
695
				local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso")
696
				if TORSO then
697
					if (TORSO.Position - POSITION).Magnitude <= RANGE then
698
						if INSTAKILL == true then
699
							CHILD:BreakJoints()
700
						else
701
							local DMG = MRANDOM(MINDMG,MAXDMG)
702
							ApplyDamage(HUM,DMG,TORSO)
703
						end
704
						if FLING > 0 then
705
							for _, c in pairs(CHILD:GetChildren()) do
706
								if c:IsA("BasePart") then
707
									local bv = Instance.new("BodyVelocity") 
708
									bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
709
									bv.velocity = CF(POSITION,TORSO.Position).lookVector*FLING
710
									bv.Parent = c
711
									Debris:AddItem(bv,0.05)
712
								end
713
							end
714
						end
715
					end
716
				end
717
			end
718
		end
719
	end
720
end
721
722
--//=================================\\
723
--||	ATTACK FUNCTIONS AND STUFF
724
--\\=================================//
725
726
function MagicMissiles()
727
	ATTACK = true
728
	Rooted = true
729
	local SELECTING = true
730
	local SPOTS = {}
731
	coroutine.resume(coroutine.create(function()
732
		local LOOP = 0
733
		repeat
734
			LOOP = LOOP + 1
735
			Swait()
736
			if LOOP >= 10 then
737
				LOOP = 0
738
				for i = 1, #SPOTS do
739
					if SPOTS[i] ~= nil then
740
						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})
741
						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})
742
					end
743
				end
744
			end
745
			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)
746
			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)
747
			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)
748
			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)
749
			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)
750
			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)
751
		until SELECTING == false
752
		Rooted = false
753
		repeat
754
			LOOP = LOOP + 1
755
			Swait()
756
			if LOOP >= 10 then
757
				LOOP = 0
758
				for i = 1, #SPOTS do
759
					if SPOTS[i] ~= nil then
760
						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})
761
						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})
762
					end
763
				end
764
			end
765
			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)
766
			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)
767
			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)
768
			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)
769
			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)
770
			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)
771
		until ATTACK == false
772
	end))
773
	repeat
774
		repeat Swait() until HOLD == true
775
			local DIST = (RootPart.Position - Mouse.Hit.p).Magnitude
776
			if DIST > 65 then
777
				DIST = 65
778
			end
779
			local RAY,RAYPOS = Raycast(RootPart.Position, (CF(RootPart.Position, Mouse.Hit.p)).lookVector, DIST, workspace)	
780
			local HITFLOOR,HITPOS,NORMAL = Raycast(RAYPOS+VT(0,1,0), (CF(RAYPOS, RAYPOS + VT(0, -1, 0))).lookVector, 25*SIZE, Character)	
781
			if HITFLOOR ~= nil then
782
				table.insert(SPOTS,CF(HITPOS,HITPOS+NORMAL) * ANGLES(RAD(90), RAD(0), RAD(0)))
783
				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})
784
				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})
785
			end
786
		repeat Swait() until HOLD == false
787
	until #SPOTS == 5
788
	SELECTING = false
789
	for i = 1, #SPOTS do
790
		if SPOTS[i] ~= nil then
791
			local POS = SPOTS[i]
792
			coroutine.resume(coroutine.create(function()
793
				local MISSILE = IT("Model",Effects)
794
				MISSILE.Name = "Missile"
795
				local BASEPART = CreatePart(3, MISSILE, "Neon", 0, 1, "Alder", "Part", VT(2,2,2))
796
				MakeForm(BASEPART,"Cyl")
797
				MISSILE.PrimaryPart = BASEPART
798
				BASEPART.CFrame = POS*CF(0,-30*3,0)
799
				local HEAD = CreatePart(3, MISSILE, "Neon", 0, 1, "Alder", "Part", VT(2,4,2))
800
				MakeForm(HEAD,"Ball")
801
				HEAD.CFrame = BASEPART.CFrame*CF(0,1,0)
802
				local TAIL = CreatePart(3, MISSILE, "Neon", 0, 1, "Alder", "Part", VT(2.5,0.1,2.5))
803
				MakeForm(TAIL,"Cyl")
804
				TAIL.CFrame = BASEPART.CFrame*CF(0,-1,0)
805
				for i = 1, 10 do
806
					Swait()
807
					for _, c in pairs(MISSILE:GetChildren()) do
808
						if c.ClassName == "Part" then
809
							c.Transparency = c.Transparency - 1/10
810
						end
811
					end
812
				end
813
				for i = 1, 15*1.5 do
814
					Swait()
815
					MISSILE:SetPrimaryPartCFrame(BASEPART.CFrame*CF(0,1.35*3,0))
816
				end
817
				ApplyAoE(BASEPART.CFrame.p,20,35,45,75,false)
818
				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})
819
				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})
820
				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})
821
				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})
822
				MISSILE:remove()
823
			end))
824
		end
825
	end
826
	wait(0.6)
827
	ATTACK = false
828
	Rooted = false
829
end
830
831
function TimesUp()
832
	CLOCKTARGET = nil
833
	if Mouse.Target.Parent ~= Character and Mouse.Target.Parent.Parent ~= Character and Mouse.Target.Parent:FindFirstChildOfClass("Humanoid") ~= nil then
834
		local HUM = Mouse.Target.Parent:FindFirstChildOfClass("Humanoid")
835
		local TORSO = HUM.Parent:FindFirstChild("Torso") or HUM.Parent:FindFirstChild("UpperTorso")
836
		if TORSO then
837
			ATTACK = true
838
			Rooted = false
839
			coroutine.resume(coroutine.create(function()
840
				repeat
841
					Swait()
842
					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)
843
					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)
844
					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)
845
					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)
846
					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)
847
					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)
848
				until ATTACK == false
849
			end))
850
			if Effects:FindFirstChild("NeonDoll") then
851
				repeat Swait() until Effects:FindFirstChild("NeonDoll") == nil
852
			end
853
			wait(0.5)
854
			local FAKECHARACTER = IT("Model",Effects)
855
			FAKECHARACTER.Name = "NeonDoll"
856
			local TORS = CreatePart(3, FAKECHARACTER, "Neon", 0, 1, "Alder", "Part", VT(0.3,0.3,0.15),false)
857
			CreateWeldOrSnapOrMotor("Weld", RING, RING, TORS, CF(0,0.6,0), CF(0,0,0))
858
			local LEG = CreatePart(3, FAKECHARACTER, "Neon", 0, 1, "Alder", "Part", VT(0.15,0.3,0.15),false)
859
			CreateWeldOrSnapOrMotor("Weld", TORS, TORS, LEG, CF(0.15/2,-0.15,0) * ANGLES(RAD(0), RAD(0), RAD(15)), CF(0,0.15,0))
860
			local LEG = CreatePart(3, FAKECHARACTER, "Neon", 0, 1, "Alder", "Part", VT(0.15,0.3,0.15),false)
861
			CreateWeldOrSnapOrMotor("Weld", TORS, TORS, LEG, CF(-0.15/2,-0.15,0) * ANGLES(RAD(0), RAD(0), RAD(-15)), CF(0,0.15,0))
862
			local ARM = CreatePart(3, FAKECHARACTER, "Neon", 0, 1, "Alder", "Part", VT(0.15,0.3,0.15),false)
863
			CreateWeldOrSnapOrMotor("Weld", TORS, TORS, ARM, CF(0.15,0.15/2,0) * ANGLES(RAD(0), RAD(0), RAD(90)), CF(0,0.15,0))
864
			local ARM = CreatePart(3, FAKECHARACTER, "Neon", 0, 1, "Alder", "Part", VT(0.15,0.3,0.15),false)
865
			CreateWeldOrSnapOrMotor("Weld", TORS, TORS, ARM, CF(-0.15,0.15/2,0) * ANGLES(RAD(0), RAD(0), RAD(-90)), CF(0,0.15,0))
866
			local HEAD = CreatePart(3, FAKECHARACTER, "Neon", 0, 1, "Alder", "Part", VT(0.15,0.15,0.15),false)
867
			CreateWeldOrSnapOrMotor("Weld", TORS, TORS, HEAD, CF(0,0.225,0), CF(0,0,0))
868
			CreateSound(201858045, TORS, 5, 0.4, false)
869
			for i = 1, 150 do
870
				Swait()
871
				CLOCKSPEED = 6
872
				for _, c in pairs(FAKECHARACTER:GetChildren()) do
873
					if c.ClassName == "Part" then
874
						c.Transparency = c.Transparency - 0.5/150
875
					end
876
				end
877
			end
878
			CLOCKTARGET = HUM
879
			coroutine.resume(coroutine.create(function()
880
				repeat Swait() CLOCKSPEED = 2 until CLOCKTARGET == nil
881
				for i = 1, 25 do
882
					Swait()
883
					for _, c in pairs(FAKECHARACTER:GetChildren()) do
884
						if c.ClassName == "Part" then
885
							c.Transparency = c.Transparency + 0.5/25
886
						end
887
					end
888
				end
889
				CLOCKSPEED = 1
890
				FAKECHARACTER:remove()
891
			end))
892
			wait(0.5)
893
			ATTACK = false
894
			Rooted = false
895
		end
896
	end
897
end
898
899
function ChainPunch()
900
	ATTACK = true
901
	Rooted = false
902
	local GYRO = IT("BodyGyro",RootPart)
903
	GYRO.D = 25
904
	GYRO.P = 2000
905
	GYRO.MaxTorque = VT(0,40000,0)
906
	GYRO.cframe = CF(RootPart.Position,Mouse.Hit.p)
907
	repeat
908
		Swait()
909
		GYRO.cframe = CF(RootPart.Position,Mouse.Hit.p)
910
		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)
911
		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)
912
		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)
913
		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)
914
		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)
915
		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)
916
	until HOLD == true
917
	local POS = Mouse.Hit.p
918
	local CHAINS = false
919
	local CHAINLINKS = {}
920
	local A = IT("Attachment",RightArm)
921
	A.Position = VT(1,-1,0)*SIZE
922
	A.Orientation = VT(-90, -89.982, 0)
923
	local B = IT("Attachment",RightArm)
924
	B.Position = VT(-1,-1,0)*SIZE
925
	B.Orientation = VT(-90, 89.988, 0)
926
	local C = IT("Attachment",RightArm)
927
	C.Position = VT(0.5,-1.3,0)*SIZE
928
	C.Orientation = VT(-90, -89.982, 0)
929
	local D = IT("Attachment",RightArm)
930
	D.Position = VT(-0.5,-1.3,0)*SIZE
931
	D.Orientation = VT(-90, 89.988, 0)
932
	local LIGHT = IT("Attachment",RightArm)
933
	LIGHT.Position = VT(0,-1,0)*SIZE
934
	local LIGHT2 = IT("PointLight",LIGHT)
935
	LIGHT2.Range = 7
936
	LIGHT2.Brightness = 5
937
	LIGHT2.Color = SKILLTEXTCOLOR
938
	for i = 1, 2 do
939
		local TWIST = -2
940
		local START = A
941
		local END = B
942
		if i == 1 then
943
			START = B
944
			END = A
945
		end
946
		local ChainLink = IT("Beam",Torso)
947
		ChainLink.Texture = "rbxassetid://73042633"
948
		ChainLink.Color = ColorSequence.new(SKILLTEXTCOLOR)
949
		ChainLink.TextureSpeed = 1
950
		ChainLink.Width0 = 1
951
		ChainLink.Width1 = 1
952
		ChainLink.TextureLength = 2.5
953
		ChainLink.Attachment0 = START
954
		ChainLink.Attachment1 = END
955
		ChainLink.CurveSize0 = TWIST
956
		ChainLink.CurveSize1 = TWIST
957
		--ChainLink.FaceCamera = true
958
		ChainLink.Segments = 45
959
		ChainLink.Transparency = NumberSequence.new(1)
960
		table.insert(CHAINLINKS,ChainLink)
961
	end
962
	for i = 1, 2 do
963
		local TWIST = -1
964
		local START = C
965
		local END = D
966
		if i == 1 then
967
			START = D
968
			END = C
969
		end
970
		local ChainLink = IT("Beam",Torso)
971
		ChainLink.Texture = "rbxassetid://73042633"
972
		ChainLink.Color = ColorSequence.new(SKILLTEXTCOLOR)
973
		ChainLink.TextureSpeed = 1
974
		ChainLink.Width0 = 1
975
		ChainLink.Width1 = 1
976
		ChainLink.TextureLength = 5
977
		ChainLink.Attachment0 = START
978
		ChainLink.Attachment1 = END
979
		ChainLink.CurveSize0 = TWIST
980
		ChainLink.CurveSize1 = TWIST
981
		--ChainLink.FaceCamera = true
982
		ChainLink.Segments = 25
983
		ChainLink.LightEmission = 0.5
984
		ChainLink.Transparency = NumberSequence.new(1)
985
		table.insert(CHAINLINKS,ChainLink)
986
	end
987
	coroutine.resume(coroutine.create(function()
988
		repeat
989
			Swait()
990
			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)
991
			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)
992
			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)
993
			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)
994
			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)
995
			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)
996
		until CHAINS == true
997
		repeat
998
			Swait()
999
			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)
1000
			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)
1001
			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)
1002
			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)
1003
			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)
1004
			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)
1005
		until ATTACK == false
1006
		for e = 1, 15 do
1007
			Swait()
1008
			for i = 1, #CHAINLINKS do
1009
				CHAINLINKS[i].Transparency = NumberSequence.new((e/15))
1010
			end
1011
		end
1012
		A:remove()
1013
		B:remove()
1014
		C:remove()
1015
		D:remove()
1016
	end))
1017
	CreateSound(233856115, RightArm, 5, 1.2, false)
1018
	for e = 1, 15 do
1019
		Swait()
1020
		for i = 1, #CHAINLINKS do
1021
			CHAINLINKS[i].Transparency = NumberSequence.new(1-(e/15))
1022
		end
1023
	end
1024
	CHAINS = true
1025
	Rooted = true
1026
	wait(0.25)
1027
	local FIST = CreatePart(3, Effects, "Neon", 0, 0.5, "Alder", "Part", VT(2,2,2))
1028
	FIST.Color = C3(1, 215/255, 1)
1029
	FIST.CFrame = CF(RightArm.CFrame*CF(0,-1.3*SIZE,0).p,POS) * ANGLES(RAD(90), RAD(0), RAD(0)) 
1030
	local LIGHT3 = IT("PointLight",FIST)
1031
	LIGHT3.Range = 7
1032
	LIGHT3.Brightness = 5
1033
	LIGHT3.Color = SKILLTEXTCOLOR
1034
	CreateMesh("SpecialMesh", FIST, "FileMesh", "465130943", "", VT(10,10,10), VT(0,0,0))
1035
	local FISTA = IT("Attachment",FIST)
1036
	FISTA.Position = VT(0.062, 0.977, 0)
1037
	local ChainLink = IT("Beam",Torso)
1038
	ChainLink.Texture = "rbxassetid://304369964"
1039
	ChainLink.Color = ColorSequence.new(SKILLTEXTCOLOR)
1040
	ChainLink.TextureSpeed = 0
1041
	ChainLink.Width0 = 3
1042
	ChainLink.Width1 = 3
1043
	ChainLink.TextureLength = 12
1044
	ChainLink.Attachment0 = LIGHT
1045
	ChainLink.Attachment1 = FISTA
1046
	ChainLink.FaceCamera = true
1047
	ChainLink.Segments = 45
1048
	ChainLink.LightEmission = 0.5
1049
	ChainLink.Transparency = NumberSequence.new(0.25)
1050
	local FISTSOUND = CreateSound(288641686, FIST, 5, 1.2, false)
1051
	for i = 1, 85 do
1052
		Swait()
1053
		FIST.CFrame = FIST.CFrame*CF(0,-2,0)
1054
		ChainLink.TextureLength = 12+(i*2)
1055
		ApplyAoE(FIST.Position,10,15,25,100,false)
1056
		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})
1057
		local HITFLOOR = Raycast(FIST.Position, (CF(FIST.Position, FIST.CFrame*CF(0,-1,0).p)).lookVector, 2.1, Character)
1058
		if HITFLOOR ~= nil then
1059
			HITFLOOR:BreakJoints()
1060
			coroutine.resume(coroutine.create(function()
1061
				for i = 1, 15 do
1062
					Swait()
1063
					FISTSOUND.Volume = FISTSOUND.Volume - 0.15
1064
					ApplyAoE(FIST.Position,10+(i*2),5,15,5,false)
1065
					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})
1066
				end
1067
			end))
1068
			break
1069
		end
1070
	end
1071
	coroutine.resume(coroutine.create(function()
1072
		for i = 1, 50 do
1073
			Swait()
1074
			FIST.Transparency = FIST.Transparency + 0.5/50
1075
			LIGHT3.Range = LIGHT3.Range - 7/50
1076
		end
1077
		FIST:remove()
1078
	end))
1079
	LIGHT:remove()
1080
	GYRO:remove()
1081
	ATTACK = false
1082
	Rooted = false
1083
end
1084
1085
function WarpMeteor()
1086
	local DIST = (RootPart.Position - Mouse.Hit.p).Magnitude
1087
	if DIST > 180 then
1088
		DIST = 180
1089
	end
1090
	local RAY,RAYPOS = Raycast(RootPart.Position, (CF(RootPart.Position, Mouse.Hit.p)).lookVector, DIST, workspace)	
1091
	local HITFLOOR,HITPOS,NORMAL = Raycast(RAYPOS+VT(0,45,0), (CF(RAYPOS, RAYPOS + VT(0, -1, 0))).lookVector, 75*SIZE, Character)
1092
	if HITFLOOR then
1093
		local POS = HITPOS	
1094
		ATTACK = true
1095
		Rooted = true
1096
		local WARPED = false
1097
		local SMASHED = false
1098
		local HITFLOOR,HITPOS,NORMAL = Raycast(RootPart.Position+VT(0,1,0), (CF(RAYPOS, RAYPOS + VT(0, -1, 0))).lookVector, 25*SIZE, Character)
1099
		coroutine.resume(coroutine.create(function()
1100
			repeat
1101
				Swait()
1102
				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)
1103
				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)
1104
				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)
1105
				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)
1106
				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)
1107
				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)
1108
			until WARPED == true
1109
			repeat
1110
				Swait()
1111
				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)
1112
				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)
1113
				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)
1114
				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)
1115
				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)
1116
				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)
1117
			until SMASHED == true
1118
			repeat
1119
				Swait()
1120
			RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0*SIZE, 0*SIZE, 0*SIZE) * ANGLES(RAD(90), RAD(0), RAD(0)), 1 / Animation_Speed)
1121
			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)
1122
			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)
1123
			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)
1124
			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)
1125
			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)
1126
			until ATTACK == false
1127
		end))
1128
		VALUE1 = true
1129
		CreateSound(233856115, Torso, 5, 1.6, false)
1130
		for i = 1, 25 do
1131
			Swait()
1132
			for _, c in pairs(Character:GetChildren()) do
1133
				if c.ClassName == "Part" then
1134
					c.Transparency = c.Transparency + 1/25
1135
				end
1136
			end
1137
			for _, c in pairs(Weapon:GetChildren()) do
1138
				if c.ClassName == "Part" then
1139
					c.Transparency = c.Transparency + 1/25
1140
				end
1141
			end
1142
		end
1143
		UNANCHOR = false
1144
		RootPart.Anchored = true
1145
		RootPart.Velocity = VT(0,0,0)
1146
		local ROOTPOS = RootPart.Position
1147
		RootPart.CFrame = CF(POS+VT(0,300,0),VT(ROOTPOS.X,POS.Y+300,ROOTPOS.Z))
1148
		WARPED = true
1149
		for i = 1, 25 do
1150
			Swait()
1151
			for _, c in pairs(Character:GetChildren()) do
1152
				if c.ClassName == "Part" then
1153
					c.Transparency = c.Transparency - 1/25
1154
				end
1155
			end
1156
			for _, c in pairs(Weapon:GetChildren()) do
1157
				if c.ClassName == "Part" then
1158
					c.Transparency = c.Transparency - 1/25
1159
				end
1160
			end
1161
		end
1162
		local SHELL = CreatePart(3, Effects, "Neon", 0, 1, "Alder", "Part", VT(0,0,0))
1163
		SHELL.CFrame = RootPart.CFrame
1164
		MakeForm(SHELL,"Ball")
1165
		CreateSound(402981977, SHELL, 5, 1.6, false)
1166
		for i = 1, 10 do
1167
			Swait()
1168
			SHELL.Transparency = SHELL.Transparency - 1/10
1169
			SHELL.Size = SHELL.Size + VT(0.6,0.6,0.6)*1.8
1170
		end
1171
		for i = 1, math.ceil(75/2) do
1172
			Swait()
1173
			RootPart.CFrame = RootPart.CFrame*CF(0,-3.5*2,0)
1174
			SHELL.CFrame = CF(RootPart.Position)
1175
			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})
1176
		end
1177
		RootPart.CFrame = CF(POS+VT(0,1,0),VT(ROOTPOS.X,HITPOS.Y+1,ROOTPOS.Z))
1178
		SHELL.CFrame = CF(RootPart.Position)
1179
		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})
1180
		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})
1181
		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})
1182
		for i = 1, 5 do
1183
			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})
1184
		end
1185
		SHELL:remove()
1186
		ApplyAoE(RootPart.Position,75,35,75,175,false)
1187
		SMASHED = true
1188
		wait(1)
1189
		VALUE1 = false
1190
		UNANCHOR = true
1191
		ATTACK = false
1192
		Rooted = false
1193
	end
1194
end
1195
1196
function PandorasBox()
1197
	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)
1198
	if HITFLOOR ~= nil then
1199
		ATTACK = true
1200
		Rooted = true
1201
		local RINGSPIN = true
1202
		local CONSTRUCTING = true
1203
		local RING = CreatePart(3, Effects, "Neon", 0, 1, "Alder", "Ring", VT(0,0,0))
1204
		RING.Color = C3(0,0,0)
1205
		MakeForm(RING,"Cyl")
1206
		RING.CFrame = CF(HITPOS)
1207
		CreateSound(402981977, RING, 5, 1.2, false)
1208
		coroutine.resume(coroutine.create(function()
1209
			repeat
1210
				Swait()
1211
				RING.CFrame = RING.CFrame * ANGLES(RAD(0), RAD(5), RAD(0))
1212
				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)
1213
				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)
1214
				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)
1215
				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)
1216
				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)
1217
				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)
1218
			until CONSTRUCTING == false
1219
			repeat 
1220
				Swait() 
1221
				RING.CFrame = RING.CFrame * ANGLES(RAD(0), RAD(5), RAD(0))
1222
			until RINGSPIN == false
1223
			for i = 1, 25 do
1224
				Swait()
1225
				RING.CFrame = RING.CFrame * ANGLES(RAD(0), RAD(5), RAD(0))
1226
				RING.Size = RING.Size - VT(0.15,0,0.15)
1227
				--DECAL.Transparency = DECAL.Transparency + 1/25
1228
				RING.Transparency = RING.Transparency + 1/25
1229
			end
1230
			RING:remove()
1231
		end))
1232
		for i = 1, 15 do
1233
			Swait()
1234
			RING.Size = RING.Size + VT(0.75,0,0.75)
1235
			RING.Transparency = RING.Transparency - 1/15
1236
		end
1237
		local BOXSPIN = true
1238
		local PANDORASBOX = IT("Model",Effects)
1239
		PANDORASBOX.Name = "Pandora's Box"
1240
		local BOX = IT("Model",PANDORASBOX)
1241
		BOX.Name = "Body"
1242
		local LID = IT("Model",PANDORASBOX)
1243
		LID.Name = "Lid"
1244
		--BUILDING THE BOX--
1245
			local BASE = CreatePart(3, BOX, "Neon", 0, 0, "Alder", "Black", VT(2,1.8,2))
1246
			BASE.Color = C3(0,0,0)
1247
			PANDORASBOX.PrimaryPart = BASE
1248
			BASE.CFrame = CF(HITPOS+VT(0,-8,0),VT(RootPart.Position.X,HITPOS.Y-8,RootPart.Position.Z))
1249
			local WOOD = CreatePart(3, BOX, "Marble", 0, 0, "Bright yellow", "Marble", VT(0.2,1.9,0.2))
1250
			WOOD.CFrame = BASE.CFrame*CF(1,0,1)
1251
			local WOOD = CreatePart(3, BOX, "Marble", 0, 0, "Bright yellow", "Marble", VT(0.2,1.9,0.2))
1252
			WOOD.CFrame = BASE.CFrame*CF(1,0,-1)
1253
			local WOOD = CreatePart(3, BOX, "Marble", 0, 0, "Bright yellow", "Marble", VT(0.2,1.9,0.2))
1254
			WOOD.CFrame = BASE.CFrame*CF(-1,0,1)
1255
			local WOOD = CreatePart(3, BOX, "Marble", 0, 0, "Bright yellow", "Marble", VT(0.2,1.9,0.2))
1256
			WOOD.CFrame = BASE.CFrame*CF(-1,0,-1)
1257
			local WOOD = CreatePart(3, BOX, "Marble", 0, 0, "Bright yellow", "Marble", VT(2.1,0.2,0.2))
1258
			WOOD.CFrame = BASE.CFrame*CF(0,0.9,1)
1259
			local WOOD = CreatePart(3, BOX, "Marble", 0, 0, "Bright yellow", "Marble", VT(2.1,0.2,0.2))
1260
			WOOD.CFrame = BASE.CFrame*CF(0,0.9,-1)
1261
			local WOOD = CreatePart(3, BOX, "Marble", 0, 0, "Bright yellow", "Marble", VT(0.2,0.2,2.1))
1262
			WOOD.CFrame = BASE.CFrame*CF(1,0.9,0)
1263
			local WOOD = CreatePart(3, BOX, "Marble", 0, 0, "Bright yellow", "Marble", VT(0.2,0.2,2.1))
1264
			WOOD.CFrame = BASE.CFrame*CF(-1,0.9,0)
1265
			local WOOD = CreatePart(3, BOX, "Marble", 0, 0, "Bright yellow", "Marble", VT(2.1,0.2,0.2))
1266
			WOOD.CFrame = BASE.CFrame*CF(0,-0.9,1)
1267
			local WOOD = CreatePart(3, BOX, "Marble", 0, 0, "Bright yellow", "Marble", VT(2.1,0.2,0.2))
1268
			WOOD.CFrame = BASE.CFrame*CF(0,-0.9,-1)
1269
			local WOOD = CreatePart(3, BOX, "Marble", 0, 0, "Bright yellow", "Marble", VT(0.2,0.2,2.1))
1270
			WOOD.CFrame = BASE.CFrame*CF(1,-0.9,0)
1271
			local WOOD = CreatePart(3, BOX, "Marble", 0, 0, "Bright yellow", "Marble", VT(0.2,0.2,2.1))
1272
			WOOD.CFrame = BASE.CFrame*CF(-1,-0.9,0)
1273
			local WOOD = CreatePart(3, BOX, "Marble", 0, 0, "Daisy orange", "Marble", VT(2.1,1.9,0.1))
1274
			WOOD.CFrame = BASE.CFrame*CF(0,0,1)
1275
			local WOOD = CreatePart(3, BOX, "Marble", 0, 0, "Daisy orange", "Marble", VT(2.1,1.9,0.1))
1276
			WOOD.CFrame = BASE.CFrame*CF(0,0,-1)
1277
			local WOOD = CreatePart(3, BOX, "Marble", 0, 0, "Daisy orange", "Marble", VT(0.1,1.9,2.1))
1278
			WOOD.CFrame = BASE.CFrame*CF(1,0,0)
1279
			local WOOD = CreatePart(3, BOX, "Marble", 0, 0, "Daisy orange", "Marble", VT(0.1,1.9,2.1))
1280
			WOOD.CFrame = BASE.CFrame*CF(-1,0,0)
1281
			local WOOD = CreatePart(3, BOX, "Marble", 0, 0, "Daisy orange", "Marble", VT(2.1,0.1,2.1))
1282
			WOOD.CFrame = BASE.CFrame*CF(0,-0.9,0)
1283
			-------------
1284
			local LIDPART = CreatePart(3, LID, "Marble", 0, 0, "Daisy orange", "Marble", VT(2.1,0.1,2.1))
1285
			LIDPART.CFrame = BASE.CFrame*CF(0,1,0)
1286
			LID.PrimaryPart = LIDPART
1287
			local WOOD = CreatePart(3, LID, "Marble", 0, 0, "Bright yellow", "Marble", VT(2.1,0.2,0.2))
1288
			WOOD.CFrame = LIDPART.CFrame*CF(0,0,-1)
1289
			local WOOD = CreatePart(3, LID, "Marble", 0, 0, "Bright yellow", "Marble", VT(2.1,0.2,0.2))
1290
			WOOD.CFrame = LIDPART.CFrame*CF(0,0,1)
1291
			local WOOD = CreatePart(3, LID, "Marble", 0, 0, "Bright yellow", "Marble", VT(0.2,0.2,2.1))
1292
			WOOD.CFrame = LIDPART.CFrame*CF(1,0,0)
1293
			local WOOD = CreatePart(3, LID, "Marble", 0, 0, "Bright yellow", "Marble", VT(0.2,0.2,2.1))
1294
			WOOD.CFrame = LIDPART.CFrame*CF(-1,0,0)
1295
			local DECAL = IT("Decal",LIDPART)
1296
			DECAL.Face = "Top"
1297
			DECAL.Texture = "http://www.roblox.com/asset/?id=1501226061"
1298
			DECAL.Color3 = C3(0,0,0)
1299
		--BUILDING THE BOX--
1300
		coroutine.resume(coroutine.create(function()
1301
			repeat
1302
				Swait()
1303
				PANDORASBOX:SetPrimaryPartCFrame(BASE.CFrame * ANGLES(RAD(0), RAD(2.45), RAD(0)))
1304
			until BOXSPIN == false
1305
		end))
1306
		for i = 1, 25 do
1307
			Swait()
1308
			PANDORASBOX:SetPrimaryPartCFrame(BASE.CFrame * CF(0,1.5-(i/12.5),0))
1309
		end
1310
		wait(0.5)
1311
		BOXSPIN = false
1312
		CONSTRUCTING = false	
1313
		coroutine.resume(coroutine.create(function()
1314
			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})
1315
			--[[for i = 1, 45 do
1316
				Swait()
1317
				LID:SetPrimaryPartCFrame(LIDPART.CFrame * CF(0,1.5-(i/12.5),0.5) * ANGLES(RAD(0.7), RAD(0), RAD(0)))
1318
			end-
1319
			LID:remove()]]--
1320
			for _, c in pairs(LID:GetChildren()) do
1321
				if c.ClassName == "Part" then
1322
					c.Anchored = false
1323
					c.CanCollide = true
1324
					if c ~= LIDPART then
1325
						weldBetween(LIDPART,c)
1326
					end
1327
				end
1328
			end
1329
			LIDPART.Velocity = CF(LIDPART.Position,LIDPART.CFrame*CF(15,25,0).p).lookVector*65
1330
			Debris:AddItem(LID,15)
1331
			wait(0.5)
1332
			local RANDOMEFFECT = MRANDOM(1,4)
1333
			if RANDOMEFFECT == 1 then
1334
				for i = 1, 45 do
1335
					wait((2-(i/15))/15)
1336
					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})
1337
				end	
1338
				wait(1)
1339
				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})
1340
				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})
1341
				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})
1342
				for i = 1, 5 do
1343
					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})
1344
				end
1345
				ApplyAoE(BASE.Position,50,1,200,375,false)
1346
				ApplyAoE(BASE.Position,250,35,75,175,false)
1347
			elseif RANDOMEFFECT == 2 then
1348
				local FIELD = CreatePart(3, Effects, "Neon", 0, 0, "Alder", "Field", VT(0.3,0.3,0.3))
1349
				FIELD.CFrame = BASE.CFrame
1350
				MakeForm(FIELD,"Ball")
1351
				for i = 1, 50 do
1352
					Swait()
1353
					FIELD.Size = FIELD.Size + VT(0.01,0.01,0.01)
1354
					FIELD.CFrame = FIELD.CFrame * CF(0,0.75-(i/45),0)
1355
				end
1356
				wait(0.2)
1357
				local LOOP = CreateSound(1393698948, FIELD, 0, 1.2, true)
1358
				coroutine.resume(coroutine.create(function()
1359
					for i = 1, 75 do
1360
						Swait()
1361
						LOOP.Volume = LOOP.Volume + 10/75
1362
						LOOP.Parent = FIELD
1363
						local CHILDREN = workspace:GetDescendants()
1364
						for index, CHILD in pairs(CHILDREN) do
1365
							if CHILD.ClassName == "Model" and CHILD ~= Character and CHILD.Parent ~= Effects then
1366
								local HUM = CHILD:FindFirstChildOfClass("Humanoid")
1367
								if HUM then
1368
									local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso")
1369
									if TORSO then
1370
										if (TORSO.Position - FIELD.Position).Magnitude <= FIELD.Size.X/2 then
1371
											HUM.Health = HUM.Health - 0.1
1372
											TORSO.Velocity = VT(0,5,0)
1373
											HUM.PlatformStand = true
1374
											if TORSO.RotVelocity.Magnitude < 15 then
1375
										 		TORSO.RotVelocity = VT(MRANDOM(-45,45),MRANDOM(-45,45),MRANDOM(-45,45))
1376
											end
1377
										end
1378
									end
1379
								end
1380
							end
1381
						end
1382
						FIELD.Size = FIELD.Size + VT(3,3,3)
1383
						FIELD.Transparency = FIELD.Transparency + 0.8/75
1384
					end
1385
					for i = 1, 500 do
1386
						Swait()
1387
						LOOP.Parent = FIELD
1388
						local CHILDREN = workspace:GetDescendants()
1389
						for index, CHILD in pairs(CHILDREN) do
1390
							if CHILD.ClassName == "Model" and CHILD ~= Character and CHILD.Parent ~= Effects then
1391
								local HUM = CHILD:FindFirstChildOfClass("Humanoid")
1392
								if HUM then
1393
									local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso")
1394
									if TORSO then
1395
										if (TORSO.Position - FIELD.Position).Magnitude <= FIELD.Size.X/2 then
1396
											TORSO.Velocity = VT(0,5,0)
1397
											HUM.Health = HUM.Health - 0.1
1398
											HUM.PlatformStand = true
1399
											if TORSO.RotVelocity.Magnitude < 15 then
1400
										 		TORSO.RotVelocity = VT(MRANDOM(-45,45),MRANDOM(-45,45),MRANDOM(-45,45))
1401
											end
1402
										end
1403
									end
1404
								end
1405
							end
1406
						end
1407
					end
1408
					for i = 1, 25 do
1409
						Swait()
1410
						LOOP.Volume = LOOP.Volume + 10/25
1411
						LOOP.Parent = FIELD
1412
						local CHILDREN = workspace:GetDescendants()
1413
						for index, CHILD in pairs(CHILDREN) do
1414
							if CHILD.ClassName == "Model" and CHILD ~= Character and CHILD.Parent ~= Effects then
1415
								local HUM = CHILD:FindFirstChildOfClass("Humanoid")
1416
								if HUM then
1417
									local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso")
1418
									if TORSO then
1419
										if (TORSO.Position - FIELD.Position).Magnitude <= FIELD.Size.X/1.8 then
1420
											TORSO.Velocity = VT(0,5,0)
1421
											HUM.Health = HUM.Health - 0.1
1422
											HUM.PlatformStand = false
1423
											if TORSO.RotVelocity.Magnitude < 15 then
1424
										 		TORSO.RotVelocity = VT(MRANDOM(-45,45),MRANDOM(-45,45),MRANDOM(-45,45))
1425
											end
1426
										end
1427
									end
1428
								end
1429
							end
1430
						end
1431
						FIELD.Size = FIELD.Size - VT(3,3,3)
1432
						FIELD.Transparency = FIELD.Transparency + 0.2/25
1433
					end	
1434
					FIELD:remove()
1435
				end))
1436
			elseif RANDOMEFFECT == 3 then
1437
				for i = 1, 10 do
1438
					wait(0.15)
1439
					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})
1440
					coroutine.resume(coroutine.create(function()
1441
						local MINION = CLONE:Clone()
1442
						MINION.Parent = Effects
1443
						MINION.Name = "Shadow"
1444
						MINION.HumanoidRootPart.CFrame = BASE.CFrame*CF(0,5,0) * ANGLES(RAD(0), RAD(MRANDOM(0,360)), RAD(0))
1445
						MINION.HumanoidRootPart.Velocity = CF(MINION.HumanoidRootPart.Position,MINION.HumanoidRootPart.CFrame*CF(0,8,-15).p).lookVector*MRANDOM(55,100)
1446
						for _, c in pairs(MINION:GetChildren()) do
1447
							if c.ClassName == "Part" then
1448
								c.Material = "Neon"
1449
								c.Color = C3(0,0,0)
1450
								c.Transparency = 0.25
1451
								if c.Name == "Head" then
1452
									c:ClearAllChildren()
1453
									local MSH = IT("BlockMesh",c)
1454
									MSH.Scale = VT(0.5,1,1)
1455
								end
1456
							end
1457
						end
1458
						local TORSO = MINION.Torso
1459
						local HUMAN = MINION.Humanoid
1460
						HUMAN.WalkSpeed = 50
1461
						HUMAN.MaxHealth = math.huge
1462
						HUMAN.Health = math.huge
1463
						HUMAN.DisplayDistanceType = "None"
1464
						HUMAN.Died:connect(function()
1465
							MINION:remove()
1466
							--CreateSound(SHOUTS[MRANDOM(1,3)], TORSO, 3, 0.5, false)
1467
						end)
1468
						wait(1)
1469
						local findNearestTorso = function(POS)
1470
							local list = game.Workspace:GetDescendants()
1471
							local torso = nil
1472
							local dist = 500
1473
							local temp = nil
1474
							local human = nil
1475
							local temp2 = nil
1476
							for x = 1, #list do
1477
								temp2 = list[x]
1478
								if (temp2.className == "Model") and (temp2 ~= Character) and (temp2.Parent ~= Effects) then
1479
									temp = temp2:findFirstChild("Torso") or temp2:findFirstChild("UpperTorso")
1480
									human = temp2:findFirstChildOfClass("Humanoid")
1481
									if (temp ~= nil) and (human ~= nil) and (human.Health > 0) then
1482
										if (temp.Position - POS).magnitude < dist then
1483
											torso = temp
1484
											dist = (temp.Position - POS).magnitude
1485
										end
1486
									end
1487
								end
1488
							end
1489
							return torso, dist
1490
						end
1491
						for i = 1, 40 do
1492
							if HUMAN.Health == 0 then
1493
								break
1494
							end
1495
							wait(0.3)
1496
							local target,dist= findNearestTorso(TORSO.Position)
1497
							if target then
1498
								HUMAN:MoveTo(target.Position)
1499
								if dist < 25 then
1500
									CreateSound(348663022, TORSO, 10, 1, true)
1501
									wait(2)
1502
									--local ANIM = HUMAN:LoadAnimation(ATANIM)
1503
									--ANIM:Play()
1504
									--CreateSound(SHOUTS[MRANDOM(1,3)], TORSO, 1, 1, false)
1505
									ApplyAoE(TORSO.Position,10,0,0,85,true)
1506
									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})
1507
									for i = 1, 5 do
1508
										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})
1509
									end
1510
									break
1511
								end
1512
							end
1513
						end
1514
						MINION:remove()
1515
					end))
1516
				end
1517
			elseif RANDOMEFFECT == 4 then
1518
				local FIELD = CreatePart(3, Effects, "Neon", 0, 0, "Alder", "Field", VT(0.3,0.3,0.3))
1519
				FIELD.Color = C3(0,0,0)
1520
				FIELD.CFrame = BASE.CFrame
1521
				MakeForm(FIELD,"Ball")
1522
				FIELD.CanCollide = true
1523
				for i = 1, 50 do
1524
					Swait()
1525
					FIELD.Size = FIELD.Size + VT(0.01,0.01,0.01)
1526
					FIELD.CFrame = FIELD.CFrame * CF(0,0.75-(i/45),0)
1527
				end
1528
				wait(0.2)
1529
				local LOOP = CreateSound(487214658, FIELD, 0, 1, true)
1530
				coroutine.resume(coroutine.create(function()
1531
					local E = 0
1532
					for i = 1, 75 do
1533
						E = E + 1
1534
						Swait()
1535
						if E >= 35 then
1536
							E = 0
1537
							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})
1538
						end
1539
						LOOP.Volume = LOOP.Volume + 10/75
1540
						LOOP.Parent = FIELD
1541
						local CHILDREN = workspace:GetDescendants()
1542
						for index, CHILD in pairs(CHILDREN) do
1543
							if CHILD.ClassName == "Model" and CHILD ~= Character and CHILD.Parent ~= Effects then
1544
								local HUM = CHILD:FindFirstChildOfClass("Humanoid")
1545
								if HUM then
1546
									local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso")
1547
									if TORSO then
1548
										if (TORSO.Position - FIELD.Position).Magnitude <= FIELD.Size.X*30 then
1549
											for _, c in pairs(CHILD:GetChildren()) do
1550
												if c:IsA("BasePart") then
1551
													local bv = Instance.new("BodyVelocity") 
1552
													bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
1553
													bv.velocity = CF(FIELD.Position,c.Position).lookVector*-50
1554
													bv.Parent = c
1555
													Debris:AddItem(bv,0.05)
1556
												end
1557
											end
1558
											HUM.Health = HUM.Health - 0.3
1559
										end
1560
									end
1561
								end
1562
							end
1563
						end
1564
						FIELD.Size = FIELD.Size + VT(0.3,0.3,0.3)/5
1565
					end
1566
					for i = 1, 180 do
1567
						E = E + 1
1568
						Swait()
1569
						if E >= 35 then
1570
							E = 0
1571
							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})
1572
						end
1573
						LOOP.Parent = FIELD
1574
						local CHILDREN = workspace:GetDescendants()
1575
						for index, CHILD in pairs(CHILDREN) do
1576
							if CHILD.ClassName == "Model" and CHILD ~= Character and CHILD.Parent ~= Effects then
1577
								local HUM = CHILD:FindFirstChildOfClass("Humanoid")
1578
								if HUM then
1579
									local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso")
1580
									if TORSO then
1581
										if (TORSO.Position - FIELD.Position).Magnitude <= FIELD.Size.X*30 then
1582
											for _, c in pairs(CHILD:GetChildren()) do
1583
												if c:IsA("BasePart") then
1584
													local bv = Instance.new("BodyVelocity") 
1585
													bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
1586
													bv.velocity = CF(FIELD.Position,c.Position).lookVector*-50
1587
													bv.Parent = c
1588
													Debris:AddItem(bv,0.05)
1589
												end
1590
											end
1591
											HUM.Health = HUM.Health - 0.3
1592
										end
1593
									end
1594
								end
1595
							end
1596
						end
1597
					end
1598
					ApplyAoE(FIELD.Position,40,15,20,375,false)
1599
					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})
1600
					for i = 1, 5 do
1601
						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})
1602
					end
1603
					FIELD:remove()
1604
				end))
1605
			elseif RANDOMEFFECT == 5 then
1606
			end
1607
			wait(0.5)
1608
			for i = 1, 25 do
1609
				Swait()
1610
				PANDORASBOX:SetPrimaryPartCFrame(BASE.CFrame * CF(0,-0.3,0))
1611
			end
1612
			PANDORASBOX:remove()
1613
			RINGSPIN = false
1614
		end))
1615
		ATTACK = false
1616
		Rooted = false
1617
	end
1618
end
1619
1620
function Taunt()
1621
	ATTACK = true
1622
	local LAUGH = nil
1623
	coroutine.resume(coroutine.create(function()
1624
		repeat
1625
			Swait()
1626
			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)
1627
			Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1.1*SIZE) - 1)) * ANGLES(RAD(5), RAD(0), RAD(-45)), 1 / Animation_Speed)
1628
			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)
1629
			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)
1630
			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)
1631
			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)
1632
		until LAUGH ~= nil
1633
		repeat
1634
			Swait()
1635
			LAUGH.Parent = Head
1636
			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)
1637
			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)
1638
			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)
1639
			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)
1640
			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)
1641
			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)
1642
		until LAUGH.Playing == false
1643
	ATTACK = false
1644
	end))
1645
	wait(0.1)
1646
	sick:Pause()
1647
	LAUGH = CreateSound(525166232, Head, 10, 1, false)
1648
	wait(1)
1649
	sick:Resume()
1650
end
1651
1652
--//=================================\\
1653
--||	  ASSIGN THINGS TO KEYS
1654
--\\=================================//
1655
1656
function MouseDown(Mouse)
1657
	HOLD = true
1658
	if ATTACK == false then
1659
	end
1660
end
1661
1662
function MouseUp(Mouse)
1663
HOLD = false
1664
end
1665
1666
function KeyDown(Key)
1667
	KEYHOLD = true
1668
	if Key == "z" and ATTACK == false then
1669
		MagicMissiles()
1670
	end
1671
1672
	if Key == "b" and ATTACK == false then
1673
		TimesUp()
1674
	end
1675
1676
	if Key == "c" and ATTACK == false then
1677
		ChainPunch()
1678
	end
1679
1680
	if Key == "v" and ATTACK == false then
1681
		WarpMeteor()
1682
	end
1683
1684
	if Key == "x" and ATTACK == false then
1685
		PandorasBox()
1686
	end
1687
1688
	if Key == "t" and ATTACK == false then
1689
		Taunt()
1690
	end
1691
end
1692
1693
function KeyUp(Key)
1694
	KEYHOLD = false
1695
end
1696
1697
	Mouse.Button1Down:connect(function(NEWKEY)
1698
		MouseDown(NEWKEY)
1699
	end)
1700
	Mouse.Button1Up:connect(function(NEWKEY)
1701
		MouseUp(NEWKEY)
1702
	end)
1703
	Mouse.KeyDown:connect(function(NEWKEY)
1704
		KeyDown(NEWKEY)
1705
	end)
1706
	Mouse.KeyUp:connect(function(NEWKEY)
1707
		KeyUp(NEWKEY)
1708
	end)
1709
1710
--//=================================\\
1711
--\\=================================//
1712
1713
1714
function unanchor()
1715
	if UNANCHOR == true then
1716
		RootPart.Anchored = false
1717
	end
1718
	g = Character:GetChildren()
1719
	for i = 1, #g do
1720
		if g[i].ClassName == "Part" and g[i] ~= RootPart then
1721
			g[i].Anchored = false
1722
		end
1723
	end
1724
	g = Weapon:GetChildren()
1725
	for i = 1, #g do
1726
		if g[i].ClassName == "Part" then
1727
			g[i].Anchored = false
1728
		end
1729
	end
1730
end
1731
1732
1733
--//=================================\\
1734
--||	WRAP THE WHOLE SCRIPT UP
1735
--\\=================================//
1736
1737
Humanoid.Changed:connect(function(Jump)
1738
	if Jump == "Jump" and (Disable_Jump == true) then
1739
		Humanoid.Jump = false
1740
	end
1741
end)
1742
1743
while true do
1744
	Swait()
1745
	script.Parent = WEAPONGUI
1746
	for _,v in next, Humanoid:GetPlayingAnimationTracks() do
1747
	    v:Stop();
1748
	end
1749
	ANIMATE.Parent = nil
1750
	SINE = SINE + CHANGE*1.5
1751
	local TORSOVELOCITY = (RootPart.Velocity * VT(1, 0, 1)).magnitude
1752
	local TORSOVERTICALVELOCITY = RootPart.Velocity.y
1753
	local HITFLOOR = Raycast(RootPart.Position, (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 4*SIZE, Character)
1754
	local WALKSPEEDVALUE = 10 / (Humanoid.WalkSpeed / 16)
1755
	if ANIM == "Walk" and TORSOVELOCITY > 1 then
1756
		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)
1757
		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)
1758
		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)
1759
		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)
1760
	elseif (ANIM ~= "Walk") or (TORSOVELOCITY < 1) then
1761
		RootJoint.C1 = Clerp(RootJoint.C1, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
1762
		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)
1763
		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)
1764
		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)
1765
	end
1766
	if TORSOVERTICALVELOCITY > 1 and HITFLOOR == nil then
1767
		ANIM = "Jump"
1768
		if ATTACK == false then
1769
			RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0*SIZE, 0*SIZE, 0*SIZE) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
1770
			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)
1771
			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)
1772
			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)
1773
			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)
1774
			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)
1775
	    end
1776
	elseif TORSOVERTICALVELOCITY < -1 and HITFLOOR == nil then
1777
		ANIM = "Fall"
1778
		if ATTACK == false then
1779
			RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0*SIZE, 0*SIZE, 0*SIZE) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
1780
			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)
1781
			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)
1782
			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)
1783
			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)
1784
			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)
1785
		end
1786
	elseif TORSOVELOCITY < 1 and HITFLOOR ~= nil then
1787
		ANIM = "Idle"
1788
		if ATTACK == false then
1789
			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)
1790
			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)
1791
			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)
1792
			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)
1793
			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)
1794
			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)
1795
		end
1796
	elseif TORSOVELOCITY > 1 and HITFLOOR ~= nil then
1797
		ANIM = "Walk"
1798
		if ATTACK == false then
1799
			RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0*SIZE, 0*SIZE, -0.1*SIZE) * ANGLES(RAD(5), RAD(0), RAD(0)), 1 / Animation_Speed)
1800
			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)
1801
			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)
1802
			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)
1803
			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)
1804
			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)
1805
		end
1806
	end
1807
	unanchor()
1808
	Humanoid.MaxHealth = "inf"
1809
	Humanoid.Health = "inf"
1810
	if Rooted == false then
1811
		Disable_Jump = false
1812
		Humanoid.WalkSpeed = Speed
1813
	elseif Rooted == true then
1814
		Disable_Jump = true
1815
		Humanoid.WalkSpeed = 0
1816
	end
1817
	for _, c in pairs(Character:GetChildren()) do
1818
		if c.ClassName == "Part" and c.Name ~= "Detail" then
1819
			c.Material = "Fabric"
1820
			if c:FindFirstChildOfClass("ParticleEmitter") then
1821
				c:FindFirstChildOfClass("ParticleEmitter"):remove()
1822
			end
1823
			if c ~= Head then
1824
				c.Color = C3(0,0,0)
1825
			else
1826
				c.Color = C3(1,1,1)
1827
			end
1828
			if c == Head then
1829
				if c:FindFirstChild("face") then
1830
					c.face:remove()
1831
				end
1832
			end
1833
		elseif c.ClassName == "CharacterMesh" or c.ClassName == "Accessory" or c.Name == "Body Colors" then
1834
			c:remove()
1835
		elseif (c.ClassName == "Shirt" or c.ClassName == "Pants") and c.Name ~= "Cloth" then
1836
			c:remove()
1837
		end
1838
	end
1839
	sick.SoundId = "rbxassetid://"..SONG
1840
	sick.Looped = true
1841
	sick.Pitch = 1
1842
	sick.Volume = 5
1843
	sick.Parent = Torso
1844
	sick:Resume()
1845
	--sick.Playing = false
1846
	Humanoid.Name = "Pandora = "..Player.Name
1847
end
1848
1849
--//=================================\\
1850
--\\=================================//
1851
1852
1853
1854
1855
1856
--//====================================================\\--
1857
--||			  		 END OF SCRIPT
1858
--\\====================================================//--