View difference between Paste ID: mj4yFEwY and mFL39frV
SHOW: | | - or go back to the newest paste.
1-
Player = game.Players.Blueinkmetboy
1+
Player = game.Players.silver22352
2
	Character = Player.Character
3
	local txt = Instance.new("BillboardGui", Character)
4
	txt.Adornee = Character.Head
5
	txt.Name = "_status"
6
	txt.Size = UDim2.new(2, 0, 1.2, 0)
7
	txt.StudsOffset = Vector3.new(-9, 10, 0)
8
	local text = Instance.new("TextLabel", txt)
9
	text.Size = UDim2.new(10, 0, 7, 0)
10
	text.FontSize = "Size24"
11
	text.TextScaled = true
12
	text.TextTransparency = 0
13
	text.BackgroundTransparency = 1 
14
	text.TextTransparency = 0
15
	text.TextStrokeTransparency = 0
16
	text.Font = "Antique"
17
	text.TextStrokeColor3 = Color3.new(1,0,0)
18
        text.Text = "Infectist"
19
20
--//====================================================\\--
21
--||			   CREATED BY SHACKLUSTER EDIT BY NAMECLAN
22
--\\====================================================//--
23
24
script:ClearAllChildren()
25
wait(0.2)
26
27-
Player = game:GetService("Players").Blueibkmetboy
27+
Player = game:GetService("Players").silver22352
28
PlayerGui = Player.PlayerGui
29
Cam = workspace.CurrentCamera
30
Backpack = Player.Backpack
31
Character = Player.Character
32
Humanoid = Character.Humanoid
33
Mouse = Player:GetMouse()
34
RootPart = Character["HumanoidRootPart"]
35
Torso = Character["Torso"]
36
Head = Character["Head"]
37
RightArm = Character["Right Arm"]
38
LeftArm = Character["Left Arm"]
39
RightLeg = Character["Right Leg"]
40
LeftLeg = Character["Left Leg"]
41
RootJoint = RootPart["RootJoint"]
42
Neck = Torso["Neck"]
43
RightShoulder = Torso["Right Shoulder"]
44
LeftShoulder = Torso["Left Shoulder"]
45
RightHip = Torso["Right Hip"]
46
LeftHip = Torso["Left Hip"]
47
local TIME = 0
48
local sick = Instance.new("Sound",Torso)
49
50
IT = Instance.new
51
CF = CFrame.new
52
VT = Vector3.new
53
RAD = math.rad
54
C3 = Color3.new
55
UD2 = UDim2.new
56
BRICKC = BrickColor.new
57
ANGLES = CFrame.Angles
58
EULER = CFrame.fromEulerAnglesXYZ
59
COS = math.cos
60
ACOS = math.acos
61
SIN = math.sin
62
ASIN = math.asin
63
ABS = math.abs
64
MRANDOM = math.random
65
FLOOR = math.floor
66
67
--//=================================\\
68
--|| 	      USEFUL VALUES
69
--\\=================================//
70
71
Animation_Speed = 3
72
local FORCERESET = false
73
Frame_Speed = 1 / 60 -- (1 / 30) OR (1 / 60)
74
local Speed = 18
75
local ROOTC0 = CF(0, 0, 0) * ANGLES(RAD(-90), RAD(0), RAD(180))
76
local NECKC0 = CF(0, 1, 0) * ANGLES(RAD(-90), RAD(0), RAD(180))
77
local RIGHTSHOULDERC0 = CF(-0.5, 0, 0) * ANGLES(RAD(0), RAD(90), RAD(0))
78
local LEFTSHOULDERC0 = CF(0.5, 0, 0) * ANGLES(RAD(0), RAD(-90), RAD(0))
79
local DAMAGEMULTIPLIER = 1
80
local ANIM = "Idle"
81
local ATTACK = false
82
local EQUIPPED = false
83
local HOLD = false
84
local COMBO = 1
85
local Rooted = false
86
local SINE = 0
87
local KEYHOLD = false
88
local CHANGE = 2 / Animation_Speed
89
local WALKINGANIM = false
90
local VALUE1 = false
91
local VALUE2 = false
92
local ROBLOXIDLEANIMATION = IT("Animation")
93
ROBLOXIDLEANIMATION.Name = "Roblox Idle Animation"
94
ROBLOXIDLEANIMATION.AnimationId = "http://www.roblox.com/asset/?id=180435571"
95
--ROBLOXIDLEANIMATION.Parent = Humanoid
96
local WEAPONGUI = IT("ScreenGui", PlayerGui)
97
WEAPONGUI.Name = "BanishV3Gui"
98
local Weapon = IT("Model")
99
Weapon.Name = "Adds"
100
local Effects = IT("Folder", Weapon)
101
Effects.Name = "Effects"
102
local KnifeM = IT("Model")
103
KnifeM.Name = "KAdds"
104
local ANIMATOR = Humanoid.Animator
105
local ANIMATE = Character:FindFirstChild("Animate")
106
local UNANCHOR = true
107
local TOBANISH = {}
108
script.Parent = PlayerGui
109
local FADERS = true
110
local MODE = "Infectist"
111
local SONG = 494139763
112
local VOLUME = 3.5
113
local PITCH = 1
114
local SIZE = 1
115
local GHOSTS = {}
116
ANIMATE:remove()
117
Character.Archivable = true
118
script.Parent = WEAPONGUI
119
local GHOSTBASE = Character:Clone()
120
GHOSTBASE.Parent = nil
121
GHOSTBASE.Name = "Infected"
122
for _, c in pairs(GHOSTBASE:GetChildren()) do
123
	if c.ClassName == "Part" and c.Transparency < 1 then
124
		c.Color = C3(0,0,0)
125
		if c.ClassName == "Accessory" or c.ClassName == "Hat" or c.ClassName == "CharacterMesh" or c.ClassName == "Shirt" or c.ClassName == "Pants" then
126
			c:remove()
127
		end
128
	end
129
end
130
local Effects = IT("Folder", Character)
131
Effects.Name = "Effects"
132
Character.Archivable = false
133
local BODY = {}
134
local SHOCKSOUND = 1544280726
135
local RINGSOUND = 340505360
136
local ULTHIT = 412831137
137
138
--//=================================\\
139
--\\=================================//
140
141
142
--//=================================\\
143
--|| SAZERENOS' ARTIFICIAL HEARTBEAT
144
--\\=================================//
145
146
ArtificialHB = Instance.new("BindableEvent", script)
147
ArtificialHB.Name = "ArtificialHB"
148
149
script:WaitForChild("ArtificialHB")
150
151
frame = Frame_Speed
152
tf = 0
153
allowframeloss = false
154
tossremainder = false
155
lastframe = tick()
156
script.ArtificialHB:Fire()
157
158
game:GetService("RunService").Heartbeat:connect(function(s, p)
159
	tf = tf + s
160
	if tf >= frame then
161
		if allowframeloss then
162
			script.ArtificialHB:Fire()
163
			lastframe = tick()
164
		else
165
			for i = 1, math.floor(tf / frame) do
166
				script.ArtificialHB:Fire()
167
			end
168
		lastframe = tick()
169
		end
170
		if tossremainder then
171
			tf = 0
172
		else
173
			tf = tf - frame * math.floor(tf / frame)
174
		end
175
	end
176
end)
177
178
--//=================================\\
179
--\\=================================//
180
181
--//=================================\\
182
--|| 	      SOME FUNCTIONS
183
--\\=================================//
184
185
function Raycast(POSITION, DIRECTION, RANGE, IGNOREDECENDANTS)
186
	return workspace:FindPartOnRay(Ray.new(POSITION, DIRECTION.unit * RANGE), IGNOREDECENDANTS)
187
end
188
189
function PositiveAngle(NUMBER)
190
	if NUMBER >= 0 then
191
		NUMBER = 0
192
	end
193
	return NUMBER
194
end
195
196
function NegativeAngle(NUMBER)
197
	if NUMBER <= 0 then
198
		NUMBER = 0
199
	end
200
	return NUMBER
201
end
202
203
function Swait(NUMBER)
204
	if NUMBER == 0 or NUMBER == nil then
205
		ArtificialHB.Event:wait()
206
	else
207
		for i = 1, NUMBER do
208
			ArtificialHB.Event:wait()
209
		end
210
	end
211
end
212
213
function CreateMesh(MESH, PARENT, MESHTYPE, MESHID, TEXTUREID, SCALE, OFFSET)
214
	local NEWMESH = IT(MESH)
215
	if MESH == "SpecialMesh" then
216
		NEWMESH.MeshType = MESHTYPE
217
		if MESHID ~= "nil" and MESHID ~= "" then
218
			NEWMESH.MeshId = "http://www.roblox.com/asset/?id="..MESHID
219
		end
220
		if TEXTUREID ~= "nil" and TEXTUREID ~= "" then
221
			NEWMESH.TextureId = "http://www.roblox.com/asset/?id="..TEXTUREID
222
		end
223
	end
224
	NEWMESH.Offset = OFFSET or VT(0, 0, 0)
225
	NEWMESH.Scale = SCALE
226
	NEWMESH.Parent = PARENT
227
	return NEWMESH
228
end
229
230
function CreatePart(FORMFACTOR, PARENT, MATERIAL, REFLECTANCE, TRANSPARENCY, BRICKCOLOR, NAME, SIZE, ANCHOR)
231
	local NEWPART = IT("Part")
232
	NEWPART.formFactor = FORMFACTOR
233
	NEWPART.Reflectance = REFLECTANCE
234
	NEWPART.Transparency = TRANSPARENCY
235
	NEWPART.CanCollide = false
236
	NEWPART.Locked = true
237
	NEWPART.Anchored = true
238
	if ANCHOR == false then
239
		NEWPART.Anchored = false
240
	end
241
	NEWPART.BrickColor = BRICKC(tostring(BRICKCOLOR))
242
	NEWPART.Name = NAME
243
	NEWPART.Size = SIZE
244
	NEWPART.Position = Torso.Position
245
	NEWPART.Material = MATERIAL
246
	NEWPART:BreakJoints()
247
	NEWPART.Parent = PARENT
248
	return NEWPART
249
end
250
251
	local function weldBetween(a, b)
252
	    local weldd = Instance.new("ManualWeld")
253
	    weldd.Part0 = a
254
	    weldd.Part1 = b
255
	    weldd.C0 = CFrame.new()
256
	    weldd.C1 = b.CFrame:inverse() * a.CFrame
257
	    weldd.Parent = a
258
	    return weldd
259
	end
260
261
262
function QuaternionFromCFrame(cf)
263
	local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
264
	local trace = m00 + m11 + m22
265
	if trace > 0 then 
266
		local s = math.sqrt(1 + trace)
267
		local recip = 0.5 / s
268
		return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5
269
	else
270
		local i = 0
271
		if m11 > m00 then
272
			i = 1
273
		end
274
		if m22 > (i == 0 and m00 or m11) then
275
			i = 2
276
		end
277
		if i == 0 then
278
			local s = math.sqrt(m00 - m11 - m22 + 1)
279
			local recip = 0.5 / s
280
			return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip
281
		elseif i == 1 then
282
			local s = math.sqrt(m11 - m22 - m00 + 1)
283
			local recip = 0.5 / s
284
			return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip
285
		elseif i == 2 then
286
			local s = math.sqrt(m22 - m00 - m11 + 1)
287
			local recip = 0.5 / s return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip
288
		end
289
	end
290
end
291
 
292
function QuaternionToCFrame(px, py, pz, x, y, z, w)
293
	local xs, ys, zs = x + x, y + y, z + z
294
	local wx, wy, wz = w * xs, w * ys, w * zs
295
	local xx = x * xs
296
	local xy = x * ys
297
	local xz = x * zs
298
	local yy = y * ys
299
	local yz = y * zs
300
	local zz = z * zs
301
	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))
302
end
303
 
304
function QuaternionSlerp(a, b, t)
305
	local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4]
306
	local startInterp, finishInterp;
307
	if cosTheta >= 0.0001 then
308
		if (1 - cosTheta) > 0.0001 then
309
			local theta = ACOS(cosTheta)
310
			local invSinTheta = 1 / SIN(theta)
311
			startInterp = SIN((1 - t) * theta) * invSinTheta
312
			finishInterp = SIN(t * theta) * invSinTheta
313
		else
314
			startInterp = 1 - t
315
			finishInterp = t
316
		end
317
	else
318
		if (1 + cosTheta) > 0.0001 then
319
			local theta = ACOS(-cosTheta)
320
			local invSinTheta = 1 / SIN(theta)
321
			startInterp = SIN((t - 1) * theta) * invSinTheta
322
			finishInterp = SIN(t * theta) * invSinTheta
323
		else
324
			startInterp = t - 1
325
			finishInterp = t
326
		end
327
	end
328
	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
329
end
330
331
function Clerp(a, b, t)
332
	local qa = {QuaternionFromCFrame(a)}
333
	local qb = {QuaternionFromCFrame(b)}
334
	local ax, ay, az = a.x, a.y, a.z
335
	local bx, by, bz = b.x, b.y, b.z
336
	local _t = 1 - t
337
	return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t))
338
end
339
340
function CreateFrame(PARENT, TRANSPARENCY, BORDERSIZEPIXEL, POSITION, SIZE, COLOR, BORDERCOLOR, NAME)
341
	local frame = IT("Frame")
342
	frame.BackgroundTransparency = TRANSPARENCY
343
	frame.BorderSizePixel = BORDERSIZEPIXEL
344
	frame.Position = POSITION
345
	frame.Size = SIZE
346
	frame.BackgroundColor3 = COLOR
347
	frame.BorderColor3 = BORDERCOLOR
348
	frame.Name = NAME
349
	frame.Parent = PARENT
350
	return frame
351
end
352
353
function CreateLabel(PARENT, TEXT, TEXTCOLOR, TEXTFONTSIZE, TEXTFONT, TRANSPARENCY, BORDERSIZEPIXEL, STROKETRANSPARENCY, NAME)
354
	local label = IT("TextLabel")
355
	label.BackgroundTransparency = 1
356
	label.Size = UD2(1, 0, 1, 0)
357
	label.Position = UD2(0, 0, 0, 0)
358
	label.TextColor3 = TEXTCOLOR
359
	label.TextStrokeTransparency = STROKETRANSPARENCY
360
	label.TextTransparency = TRANSPARENCY
361
	label.FontSize = TEXTFONTSIZE
362
	label.Font = TEXTFONT
363
	label.BorderSizePixel = BORDERSIZEPIXEL
364
	label.TextScaled = false
365
	label.Text = TEXT
366
	label.Name = NAME
367
	label.Parent = PARENT
368
	return label
369
end
370
371
function NoOutlines(PART)
372
	PART.TopSurface, PART.BottomSurface, PART.LeftSurface, PART.RightSurface, PART.FrontSurface, PART.BackSurface = 10, 10, 10, 10, 10, 10
373
end
374
375
function CreateWeldOrSnapOrMotor(TYPE, PARENT, PART0, PART1, C0, C1)
376
	local NEWWELD = IT(TYPE)
377
	NEWWELD.Part0 = PART0
378
	NEWWELD.Part1 = PART1
379
	NEWWELD.C0 = C0
380
	NEWWELD.C1 = C1
381
	NEWWELD.Parent = PARENT
382
	return NEWWELD
383
end
384
385
local S = IT("Sound")
386
function CreateSound(ID, PARENT, VOLUME, PITCH, DOESLOOP)
387
	local NEWSOUND = nil
388
	coroutine.resume(coroutine.create(function()
389
		NEWSOUND = S:Clone()
390
		NEWSOUND.Parent = PARENT
391
		NEWSOUND.Volume = VOLUME
392
		NEWSOUND.Pitch = PITCH
393
		NEWSOUND.SoundId = "http://www.roblox.com/asset/?id="..ID
394
		NEWSOUND:play()
395
		if DOESLOOP == true then
396
			NEWSOUND.Looped = true
397
		else
398
			repeat wait(1) until NEWSOUND.Playing == false or NEWSOUND.Parent ~= PARENT
399
			NEWSOUND:remove()
400
		end
401
	end))
402
	return NEWSOUND
403
end
404
405
function CFrameFromTopBack(at, top, back)
406
	local right = top:Cross(back)
407
	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)
408
end
409
410
--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})
411
function WACKYEFFECT(Table)
412
	local TYPE = (Table.EffectType or "Sphere")
413
	local SIZE = (Table.Size or VT(1,1,1))
414
	local ENDSIZE = (Table.Size2 or VT(0,0,0))
415
	local TRANSPARENCY = (Table.Transparency or 0)
416
	local ENDTRANSPARENCY = (Table.Transparency2 or 1)
417
	local CFRAME = (Table.CFrame or Torso.CFrame)
418
	local MOVEDIRECTION = (Table.MoveToPos or nil)
419
	local ROTATION1 = (Table.RotationX or 0)
420
	local ROTATION2 = (Table.RotationY or 0)
421
	local ROTATION3 = (Table.RotationZ or 0)
422
	local MATERIAL = (Table.Material or "Neon")
423
	local COLOR = (Table.Color or C3(1,1,1))
424
	local TIME = (Table.Time or 45)
425
	local SOUNDID = (Table.SoundID or nil)
426
	local SOUNDPITCH = (Table.SoundPitch or nil)
427
	local SOUNDVOLUME = (Table.SoundVolume or nil)
