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