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