428
	coroutine.resume(coroutine.create(function()
429
		local PLAYSSOUND = false
430
		local SOUND = nil
431
		local EFFECT = CreatePart(3, Effects, MATERIAL, 0, TRANSPARENCY, BRICKC("Pearl"), "Effect", VT(1,1,1), true)
432
		if SOUNDID ~= nil and SOUNDPITCH ~= nil and SOUNDVOLUME ~= nil then
433
			PLAYSSOUND = true
434
			SOUND = CreateSound(SOUNDID, EFFECT, SOUNDVOLUME, SOUNDPITCH, false)
435
		end
436
		EFFECT.Color = COLOR
437
		local MSH = nil
438
		if TYPE == "Sphere" then
439
			MSH = CreateMesh("SpecialMesh", EFFECT, "Sphere", "", "", SIZE, VT(0,0,0))
440
		elseif TYPE == "Block" then
441
			MSH = IT("BlockMesh",EFFECT)
442
			MSH.Scale = VT(SIZE.X,SIZE.X,SIZE.X)
443
		elseif TYPE == "Wave" then
444
			MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "20329976", "", SIZE, VT(0,0,-SIZE.X/8))
445
		elseif TYPE == "Ring" then
446
			MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "559831844", "", VT(SIZE.X,SIZE.X,0.1), VT(0,0,0))
447
		elseif TYPE == "Slash" then
448
			MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662586858", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0))
449
		elseif TYPE == "Round Slash" then
450
			MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662585058", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0))
451
		elseif TYPE == "Swirl" then
452
			MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "1051557", "", SIZE, VT(0,0,0))
453
		elseif TYPE == "Skull" then
454
			MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "4770583", "", SIZE, VT(0,0,0))
455
		elseif TYPE == "Crystal" then
456
			MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "9756362", "", SIZE, VT(0,0,0))
457
		end
458
		if MSH ~= nil then
459
			local MOVESPEED = nil
460
			if MOVEDIRECTION ~= nil then
461
				MOVESPEED = (CFRAME.p - MOVEDIRECTION).Magnitude/TIME
462
			end
463
			local GROWTH = SIZE - ENDSIZE
464
			local TRANS = TRANSPARENCY - ENDTRANSPARENCY
465
			if TYPE == "Block" then
466
				EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))
467
			else
468
				EFFECT.CFrame = CFRAME
469
			end
470
			for LOOP = 1, TIME+1 do
471
				Swait()
472
				MSH.Scale = MSH.Scale - GROWTH/TIME
473
				if TYPE == "Wave" then
474
					MSH.Offset = VT(0,0,-MSH.Scale.X/8)
475
				end
476
				EFFECT.Transparency = EFFECT.Transparency - TRANS/TIME
477
				if TYPE == "Block" then
478
					EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))
479
				else
480
					EFFECT.CFrame = EFFECT.CFrame*ANGLES(RAD(ROTATION1),RAD(ROTATION2),RAD(ROTATION3))
481
				end
482
				if MOVEDIRECTION ~= nil then
483
					local ORI = EFFECT.Orientation
484
					EFFECT.CFrame = CF(EFFECT.Position,MOVEDIRECTION)*CF(0,0,-MOVESPEED)
485
					EFFECT.Orientation = ORI
486
				end
487
			end
488
			if PLAYSSOUND == false then
489
				EFFECT:remove()
490
			else
491
				SOUND.Stopped:Connect(function()
492
					EFFECT:remove()
493
				end)
494
			end
495
		else
496
			if PLAYSSOUND == false then
497
				EFFECT:remove()
498
			else
499
				repeat Swait() until SOUND.Playing == false
500
				EFFECT:remove()
501
			end
502
		end
503
	end))
504
end
505
506
function MakeForm(PART,TYPE)
507
	if TYPE == "Cyl" then
508
		local MSH = IT("CylinderMesh",PART)
509
	elseif TYPE == "Ball" then
510
		local MSH = IT("SpecialMesh",PART)
511
		MSH.MeshType = "Sphere"
512
	elseif TYPE == "Wedge" then
513
		local MSH = IT("SpecialMesh",PART)
514
		MSH.MeshType = "Wedge"
515
	end
516
end
517
518
function SpawnTrail(FROM,TO,BIG)
519
	local TRAIL = CreatePart(3, Effects, "Neon", 0, 0.5, "Really red", "Trail", VT(0,0,0))
520
	MakeForm(TRAIL,"Cyl")
521
	local DIST = (FROM - TO).Magnitude
522
	if BIG == true then
523
		TRAIL.Size = VT(1.5,DIST,1.5)
524
	else
525
		TRAIL.Size = VT(0.25,DIST,0.25)
526
	end
527
	TRAIL.CFrame = CF(FROM, TO) * CF(0, 0, -DIST/2) * ANGLES(RAD(90),RAD(0),RAD(0))
528
	coroutine.resume(coroutine.create(function()
529
		for i = 1, 5 do
530
			Swait()
531
			TRAIL.Transparency = TRAIL.Transparency + 0.1
532
		end
533
		TRAIL:remove()
534
	end))
535
end
536
537
function SpawnTrail2(FROM,TO,BIG)
538
	local TRAIL = CreatePart(3, Effects, "Neon", 0, 0.5, "Really red", "Trail", VT(0,0,0))
539
	MakeForm(TRAIL,"Cyl")
540
	local DIST = (FROM - TO).Magnitude
541
	if BIG == true then
542
		TRAIL.Size = VT(8.5,DIST,8.5)
543
	else
544
		TRAIL.Size = VT(6.25,DIST,6.25)
545
	end
546
	TRAIL.CFrame = CF(FROM, TO) * CF(0, 0, -DIST/2) * ANGLES(RAD(90),RAD(0),RAD(0))
547
	coroutine.resume(coroutine.create(function()
548
		for i = 1, 5 do
549
			Swait()
550
			TRAIL.Transparency = TRAIL.Transparency + 0.1
551
		end
552
		TRAIL:remove()
553
	end))
554
end
555
556
Debris = game:GetService("Debris")
557
558
function CastProperRay(StartPos, EndPos, Distance, Ignore)
559
	local DIRECTION = CF(StartPos,EndPos).lookVector
560
	return Raycast(StartPos, DIRECTION, Distance, Ignore)
561
end
562
563
function turnto(position)
564
	RootPart.CFrame=CFrame.new(RootPart.CFrame.p,VT(position.X,RootPart.Position.Y,position.Z)) * CFrame.new(0, 0, 0)
565
end
566
local asd = Instance.new("ParticleEmitter")
567
asd.Color = ColorSequence.new(Color3.new(0.5, 0, 0), Color3.new(.3, 0, 0))
568
asd.LightEmission = .1
569
asd.Texture = "http://www.roblox.com/asset/?ID=291880914"
570
aaa = NumberSequence.new({NumberSequenceKeypoint.new(0, 0.6),NumberSequenceKeypoint.new(1, 2)})
571
bbb = NumberSequence.new({NumberSequenceKeypoint.new(0, 1),NumberSequenceKeypoint.new(0.0636, 0), NumberSequenceKeypoint.new(1, 1)})
572
asd.Transparency = bbb
573
asd.Size = aaa
574
asd.ZOffset = .9
575
asd.Acceleration = Vector3.new(0, -15, 0)
576
asd.LockedToPart = false
577
asd.EmissionDirection = "Back"
578
asd.Lifetime = NumberRange.new(1, 2)
579
asd.Rotation = NumberRange.new(-100, 100)
580
asd.RotSpeed = NumberRange.new(-100, 100)
581
asd.Speed = NumberRange.new(10)
582
asd.Enabled = false
583
asd.VelocitySpread = 999
584
585
function getbloody(victim,amount)
586
	local PART = CreatePart(3, Effects, "Metal", 0, 1, "Lime green", "Blood", victim.Size)
587
	PART.CFrame = victim.CFrame
588
	local HITPLAYERSOUNDS = {"356551938","264486467"}
589
	Debris:AddItem(PART,5)
590
	CreateSound(HITPLAYERSOUNDS[MRANDOM(1, #HITPLAYERSOUNDS)], PART, 1, (math.random(8,12)/10))
591
	CreateSound(HITPLAYERSOUNDS[MRANDOM(1, #HITPLAYERSOUNDS)], PART, 1, (math.random(8,12)/10))
592
	CreateSound(HITPLAYERSOUNDS[MRANDOM(1, #HITPLAYERSOUNDS)], PART, 1, (math.random(8,12)/10))
593
	local prtcl = asd:Clone()
594
	prtcl.Parent = PART
595
	prtcl:Emit(amount*10)
596
end
597
598
local Particle = IT("ParticleEmitter",nil)
599
Particle.Enabled = false
600
Particle.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,1),NumberSequenceKeypoint.new(0.3,0.95),NumberSequenceKeypoint.new(1,1)})
601
Particle.LightEmission = 0.5
602
Particle.Rate = 150
603
Particle.ZOffset = 1
604
Particle.Rotation = NumberRange.new(-180, 180)
605
Particle.RotSpeed = NumberRange.new(-180, 180)
606
Particle.Texture = "http://www.roblox.com/asset/?id=304437537"
607
Particle.Color = ColorSequence.new(C3(0,1,0),C3(0.4,0,0))
608
609
--ParticleEmitter({Speed = 5, Drag = 0, Size1 = 1, Size2 = 5, Lifetime1 = 1, Lifetime2 = 1.5, Parent = Torso, Emit = 100, Offset = 360, Enabled = false})
610
function ParticleEmitter(Table)
611
	local PRTCL = Particle:Clone()
612
	local Speed = Table.Speed or 5
613
	local Drag = Table.Drag or 0
614
	local Size1 = Table.Size1 or 1
615
	local Size2 = Table.Size2 or 5
616
	local Lifetime1 = Table.Lifetime1 or 1
617
	local Lifetime2 = Table.Lifetime2 or 1.5
618
	local Parent = Table.Parent or Torso
619
	local Emit = Table.Emit or 100
620
	local Offset = Table.Offset or 360
621
	local Acel = Table.Acel or VT(0,0,0)
622
	local Enabled = Table.Enabled or false
623
	PRTCL.Parent = Parent
624
	PRTCL.Size = NumberSequence.new(Size1,Size2)
625
	PRTCL.Lifetime = NumberRange.new(Lifetime1,Lifetime2)
626
	PRTCL.Speed = NumberRange.new(Speed)
627
	PRTCL.VelocitySpread = Offset
628
	PRTCL.Drag = Drag
629
	PRTCL.Acceleration = Acel
630
	if Enabled == false then
631
		PRTCL:Emit(Emit)
632
		Debris:AddItem(PRTCL,Lifetime2)
633
	else
634
		PRTCL.Enabled = true
635
	end
636
	return PRTCL
637
end
638
639
function CharacterFade(COLOR,TIMER,MOVEDIRECTION,PARENT)
640
	coroutine.resume(coroutine.create(function()
641
		local FADE = IT("Model",Effects)
642
		if PARENT ~= nil then
643
			FADE.Parent = PARENT
644
		end
645
		FADE.Name = "FadingEffect"
646
		for _, c in pairs(Character:GetChildren()) do
647
			if c.ClassName == "Part" then
648
				c.CanCollide = false
649
				local FADER = CreatePart(3, FADE, "Neon", 0, 0.75, BRICKC("Really red"), c.Name, c.Size, true)
650
				FADER.CFrame = c.CFrame
651
				FADER.Color = C3(0,0,0)
652
				if FADER.Name == "Head" then
653
					Head:FindFirstChildOfClass("SpecialMesh"):Clone().Parent = FADER
654
				elseif FADER.Name == "HumanoidRootPart" then
655
					FADE.PrimaryPart = FADER
656
					FADER.Transparency = 1
657
				end
658
			end
659
		end
660
		local TRANS = 0.25/TIMER
661
		local DIST = nil
662
		if MOVEDIRECTION ~= nil then
663
			DIST = (FADE.PrimaryPart.Position - MOVEDIRECTION).Magnitude
664
		end
665
		for i = 1, TIMER do
666
			Swait()
667
			for _, c in pairs(FADE:GetChildren()) do
668
				if c.ClassName == "Part" then
669
					c.Transparency = c.Transparency + TRANS
670
				end
671
			end
672
			if MOVEDIRECTION ~= nil then
673
				local ORI = FADE.PrimaryPart.Orientation
674
				FADE:SetPrimaryPartCFrame(CF(CF(FADE.PrimaryPart.Position,MOVEDIRECTION)*CF(0,0,-DIST/TIMER).p) * ANGLES(RAD(ORI.X), RAD(ORI.Y), RAD(ORI.Z)))
675
			end
676
		end
677
		FADE:remove()
678
	end))
679
end
680
681
function CreateFlyingDebree(FLOOR,POSITION,AMOUNT,BLOCKSIZE,SWAIT,STRENGTH,DOES360)
682
	if FLOOR ~= nil then
683
		for i = 1, AMOUNT do
684
			local DEBREE = CreatePart(3, Effects, "Neon", 0, 0, "Peal", "Debree", BLOCKSIZE, false)
685
			DEBREE.Material = FLOOR.Material
686
			DEBREE.Color = FLOOR.Color
687
			DEBREE.CFrame = POSITION * ANGLES(RAD(MRANDOM(-360,360)),RAD(MRANDOM(-360,360)),RAD(MRANDOM(-360,360)))
688
			if DOES360 == true then
689
				DEBREE.Velocity = VT(MRANDOM(-STRENGTH,STRENGTH),MRANDOM(-STRENGTH,STRENGTH),MRANDOM(-STRENGTH,STRENGTH))
690
			else
691
				DEBREE.Velocity = VT(MRANDOM(-STRENGTH,STRENGTH),STRENGTH,MRANDOM(-STRENGTH,STRENGTH))
692
			end
693
			coroutine.resume(coroutine.create(function()
694
				Swait(15)
695
				DEBREE.Parent = workspace
696
				DEBREE.CanCollide = true
697
				Debris:AddItem(DEBREE,SWAIT)
698
			end))
699
		end
700
	end
701
end
702
703
local Decal = IT("Decal")
704
function SpawnBulletHole(POSITION)
705
	local O1 = CreatePart(3, Effects, "Neon", 0, 1, "Really red", "Bullet hole", VT(0.2,0,0.2))
706
	local decal = Decal:Clone()
707
	decal.Parent = O1
708
	decal.Face = "Top"
709
	decal.Texture = "http://www.roblox.com/asset/?id=130624105"
710
	local decal2 = Decal:Clone()
711
	decal2.Parent = O1
712
	decal2.Face = "Bottom"
713
	decal2.Texture = "http://www.roblox.com/asset/?id=130624105"
714
	O1.CFrame = POSITION*ANGLES(RAD(0),RAD(MRANDOM(-180,180)),RAD(0))
715
	Debris:AddItem(O1,5)
716
end
717
718
function R_RANDOM(CFRAME,DIST)
719
	return CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))*CF(0,0,-DIST)
720
end
721
722
function BulletDetection(FROM,TO)
723
	local AIMHIT,AIMPOS,NORMAL = CastProperRay(FROM,TO,2000,Character)
724
	coroutine.resume(coroutine.create(function()
725
		if AIMHIT ~= nil then
726
			if AIMHIT.Parent ~= Character then
727
				if AIMHIT.Parent:FindFirstChildOfClass("Humanoid") or AIMHIT.Parent.Parent:FindFirstChildOfClass("Humanoid") then
728
					if AIMHIT.Name ~= "Head" and AIMHIT.Parent.ClassName ~= "Accessory" then
729
						ApplyDamage(AIMHIT.Parent:FindFirstChildOfClass("Humanoid"),MRANDOM(15,25),AIMHIT)
730
					elseif AIMHIT.Name == "Head" or AIMHIT.Parent.ClassName == "Accessory" then
731
						if AIMHIT.Parent.ClassName == "Accessory" then
732
							if AIMHIT:FindFirstChild("HatAttachment") or AIMHIT:FindFirstChild("FaceFrontAttachment") or AIMHIT:FindFirstChild("HairAttachment") then
733
								AIMHIT.Parent.Parent:BreakJoints()
734
								if AIMHIT.Parent.Parent:FindFirstChild("Head") then
735
									getbloody(AIMHIT.Parent.Parent.Head,15)
736
									AIMHIT.Parent.Parent.Head:remove()
737
								end
738
							else
739
								ApplyDamage(AIMHIT.Parent.Parent:FindFirstChildOfClass("Humanoid"),MRANDOM(25,65),AIMHIT)
740
							end
741
						elseif AIMHIT.Name == "Head" then
742
							getbloody(AIMHIT,15)
743
							AIMHIT.Parent:BreakJoints()
744
							AIMHIT:remove()
745
						end
746
					end
747
				else
748
					CreateFlyingDebree(AIMHIT,CF(AIMPOS),7,VT(0.1,0.1,0.1),5,35,true)
749
					SpawnBulletHole(CF(AIMPOS,AIMPOS+NORMAL)*ANGLES(RAD(90),RAD(0),RAD(0)))
750
				end
751
			end
752
		end
753
	end))
754
	return AIMHIT,AIMPOS,NORMAL
755
end
756
757
--//=================================\\
758
--||	     WEAPON CREATION
759
--\\=================================//
760
761
local LASTPART = Head
762
for i = 1, 20 do
763
	local MATH = (1-(i/25))
764
	if LASTPART == Head then
765
		local Horn = CreatePart(3, Character, "SmoothPlastic", 0, 0, "Dirt brown", "Horn", VT(0.25*MATH,0.25,0.25*MATH),false)
766
		CreateWeldOrSnapOrMotor("Weld", LASTPART, LASTPART, Horn, CF(0.3, 0.7, -0.35) * ANGLES(RAD(-55), RAD(15), RAD(-15)), CF(0, 0, 0))
767
		LASTPART = Horn
768
		Horn.Color = C3((i*3-3)/255,0,0)
769
	else
770
		local Horn = CreatePart(3, Character, "Neon", 0, 0, "Dirt brown", "Horn", VT(0.25*MATH,0.25,0.25*MATH),false)
771
		CreateWeldOrSnapOrMotor("Weld", LASTPART, LASTPART, Horn, CF(0, Horn.Size.Y/1.8, 0) * ANGLES(RAD(6), RAD(-0.3), RAD(0)), CF(0, 0, 0))
772
		LASTPART = Horn
773
		Horn.Color = C3((i*3-3)/255,0,0)
774
	end
775
end
776
local LASTPART = Head
777
for i = 1, 20 do
778
	local MATH = (1-(i/25))
779
	if LASTPART == Head then
780
		local Horn = CreatePart(3, Character, "SmoothPlastic", 0, 0, "Dirt brown", "Horn", VT(0.25*MATH,0.25,0.25*MATH),false)
781
		CreateWeldOrSnapOrMotor("Weld", LASTPART, LASTPART, Horn, CF(-0.3, 0.7, -0.35) * ANGLES(RAD(-55), RAD(-15), RAD(15)), CF(0, 0, 0))
782
		LASTPART = Horn
783
		Horn.Color = C3((i*3-3)/255,0,0)
784
	else
785
		local Horn = CreatePart(3, Character, "Neon", 0, 0, "Dirt brown", "Horn", VT(0.25*MATH,0.25,0.25*MATH),false)
786
		CreateWeldOrSnapOrMotor("Weld", LASTPART, LASTPART, Horn, CF(0, Horn.Size.Y/1.8, 0) * ANGLES(RAD(6), RAD(0.3), RAD(0)), CF(0, 0, 0))
787
		LASTPART = Horn
788
		Horn.Color = C3((i*3-3)/255,0,0)
789
	end
790
end
791
792
function refit()
793
	Character.Parent = workspace
794
	for e = 1, #BODY do
795
		if BODY[e] ~= nil then
796
			local STUFF = BODY[e]
797
			local PART = STUFF[1]
798
			local PARENT = STUFF[2]
799
			local MATERIAL = STUFF[3]
800
			local COLOR = STUFF[4]
801
			local TRANSPARENCY = STUFF[5]
802
			if PART.ClassName == "Part" and PART ~= RootPart then
803
				PART.Material = MATERIAL
804
				PART.Color = COLOR
805
				PART.Transparency = TRANSPARENCY
806
			end
807
			if PART.Parent ~= PARENT then
808
				Humanoid:remove()
809
				PART.Parent = PARENT
810
				Humanoid = IT("Humanoid",Character)
811
			end
812
		end
813
	end
814
end
815
816
local SKILLTEXTCOLOR = C3(0,1,0)
817
local SKILLFONT = "Antique"
818
local SKILLTEXTSIZE = 7
819
820
Humanoid.Died:connect(function()
821
	refit()
822
	ATTACK = true
823
end)
824
825
function printbye(Name)
826
	local MESSAGES = {"You cannot struggle, ","Your existance is an insult, ","Fade, ","Your existance is not desired, ","You are not permitted here, ","You are not to decide your fate, ","Be gone, ","You are already dead, ","Your live is an anomaly, ","Don't dare to return, ","Why are you resisting, ","You cannot exist here, ","Why are you struggling, ","Your fate was already decided, ","Goodbye, ","You cannot ignore my command, ","You cannot resist my command, ","You already died, "}
827
	warn(MESSAGES[MRANDOM(1,#MESSAGES)]..Name..".")	
828
end
829
830
workspace.ChildAdded:connect(function(instance)
831
    for BANISH = 1, #TOBANISH do
832
		if TOBANISH[BANISH] ~= nil then
833
			if instance.Name == TOBANISH[BANISH] then
834
				coroutine.resume(coroutine.create(function()
835
					printbye(instance.Name)
836
					instance:ClearAllChildren()
837
					Debris:AddItem(instance,0.0005)
838
				end))
839
			end
840
		end
841
	end
842
end)
843
844
845
--//=================================\\
846
--||	    WEAPON HOLDER
847
--\\=================================//
848
849
local Handle = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.2,0.6,0.2),false)
850
local RightArmGrasp = CreateWeldOrSnapOrMotor("Weld", Handle, RightArm, Handle, CF(0,-1, 0) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0.21, 0))
851
local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.2,0.5,0.2),false)
852
MakeForm(Part,"Wedge")
853
CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.3, 0.2) * ANGLES(RAD(0), RAD(180), RAD(0)), CF(0, 0, 0))
854
local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.2,0.3,0.2),false)
855
MakeForm(Part,"Wedge")
856
CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.4, 0) * ANGLES(RAD(0), RAD(0), RAD(180)), CF(0, 0, 0))
857
local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.3,0.3,0.3),false)
858
CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.5, 0.2) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
859
local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.3,0.5,0.5),false)
860
CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.5) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
861
local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.4,0.4,0.4),false)
862
MakeForm(Part,"Cyl")
863
CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.5) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
864
for i = 1, 8 do
865
	local Piece = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Eye", VT(0,0.35,0.41),false)
866
	CreateWeldOrSnapOrMotor("Weld", Handle, Part, Piece, CF(0, 0, 0) * ANGLES(RAD(0), RAD((360/8)*i), RAD(0)), CF(0, 0, 0))
867
end
868
local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Eye", VT(0.38,0.41,0.38),false)
869
MakeForm(Part,"Cyl")
870
CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.5) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
871
local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.37,0.5,0.37),false)
872
MakeForm(Part,"Ball")
873
CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.3) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
874
local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.2,0.7,0.4),false)
875
MakeForm(Part,"Wedge")
876
CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.7, 0.5) * ANGLES(RAD(90), RAD(180), RAD(180)), CF(0, 0, 0))
877
local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.3,0.4,0.2),false)
878
CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.7) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
879
local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.35,0.35,0.35),false)
880
MakeForm(Part,"Cyl")
881
CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.7) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
882
local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.5,0.1,0.5),false)
883
MakeForm(Part,"Cyl")
884
CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 1) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
885
local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.5,0.1,0.45),false)
886
MakeForm(Part,"Cyl")
887
CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 1.1) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
888
local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.2,0.5,0.2),false)
889
MakeForm(Part,"Wedge")
890
CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.55, 0.2) * ANGLES(RAD(-135), RAD(0), RAD(0)), CF(0, -0.3, 0))
891
local LASTPART = Handle
892
for i = 1, 10 do
893
	if LASTPART == Handle then
894
		local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.1,0.2,0),false)
895
		LASTPART = Part
896
		CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.1, 0.2) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
897
	else
898
		local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.1,0.05,0),false)
899
		CreateWeldOrSnapOrMotor("Weld", Handle, LASTPART, Part, CF(0, 0.025, 0) * ANGLES(RAD(8), RAD(0), RAD(0)), CF(0, -0.025, 0))
900
		LASTPART = Part
901
	end
902
end
903
904
local Barrel = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.15,2,0.15),false)
905
MakeForm(Barrel,"Cyl")
906
CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Barrel, CF(0, -0.6, 1.8) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
907
local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.25,1,0.25),false)
908
MakeForm(Part,"Cyl")
909
CreateWeldOrSnapOrMotor("Weld", Handle, Barrel, Part, CF(0, -0.6, 0), CF(0, 0, 0))
910
local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0,0.1,0.2),false)
911
MakeForm(Part,"Wedge")
912
CreateWeldOrSnapOrMotor("Weld", Handle, Barrel, Part, CF(0, 0.945, 0.1) * ANGLES(RAD(180), RAD(0), RAD(0)), CF(0, 0, 0))
913
local Hole2 = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Eye", VT(0.125,0,0.125),false)
914
MakeForm(Hole2,"Cyl")
915
CreateWeldOrSnapOrMotor("Weld", Handle, Barrel, Hole2, CF(0, 0.98, 0), CF(0, 0, 0))
916
local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0,0,0),false)
917
local GEARWELD = CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.7), CF(0, 0, 0))
918
CreateMesh("SpecialMesh", Part, "FileMesh", 156292343, "", VT(0.8,0.8,1.5), VT(0,0,0.2))
919
local Part = CreatePart(3, Weapon, "Metal", 0, 0.5, "Mid gray", "Eye", VT(0,0,0),false)
920
local GEARWELD2 = CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.7), CF(0, 0, 0))
921
CreateMesh("SpecialMesh", Part, "FileMesh", 156292343, "", VT(0.9,0.9,0.3), VT(0,0,0.2))
922
coroutine.resume(coroutine.create(function()
923
	while wait() do
924
		GEARWELD.C0 = GEARWELD.C0 * ANGLES(RAD(0), RAD(0), RAD(5))
925
		GEARWELD2.C0 = GEARWELD2.C0 * ANGLES(RAD(0), RAD(0), RAD(-5))
926
	end
927
end))
928
929
for _, c in pairs(Weapon:GetDescendants()) do
930
	if c.ClassName == "Part" and c.Name ~= "Eye" and c.Parent ~= Effects and c.Parent.Parent ~= Effects then
931
		c.Material = "Glass"
932
		c.Color = C3(0,0,0)
933
	elseif c.ClassName == "Part" and c.Name == "Eye" then
934
		c.Color = C3(1,0,0)
935
		c.Material = "Neon"
936
	end
937
end
938
939
Weapon.Parent = Character
940
for _, c in pairs(Weapon:GetChildren()) do
941
	if c.ClassName == "Part" then
942
		c.CustomPhysicalProperties = PhysicalProperties.new(0, 0, 0, 0, 0)
943
	end
944
end
945
946
local Handle = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.2,0.6,0.2),false)
947
local RightArmGrasp = CreateWeldOrSnapOrMotor("Weld", Handle, LeftArm, Handle, CF(0,-1, 0) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0.21, 0))
948
local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.2,0.5,0.2),false)
949
MakeForm(Part,"Wedge")
950
CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.3, 0.2) * ANGLES(RAD(0), RAD(180), RAD(0)), CF(0, 0, 0))
951
local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.2,0.3,0.2),false)
952
MakeForm(Part,"Wedge")
953
CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.4, 0) * ANGLES(RAD(0), RAD(0), RAD(180)), CF(0, 0, 0))
954
local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.3,0.3,0.3),false)
955
CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.5, 0.2) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
956
local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.3,0.5,0.5),false)
957
CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.5) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
958
local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.4,0.4,0.4),false)
959
MakeForm(Part,"Cyl")
960
CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.5) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
961
for i = 1, 8 do
962
	local Piece = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Eye", VT(0,0.35,0.41),false)
963
	CreateWeldOrSnapOrMotor("Weld", Handle, Part, Piece, CF(0, 0, 0) * ANGLES(RAD(0), RAD((360/8)*i), RAD(0)), CF(0, 0, 0))
964
end
965
local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Eye", VT(0.38,0.41,0.38),false)
966
MakeForm(Part,"Cyl")
967
CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.5) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
968
local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.37,0.5,0.37),false)
969
MakeForm(Part,"Ball")
970
CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.3) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
971
local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.2,0.7,0.4),false)
972
MakeForm(Part,"Wedge")
973
CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.7, 0.5) * ANGLES(RAD(90), RAD(180), RAD(180)), CF(0, 0, 0))
974
local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.3,0.4,0.2),false)
975
CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.7) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
976
local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.35,0.35,0.35),false)
977
MakeForm(Part,"Cyl")
978
CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.7) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
979
local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.5,0.1,0.5),false)
980
MakeForm(Part,"Cyl")
981
CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 1) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
982
local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.5,0.1,0.45),false)
983
MakeForm(Part,"Cyl")
984
CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 1.1) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
985
local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.2,0.5,0.2),false)
986
MakeForm(Part,"Wedge")
987
CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.55, 0.2) * ANGLES(RAD(-135), RAD(0), RAD(0)), CF(0, -0.3, 0))
988
local LASTPART = Handle
989
for i = 1, 10 do
990
	if LASTPART == Handle then
991
		local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.1,0.2,0),false)
992
		LASTPART = Part
993
		CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.1, 0.2) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
994
	else
995
		local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.1,0.05,0),false)
996
		CreateWeldOrSnapOrMotor("Weld", Handle, LASTPART, Part, CF(0, 0.025, 0) * ANGLES(RAD(8), RAD(0), RAD(0)), CF(0, -0.025, 0))
997
		LASTPART = Part
998
	end
999
end
1000
1001
local Barrel = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.15,2,0.15),false)
1002
MakeForm(Barrel,"Cyl")
1003
CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Barrel, CF(0, -0.6, 1.8) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
1004
local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.25,1,0.25),false)
1005
MakeForm(Part,"Cyl")
1006
CreateWeldOrSnapOrMotor("Weld", Handle, Barrel, Part, CF(0, -0.6, 0), CF(0, 0, 0))
1007
local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0,0.1,0.2),false)
1008
MakeForm(Part,"Wedge")
1009
CreateWeldOrSnapOrMotor("Weld", Handle, Barrel, Part, CF(0, 0.945, 0.1) * ANGLES(RAD(180), RAD(0), RAD(0)), CF(0, 0, 0))
1010
local Hole = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Eye", VT(0.125,0,0.125),false)
1011
MakeForm(Hole,"Cyl")
1012
CreateWeldOrSnapOrMotor("Weld", Handle, Barrel, Hole, CF(0, 0.98, 0), CF(0, 0, 0))
1013
local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0,0,0),false)
1014
local GEARWELD = CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.7), CF(0, 0, 0))
1015
CreateMesh("SpecialMesh", Part, "FileMesh", 156292343, "", VT(0.8,0.8,1.5), VT(0,0,0.2))
1016
local Part = CreatePart(3, Weapon, "Metal", 0, 0.5, "Mid gray", "Eye", VT(0,0,0),false)
1017
local GEARWELD2 = CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.7), CF(0, 0, 0))
1018
CreateMesh("SpecialMesh", Part, "FileMesh", 156292343, "", VT(0.9,0.9,0.3), VT(0,0,0.2))
1019
coroutine.resume(coroutine.create(function()
1020
	while wait() do
1021
		GEARWELD.C0 = GEARWELD.C0 * ANGLES(RAD(0), RAD(0), RAD(5))
1022
		GEARWELD2.C0 = GEARWELD2.C0 * ANGLES(RAD(0), RAD(0), RAD(-5))
1023
	end
1024
end))
1025
1026
for _, c in pairs(Weapon:GetDescendants()) do
1027
	if c.ClassName == "Part" and c.Name ~= "Eye" and c.Parent ~= Effects and c.Parent.Parent ~= Effects then
1028
		c.Material = "Glass"
1029
		c.Color = C3(0,0,0)
1030
	elseif c.ClassName == "Part" and c.Name == "Eye" then
1031
		c.Color = C3(1,0,0)
1032
		c.Material = "Neon"
1033
	end
1034
end
1035
1036
Weapon.Parent = nil
1037
for _, c in pairs(Weapon:GetChildren()) do
1038
	if c.ClassName == "Part" then
1039
		c.CustomPhysicalProperties = PhysicalProperties.new(0, 0, 0, 0, 0)
1040
	end
1041
end
1042
1043
local Knife = CreatePart(3, KnifeM, "Metal", 0, 0, "Mid gray", "Part", VT(0.2,1.2,0.2),false)
1044
local Grip = CreateWeldOrSnapOrMotor("Weld", RightArm, RightArm, Knife, CF(0,-1.2, -0.5) * ANGLES(RAD(0), RAD(0), RAD(180)) * ANGLES(RAD(45), RAD(0), RAD(0)), CF(0, 0.3, 0))
1045
CreateMesh("SpecialMesh", Knife, "FileMesh", "470094777", "470149026", VT(0.2,0.2,0.2), VT(0,0,0))
1046
local A = IT("Attachment",Knife)
1047
A.Position = VT(-0, 0.2, 0.136)
1048
local B = IT("Attachment",Knife)
1049
B.Position = VT(-0, -0.95, -0.982)
1050
local Trail = IT("Trail",Knife)
1051
Trail.Attachment0 = B
1052
Trail.Attachment1 = A
1053
Trail.Lifetime = 0.1
1054
Trail.Transparency = NumberSequence.new(0.5, 1)
1055
Trail.Texture = "http://www.roblox.com/asset/?id=1472703539"
1056
Trail.Enabled = true
1057
1058
KnifeM.Parent = nil
1059
for _, c in pairs(KnifeM:GetChildren()) do
1060
	if c.ClassName == "Part" then
1061
		c.CustomPhysicalProperties = PhysicalProperties.new(0, 0, 0, 0, 0)
1062
	end
1063
end
1064
1065
local POWER = 250
1066
local MAXPOWER = 500
1067
1068
--//=================================\\
1069
--||	    TRANSFORMATIONS
1070
--\\=================================//
1071
1072
function Switch1()
1073
	ATTACK = true
1074
	Rooted = true
1075
	if MODE == "Infectist" then
1076
		CreateSound(363808674, Torso, 10, 1, false)
1077
		for i=0, 1, 0.1 / Animation_Speed do
1078
			Swait()
1079
			RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.75 / Animation_Speed)
1080
			Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(35), RAD(0), RAD(0)), 1 / Animation_Speed)
1081
			RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(25)) * RIGHTSHOULDERC0, 0.75 / Animation_Speed)
1082
			LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-25)) * LEFTSHOULDERC0, 0.75 / Animation_Speed)
1083
			RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(83), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.75 / Animation_Speed)
1084
			LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-83), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.75 / Animation_Speed)
1085
		end
1086
WACKYEFFECT({Time = 15, EffectType = "Sphere", Size = VT(10,10,10), Size2 = VT(0.5,0.5,0.5), Transparency = 0, Transparency2 = 1, CFrame = CF(LeftArm.Position) * ANGLES(RAD(-90), RAD(0), RAD(0)), MoveToPos = nil, RotationX = 0, RotationY = 5, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = nil, SoundPitch = MRANDOM(8,11)/10, SoundVolume = 0})
1087
WACKYEFFECT({Time = 15, EffectType = "Sphere", Size = VT(10,10,10), Size2 = VT(0.5,0.5,0.5), Transparency = 0, Transparency2 = 1, CFrame = CF(RightArm.Position) * ANGLES(RAD(-90), RAD(0), RAD(0)), MoveToPos = nil, RotationX = 0, RotationY = 5, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = nil, SoundPitch = MRANDOM(8,11)/10, SoundVolume = 0})
1088
Weapon.Parent = Character
1089
		SONG = 468994671
1090
		Speed = 32
1091
		VOLUME = 1.5
1092
		text.Text = "Plagues"
1093
		MODE = "Plagues"
1094
	elseif MODE == "Plagues" then
1095
		CreateSound(363808674, Torso, 10, 1, false)
1096
		for i=0, 1, 0.1 / Animation_Speed do
1097
			Swait()
1098
			RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 22)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.75 / Animation_Speed)
1099
			Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(35 - 2.5 * SIN(SINE / 22)), RAD(0), RAD(0)), 0.75 / Animation_Speed)
1100
			RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1, 0.5, -0.5) * ANGLES(RAD(22 + -11 * COS(SINE / 23)), RAD(-10), RAD(-45)) * RIGHTSHOULDERC0, 0.75 / Animation_Speed)
1101
			LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1, 0.5, -0.5) * ANGLES(RAD(-15 + -11 * COS(SINE / 23)), RAD(25), RAD(45)) * LEFTSHOULDERC0, 0.75 / Animation_Speed)
1102
			RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(75), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.75 / Animation_Speed)
1103
			LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-50), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.75 / Animation_Speed)
1104
		end
1105
WACKYEFFECT({Time = 15, EffectType = "Sphere", Size = VT(0.5,0.5,0.5), Size2 = VT(10,10,10), Transparency = 0, Transparency2 = 1, CFrame = CF(LeftArm.Position) * ANGLES(RAD(-90), RAD(0), RAD(0)), MoveToPos = nil, RotationX = 0, RotationY = 5, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = nil, SoundPitch = MRANDOM(8,11)/10, SoundVolume = 0})
1106
WACKYEFFECT({Time = 15, EffectType = "Sphere", Size = VT(0.5,0.5,0.5), Size2 = VT(10,10,10), Transparency = 0, Transparency2 = 1, CFrame = CF(RightArm.Position) * ANGLES(RAD(-90), RAD(0), RAD(0)), MoveToPos = nil, RotationX = 0, RotationY = 5, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = nil, SoundPitch = MRANDOM(8,11)/10, SoundVolume = 0})
1107
Weapon.Parent = nil
1108
		SONG = 494139763
1109
		VOLUME = 3.5
1110
		Speed = 18
1111
		text.Text = "Infectist"
1112
		MODE = "Infectist"
1113
	end
1114
	ATTACK = false
1115
	Rooted = false
1116
end
1117
1118
function Switch2()
1119
	ATTACK = true
1120
	Rooted = true
1121
	if MODE == "Plagues" then
1122
		CreateSound(363808674, Torso, 10, 1, false)
1123
		for i=0, 1, 0.1 / Animation_Speed do
1124
			Swait()
1125
			RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(-35), RAD(0), RAD(0)), 0.75 / Animation_Speed)
1126
			Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(5), RAD(0), RAD(0)), 0.75 / Animation_Speed)
1127
			RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.25, 0.5, 0) * ANGLES(RAD(50), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 0.75 / Animation_Speed)
1128
			LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25, 0.35, 0) * ANGLES(RAD(50), RAD(0), RAD(0)) * LEFTSHOULDERC0, 0.75 / Animation_Speed)
1129
			RightHip.C0 = Clerp(RightHip.C0, CF(0.5, -1, 0) * ANGLES(RAD(0), RAD(0), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.75 / Animation_Speed)
1130
			LeftHip.C0 = Clerp(LeftHip.C0, CF(-0.5, 0.5, -0.5) * ANGLES(RAD(0), RAD(0), RAD(0)) * ANGLES(RAD(-35), RAD(0), RAD(0)), 0.75 / Animation_Speed)
1131
		end
1132
		SONG = 460439241
1133
		Speed = 0.5
1134
		VOLUME = 2
1135
		text.Text = "Levithan"
1136
		MODE = "Levithan"
1137
	elseif MODE == "Levithan" then
1138
		CreateSound(363808674, Torso, 10, 1, false)
1139
		for i=0, 1, 0.1 / Animation_Speed do
1140
			Swait()
1141
			RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.75 / Animation_Speed)
1142
			Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(35), RAD(0), RAD(0)), 1 / Animation_Speed)
1143
			RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(75)) * RIGHTSHOULDERC0, 0.75 / Animation_Speed)
1144
			LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-75)) * LEFTSHOULDERC0, 0.75 / Animation_Speed)
1145
			RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(83), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.75 / Animation_Speed)
1146
			LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-83), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.75 / Animation_Speed)
1147
		end
1148
		SONG = 468994671
1149
		Speed = 32
1150
		VOLUME = 1.5
1151
		text.Text = "Plagues"
1152
		MODE = "Plagues"
1153
	end
1154
	ATTACK = false
1155
	Rooted = false
1156
end
1157
1158
function Switch3()
1159
	ATTACK = true
1160
	Rooted = true
1161
	if MODE == "Infectist" then
1162
		CreateSound(363808674, Torso, 10, 1, false)
1163
		for i=0, 1, 0.1 / Animation_Speed do
1164
			Swait()
1165
			RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.75 / Animation_Speed)
1166
			Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(35), RAD(0), RAD(0)), 1 / Animation_Speed)
1167
			RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(25)) * RIGHTSHOULDERC0, 0.75 / Animation_Speed)
1168
			LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-25)) * LEFTSHOULDERC0, 0.75 / Animation_Speed)
1169
			RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(83), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.75 / Animation_Speed)
1170
			LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-83), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.75 / Animation_Speed)
1171
		end
1172
WACKYEFFECT({Time = 15, EffectType = "Sphere", Size = VT(10,10,10), Size2 = VT(0.5,0.5,0.5), Transparency = 0, Transparency2 = 1, CFrame = CF(LeftArm.Position) * ANGLES(RAD(-90), RAD(0), RAD(0)), MoveToPos = nil, RotationX = 0, RotationY = 5, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = nil, SoundPitch = MRANDOM(8,11)/10, SoundVolume = 0})
1173
WACKYEFFECT({Time = 15, EffectType = "Sphere", Size = VT(10,10,10), Size2 = VT(0.5,0.5,0.5), Transparency = 0, Transparency2 = 1, CFrame = CF(RightArm.Position) * ANGLES(RAD(-90), RAD(0), RAD(0)), MoveToPos = nil, RotationX = 0, RotationY = 5, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = nil, SoundPitch = MRANDOM(8,11)/10, SoundVolume = 0})
1174
KnifeM.Parent = Character
1175
for _, c in pairs(KnifeM:GetChildren()) do
1176
	if c.ClassName == "Part" then
1177
		c.CustomPhysicalProperties = PhysicalProperties.new(0, 0, 0, 0, 0)
1178
	end
1179
end
1180
		SONG = 719088014
1181
		Speed = 32
1182
		VOLUME = 1.5
1183
		text.Text = "Jester"
1184
		MODE = "Jester"
1185
	elseif MODE == "Jester" then
1186
		CreateSound(363808674, Torso, 10, 1, false)
1187
		for i=0, 1, 0.1 / Animation_Speed do
1188
			Swait()
1189
			RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 22)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.75 / Animation_Speed)
1190
			Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(35 - 2.5 * SIN(SINE / 22)), RAD(0), RAD(0)), 0.75 / Animation_Speed)
1191
			RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1, 0.5, -0.5) * ANGLES(RAD(22 + -11 * COS(SINE / 23)), RAD(-10), RAD(-45)) * RIGHTSHOULDERC0, 0.75 / Animation_Speed)
1192
			LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1, 0.5, -0.5) * ANGLES(RAD(-15 + -11 * COS(SINE / 23)), RAD(25), RAD(45)) * LEFTSHOULDERC0, 0.75 / Animation_Speed)
1193
			RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(75), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.75 / Animation_Speed)
1194
			LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-50), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.75 / Animation_Speed)
1195
		end
1196
WACKYEFFECT({Time = 15, EffectType = "Sphere", Size = VT(0.5,0.5,0.5), Size2 = VT(10,10,10), Transparency = 0, Transparency2 = 1, CFrame = CF(LeftArm.Position) * ANGLES(RAD(-90), RAD(0), RAD(0)), MoveToPos = nil, RotationX = 0, RotationY = 5, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = nil, SoundPitch = MRANDOM(8,11)/10, SoundVolume = 0})
1197
WACKYEFFECT({Time = 15, EffectType = "Sphere", Size = VT(0.5,0.5,0.5), Size2 = VT(10,10,10), Transparency = 0, Transparency2 = 1, CFrame = CF(RightArm.Position) * ANGLES(RAD(-90), RAD(0), RAD(0)), MoveToPos = nil, RotationX = 0, RotationY = 5, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = nil, SoundPitch = MRANDOM(8,11)/10, SoundVolume = 0})
1198
KnifeM.Parent = nil
1199
		SONG = 494139763
1200
		VOLUME = 3.5
1201
		Speed = 18
1202
		text.Text = "Infectist"
1203
		MODE = "Infectist"
1204
	end
1205
	ATTACK = false
1206
	Rooted = false
1207
end
1208
1209
--//=================================\\
1210
--||			DAMAGING
1211
--\\=================================//
1212
1213
function ApplyDamage(Humanoid,Damage,TorsoPart)
1214
	local defence = Instance.new("BoolValue",Humanoid.Parent)
1215
	defence.Name = ("HitBy"..Player.Name)
1216
	game:GetService("Debris"):AddItem(defence, 0.001)
1217
	Damage = Damage * DAMAGEMULTIPLIER
1218
	if Humanoid.Health ~= 0 then
1219
		local CritChance = MRANDOM(1,100)
1220
		if Damage > Humanoid.Health then
1221
			Damage = math.ceil(Humanoid.Health)
1222
			if Damage == 0 then
1223
				Damage = 0.1
1224
			end
1225
		end
1226
		Humanoid.Health = Humanoid.Health - Damage
1227
	end
1228
end
1229
1230
function Ghostify(POSITION,RANGE)
1231
	local CHILDREN = workspace:GetDescendants()
1232
	for index, CHILD in pairs(CHILDREN) do
1233
		if CHILD.ClassName == "Model" and CHILD ~= Character and CHILD.Parent ~= Effects then
1234
			local HUM = CHILD:FindFirstChildOfClass("Humanoid")
1235
			if HUM then
1236
				local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso")
1237
				if TORSO then
1238
					if HUM.Health > 0 and (TORSO.Position - POSITION).Magnitude <= RANGE then
1239
						local GHOST = GHOSTBASE:Clone()
1240
						GHOST.Parent = Effects
1241
						GHOST.Torso.CFrame = TORSO.CFrame
1242
						table.insert(GHOSTS,GHOST)
1243
						CHILD:remove()
1244
					end
1245
				end
1246
			end
1247
		end
1248
	end
1249
end
1250
1251
function ApplyAoE2(POSITION,RANGE,MINDMG,MAXDMG,FLING,INSTAKILL)
1252
	for index, CHILD in pairs(workspace:GetDescendants()) do
1253
		if CHILD.ClassName == "Model" and CHILD ~= Character then
1254
			local HUM = CHILD:FindFirstChildOfClass("Humanoid")
1255
			if HUM then
1256
				local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso")
1257
				if TORSO then
1258
					if (TORSO.Position - POSITION).Magnitude <= RANGE then
1259
						if INSTAKILL == true then
1260
							CHILD:BreakJoints()
1261
						else
1262
							local DMG = MRANDOM(MINDMG,MAXDMG)
1263
							ApplyDamage(HUM,DMG)
1264
						end
1265
						if FLING > 0 then
1266
							for _, c in pairs(CHILD:GetChildren()) do
1267
								if c:IsA("BasePart") then
1268
									local bv = Instance.new("BodyVelocity") 
1269
									bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
1270
									bv.velocity = CF(POSITION,TORSO.Position).lookVector*FLING
1271
									bv.Parent = c
1272
									Debris:AddItem(bv,0.05)
1273
								end
1274
							end
1275
						end
1276
					end
1277
				end
1278
			end
1279
		end
1280
	end
1281
end
1282
1283
function Banish(Foe)
1284
	if Foe then
1285
		coroutine.resume(coroutine.create(function()
1286
			--if game.Players:FindFirstChild(Foe.Name) then
1287
				table.insert(TOBANISH,Foe.Name)
1288
				printbye(Foe.Name)
1289
			--end
1290
			Foe.Archivable = true
1291
			local CLONE = Foe:Clone()
1292
			Foe:Destroy()
1293
			CLONE.Parent = Effects
1294
			CLONE:BreakJoints()
1295
			local MATERIALS = {"Glass","Neon"}
1296
			for _, c in pairs(CLONE:GetDescendants()) do
1297
				if c:IsA("BasePart") then
1298
					if c.Name == "Torso" or c.Name == "UpperTorso" or c == CLONE.PrimaryPart then
1299
 						CreateSound(340722848, c, 10, 1, false)
1300
					end
1301
					c.Anchored = true
1302
					c.Transparency = c.Transparency + 0.2
1303
					c.Material = MATERIALS[MRANDOM(1,2)]
1304
					c.Color = C3(0,1,0)
1305
					if c.ClassName == "MeshPart" then
1306
						c.TextureID = ""
1307
					end
1308
					if c:FindFirstChildOfClass("SpecialMesh") then
1309
						c:FindFirstChildOfClass("SpecialMesh").TextureId = ""
1310
					end
1311
					if c:FindFirstChildOfClass("Decal") then
1312
						c:FindFirstChildOfClass("Decal"):remove()
1313
					end
1314
					c.Name = "Banished"
1315
					c.CanCollide = false
1316
				else
1317
					c:remove()
1318
				end
1319
			end
1320
			local A = false
1321
			for i = 1, 35 do
1322
				if A == false then
1323
					A = true
1324
				elseif A == true then
1325
					A = false
1326
				end
1327
				for _, c in pairs(CLONE:GetDescendants()) do
1328
					if c:IsA("BasePart") then
1329
						c.Anchored = true
1330
						c.Material = MATERIALS[MRANDOM(1,2)]
1331
						c.Transparency = c.Transparency + 0.8/35
1332
						if A == false then
1333
							c.CFrame = c.CFrame*CF(MRANDOM(-45,45)/45,MRANDOM(-45,45)/45,MRANDOM(-45,45)/45)
1334
						elseif A == true then
1335
							c.CFrame = c.CFrame*CF(MRANDOM(-45,45)/45,MRANDOM(-45,45)/45,MRANDOM(-45,45)/45)						
1336
						end
1337
					end
1338
				end
1339
				Swait()
1340
			end
1341
			CLONE:remove()
1342
		end))
1343
	end
1344
end
1345
1346
function ApplyAoE(POSITION,RANGE,ISBANISH)
1347
	local CHILDREN = workspace:GetDescendants()
1348
	for index, CHILD in pairs(CHILDREN) do
1349
		if CHILD.ClassName == "Model" and CHILD ~= Character then
1350
			local HUM = CHILD:FindFirstChildOfClass("Humanoid")
1351
			if HUM then
1352
				local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso")
1353
				if TORSO then
1354
					if (TORSO.Position - POSITION).Magnitude <= RANGE then
1355
						if ISBANISH == true then
1356
							Banish(CHILD)
1357
						else
1358
							if ISBANISH == "Gravity" then
1359
								HUM.PlatformStand = true
1360
								if TORSO:FindFirstChild("V3BanishForce"..Player.Name) then
1361
									local grav = Instance.new("BodyPosition",TORSO)
1362
									grav.D = 15
1363
									grav.P = 20000
1364
									grav.maxForce = Vector3.new(math.huge,math.huge,math.huge)
1365
									grav.position = TORSO.Position
1366
									grav.Name = "V3BanishForce"..Player.Name
1367
								else
1368
									TORSO:FindFirstChild("V3BanishForce"..Player.Name).position = TORSO.Position+VT(0,0.3,0)
1369
									TORSO.RotVelocity = VT(MRANDOM(-25,25),MRANDOM(-25,25),MRANDOM(-25,25))
1370
								end
1371
							else
1372
								HUM.PlatformStand = false
1373
							end
1374
						end
1375
					elseif ISBANISH == "Gravity" then
1376
						if TORSO:FindFirstChild("V3BanishForce"..Player.Name) then
1377
							TORSO:FindFirstChild("V3BanishForce"..Player.Name):remove()
1378
							HUM.PlatformStand = false
1379
						end
1380
					end
1381
				end
1382
			end
1383
		end
1384
	end
1385
end
1386
1387
function Kill(Char)
1388
	local NewCharacter = IT("Model",Effects)
1389
	NewCharacter.Name = "Ow im ded ;-;"
1390
	for _, c in pairs(Char:GetDescendants()) do
1391
		if c:IsA("BasePart") and c.Transparency == 0 then
1392
			if c.Parent == Char then
1393
				getbloody(c,5)
1394
			end
1395
			c:BreakJoints()
1396
			c.Material = "Glass"
1397
			c.Color = C3(1,0,0)
1398
			c.CanCollide = true
1399
			c.Transparency = 0.3
1400
			if c:FindFirstChildOfClass("SpecialMesh") then
1401
				c:FindFirstChildOfClass("SpecialMesh").TextureId = ""
1402
			end
1403
			if c.Name == "Head" then
1404
				c:ClearAllChildren()
1405
				c.Size = VT(c.Size.Y,c.Size.Y,c.Size.Y)
1406
			end
1407
			if c.ClassName == "MeshPart" then
1408
				c.TextureID = ""
1409
			end
1410
			if c:FindFirstChildOfClass("BodyPosition") then
1411
				c:FindFirstChildOfClass("BodyPosition"):remove()
1412
			end
1413
			if c:FindFirstChildOfClass("ParticleEmitter") then
1414
				c:FindFirstChildOfClass("ParticleEmitter"):remove()
1415
			end
1416
			c.Parent = NewCharacter
1417
			c.Name = "DeadPart"
1418
			c.Velocity = VT(MRANDOM(-45,45),MRANDOM(-45,45),MRANDOM(-45,45))/15
1419
			c.RotVelocity = VT(MRANDOM(-45,45),MRANDOM(-15,85),MRANDOM(-45,45))
1420
		end
1421
	end
1422
	Char:remove()
1423
	Debris:AddItem(NewCharacter,5)
1424
end
1425
1426
local DECAL = IT("Decal",nil)
1427
function MagicRing(PART,CFRAME)
1428
    local RING = CreatePart(3, Effects, "Granite", 0, 1, "Really red", "MagicRing", VT(0,0,0),false)
1429
    local WELD = CreateWeldOrSnapOrMotor("Weld", PART, PART, RING, CFRAME, CF(0, 0, 0))
1430
    local MESH = IT("BlockMesh",RING)
1431
    local BOTTOMTEXTURE = DECAL:Clone()
1432
    BOTTOMTEXTURE.Parent = RING
1433
    BOTTOMTEXTURE.Face = "Bottom"
1434
    BOTTOMTEXTURE.Texture = "http://www.roblox.com/asset/?id=2237986353"
1435
    BOTTOMTEXTURE.Name = "BottomTexture"
1436
    local TOPTEXTURE = DECAL:Clone()
1437
    TOPTEXTURE.Parent = RING
1438
    TOPTEXTURE.Face = "Top"
1439
    TOPTEXTURE.Texture = "http://www.roblox.com/asset/?id=2237986353"
1440
    TOPTEXTURE.Name = "TopTexture"
1441
    local T = ParticleEmitter({Transparency1 = 0.2, Transparency2 = 1, Texture = 1084975295, Speed = 0, RotSpeed = NumberRange.new(-15, 15), Drag = 2, Size1 = 0, Size2 = 10, Lifetime1 = 1, Lifetime2 = 1, Parent = RING, Emit = 25, Offset = 360, Enabled = false, Color1 = BRICKC"Really red".Color, Color2 = BRICKC"Really red".Color})
1442
    T.LockedToPart = true
1443
    return RING,WELD,MESH
1444
end
1445
1446
function AfterZap(Humanoid,Times,Dmg)
1447
    coroutine.resume(coroutine.create(function()
1448
        if Humanoid ~= nil then
1449
            local ZAP = ParticleEmitter({Speed = 0.2, RotSpeed = NumberRange.new(-15, 15), Drag = 2, Size1 = 2, Size2 = 3, Lifetime1 = 0.01, Lifetime2 = 0.1, Parent = Humanoid.Torso, Emit = 100, Offset = 360, Enabled = true, Color1 = BRICKC"Really red".Color, Color2 = BRICKC"Really red".Color})
1450
            ZAP.Rate = 75
1451
            for i = 1, Times do
1452
                wait(1)
1453
                if Humanoid ~= nil and Humanoid.Health > 0 then
1454
                    Humanoid.Health = Humanoid.Health - Dmg
1455
                    CreateSound(SHOCKSOUND,Humanoid.Torso,1,MRANDOM(13,16)/10,false)
1456
                else
1457
                    break
1458
                end
1459
            end
1460
            ZAP.Enabled = false
1461
            Debris:AddItem(ZAP,3)
1462
        end
1463
    end))
1464
end
1465
1466
function ApplyAoE3(POSITION,RANGE,MINDMG,MAXDMG,FLING,DOESAFTERZAP,ZAPCOUNTER)
1467
    local CHILDREN = workspace:GetDescendants()
1468
    for index, CHILD in pairs(CHILDREN) do
1469
        if CHILD.ClassName == "Model" and CHILD ~= Character then
1470
            local HUM = CHILD:FindFirstChildOfClass("Humanoid")
1471
            if HUM then
1472
                local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso")
1473
                if TORSO then
1474
                    if (TORSO.Position - POSITION).Magnitude <= RANGE then
1475
                        if DOESAFTERZAP == true then
1476
                            AfterZap(HUM,ZAPCOUNTER,math.ceil(MINDMG/7))
1477
                        end
1478
                        local DMG = MRANDOM(MINDMG,MAXDMG)
1479
                        ApplyDamage(HUM,DMG,TORSO)
1480
                        if FLING > 0 then
1481
                            for _, c in pairs(CHILD:GetChildren()) do
1482
                                if c:IsA("BasePart") then
1483
                                    local bv = Instance.new("BodyVelocity")
1484
                                    bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
1485
                                    bv.velocity = CF(POSITION,TORSO.Position).lookVector*FLING
1486
                                    bv.Parent = c
1487
                                    Debris:AddItem(bv,0.05)
1488
                                end
1489
                            end
1490
                        end
1491
                    end
1492
                end
1493
            end
1494
        end
1495
    end
1496
end
1497
--//=================================\\
1498
--||	ATTACK FUNCTIONS AND STUFF
1499
--\\=================================//
1500
1501
function Bullet1()
1502
	ATTACK = true
1503
	Rooted = false
1504
	for i=0, 0.1, 0.1 / Animation_Speed do
1505
		Swait()
1506
		turnto(Mouse.Hit.p)
1507
			RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 22)) * ANGLES(RAD(10), RAD(0), RAD(0)), 0.15 / Animation_Speed)
1508
			Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(15 - 2.5 * SIN(SINE / 22)), RAD(-15), RAD(0)), 0.15 / Animation_Speed)
1509
			RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0.5) * ANGLES(RAD(-36), RAD(30), RAD(0)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed)
1510
			LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.6, 0.5) * ANGLES(RAD(-36), RAD(-30), RAD(0)) * LEFTSHOULDERC0, 0.5 / Animation_Speed)
1511
			RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(20), RAD(75), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed)
1512
			LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(20), RAD(-50), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed)
1513
	end
1514
	repeat
1515
		for i=0, 0.2, 0.1 / Animation_Speed do
1516
			Swait()
1517
			turnto(Mouse.Hit.p)
1518
			RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 22)) * ANGLES(RAD(20), RAD(0), RAD(0)), 0.15 / Animation_Speed)
1519
			Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(15 - 2.5 * SIN(SINE / 22)), RAD(-15), RAD(0)), 0.15 / Animation_Speed)
1520
			RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0.5) * ANGLES(RAD(-63), RAD(30), RAD(0)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed)
1521
			LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.6, 0.5) * ANGLES(RAD(-63), RAD(-30), RAD(0)) * LEFTSHOULDERC0, 0.5 / Animation_Speed)
1522
			RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(20), RAD(75), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed)
1523
			LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(20), RAD(-50), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed)
1524
		end
1525
		local HIT,POS = CastProperRay(Head.Position, Mouse.Hit.p, 1000, Character)
1526
		SpawnTrail2(Head.Position,POS)
1527
		if HIT ~= nil then
1528
			if HIT.Parent ~= workspace and HIT.Parent.ClassName ~= "Folder" then
1529
				Kill(HIT.Parent)
1530
			end
1531
		end
1532
		WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(3.75,0,3.75), Size2 = VT(25,6.25,25), Transparency = 0, Transparency2 = 1, CFrame = CF(POS,Hole2.Position) * ANGLES(RAD(0), RAD(0), RAD(0)), MoveToPos = nil, RotationX = 0, RotationY = -5, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = 151414336, SoundPitch = MRANDOM(8,11)/10, SoundVolume = 8})
1533
		WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(3.75,0,3.75), Size2 = VT(25,6.25,25), Transparency = 0, Transparency2 = 1, CFrame = CF(POS,Hole2.Position) * ANGLES(RAD(0), RAD(0), RAD(0)), MoveToPos = nil, RotationX = 0, RotationY = 5, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = nil, SoundPitch = MRANDOM(8,11)/10, SoundVolume = 8})
1534
		for i=0, 0, 0.1 / Animation_Speed do
1535
			Swait()
1536
			RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 22)) * ANGLES(RAD(30), RAD(0), RAD(0)), 0.15 / Animation_Speed)
1537
			Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(15 - 2.5 * SIN(SINE / 22)), RAD(-15), RAD(0)), 0.15 / Animation_Speed)
1538
			RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0.5) * ANGLES(RAD(-90), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed)
1539
			LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.6, 0) * ANGLES(RAD(-90), RAD(0), RAD(0)) * LEFTSHOULDERC0, 0.5 / Animation_Speed)
1540
			RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(20), RAD(75), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed)
1541
			LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(20), RAD(-50), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed)
1542
		end
1543
	until KEYHOLD == false
1544
	ATTACK = false
1545
	Rooted = false
1546
end
1547
1548
function Bullet2()
1549
	ATTACK = true
1550
	Rooted = false
1551
	for i=0, 0.9, 0.1 / Animation_Speed do
1552
		Swait()
1553
		turnto(Mouse.Hit.p)
1554
			RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 22)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
1555
			Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(15 - 2.5 * SIN(SINE / 22)), RAD(15 - 22 * SIN(SINE / 0.5)), RAD(0)), 0.15 / Animation_Speed)
1556
			RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0.5) * ANGLES(RAD(83), RAD(30), RAD(0)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed)
1557
			LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.6, 0.5) * ANGLES(RAD(83), RAD(-30), RAD(0)) * LEFTSHOULDERC0, 0.5 / Animation_Speed)
1558
			RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(75), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed)
1559
			LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-50), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed)
1560
	end
1561
	repeat
1562
		for i=0, 0.1, 0.1 / Animation_Speed do
1563
			Swait()
1564
			turnto(Mouse.Hit.p)
1565
			RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 22)) * ANGLES(RAD(0 - 55 * SIN(SINE / 0.5)), RAD(0 - 55 * SIN(SINE / 0.5)), RAD(0)), 0.15 / Animation_Speed)
1566
			Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(15 - 2.5 * SIN(SINE / 22)), RAD(15 - 22 * SIN(SINE / 0.5)), RAD(0)), 0.15 / Animation_Speed)
1567
			RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0.5) * ANGLES(RAD(83 - 22 * SIN(SINE / 0.5)), RAD(30), RAD(0)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed)
1568
			LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.6, 0.5) * ANGLES(RAD(83 - 22 * SIN(SINE / 0.5)), RAD(-30), RAD(0)) * LEFTSHOULDERC0, 0.5 / Animation_Speed)
1569
			RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(75), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed)
1570
			LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-50), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed)
1571
		end
1572
		local HIT,POS = CastProperRay(Hole2.Position, Mouse.Hit.p, 1000, Character)
1573
		SpawnTrail(Hole2.Position,POS)
1574
		if HIT ~= nil then
1575
			if HIT.Parent ~= workspace and HIT.Parent.ClassName ~= "Folder" then
1576
				Kill(HIT.Parent)
1577
			end
1578
		end
1579
		WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(0.3,0,0.3), Size2 = VT(1,1.5,1), Transparency = 0, Transparency2 = 1, CFrame = Hole2.CFrame, MoveToPos = Hole2.CFrame*CF(0,0.5,0).p, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
1580
		WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(0.3,0,0.3), Size2 = VT(2,0.5,2), Transparency = 0, Transparency2 = 1, CFrame = Hole2.CFrame, MoveToPos = nil, RotationX = 0, RotationY = 5, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = 904440937, SoundPitch = MRANDOM(8,11)/10, SoundVolume = 0.5})
1581
		WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(0.3,0,0.3), Size2 = VT(2,0.5,2), Transparency = 0, Transparency2 = 1, CFrame = CF(POS,Hole2.Position) * ANGLES(RAD(-90), RAD(0), RAD(0)), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = nil, SoundPitch = MRANDOM(8,11)/10, SoundVolume = 8})
1582
		WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(0.3,0,0.3), Size2 = VT(2,0.5,2), Transparency = 0, Transparency2 = 1, CFrame = CF(POS,Hole2.Position) * ANGLES(RAD(-90), RAD(0), RAD(0)), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = nil, SoundPitch = MRANDOM(8,11)/10, SoundVolume = 8})
1583
		for i=0, 0.2, 0.1 / Animation_Speed do
1584
			Swait()
1585
			RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 22)) * ANGLES(RAD(0 - 55 * SIN(SINE / 0.5)), RAD(0 - 22 * SIN(SINE / 0.5)), RAD(0)), 0.15 / Animation_Speed)
1586
			Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(15 - 2.5 * SIN(SINE / 22)), RAD(15), RAD(0)), 0.15 / Animation_Speed)
1587
			RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0.5) * ANGLES(RAD(90 - 22 * SIN(SINE / 0.5)), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed)
1588
			LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.6, 0) * ANGLES(RAD(90 - 22 * SIN(SINE / 0.5)), RAD(0), RAD(0)) * LEFTSHOULDERC0, 0.5 / Animation_Speed)
1589
			RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(75), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed)
1590
			LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-50), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed)
1591
		end
1592
			local HIT,POS = CastProperRay(Hole.Position, Mouse.Hit.p, 1000, Character)
1593
		SpawnTrail(Hole.Position,POS)
1594
		if HIT ~= nil then
1595
			if HIT.Parent ~= workspace and HIT.Parent.ClassName ~= "Folder" then
1596
				Kill(HIT.Parent)
1597
			end
1598
		end
1599
				WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(0.3,0,0.3), Size2 = VT(1,1.5,1), Transparency = 0, Transparency2 = 1, CFrame = Hole.CFrame, MoveToPos = Hole.CFrame*CF(0,0.5,0).p, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
1600
		WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(0.3,0,0.3), Size2 = VT(2,0.5,2), Transparency = 0, Transparency2 = 1, CFrame = Hole.CFrame, MoveToPos = nil, RotationX = 0, RotationY = 5, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = 904440937, SoundPitch = MRANDOM(8,11)/10, SoundVolume = 0.5})
1601
		WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(0.3,0,0.3), Size2 = VT(2,0.5,2), Transparency = 0, Transparency2 = 1, CFrame = CF(POS,Hole.Position) * ANGLES(RAD(-90), RAD(0), RAD(0)), MoveToPos = nil, RotationX = 0, RotationY = -5, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = nil, SoundPitch = MRANDOM(8,11)/10, SoundVolume = 8})
1602
		WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(0.3,0,0.3), Size2 = VT(2,0.5,2), Transparency = 0, Transparency2 = 1, CFrame = CF(POS,Hole.Position) * ANGLES(RAD(-90), RAD(0), RAD(0)), MoveToPos = nil, RotationX = 0, RotationY = 5, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = nil, SoundPitch = MRANDOM(8,11)/10, SoundVolume = 8})
1603
	until KEYHOLD == false
1604
	ATTACK = false
1605
	Rooted = false
1606
end
1607
1608
function Infect()
1609
	ATTACK = true
1610
	Rooted = false
1611
	local GYRO = IT("BodyGyro",RootPart)
1612
	GYRO.D = 750
1613
	GYRO.P = 20000
1614
	GYRO.MaxTorque = VT(0,40000000,0)
1615
	for i=0, 1, 0.1 / Animation_Speed do
1616
		Swait()
1617
		GYRO.cframe = CF(RootPart.Position,Mouse.Hit.p)
1618
		RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -0.3 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(25 - 22 * SIN(SINE / 0.1)), RAD(0), RAD(35)), 0.75 / Animation_Speed)
1619
		Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(25 - 22 * SIN(SINE / 0.1)), RAD(15 - 22 * SIN(SINE / 0.5)), RAD(-35)), 0.75 / Animation_Speed)
1620
		RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.7 - 0.1 * COS(SINE / 12), 0) * ANGLES(RAD(115 - 22 * SIN(SINE / 0.1)), RAD(0), RAD(35)) * ANGLES(RAD(0), RAD(90), RAD(0)) * RIGHTSHOULDERC0, 0.75 / Animation_Speed)
1621
		LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.45, -0.1) * ANGLES(RAD(25 - 22 * SIN(SINE / 0.5)), RAD(0), RAD(5)) * LEFTSHOULDERC0, 0.75 / Animation_Speed)
1622
		RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.4 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(50 - 11 * SIN(SINE / 0.1)), RAD(0)) * ANGLES(RAD(-35), RAD(0), RAD(35)), 0.75 / Animation_Speed)
1623
		LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.9 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-85 - 11 * SIN(SINE / 0.1)), RAD(0)) * ANGLES(RAD(5), RAD(0), RAD(-25)), 0.75 / Animation_Speed)
1624
	end
1625
	GYRO:remove()
1626
	CreateSound(696483710, Hole2, 5, 1, false)
1627
	WACKYEFFECT({Time = 3, EffectType = "Sphere", Size = VT(1,0.3,0.3), Size2 = VT(1,0,0), Transparency = 0, Transparency2 = 1, CFrame = Hole2.CFrame*CF(1.5,0.5,0), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
1628
	coroutine.resume(coroutine.create(function()
1629
		local Bullet = CreatePart(3, Effects, "SmoothPlastic", 0, 0, "Really red", "Sinful bullet", VT(0,0,0))
1630
		CreateMesh("SpecialMesh", Bullet, "FileMesh", "94295100", "", VT(6, 6, 7), VT(0,0, 0))
1631
		Bullet.CFrame = Hole2.CFrame*CF(1.5,0.5,0)
1632
		local AIMPOINT = Mouse.Hit.p
1633
		local STARTPOS = Hole2.CFrame*CF(1.5,0.5,0).p
1634
		local VECTOR = CF(STARTPOS,AIMPOINT) 
1635
		local IMPACTED = false
1636
		CreateSound(1393698948, Bullet, 10, 1, true)
1637
		for E = 1, 50 do
1638
			if IMPACTED == true then
1639
				break
1640
			end
1641
			local TARGETPOINT = VECTOR*CF(0,0,-E*5)*ANGLES(RAD(0),RAD(0),RAD(MRANDOM(0,360)))*CF(0,1,0).p
1642
			Bullet.CFrame = CF(Bullet.Position,TARGETPOINT)
1643
			for i = 1, 5 do
1644
				Swait()
1645
				WACKYEFFECT({Time = 15, EffectType = "Swirl", Size = VT(1,1,1), Size2 = VT(3,3,3), Transparency = 0, Transparency2 = 1, CFrame = Bullet.CFrame * ANGLES(RAD(90), RAD(0), RAD(0)), MoveToPos = nil, RotationX = 0, RotationY = i+E, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = nil, SoundPitch = 1, SoundVolume = 5})
1646
				Bullet.CFrame = Bullet.CFrame*CF(0,0,-1)
1647
				local AIMHIT,AIMPOS,NORMAL = Raycast(Bullet.Position,Bullet.CFrame.lookVector,1.3,Character)
1648
				if AIMHIT ~= nil then
1649
					IMPACTED = true
1650
					break
1651
				end
1652
			end
1653
		end
1654
		WACKYEFFECT({Time = 25, EffectType = "Sphere", Size = VT(10,10,10), Size2 = VT(9,9,9), Transparency = 0, Transparency2 = 1, CFrame = Bullet.CFrame, MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = 182765513, SoundPitch = MRANDOM(8,12)/10, SoundVolume = 7})
1655
		for i = 1, 7 do
1656
			WACKYEFFECT({Time = 25, EffectType = "Sphere", Size = VT(1,15,1), Size2 = VT(0,25,0), Transparency = 0, Transparency2 = 1, CFrame = Bullet.CFrame*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360))), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
1657
		end
1658
		Ghostify(Bullet.Position,10)
1659
		Bullet:remove()
1660
	end))
1661
	for i=0, 0.3, 0.1 / Animation_Speed do
1662
		Swait()
1663
		RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -0.3 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(25 - 22 * SIN(SINE / 0.1)), RAD(0), RAD(35)), 0.75 / Animation_Speed)
1664
		Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(25 - 0.5 * SIN(SINE / 12)), RAD(15), RAD(-35)), 0.75 / Animation_Speed)
1665
		RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.7 - 0.1 * COS(SINE / 12), 0.3) * ANGLES(RAD(110 - 22 * SIN(SINE / 0.1)), RAD(0), RAD(35)) * ANGLES(RAD(0), RAD(90), RAD(0)) * RIGHTSHOULDERC0, 0.75 / Animation_Speed)
1666
		LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.45, -0.1) * ANGLES(RAD(25 - 22 * SIN(SINE / 0.5)), RAD(0), RAD(5)) * LEFTSHOULDERC0, 0.75 / Animation_Speed)
1667
		RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.4 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(50 - 11 * SIN(SINE / 0.1)), RAD(0)) * ANGLES(RAD(-35), RAD(0), RAD(35)), 0.75 / Animation_Speed)
1668
		LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.9 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-85 - 11 * SIN(SINE / 0.1)), RAD(0)) * ANGLES(RAD(5), RAD(0), RAD(-25)), 0.75 / Animation_Speed)
1669
	end
1670
	ATTACK = false
1671
	Rooted = false
1672
end
1673
1674
function AttackTemplate()
1675
	ATTACK = true
1676
	Rooted = false
1677
	for i=0, 1, 0.1 / Animation_Speed do
1678
		Swait()
1679
		RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 1 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
1680
		Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 0.1)), RAD(0), RAD(0)), 0.15 / Animation_Speed)
1681
		RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(100), RAD(12)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
1682
		LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
1683
		RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed)
1684
		LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed)
1685
	end
1686
	ATTACK = false
1687
	Rooted = false
1688
end
1689
1690
function Locked()
1691
	local TARGET = Mouse.Target
1692
	if TARGET ~= nil then
1693
		if TARGET.Parent:FindFirstChildOfClass("Humanoid") then
1694
			local HUM = TARGET.Parent:FindFirstChildOfClass("Humanoid")
1695
			local ROOT = TARGET.Parent:FindFirstChild("HumanoidRootPart") or TARGET.Parent:FindFirstChild("Torso") or TARGET.Parent:FindFirstChild("UpperTorso")
1696
			if ROOT and HUM.Health > 0 then
1697
				local FOE = Mouse.Target.Parent
1698
				ATTACK = true
1699
				Rooted = true
1700
				CharacterFade(C3(0,0,0),70)
1701
				RootPart.CFrame = ROOT.CFrame*CF(0,0,2)
1702
				ROOT.Anchored = true
1703
				CreateSound(289556450, RootPart, 5, 1.4, false)
1704
				for i=0, 2, 0.1 / Animation_Speed do
1705
					Swait()
1706
					RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(15), RAD(0), RAD(0)), 1 / Animation_Speed)
1707
					Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(15), RAD(0), RAD(0)), 1 / Animation_Speed)
1708
					RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(80), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
1709
					LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(80), RAD(0), RAD(0)) * LEFTSHOULDERC0, 1 / Animation_Speed)
1710
					RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(15), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
1711
					LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
1712
				end
1713
				local RIGHTCUFF = nil
1714
				local LEFTCUFF = nil
1715
				local ChainLink = nil
1716
				CreateSound(1279090548, ROOT, 10, 1.4, false)
1717
				for _, c in pairs(FOE:GetChildren()) do
1718
					if c.Name == "Left Arm" or c.Name == "LeftLowerArm" then
1719
						LEFTCUFF = CreatePart(3, FOE, "Metal", 0, 0, "Mid gray", "Cuff", VT(c.Size.X+0.1, 0.1, c.Size.Z+0.1),false)
1720
						LEFTCUFF.CFrame = c.CFrame
1721
						weldBetween(c,LEFTCUFF)
1722
					end
1723
				end
1724
				for _, c in pairs(FOE:GetChildren()) do
1725
					if c.Name == "Right Arm" or c.Name == "RightLowerArm" then
1726
						RIGHTCUFF = CreatePart(3, FOE, "Metal", 0, 0, "Mid gray", "Cuff", VT(c.Size.X+0.1, 0.1, c.Size.Z+0.1),false)
1727
						RIGHTCUFF.CFrame = c.CFrame
1728
						weldBetween(c,RIGHTCUFF)
1729
					end
1730
				end
1731
				if RIGHTCUFF and LEFTCUFF then
1732
					local A = IT("Attachment",RIGHTCUFF)
1733
					local B = IT("Attachment",LEFTCUFF)
1734
					ChainLink = IT("Beam",FOE)
1735
					ChainLink.Texture = "rbxassetid://73042633"
1736
					ChainLink.Color = ColorSequence.new(C3(1,0,0))
1737
					ChainLink.TextureSpeed = 0
1738
					ChainLink.Width0 = 1
1739
					ChainLink.Width1 = 1
1740
					ChainLink.Segments = 25
1741
					ChainLink.TextureLength = 3
1742
					ChainLink.Attachment0 = B
1743
					ChainLink.Attachment1 = A
1744
					ChainLink.FaceCamera = true
1745
					ChainLink.Transparency = NumberSequence.new(0)
1746
				end
1747
				coroutine.resume(coroutine.create(function()
1748
					CreateSound(447682521, ChainLink, 1e1, 0.6, false)
1749
					wait(3)
1750
					if RIGHTCUFF and LEFTCUFF then
1751
						RIGHTCUFF:remove()
1752
						LEFTCUFF:remove()
1753
						ChainLink:remove()
1754
						local bv = Instance.new("BodyVelocity",ROOT) 
1755
						bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
1756
						bv.velocity = CF(ROOT.Position-VT(0,5,0),ROOT.Position).lookVector*70
1757
						Debris:AddItem(bv,0.05)
1758
						Kill(HUM.Parent)
1759
						HUM.PlatformStand = false
1760
						WACKYEFFECT({Time = 50, EffectType = "Sphere", Size = VT(0,0,0), Size2 = VT(6,6,6), Transparency = 0, Transparency2 = 1, CFrame = CF(RIGHTCUFF.Position), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = 174580476, SoundPitch = 1, SoundVolume = 4})
1761
						WACKYEFFECT({Time = 50, EffectType = "Sphere", Size = VT(0,0,0), Size2 = VT(6,6,6), Transparency = 0, Transparency2 = 1, CFrame = CF(LEFTCUFF.Position), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = 174580476, SoundPitch = 1, SoundVolume = 4})
1762
					end
1763
				end))
1764
				for i=0, 1.5, 0.1 / Animation_Speed do
1765
					Swait()
1766
					RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(15), RAD(0), RAD(0)), 1 / Animation_Speed)
1767
					Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(15), RAD(5), RAD(0)), 1 / Animation_Speed)
1768
					RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(70), RAD(0), RAD(-15)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
1769
					LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(70), RAD(0), RAD(15)) * LEFTSHOULDERC0, 1 / Animation_Speed)
1770
					RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(15), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
1771
					LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
1772
				end
1773
				HUM.PlatformStand = true
1774
				ROOT.CFrame = ROOT.CFrame * ANGLES(RAD(15), RAD(0), RAD(0))
1775
				ROOT.Anchored = false
1776
				for i=0, 3, 0.1 / Animation_Speed do
1777
					Swait()
1778
					RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(-5), RAD(0), RAD(-35)), 1 / Animation_Speed)
1779
					Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(25), RAD(0), RAD(35)), 1 / Animation_Speed)
1780
					RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(-1), RAD(0), RAD(3)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
1781
					LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-1), RAD(0), RAD(-3)) * LEFTSHOULDERC0, 1 / Animation_Speed)
1782
					RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(-12), RAD(80), RAD(0)) * ANGLES(RAD(-2), RAD(0), RAD(0)), 1 / Animation_Speed)
1783
					LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.01) * ANGLES(RAD(0), RAD(-60), RAD(0)) * ANGLES(RAD(-2), RAD(0), RAD(0)), 1 / Animation_Speed)
1784
				end
1785
				ATTACK = false
1786
				Rooted = false
1787
			end
1788
		end
1789
	end
1790
end
1791
1792
function InfectedFog()
1793
	ATTACK = true
1794
	Rooted = false
1795
	for i=0, 2, 0.1 / Animation_Speed do
1796
		Swait()
1797
		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)
1798
		Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed)
1799
		RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(150), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
1800
		LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
1801
		RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed)
1802
		LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed)
1803
	end
1804
    CreateSound(769072651, RightArm, 10, 1, false)
1805
	for i=0, 2, 0.1 / Animation_Speed do
1806
		Swait()
1807
        WACKYEFFECT({Time = 15, EffectType = "Block", Size = VT(0.5,0.5,0.5), Size2 = VT(2.5,2.5,2.5), Transparency = 0, Transparency2 = 1, CFrame = RightArm.CFrame*CF(0,-1,0) * ANGLES(RAD(-90), RAD(0), RAD(0)), MoveToPos = nil, RotationX = 0, RotationY = 5, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = nil, SoundPitch = 1, SoundVolume = 0})
1808
		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)
1809
		Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed)
1810
		RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(150), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
1811
		LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
1812
		RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed)
1813
		LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed)
1814
	    end
1815
	CreateSound(138931042, Torso, 10, 2.4, false)
1816
    WACKYEFFECT({Time = 120, EffectType = "Sphere", Size = VT(0.5,0.5,0.5), Size2 = VT(300,300,300), Transparency = 0.8, Transparency2 = 1, CFrame = RightArm.CFrame*CF(0,-1,0) * ANGLES(RAD(-90), RAD(0), RAD(0)), MoveToPos = nil, RotationX = 0, RotationY = 5, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = nil, SoundPitch = 1, SoundVolume = 0})
1817
    Swait(100)
1818
    Ghostify(Torso.Position,135)
1819
    Swait(20)
1820
    CreateSound(138271815, GHOSTBASE, 0.8, 0.9, false)
1821
	ATTACK = false
1822
	Rooted = false
1823
end
1824
1825
function RedBlast()
1826
	if ANIM ~= "Fall" and ANIM ~= "Jump" then
1827
		ATTACK = true
1828
		Rooted = true
1829
		local GYRO = IT("BodyGyro",RootPart)
1830
		GYRO.D = 25
1831
		GYRO.P = 20000
1832
		GYRO.MaxTorque = VT(0,4000000,0)
1833
		GYRO.CFrame = CF(RootPart.Position,Mouse.Hit.p)
1834
		CreateSound(429459101,Torso,5,1.5,false)
1835
		local GYROING = true
1836
		coroutine.resume(coroutine.create(function()
1837
			repeat
1838
				Swait()
1839
				GYRO.CFrame = CF(RootPart.Position,Mouse.Hit.p)
1840
			until GYROING == false
1841
			GYRO:Remove()
1842
		end))
1843
		for i=0, 1, 0.1 / Animation_Speed do
1844
			Swait()
1845
			RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -0.4 + 0.1 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
1846
			Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(15 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
1847
			RightShoulder.C0 = Clerp(RightShoulder.C0, CF(0.75, 0.5 + 0.05 * SIN(SINE / 12), -0.7) * ANGLES(RAD(0), RAD(0), RAD(-95)) * ANGLES(RAD(5), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
1848
			LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-0.75, 0.35 + 0.05 * SIN(SINE / 12), -0.6) * ANGLES(RAD(0), RAD(0), RAD(92)) * ANGLES(RAD(0), RAD(0), RAD(0)) * LEFTSHOULDERC0, 1 / Animation_Speed)
1849
			RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.6 - 0.05 * SIN(SINE / 12), -0.5) * ANGLES(RAD(0), RAD(70), RAD(0)) * ANGLES(RAD(-1), RAD(0), RAD(-15)), 1 / Animation_Speed)
1850
			LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.6 - 0.05 * SIN(SINE / 12), -0.5) * ANGLES(RAD(0), RAD(-70), RAD(0)) * ANGLES(RAD(-1), RAD(0), RAD(15)), 1 / Animation_Speed)
1851
		end
1852
		for i = 1, 13 do
1853
			WACKYEFFECT({Time = 55, EffectType = "Wave", Size = VT(0,0,0), Size2 = VT(i,0,i)*2, Transparency = 0.8, Transparency2 = 1, CFrame = RootPart.CFrame*CF(0,0,7.5-i) * ANGLES(RAD(-90), RAD(MRANDOM(0,360)), RAD(0)), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = nil, SoundPitch = 1, SoundVolume = 6, UseBoomerangMath = true, Boomerang = 0, SizeBoomerang = 50})
1854
		end
1855
		CreateSound(1368637781,Torso,5,1.5,false)
1856
		WACKYEFFECT({Time = 65, EffectType = "Sphere", Size = VT(0,0,0), Size2 = VT(12,12,12), Transparency = 0, Transparency2 = 1, CFrame = CF(RootPart.Position), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = 331666014, SoundPitch = 1, SoundVolume = 6, UseBoomerangMath = true, Boomerang = 0, SizeBoomerang = 35})
1857
		for index, CHILD in pairs(Character:GetChildren()) do
1858
			if CHILD:IsA("BasePart") then
1859
				CHILD.Transparency = CHILD.Transparency + 1
1860
			elseif CHILD:IsA("Accessory") then
1861
				CHILD.Handle.Transparency = CHILD.Handle.Transparency + 1
1862
			end
1863
		end
1864
		GYROING = false
1865
		coroutine.resume(coroutine.create(function()
1866
			coroutine.resume(coroutine.create(function()
1867
				for i=1, 25 do
1868
					Swait()
1869
					RootPart.CFrame = RootPart.CFrame*CF(0,0,(25-i)/25)
1870
				end
1871
			end))
1872
			repeat
1873
				Swait()
1874
				CharacterFade(C3(0,0,0),12,R_RANDOM(Torso.CFrame,1.25).p)
1875
				RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.1 * COS(SINE / 12)) * ANGLES(RAD(-5), RAD(0), RAD(0)), 1 / Animation_Speed)
1876
				Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-35), RAD(MRANDOM(-5,5)), RAD(MRANDOM(-5,5))), 1 / Animation_Speed)
1877
				RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(-25+MRANDOM(-5,5)), RAD(-15+MRANDOM(-5,5)), RAD(35)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
1878
				LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-25+MRANDOM(-5,5)), RAD(15+MRANDOM(-5,5)), RAD(-35)) * LEFTSHOULDERC0, 1 / Animation_Speed)
1879
				RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.1) * ANGLES(RAD(0), RAD(85), RAD(MRANDOM(-5,5))) * ANGLES(RAD(-1), RAD(0), RAD(-12)), 1 / Animation_Speed)
1880
				LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.1) * ANGLES(RAD(0), RAD(-85), RAD(MRANDOM(-5,5))) * ANGLES(RAD(-1), RAD(0), RAD(12)), 1 / Animation_Speed)
1881
			until ATTACK == false
1882
		end))
1883
		coroutine.resume(coroutine.create(function()
1884
			local BULLETCFRAME = RootPart.CFrame
1885
			local EXPLODED = false
1886
			coroutine.resume(coroutine.create(function()
1887
				repeat
1888
					Swait()
1889
					WACKYEFFECT({Time = 15, EffectType = "Block", Size = VT(15,15,15), Size2 = VT(10,10,10), Transparency = 0.3, Transparency2 = 1, CFrame = CF(BULLETCFRAME.p), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = nil, SoundPitch = 1, SoundVolume = 6, UseBoomerangMath = true, Boomerang = 0, SizeBoomerang = 35})
1890
					WACKYEFFECT({Time = 15, EffectType = "Block", Size = VT(15,15,15), Size2 = VT(25,25,25), Transparency = 0.8, Transparency2 = 1, CFrame = CF(BULLETCFRAME.p), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = nil, SoundPitch = 1, SoundVolume = 6, UseBoomerangMath = true, Boomerang = 0, SizeBoomerang = 35})
1891
				until EXPLODED == true
1892
			end))
1893
			for i=1, 50 do
1894
				Swait()
1895
				BULLETCFRAME = BULLETCFRAME*CF(0,0,-((50-i)/15))
1896
				local RAY,HIT,NORM = Raycast(BULLETCFRAME.p,BULLETCFRAME.lookVector,7,Character)
1897
				if RAY then
1898
					ApplyAoE2(BULLETCFRAME.p,25,12,54,350,false)
1899
					WACKYEFFECT({Time = 45, EffectType = "Wave", Size = VT(0,0,0), Size2 = VT(160,0,160), Transparency = 0.6, Transparency2 = 1, CFrame = CF(HIT,HIT+NORM) * ANGLES(RAD(-90), RAD(MRANDOM(0,360)), RAD(0)), MoveToPos = nil, RotationX = 0, RotationY = 5, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = 765590102, SoundPitch = MRANDOM(9,11)/10, SoundVolume = 10})
1900
					break
1901
				end
1902
			end
1903
			wait(0.5)
1904
			WACKYEFFECT({Time = 85, EffectType = "Sphere", Size = VT(25,25,25), Size2 = VT(75,75,75), Transparency = 0, Transparency2 = 1, CFrame = CF(BULLETCFRAME.p), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = 401056199, SoundPitch = 0.7, SoundVolume = 6, UseBoomerangMath = true, Boomerang = 0, SizeBoomerang = 35})
1905
			WACKYEFFECT({Time = 85, EffectType = "Sphere", Size = VT(25,25,25), Size2 = VT(50,50,50), Transparency = 0, Transparency2 = 1, CFrame = CF(BULLETCFRAME.p), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = 401056199, SoundPitch = 1, SoundVolume = 10, UseBoomerangMath = true, Boomerang = 0, SizeBoomerang = 35})
1906
			for E = 1, 3 do
1907
				for i = 1, 5 do
1908
					WACKYEFFECT({Time = 50, EffectType = "Round Slash", Size = VT(0,0,0), Size2 = VT(E,0,E)/2, Transparency = 0, Transparency2 = 1, CFrame = CF(BULLETCFRAME.p) * ANGLES(RAD(MRANDOM(0,360)), RAD(MRANDOM(0,360)), RAD(MRANDOM(0,360))), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = nil, SoundPitch = nil, SoundVolume = nil, UseBoomerangMath = true, Boomerang = 0, SizeBoomerang = 10})
1909
				end
1910
			end
1911
			EXPLODED = true
1912
			ApplyAoE2(BULLETCFRAME.p,125,1e2,1e2,250,false)
1913
			for i = 1, 15 do
1914
				Swait()
1915
				WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(0,0,0), Size2 = VT(160,0,160), Transparency = 0.6, Transparency2 = 1, CFrame = BULLETCFRAME * ANGLES(RAD(MRANDOM(0,360)), RAD(MRANDOM(0,360)), RAD(MRANDOM(0,360))), MoveToPos = nil, RotationX = 1, RotationY = 5, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = nil, SoundPitch = MRANDOM(9,11)/10, SoundVolume = MRANDOM(9,11)/2})
1916
			end
1917
		end))
1918
		wait(0.5)
1919
		for index, CHILD in pairs(Character:GetChildren()) do
1920
			if CHILD:IsA("BasePart") then
1921
				CHILD.Transparency = CHILD.Transparency - 1
1922
			elseif CHILD:IsA("Accessory") then
1923
				CHILD.Handle.Transparency = CHILD.Handle.Transparency - 1
1924
			end
1925
		end
1926
		ATTACK = false
1927
		Rooted = false
1928
	end
1929
end
1930
1931
function VirusCloaker()
1932
	if ANIM ~= "Fall" and ANIM ~= "Jump" then
1933
		ATTACK = true
1934
		Rooted = false
1935
		UNANCHOR = false
1936
		FADERS = false
1937
		coroutine.resume(coroutine.create(function()
1938
			coroutine.resume(coroutine.create(function()
1939
				for i=0.5, 25 do
1940
					Swait()
1941
					RootPart.CFrame = RootPart.CFrame*CF(0,0,0)
1942
				end
1943
			end))
1944
			repeat
1945
				Swait()
1946
				RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 1 + 0.2 * COS(SINE / 12)) * ANGLES(RAD(-5), RAD(0), RAD(0)), 1 / Animation_Speed)
1947
				Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-35), RAD(MRANDOM(-5,5)), RAD(MRANDOM(-5,5))), 1 / Animation_Speed)
1948
				RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(-25+MRANDOM(-5,5)), RAD(-15+MRANDOM(-5,5)), RAD(35)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
1949
				LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-25+MRANDOM(-5,5)), RAD(15+MRANDOM(-5,5)), RAD(-35)) * LEFTSHOULDERC0, 1 / Animation_Speed)
1950
				RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.1) * ANGLES(RAD(0), RAD(85), RAD(MRANDOM(-5,5))) * ANGLES(RAD(-1), RAD(0), RAD(-12)), 1 / Animation_Speed)
1951
				LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.1) * ANGLES(RAD(0), RAD(-85), RAD(MRANDOM(-5,5))) * ANGLES(RAD(-1), RAD(0), RAD(12)), 1 / Animation_Speed)
1952
			until ATTACK == false
1953
		end))
1954
		WACKYEFFECT({Time = 65, EffectType = "Sphere", Size = VT(0,0,0), Size2 = VT(25,1,25), Transparency = 0, Transparency2 = 1, CFrame = CF(RootPart.Position-VT(0,2.5,0)), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(0,0,0), SoundID = 814168787, SoundPitch = 0.6, SoundVolume = 6, UseBoomerangMath = true, Boomerang = 0, SizeBoomerang = 12})
1955
		WACKYEFFECT({Time = 65, EffectType = "Sphere", Size = VT(0,0,0), Size2 = VT(25,1,25), Transparency = 0, Transparency2 = 1, CFrame = CF(RootPart.Position-VT(0,2.5,0)), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(0,0,0), SoundID = 814168787, SoundPitch = 1, SoundVolume = 6, UseBoomerangMath = true, Boomerang = 0, SizeBoomerang = 35})
1956
		for i = 0.5, 50 do
1957
			Swait()
1958
			CharacterFade(C3(0,0,0),12,R_RANDOM(Torso.CFrame,1.25).p)
1959
			for index, CHILD in pairs(Character:GetChildren()) do
1960
				if CHILD:IsA("BasePart") then
1961
					CHILD.Transparency = CHILD.Transparency + 1/50
1962
				elseif CHILD:IsA("Accessory") then
1963
					CHILD.Handle.Transparency = CHILD.Handle.Transparency + 1/50
1964
				end
1965
			end
1966
		end
1967
		for i = 0.5, 25 do
1968
			Swait()
1969
			CharacterFade(C3(0,0,0),12,R_RANDOM(Torso.CFrame,1.25).p)
1970
		end
1971
		RootPart.CFrame = CF(Mouse.Hit.p+VT(0,5,0)) * ANGLES(RAD(0), RAD(RootPart.Orientation.Y), RAD(0))
1972
		for i = 0.5, 5 do
1973
			WACKYEFFECT({Time = 50, EffectType = "Round Slash", Size = VT(0,0,0), Size2 = VT(0.3,0,0.3), Transparency = 0, Transparency2 = 1, CFrame = CF(RootPart.Position) * ANGLES(RAD(MRANDOM(0,360)), RAD(MRANDOM(0,360)), RAD(MRANDOM(0,360))), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(0,0,0), SoundID = nil, SoundPitch = nil, SoundVolume = nil, UseBoomerangMath = true, Boomerang = 0, SizeBoomerang = 10})
1974
			WACKYEFFECT({Time = 50, EffectType = "Round Slash", Size = VT(0,0,0), Size2 = VT(0.3,0,0.3), Transparency = 0, Transparency2 = 1, CFrame = CF(RootPart.Position) * ANGLES(RAD(MRANDOM(0,360)), RAD(MRANDOM(0,360)), RAD(MRANDOM(0,360))), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(0,0,0), SoundID = nil, SoundPitch = nil, SoundVolume = nil, UseBoomerangMath = true, Boomerang = 0, SizeBoomerang = 10})
1975
		end
1976
		ApplyAoE2(Torso.Position,15,12,22,150,false)
1977
		CreateSound(331666014,Torso,5,1,false)
1978
		for i = 0.5, 12 do
1979
			Swait()
1980
			CharacterFade(C3(0,0,0),12,R_RANDOM(Torso.CFrame,1.25).p)
1981
		end
1982
		for i = 0.5, 50 do
1983
			Swait()
1984
			CharacterFade(C3(0,0,0),12,R_RANDOM(Torso.CFrame,1.25).p)
1985
			for index, CHILD in pairs(Character:GetChildren()) do
1986
				if CHILD:IsA("BasePart") then
1987
					CHILD.Transparency = CHILD.Transparency - 1/50
1988
				elseif CHILD:IsA("Accessory") then
1989
					CHILD.Handle.Transparency = CHILD.Handle.Transparency - 1/50
1990
				end
1991
			end
1992
		end
1993
		UNANCHOR = true
1994
		ATTACK = false
1995
		Rooted = false
1996
		FADERS = true
1997
	end
1998
end
1999
2000
function PlagueStomp()
2001
    ATTACK = true
2002
    Rooted = false
2003
    local GRAV = IT("BodyPosition",RootPart)
2004
    GRAV.D = 250
2005
    GRAV.P = 20000
2006
    GRAV.MaxForce = VT(math.huge,math.huge,math.huge)
2007
    GRAV.Position = RootPart.Position
2008
    local RING,WELD,MESH = MagicRing(RightLeg,CF(0,-1.2,0))
2009
    CreateSound(RINGSOUND,RING,5,1,false)
2010
    local STRENGTH = 100
2011
    local TIER = 1
2012
    repeat
2013
        Swait()
2014
        STRENGTH = STRENGTH + 0.3
2015
        if STRENGTH > 200 then
2016
            STRENGTH = 200
2017
        end
2018
        if MESH.Scale.X < 120 then
2019
            MESH.Scale = MESH.Scale + VT(3,0,3)
2020
        elseif MESH.Scale.X < 200 then
2021
            MESH.Scale = MESH.Scale + VT(0.3,0,0.3)
2022
        end
2023
        RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(-5), RAD(0), RAD(0)), 1 / Animation_Speed)
2024
        Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-5 - 22 * SIN(SINE / 0.05)), RAD(0 - 22 * SIN(SINE / 0.05)), RAD(0)), 1 / Animation_Speed)
2025
        RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(120 - 22 * SIN(SINE / 0.1)), RAD(0), RAD(12)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
2026
        LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(120 - 22 * SIN(SINE / 0.1)), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 1 / Animation_Speed)
2027
        RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.25, -0.65) * ANGLES(RAD(0 + 11 * SIN(SINE / 0.1)), RAD(90 + 1 * SIN(SINE / 0.1)), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 1 / Animation_Speed)
2028
        LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.01) * ANGLES(RAD(-15 + 11 * SIN(SINE / 0.1)), RAD(-90 + 11 * SIN(SINE / 0.1)), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 1 / Animation_Speed)
2029
    until KEYHOLD == false and MESH.Scale.X >= 120
2030
    if STRENGTH >= 150 and STRENGTH ~= 200 and POWER >= 45 then
2031
        POWER = POWER - 45
2032
        TIER = 2
2033
    elseif STRENGTH == 200 and POWER >= 100 then
2034
        POWER = POWER - 100
2035
        TIER = 3
2036
    end
2037
    for i=0, 0.2, 0.1 / Animation_Speed do
2038
        Swait()
2039
        RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(-25), RAD(0), RAD(0)), 1 / Animation_Speed)
2040
        Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-5 - 22 * SIN(SINE / 0.05)), RAD(0 - 22 * SIN(SINE / 0.05)), RAD(0)), 1 / Animation_Speed)
2041
        RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(150 - 22 * SIN(SINE / 0.1)), RAD(0), RAD(12)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
2042
        LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(150 - 22 * SIN(SINE / 0.1)), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 1 / Animation_Speed)
2043
        RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.25, -0.65) * ANGLES(RAD(10 + 11 * SIN(SINE / 0.1)), RAD(90 + 11 * SIN(SINE / 0.1)), RAD(0)) * ANGLES(RAD(-1), RAD(0), RAD(0)), 1 / Animation_Speed)
2044
        LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.01) * ANGLES(RAD(-15 + 11 * SIN(SINE / 0.1)), RAD(-90 + 11 * SIN(SINE / 0.1)), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 1 / Animation_Speed)
2045
    end
2046
    for i=0, 0.2, 0.1 / Animation_Speed do
2047
        Swait()
2048
        RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(15), RAD(0), RAD(0)), 1 / Animation_Speed)
2049
        Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-5 - 22 * SIN(SINE / 0.05)), RAD(0 - 22 * SIN(SINE / 0.05)), RAD(0)), 1 / Animation_Speed)
2050
        RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(120 - 22 * SIN(SINE / 0.1)), RAD(0 - 22 * SIN(SINE / 0.1)), RAD(12)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
2051
        LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(120 - 22 * SIN(SINE / 0.1)), RAD(0 - 22 * SIN(SINE / 0.1)), RAD(-12)) * LEFTSHOULDERC0, 1 / Animation_Speed)
2052
        RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.5) * ANGLES(RAD(20 + 11 * SIN(SINE / 0.1)), RAD(90 + 11 * SIN(SINE / 0.1)), RAD(0)) * ANGLES(RAD(-1), RAD(0), RAD(0)), 1 / Animation_Speed)
2053
        LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.01) * ANGLES(RAD(-25 + 11 * SIN(SINE / 0.1)), RAD(-90 + 11 * SIN(SINE / 0.1)), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 1 / Animation_Speed)
2054
    end
2055
    coroutine.resume(coroutine.create(function()
2056
        if TIER == 1 then
2057
            local AOE = CreatePart(3, Effects, "Granite", 0, 1, "Really red", "Stomp", VT(30,0,30))
2058
            AOE.CFrame = CF(RightLeg.Position-VT(0,1,0))
2059
            local PARTCL = ParticleEmitter({Texture = 281983280, Speed = 0.2, RotSpeed = NumberRange.new(-15, 15), Drag = 2, Size1 = 4, Size2 = 6, Lifetime1 = 0.01, Lifetime2 = 0.1, Parent = AOE, Emit = 100, Offset = 360, Enabled = true, Color1 = C3(1,0,0), Color2 = C3(1,0,0) })
2060
            PARTCL.Rate = 999
2061
            CreateSound(304999618,AOE,5,1,false)
2062
            CreateSound(130972023,AOE,4,1,false)
2063
            ApplyAoE3(AOE.Position,15,15,25,35,true,5)
2064
            WACKYEFFECT({EffectType = "Wave", Size = VT(11,1,11), Size2 = VT(45,3,45), Transparency = 0, Transparency2 = 1, CFrame = CF(AOE.Position), MoveToPos = nil, RotationX = 0, RotationY = 15, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = nil, SoundPitch = MRANDOM(5,8)/10, SoundVolume = 6})
2065
            wait(2)
2066
            PARTCL.Enabled = false
2067
            Debris:AddItem(AOE,2)
2068
        elseif TIER == 2 then
2069
            local AOE = CreatePart(3, Effects, "Granite", 0, 1, "Really red", "Stomp", VT(40,0,40))
2070
            AOE.CFrame = CF(RightLeg.Position-VT(0,1,0))
2071
            local PARTCL = ParticleEmitter({Texture = 281983280, Speed = 0.2, RotSpeed = NumberRange.new(-15, 15), Drag = 2, Size1 = 4, Size2 = 6, Lifetime1 = 0.01, Lifetime2 = 0.1, Parent = AOE, Emit = 100, Offset = 360, Enabled = true, Color1 = C3(1,0,0), Color2 = C3(1,0,0)})
2072
            PARTCL.Rate = 999
2073
            CreateSound(304999618,AOE,5,1,false)
2074
            CreateSound(130972023,AOE,4,1,false)
2075
            ApplyAoE3(AOE.Position,20,25,35,35,true,6)
2076
            WACKYEFFECT({EffectType = "Wave", Size = VT(11,1,11), Size2 = VT(55,3,55), Transparency = 0, Transparency2 = 1, CFrame = CF(AOE.Position), MoveToPos = nil, RotationX = 0, RotationY = 15, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = nil, SoundPitch = MRANDOM(5,8)/10, SoundVolume = 6})
2077
            wait(2)
2078
            PARTCL.Enabled = false
2079
            Debris:AddItem(AOE,2)
2080
        elseif TIER == 3 then
2081
            local AOE = CreatePart(3, Effects, "Granite", 0, 1, "Really red", "Stomp", VT(50,0,50))
2082
            AOE.CFrame = CF(RightLeg.Position-VT(0,1,0))
2083
            local PARTCL = ParticleEmitter({Texture = 281983280, Speed = 0.2, RotSpeed = NumberRange.new(-15, 15), Drag = 2, Size1 = 4, Size2 = 6, Lifetime1 = 0.01, Lifetime2 = 0.1, Parent = AOE, Emit = 100, Offset = 360, Enabled = true, Color1 = C3(1,0,0), Color2 = C3(1,0,0)})
2084
            PARTCL.Rate = 999
2085
            CreateSound(304999618,AOE,5,1,false)
2086
            CreateSound(130972023,AOE,4,1,false)
2087
            for i = 1, 3 do
2088
                ApplyAoE3(AOE.Position,30,5,15,5,true,7)WACKYEFFECT({EffectType = "Wave", Size = VT(11,1,11), Size2 = VT(55,3,55), Transparency = 0, Transparency2 = 1, CFrame = CF(AOE.Position), MoveToPos = nil, RotationX = 0, RotationY = 15, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = nil, SoundPitch = MRANDOM(5,8)/10, SoundVolume = 6})
2089
                wait(0.5)
2090
            end
2091
            wait(1.5)
2092
            PARTCL.Enabled = false
2093
            Debris:AddItem(AOE,2)
2094
        end
2095
    end))
2096
    for i=0, 2, 0.1 / Animation_Speed do
2097
        Swait()
2098
        RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(15), RAD(0), RAD(0)), 1 / Animation_Speed)
2099
        Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-5 - 22 * SIN(SINE / 0.05)), RAD(0 - 22 * SIN(SINE / 0.05)), RAD(0)), 1 / Animation_Speed)
2100
        RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(120 - 22 * SIN(SINE / 0.1)), RAD(0 - 22 * SIN(SINE / 0.1)), RAD(12)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
2101
        LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(120 - 22 * SIN(SINE / 0.1)), RAD(0 - 22 * SIN(SINE / 0.1)), RAD(-12)) * LEFTSHOULDERC0, 1 / Animation_Speed)
2102
        RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.5) * ANGLES(RAD(20 + 11 * SIN(SINE / 0.1)), RAD(90 + 11 * SIN(SINE / 0.1)), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
2103
        LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.01) * ANGLES(RAD(-25 + 11 * SIN(SINE / 0.1)), RAD(-90 + 11 * SIN(SINE / 0.1)), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 1 / Animation_Speed)
2104
    end
2105
    RING.Anchored = true
2106
    WELD:remove()
2107
    coroutine.resume(coroutine.create(function()
2108
        for i = 1, 25 do
2109
            Swait()
2110
            RING.TopTexture.Transparency = RING.TopTexture.Transparency + 1/25
2111
            RING.BottomTexture.Transparency = RING.BottomTexture.Transparency + 1/25
2112
            MESH.Scale = MESH.Scale - VT(3,0,3)
2113
        end
2114
        RING:remove()
2115
    end))
2116
    GRAV:remove()
2117
    ATTACK = false
2118
    Rooted = false
2119
end
2120
2121
--//=================================\\
2122
--||	  ASSIGN THINGS TO KEYS
2123
--\\=================================//
2124
2125
function MouseDown(Mouse)
2126
	if ATTACK == false then
2127
	end
2128
end
2129
2130
function MouseUp(Mouse)
2131
HOLD = false
2132
end
2133
2134
function KeyDown(Key)
2135
	KEYHOLD = true
2136
	if Key == "z" and ATTACK == false then
2137
		if MODE == "Plagues" then
2138
		PlagueStomp()
2139
		elseif MODE == "Infectist" then
2140
		RedBlast()
2141
		elseif MODE == "Levithan" then
2142
		VirusCloaker()
2143
	   end
2144
	end 
2145
2146
	if Key == "x" and ATTACK == false then
2147
		if MODE == "Plagues" then
2148
		elseif MODE == "Infectist" then
2149
		Locked()
2150
		elseif MODE == "Levithan" then
2151
	   end
2152
	end 
2153
2154
	if Key == "c" and ATTACK == false then
2155
		if MODE == "Plagues" then
2156
		Bullet2()
2157
		elseif MODE == "Infectist" then
2158
		Bullet1()
2159
		elseif MODE == "Levithan" then
2160
	   end
2161
	end
2162
		
2163
	if Key == "v" and ATTACK == false then
2164
		if MODE == "Plagues" then
2165
		Infect()
2166
		elseif MODE == "Infectist" then
2167
		InfectedFog()
2168
		elseif MODE == "Levithan" then
2169
	   end
2170
	end
2171
2172
	if Key == "q" and ATTACK == false then
2173
		Switch1()
2174
	end
2175
2176
	if Key == "r" and ATTACK == false then
2177
		Switch3()
2178
	end
2179
2180
	if Key == "e" and ATTACK == false then
2181
		Switch2()
2182
	end
2183
	end
2184
2185
function KeyUp(Key)
2186
	KEYHOLD = false
2187
end
2188
2189
	Mouse.Button1Down:connect(function(NEWKEY)
2190
		MouseDown(NEWKEY)
2191
	end)
2192
	Mouse.Button1Up:connect(function(NEWKEY)
2193
		MouseUp(NEWKEY)
2194
	end)
2195
	Mouse.KeyDown:connect(function(NEWKEY)
2196
		KeyDown(NEWKEY)
2197
	end)
2198
	Mouse.KeyUp:connect(function(NEWKEY)
2199
		KeyUp(NEWKEY)
2200
	end)
2201
2202
--//=================================\\
2203
--\\=================================//
2204
2205
2206
function unanchor()
2207
	if UNANCHOR == true then
2208
		g = Character:GetChildren()
2209
		for i = 1, #g do
2210
			if g[i].ClassName == "Part" then
2211
				g[i].Anchored = false
2212
			end
2213
		end
2214
	end
2215
end
2216
2217
2218
--//=================================\\
2219
--||	WRAP THE WHOLE SCRIPT UP
2220
--\\=================================//
2221
2222
Humanoid.Changed:connect(function(Jump)
2223
	if Jump == "Jump" and (Disable_Jump == true) then
2224
		Humanoid.Jump = false
2225
	end
2226
end)
2227
2228
while true do
2229
	Swait()
2230
	ANIMATE.Parent = nil
2231
	if Character:FindFirstChildOfClass("Humanoid") == nil then
2232
		Humanoid = IT("Humanoid",Character)
2233
	end
2234
	for _,v in next, Humanoid:GetPlayingAnimationTracks() do
2235
	    v:Stop();
2236
	end
2237
	SINE = SINE + CHANGE
2238
	local TORSOVELOCITY = (RootPart.Velocity * VT(1, 0, 1)).magnitude
2239
	local TORSOVERTICALVELOCITY = RootPart.Velocity.y
2240
	local HITFLOOR = Raycast(RootPart.Position, (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 4, Character)
2241
	local WALKSPEEDVALUE = 6 / (Humanoid.WalkSpeed / 16)
2242
	if ANIM == "Walk" and TORSOVELOCITY > 1 then
2243
		RootJoint.C1 = Clerp(RootJoint.C1, ROOTC0 * CF(0, 0, -0.15 * COS(SINE / (WALKSPEEDVALUE / 2))) * ANGLES(RAD(0), RAD(0) - RootPart.RotVelocity.Y / 75, RAD(0)), 2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
2244
		Neck.C1 = Clerp(Neck.C1, CF(0, -0.5, 0) * ANGLES(RAD(-90), RAD(0), RAD(180)) * ANGLES(RAD(2.5 * SIN(SINE / (WALKSPEEDVALUE / 2))), RAD(0), RAD(0) - Head.RotVelocity.Y / 30), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
2245
		RightHip.C1 = Clerp(RightHip.C1, CF(0.5, 0.875 - 0.125 * SIN(SINE / WALKSPEEDVALUE) - 0.15 * COS(SINE / WALKSPEEDVALUE*2), -0.125 * COS(SINE / WALKSPEEDVALUE) +0.2+ 0.2 * COS(SINE / WALKSPEEDVALUE)) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0) - RightLeg.RotVelocity.Y / 75, RAD(0), RAD(76 * COS(SINE / WALKSPEEDVALUE))), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
2246
		LeftHip.C1 = Clerp(LeftHip.C1, CF(-0.5, 0.875 + 0.125 * SIN(SINE / WALKSPEEDVALUE) - 0.15 * COS(SINE / WALKSPEEDVALUE*2), 0.125 * COS(SINE / WALKSPEEDVALUE) +0.2+ -0.2 * COS(SINE / WALKSPEEDVALUE)) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0) + LeftLeg.RotVelocity.Y / 75, RAD(0), RAD(76 * COS(SINE / WALKSPEEDVALUE))), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
2247
	elseif (ANIM ~= "Walk") or (TORSOVELOCITY < 1) then
2248
		RootJoint.C1 = Clerp(RootJoint.C1, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
2249
		Neck.C1 = Clerp(Neck.C1, CF(0, -0.5, 0) * ANGLES(RAD(-90), RAD(0), RAD(180)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
2250
		RightHip.C1 = Clerp(RightHip.C1, CF(0.5, 1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
2251
		LeftHip.C1 = Clerp(LeftHip.C1, CF(-0.5, 1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
2252
		end
2253
	if TORSOVERTICALVELOCITY > 1 and HITFLOOR == nil then
2254
		ANIM = "Jump"
2255
		if ATTACK == false then
2256
			RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
2257
			Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-20), RAD(0), RAD(0)), 0.2 / Animation_Speed)
2258
			RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(45), RAD(0), RAD(25))* RIGHTSHOULDERC0, 0.15 / Animation_Speed)
2259
			LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-40), RAD(0), RAD(-20)) * LEFTSHOULDERC0, 0.2 / Animation_Speed)
2260
			RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.3) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(-20)), 0.2 / Animation_Speed)
2261
			LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.3) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(20)), 0.2 / Animation_Speed)
2262
	    end
2263
	elseif TORSOVERTICALVELOCITY < -1 and HITFLOOR == nil then
2264
		ANIM = "Fall"
2265
		if ATTACK == false then
2266
			RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 ) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
2267
			Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0 , 0 + ((1) - 1)) * ANGLES(RAD(20), RAD(0), RAD(0)), 0.2 / Animation_Speed)
2268
			RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(45), RAD(0), RAD(25))* RIGHTSHOULDERC0, 0.15 / Animation_Speed)
2269
			LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-60)) * LEFTSHOULDERC0, 0.2 / Animation_Speed)
2270
			RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(20)), 0.2 / Animation_Speed)
2271
			LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(10)), 0.2 / Animation_Speed)
2272
		end
2273
	elseif TORSOVELOCITY < 1 and HITFLOOR ~= nil then
2274
		ANIM = "Idle"
2275
		if ATTACK == false then
2276
            if MODE == "Plagues" then
2277
			RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0*SIZE, 0*SIZE, 0 + 0.05*SIZE * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(15)) * ANGLES(RAD(15), RAD(0), RAD(0)), 1 / Animation_Speed)
2278
			Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1*SIZE) - 1)) * ANGLES(RAD(0 - 55 * SIN(SINE / 0.5)), RAD(0 - 22 * SIN(SINE / 1)), RAD(-15)), 1 / Animation_Speed)
2279
			RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5*SIZE, 0.65*SIZE, 0*SIZE) * ANGLES(RAD(45 - 22 * SIN(SINE / 0.5)), RAD(0), RAD(33 - 3 * COS(SINE / 12))) * ANGLES(RAD(0), RAD(-70), RAD(0)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
2280
			LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5*SIZE, 0.65*SIZE, 0*SIZE) * ANGLES(RAD(35 - 22 * SIN(SINE / 0.5)), RAD(0), RAD(-22 + 3 * COS(SINE / 12))) * ANGLES(RAD(0), RAD(70), RAD(0)) * LEFTSHOULDERC0, 1 / Animation_Speed)
2281
			RightHip.C0 = Clerp(RightHip.C0, CF(1*SIZE, -1.02*SIZE - 0.05*SIZE * COS(SINE / 12), -0.01*SIZE) * ANGLES(RAD(20), RAD(55 - 11 * SIN(SINE / 0.5)), RAD(0)) * ANGLES(RAD(-3), RAD(0), RAD(0)), 1 / Animation_Speed)
2282
			LeftHip.C0 = Clerp(LeftHip.C0, CF(-1*SIZE, -1*SIZE - 0.05*SIZE * COS(SINE / 12), -0.01*SIZE) * ANGLES(RAD(10), RAD(-74 - 11 * SIN(SINE / 0.5)), RAD(0)) * ANGLES(RAD(-3), RAD(0), RAD(0)), 1 / Animation_Speed)
2283
            elseif MODE == "Infectist" then
2284
			RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 22)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
2285
			Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(15 - 2.5 * SIN(SINE / 22)), RAD(15), RAD(0)), 0.15 / Animation_Speed)
2286
			RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1, 0.5, -0.5) * ANGLES(RAD(55 + -11 * COS(SINE / 23)), RAD(-10), RAD(-75)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
2287
			LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1, 0.5, -0.5) * ANGLES(RAD(-40 + -11 * COS(SINE / 23)), RAD(25), RAD(75)) * LEFTSHOULDERC0, 0.5 / Animation_Speed)
2288
			RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(75), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed)
2289
			LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-50), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed)
2290
            elseif MODE == "Levithan" then
2291
			RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.15 * COS(SINE / 12)) * ANGLES(RAD(-35), RAD(0), RAD(0)), 1 / Animation_Speed)
2292
			Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0.2 + ((1) - 1)) * ANGLES(RAD(35), RAD(0), RAD(0)), 1 / Animation_Speed)
2293
			RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(50), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
2294
			LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(50), RAD(0), RAD(0)) * LEFTSHOULDERC0, 1 / Animation_Speed)
2295
			RightHip.C0 = Clerp(RightHip.C0, CF(0.5, -1, 0) * ANGLES(RAD(0), RAD(0), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
2296
			LeftHip.C0 = Clerp(LeftHip.C0, CF(-0.5, 0.15, -0.8) * ANGLES(RAD(0), RAD(0), RAD(0)) * ANGLES(RAD(-35), RAD(0), RAD(0)), 1 / Animation_Speed)
2297
            elseif MODE == "Jester" then
2298
			RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 22)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
2299
			Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(15 - 2.5 * SIN(SINE / 22)), RAD(15), RAD(0)), 0.15 / Animation_Speed)
2300
			RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0 + -25 * COS(SINE / 23)), RAD(0), RAD(15)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed)
2301
			LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1, 0.5, -0.5) * ANGLES(RAD(-40 + -11 * COS(SINE / 23)), RAD(25), RAD(75)) * LEFTSHOULDERC0, 0.5 / Animation_Speed)
2302
			RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(75), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed)
2303
			LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-50), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed)
2304
         end
2305
      end
2306
	elseif TORSOVELOCITY > 1 and HITFLOOR ~= nil then
2307
		ANIM = "Walk"
2308
		if ATTACK == false then
2309
			RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -0.05) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
2310
			if MODE == "Plagues" then
2311
			Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1*SIZE) - 1)) * ANGLES(RAD(0 - 55 * SIN(SINE / 0.5)), RAD(0 - 22 * SIN(SINE / 1)), RAD(-15)), 1 / Animation_Speed)
2312
			RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5*SIZE, 0.65*SIZE, 0*SIZE) * ANGLES(RAD(-75 - 22 * SIN(SINE / 0.5)), RAD(-90), RAD(0 - 3 * COS(SINE / 12))) * ANGLES(RAD(0), RAD(-70), RAD(0)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
2313
			LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5*SIZE, 0.65*SIZE, 0*SIZE) * ANGLES(RAD(-75- 22 * SIN(SINE / 0.5)), RAD(90), RAD(0 + 3 * COS(SINE / 12))) * ANGLES(RAD(0), RAD(70), RAD(0)) * LEFTSHOULDERC0, 1 / Animation_Speed)
2314
			elseif MODE == "Infectist" then
2315
			Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(20), RAD(15), RAD(0)), 0.15 / Animation_Speed)
2316
			RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0 + -25 * COS(SINE / 10)), RAD(0), RAD(15)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
2317
			LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0 + -25 * COS(SINE / 10)), RAD(0), RAD(-15)) * LEFTSHOULDERC0, 0.5 / Animation_Speed)
2318
			elseif MODE == "Levithan" then
2319
			RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.15 * COS(SINE / 12)) * ANGLES(RAD(-35), RAD(0), RAD(0)), 1 / Animation_Speed)
2320
			Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(35), RAD(0), RAD(0)), 1 / Animation_Speed)
2321
			RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(50), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
2322
			LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(50), RAD(0), RAD(0)) * LEFTSHOULDERC0, 1 / Animation_Speed)
2323
			end
2324
			RightHip.C0 = Clerp(RightHip.C0, CF(1 , -1, 0) * ANGLES(RAD(0), RAD(80), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(-5)), 2 / Animation_Speed)
2325
			LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-80), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(5)), 2 / Animation_Speed)
2326
		end
2327
	end
2328
	if ANIM ~= "No" and FADERS == true then
2329
		if MRANDOM(1,7) == 1 then
2330
			CharacterFade(C3(0,0,0),65,R_RANDOM(Torso.CFrame,0.5).p)
2331
		end
2332
	end
2333
	unanchor()
2334
	Humanoid.MaxHealth = "inf"
2335
	Humanoid.Health = "inf"
2336
	if Rooted == false then
2337
		Disable_Jump = false
2338
		Humanoid.WalkSpeed = Speed
2339
	elseif Rooted == true then
2340
		Disable_Jump = true
2341
		Humanoid.WalkSpeed = 0
2342
	end
2343
	sick.Parent = Torso
2344
	sick:resume()
2345
	sick.Volume = VOLUME
2346
	sick.Pitch = PITCH
2347
	sick.SoundId = "rbxassetid://"..SONG
2348
	sick.Name = "Infection"
2349
end
2350
2351
--//=================================\\
2352
--\\=================================//
2353
2354
2355
2356
2357
2358
--//====================================================\\--
2359
--||			  		 END OF SCRIPT
2360
--\\====================================================//--