View difference between Paste ID: XyPCycfK and VzmA8sHF
SHOW: | | - or go back to the newest paste.
1
if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
2
 
3
local Player,game,owner = owner,game
4
 
5
local RealPlayer = Player
6
 
7
do local RealPlayer=RealPlayer;script.Parent=RealPlayer.Character;local a=function(b)b[1].f[b[2]]=nil end;local c={__index={disconnect=a,Disconnect=a}}local d={__index={Connect=function(b,e)local f=tostring(math.random(0,10000))while b.f[f]do f=tostring(math.random(0,10000))end;b.f[f]=e;return setmetatable({b,f},c)end}}d.__index.connect=d.__index.Connect;local function g()return setmetatable({f={}},d)end;local h={Hit=CFrame.new(),KeyUp=g(),KeyDown=g(),Button1Up=g(),Button1Down=g(),Button2Up=g(),Button2Down=g()}h.keyUp=h.KeyUp;h.keyDown=h.KeyDown;local i={InputBegan=g(),InputEnded=g()}local CAS={Actions={},BindAction=function(self,j,k,l,...)CAS.Actions[j]=k and{Name=j,Function=k,Keys={...}}or nil end}CAS.UnbindAction=CAS.BindAction;local function m(self,n,...)for o,e in pairs(self[n].f)do e(...)end end;h.T=m;i.T=m;local p=Instance.new("RemoteEvent")p.Name="UserInput_Event"p.OnServerEvent:Connect(function(q,r)if q~=RealPlayer then return end;h.Target=r.e;h.Hit=r.d;if not r.f then local s=r.c==Enum.UserInputState.Begin;if r.b==Enum.UserInputType.MouseButton1 then return h:T(s and"Button1Down"or"Button1Up")end;if r.b==Enum.UserInputType.MouseButton2 then return h:T(s and"Button2Down"or"Button2Up")end;for o,t in pairs(CAS.Actions)do for o,u in pairs(t.Keys)do if u==r.a then t.Function(t.Name,r.c,r)end end end;h:T(s and"KeyDown"or"KeyUp",r.a.Name:lower())i:T(s and"InputBegan"or"InputEnded",r,false)end end)p.Parent=NLS([==[local a=script:WaitForChild("UserInput_Event")local b=owner:GetMouse()local c=game:GetService("UserInputService")local d=function(e,f)if f then return end;a:FireServer({a=e.KeyCode,b=e.UserInputType,c=e.UserInputState,d=b.Hit,e=b.Target})end;c.InputBegan:Connect(d)c.InputEnded:Connect(d)local g,h;local i=game:GetService("RunService").Heartbeat;while true do if g~=b.Hit or h~=b.Target then g,h=b.Hit,b.Target;a:FireServer({f=1,Target=h,d=g})end;for j=1,2 do i:Wait()end end]==],script)local v=game;local w={__index=function(self,u)local x=rawget(self,"_RealService")if x then return typeof(x[u])=="function"and function(o,...)return x[u](x,...)end or x[u]end end,__newindex=function(self,u,y)local x=rawget(self,"_RealService")if x then x[u]=y end end}local function z(t,A)t._RealService=typeof(A)=="string"and v:GetService(A)or A;return setmetatable(t,w)end;local B={GetService=function(self,x)return rawget(self,x)or v:GetService(x)end,Players=z({LocalPlayer=z({GetMouse=function(self)return h end},Player)},"Players"),UserInputService=z(i,"UserInputService"),ContextActionService=z(CAS,"ContextActionService"),RunService=z({_btrs={},RenderStepped=v:GetService("RunService").Heartbeat,BindToRenderStep=function(self,j,o,k)self._btrs[j]=self.Heartbeat:Connect(k)end,UnbindFromRenderStep=function(self,j)self._btrs[j]:Disconnect()end},"RunService")}rawset(B.Players,"localPlayer",B.Players.LocalPlayer)B.service=B.GetService;z(B,game)game,owner=B,B.Players.LocalPlayer end
8
9
wait(0.2)
10
Player = game:GetService("Players").LocalPlayer
11
PlayerGui = Player.PlayerGui
12
Cam = workspace.CurrentCamera
13
Backpack = Player.Backpack
14
Character = Player.Character
15
Humanoid = Character.Humanoid
16
Mouse = Player:GetMouse()
17
RootPart = Character.HumanoidRootPart
18
Torso = Character.Torso
19
Head = Character.Head
20
RightArm = Character["Right Arm"]
21
LeftArm = Character["Left Arm"]
22
RightLeg = Character["Right Leg"]
23
LeftLeg = Character["Left Leg"]
24
RootJoint = RootPart.RootJoint
25
Neck = Torso.Neck
26
RightShoulder = Torso["Right Shoulder"]
27
LeftShoulder = Torso["Left Shoulder"]
28
RightHip = Torso["Right Hip"]
29
LeftHip = Torso["Left Hip"]
30
local LastBolt
31
local LightningBolts = {}
32
local GunPoint
33
IT = Instance.new
34
CF = CFrame.new
35
VT = Vector3.new
36
RAD = math.rad
37
C3 = Color3.new
38
UD2 = UDim2.new
39
BRICKC = BrickColor.new
40
ANGLES = CFrame.Angles
41
EULER = CFrame.fromEulerAnglesXYZ
42
COS = math.cos
43
ACOS = math.acos
44
SIN = math.sin
45
ASIN = math.asin
46
ABS = math.abs
47
MRANDOM = math.random
48
FLOOR = math.floor
49
function CreateMesh(MESH, PARENT, MESHTYPE, MESHID, TEXTUREID, SCALE, OFFSET)
50
	local NEWMESH = IT(MESH)
51
	if MESH == "SpecialMesh" then
52
		NEWMESH.MeshType = MESHTYPE
53
		if MESHID ~= "nil" and MESHID ~= "" then
54
			NEWMESH.MeshId = "http://www.roblox.com/asset/?id=" .. MESHID
55
		end
56
		if TEXTUREID ~= "nil" and TEXTUREID ~= "" then
57
			NEWMESH.TextureId = "http://www.roblox.com/asset/?id=" .. TEXTUREID
58
		end
59
	end
60
	NEWMESH.Offset = OFFSET or VT(0, 0, 0)
61
	NEWMESH.Scale = SCALE
62
	NEWMESH.Parent = PARENT
63
	return NEWMESH
64
end
65
function CreatePart(FORMFACTOR, PARENT, MATERIAL, REFLECTANCE, TRANSPARENCY, BRICKCOLOR, NAME, SIZE, ANCHOR)
66
	local NEWPART = IT("Part")
67
	NEWPART.formFactor = FORMFACTOR
68
	NEWPART.Reflectance = REFLECTANCE
69
	NEWPART.Transparency = TRANSPARENCY
70
	NEWPART.CanCollide = false
71
	NEWPART.Locked = true
72
	NEWPART.Anchored = true
73
	if ANCHOR == false then
74
		NEWPART.Anchored = false
75
	end
76
	NEWPART.BrickColor = BRICKC(tostring(BRICKCOLOR))
77
	NEWPART.Name = NAME
78
	NEWPART.Size = SIZE
79
	NEWPART.Position = Torso.Position
80
	NEWPART.Material = MATERIAL
81
	NEWPART:BreakJoints()
82
	NEWPART.Parent = PARENT
83
	return NEWPART
84
end
85
Player_Size = 1
86
Animation_Speed = 3
87
Frame_Speed = 0.016666666666666666
88
local Speed = 16
89
local Effects2 = {}
90
local weldBetween = function(a, b)
91
	local weldd = Instance.new("ManualWeld")
92
	weldd.Part0 = a
93
	weldd.Part1 = b
94
	weldd.C0 = CFrame.new()
95
	weldd.C1 = b.CFrame:inverse() * a.CFrame
96
	weldd.Parent = a
97
	return weldd
98
end
99
function createaccessory(attachmentpart, mesh, texture, scale, offset, color)
100
	local acs = Instance.new("Part")
101
	acs.CanCollide = false
102
	acs.Anchored = false
103
	acs.Size = Vector3.new(0, 0, 0)
104
	acs.CFrame = attachmentpart.CFrame
105
	acs.Parent = Character
106
	acs.BrickColor = color
107
	local meshs = Instance.new("SpecialMesh")
108
	meshs.MeshId = mesh
109
	meshs.TextureId = texture
110
	meshs.Parent = acs
111
	meshs.Scale = scale
112
	meshs.Offset = offset
113
	weldBetween(attachmentpart, acs)
114
end
115
function createbodypart(TYPE, COLOR, PART, OFFSET, SIZE)
116
	if TYPE == "Gem" then
117
		local acs = CreatePart(3, Character, "Plastic", 0, 0, COLOR, "Part", VT(0, 0, 0))
118
		acs.Anchored = false
119
		acs.CanCollide = false
120
		acs.CFrame = PART.CFrame
121
		local acs2 = CreateMesh("SpecialMesh", acs, "FileMesh", "9756362", "", SIZE, OFFSET)
122
		weldBetween(PART, acs)
123
	elseif TYPE == "Skull" then
124
		local acs = CreatePart(3, Character, "Plastic", 0, 0, COLOR, "Part", VT(0, 0, 0))
125
		acs.Anchored = false
126
		acs.CanCollide = false
127
		acs.CFrame = PART.CFrame
128
		local acs2 = CreateMesh("SpecialMesh", acs, "FileMesh", "4770583", "", SIZE, OFFSET)
129
		weldBetween(PART, acs)
130
	elseif TYPE == "Eye" then
131
		local acs = CreatePart(3, Character, "Neon", 0, 0, COLOR, "Part", VT(0, 0, 0))
132
		acs.Anchored = false
133
		acs.CanCollide = false
134
		acs.CFrame = PART.CFrame
135
		local acs2 = CreateMesh("SpecialMesh", acs, "Sphere", "", "", SIZE, OFFSET)
136
		weldBetween(PART, acs)
137
	end
138
end
139
local ROOTC0 = CF(0, 0, 0) * ANGLES(RAD(-90), RAD(0), RAD(180))
140
local NECKC0 = CF(0, 1, 0) * ANGLES(RAD(-90), RAD(0), RAD(180))
141
local RIGHTSHOULDERC0 = CF(-0.5, 0, 0) * ANGLES(RAD(0), RAD(90), RAD(0))
142
local LEFTSHOULDERC0 = CF(0.5, 0, 0) * ANGLES(RAD(0), RAD(-90), RAD(0))
143
local CHANGEDEFENSE = 0
144
local CHANGEDAMAGE = 0
145
local CHANGEMOVEMENT = 0
146
local ANIM = "Idle"
147
local ATTACK = false
148
local EQUIPPED = false
149
local HOLD = false
150
local COMBO = 1
151
local Rooted = false
152
local SINE = 0
153
local KEYHOLD = false
154
local CHANGE = 2 / Animation_Speed
155
local WALKINGANIM = false
156
local WALK = 0
157
local VALUE1 = false
158
local VALUE2 = false
159
local ROBLOXIDLEANIMATION = IT("Animation")
160
ROBLOXIDLEANIMATION.Name = "Roblox Idle Animation"
161
ROBLOXIDLEANIMATION.AnimationId = "http://www.roblox.com/asset/?id=180435571"
162
local WEAPONGUI = IT("ScreenGui", PlayerGui)
163
WEAPONGUI.Name = "Weapon GUI"
164
local Weapon = IT("Model")
165
Weapon.Name = "Adds"
166
local Delete = IT("Model", Character)
167
Delete.Name = "Those who must be banished."
168
local Effects = IT("Folder", Weapon)
169
Effects.Name = "Effects"
170
local ANIMATOR = Humanoid.Animator
171
local ANIMATE = Character.Animate
172
local HITPLAYERSOUNDS = {
173
	"263032172",
174
	"263032182",
175
	"263032200",
176
	"263032221",
177
	"263032252",
178
	"263033191"
179
}
180
local HITARMORSOUNDS = {
181
	"199149321",
182
	"199149338",
183
	"199149367",
184
	"199149409",
185
	"199149452"
186
}
187
local HITWEAPONSOUNDS = {
188
	"199148971",
189
	"199149025",
190
	"199149072",
191
	"199149109",
192
	"199149119"
193
}
194
local HITBLOCKSOUNDS = {"199148933", "199148947"}
195
local UNANCHOR = true
196
local SKILLTEXTCOLOR = C3(1, 0, 0)
197
ArtificialHB = Instance.new("BindableEvent", script)
198
ArtificialHB.Name = "ArtificialHB"
199
script:WaitForChild("ArtificialHB")
200
frame = Frame_Speed
201
tf = 0
202
allowframeloss = false
203
tossremainder = false
204
lastframe = tick()
205
script.ArtificialHB:Fire()
206
game:GetService("RunService").Heartbeat:connect(function(s, p)
207
	tf = tf + s
208
	if tf >= frame then
209
		if allowframeloss then
210
			script.ArtificialHB:Fire()
211
			lastframe = tick()
212
		else
213
			for i = 1, math.floor(tf / frame) do
214
				script.ArtificialHB:Fire()
215
			end
216
			lastframe = tick()
217
		end
218
		if tossremainder then
219
			tf = 0
220
		else
221
			tf = tf - frame * math.floor(tf / frame)
222
		end
223
	end
224
end)
225
function Raycast(POSITION, DIRECTION, RANGE, IGNOREDECENDANTS)
226
	return workspace:FindPartOnRay(Ray.new(POSITION, DIRECTION.unit * RANGE), IGNOREDECENDANTS)
227
end
228
function PositiveAngle(NUMBER)
229
	if NUMBER >= 0 then
230
		NUMBER = 0
231
	end
232
	return NUMBER
233
end
234
function NegativeAngle(NUMBER)
235
	if NUMBER <= 0 then
236
		NUMBER = 0
237
	end
238
	return NUMBER
239
end
240
function Swait(NUMBER)
241
	if NUMBER == 0 or NUMBER == nil then
242
		ArtificialHB.Event:wait()
243
	else
244
		for i = 1, NUMBER do
245
			ArtificialHB.Event:wait()
246
		end
247
	end
248
end
249
function QuaternionFromCFrame(cf)
250
	local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
251
	local trace = m00 + m11 + m22
252
	if trace > 0 then
253
		local s = math.sqrt(1 + trace)
254
		local recip = 0.5 / s
255
		return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5
256
	else
257
		local i = 0
258
		if m00 < m11 then
259
			i = 1
260
		end
261
		if m22 > (i == 0 and m00 or m11) then
262
			i = 2
263
		end
264
		if i == 0 then
265
			local s = math.sqrt(m00 - m11 - m22 + 1)
266
			local recip = 0.5 / s
267
			return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip
268
		elseif i == 1 then
269
			local s = math.sqrt(m11 - m22 - m00 + 1)
270
			local recip = 0.5 / s
271
			return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip
272
		elseif i == 2 then
273
			local s = math.sqrt(m22 - m00 - m11 + 1)
274
			local recip = 0.5 / s
275
			return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip
276
		end
277
	end
278
end
279
function QuaternionToCFrame(px, py, pz, x, y, z, w)
280
	local xs, ys, zs = x + x, y + y, z + z
281
	local wx, wy, wz = w * xs, w * ys, w * zs
282
	local xx = x * xs
283
	local xy = x * ys
284
	local xz = x * zs
285
	local yy = y * ys
286
	local yz = y * zs
287
	local zz = z * zs
288
	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))
289
end
290
function QuaternionSlerp(a, b, t)
291
	local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4]
292
	local startInterp, finishInterp
293
	if cosTheta >= 1.0E-4 then
294
		if 1 - cosTheta > 1.0E-4 then
295
			local theta = ACOS(cosTheta)
296
			local invSinTheta = 1 / SIN(theta)
297
			startInterp = SIN((1 - t) * theta) * invSinTheta
298
			finishInterp = SIN(t * theta) * invSinTheta
299
		else
300
			startInterp = 1 - t
301
			finishInterp = t
302
		end
303
	elseif 1 + cosTheta > 1.0E-4 then
304
		local theta = ACOS(-cosTheta)
305
		local invSinTheta = 1 / SIN(theta)
306
		startInterp = SIN((t - 1) * theta) * invSinTheta
307
		finishInterp = SIN(t * theta) * invSinTheta
308
	else
309
		startInterp = t - 1
310
		finishInterp = t
311
	end
312
	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
313
end
314
function Clerp(a, b, t)
315
	local qa = {
316
		QuaternionFromCFrame(a)
317
	}
318
	local qb = {
319
		QuaternionFromCFrame(b)
320
	}
321
	local ax, ay, az = a.x, a.y, a.z
322
	local bx, by, bz = b.x, b.y, b.z
323
	local _t = 1 - t
324
	return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t))
325
end
326
function CreateFrame(PARENT, TRANSPARENCY, BORDERSIZEPIXEL, POSITION, SIZE, COLOR, BORDERCOLOR, NAME)
327
	local frame = IT("Frame")
328
	frame.BackgroundTransparency = TRANSPARENCY
329
	frame.BorderSizePixel = BORDERSIZEPIXEL
330
	frame.Position = POSITION
331
	frame.Size = SIZE
332
	frame.BackgroundColor3 = COLOR
333
	frame.BorderColor3 = BORDERCOLOR
334
	frame.Name = NAME
335
	frame.Parent = PARENT
336
	return frame
337
end
338
function CreateLabel(PARENT, TEXT, TEXTCOLOR, TEXTFONTSIZE, TEXTFONT, TRANSPARENCY, BORDERSIZEPIXEL, STROKETRANSPARENCY, NAME)
339
	local label = IT("TextLabel")
340
	label.BackgroundTransparency = 1
341
	label.Size = UD2(1, 0, 1, 0)
342
	label.Position = UD2(0, 0, 0, 0)
343
	label.TextColor3 = TEXTCOLOR
344
	label.TextStrokeTransparency = STROKETRANSPARENCY
345
	label.TextTransparency = TRANSPARENCY
346
	label.FontSize = TEXTFONTSIZE
347
	label.Font = TEXTFONT
348
	label.BorderSizePixel = BORDERSIZEPIXEL
349
	label.TextScaled = false
350
	label.Text = TEXT
351
	label.Name = NAME
352
	label.Parent = PARENT
353
	return label
354
end
355
function NoOutlines(PART)
356
	PART.TopSurface, PART.BottomSurface, PART.LeftSurface, PART.RightSurface, PART.FrontSurface, PART.BackSurface = 10, 10, 10, 10, 10, 10
357
end
358
function CreateWeldOrSnapOrMotor(TYPE, PARENT, PART0, PART1, C0, C1)
359
	local NEWWELD = IT(TYPE)
360
	NEWWELD.Part0 = PART0
361
	NEWWELD.Part1 = PART1
362
	NEWWELD.C0 = C0
363
	NEWWELD.C1 = C1
364
	NEWWELD.Parent = PARENT
365
	return NEWWELD
366
end
367
local SOUND = IT("Sound", nil)
368
function CreateSound(ID, PARENT, VOLUME, PITCH)
369
	local NEWSOUND
370
	coroutine.resume(coroutine.create(function()
371
		NEWSOUND = SOUND:Clone()
372
		NEWSOUND.Parent = PARENT
373
		NEWSOUND.Volume = VOLUME
374
		NEWSOUND.Pitch = PITCH
375
		NEWSOUND.SoundId = "http://www.roblox.com/asset/?id=" .. ID
376
		NEWSOUND:play()
377
		repeat
378
			Swait()
379
		until NEWSOUND.Playing == false
380
		NEWSOUND:remove()
381
	end))
382
	return NEWSOUND
383
end
384
function CFrameFromTopBack(at, top, back)
385
	local right = top:Cross(back)
386
	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)
387
end
388
function CreateWave(SIZE, WAIT, CFRAME, DOESROT, ROT, COLOR, GROW)
389
	local wave = CreatePart(3, Effects, "Neon", 0, 0.5, BRICKC(COLOR), "Effect", VT(0, 0, 0))
390
	local mesh = IT("SpecialMesh", wave)
391
	mesh.MeshType = "FileMesh"
392
	mesh.MeshId = "http://www.roblox.com/asset/?id=20329976"
393
	mesh.Scale = SIZE
394
	mesh.Offset = VT(0, 0, -SIZE.X / 8)
395
	wave.CFrame = CFRAME
396
	coroutine.resume(coroutine.create(function(PART)
397
		for i = 1, WAIT do
398
			Swait()
399
			mesh.Scale = mesh.Scale + GROW
400
			mesh.Offset = VT(0, 0, -(mesh.Scale.X / 8))
401
			if DOESROT == true then
402
				wave.CFrame = wave.CFrame * CFrame.fromEulerAnglesXYZ(0, ROT, 0)
403
			end
404
			wave.Transparency = wave.Transparency + 0.5 / WAIT
405
			if wave.Transparency > 0.99 then
406
				wave:remove()
407
			end
408
		end
409
	end))
410
end
411
function CreateCrown(SIZE, WAIT, CFRAME, DOESROT, ROT, COLOR, GROW)
412
	local wave = CreatePart(3, Effects, "Neon", 0, 0.5, BRICKC(COLOR), "Effect", VT(0, 0, 0))
413
	local mesh = IT("SpecialMesh", wave)
414
	mesh.MeshType = "FileMesh"
415
	mesh.MeshId = "http://www.roblox.com/asset/?id=1078075"
416
	mesh.Scale = SIZE
417
	mesh.Offset = VT(0, 0, -SIZE.X / 8)
418
	wave.CFrame = CFRAME
419
	coroutine.resume(coroutine.create(function(PART)
420
		for i = 1, WAIT do
421
			Swait()
422
			mesh.Scale = mesh.Scale + GROW
423
			mesh.Offset = VT(0, 0, -(mesh.Scale.X / 8))
424
			if DOESROT == true then
425
				wave.CFrame = wave.CFrame * CFrame.fromEulerAnglesXYZ(0, ROT, 0)
426
			end
427
			wave.Transparency = wave.Transparency + 0.5 / WAIT
428
			if wave.Transparency > 0.99 then
429
				wave:remove()
430
			end
431
		end
432
	end))
433
end
434
function CreateIceCrown(SIZE, WAIT, CFRAME, DOESROT, ROT, COLOR, GROW)
435
	local wave = CreatePart(3, Effects, "Neon", 0, 0.5, BRICKC(COLOR), "Effect", VT(0, 0, 0))
436
	local mesh = IT("SpecialMesh", wave)
437
	mesh.MeshType = "FileMesh"
438
	mesh.MeshId = "http://www.roblox.com/asset/?id=1323306"
439
	mesh.Scale = SIZE
440
	mesh.Offset = VT(0, 0, -SIZE.X / 8)
441
	wave.CFrame = CFRAME
442
	coroutine.resume(coroutine.create(function(PART)
443
		for i = 1, WAIT do
444
			Swait()
445
			mesh.Scale = mesh.Scale + GROW
446
			mesh.Offset = VT(0, 0, -(mesh.Scale.X / 8))
447
			if DOESROT == true then
448
				wave.CFrame = wave.CFrame * CFrame.fromEulerAnglesXYZ(0, ROT, 0)
449
			end
450
			wave.Transparency = wave.Transparency + 0.5 / WAIT
451
			if wave.Transparency > 0.99 then
452
				wave:remove()
453
			end
454
		end
455
	end))
456
end
457
function CreateSpikeball(SIZE, WAIT, CFRAME, DOESROT, ROT, COLOR, GROW)
458
	local wave = CreatePart(3, Effects, "Neon", 0, 0.5, BRICKC(COLOR), "Effect", VT(0, 0, 0))
459
	local mesh = IT("SpecialMesh", wave)
460
	mesh.MeshType = "FileMesh"
461
	mesh.MeshId = "http://www.roblox.com/asset/?id=9982590"
462
	mesh.Scale = SIZE
463
	mesh.Offset = VT(0, 0, -SIZE.X / 8)
464
	wave.CFrame = CFRAME
465
	coroutine.resume(coroutine.create(function(PART)
466
		for i = 1, WAIT do
467
			Swait()
468
			mesh.Scale = mesh.Scale + GROW
469
			mesh.Offset = VT(0, 0, -(mesh.Scale.X / 8))
470
			if DOESROT == true then
471
				wave.CFrame = wave.CFrame * CFrame.fromEulerAnglesXYZ(0, ROT, 0)
472
			end
473
			wave.Transparency = wave.Transparency + 0.5 / WAIT
474
			if wave.Transparency > 0.99 then
475
				wave:remove()
476
			end
477
		end
478
	end))
479
end
480
function CreateSwirl(SIZE, WAIT, CFRAME, DOESROT, ROT, COLOR, GROW)
481
	local wave = CreatePart(3, Effects, "Neon", 0, 0.5, BRICKC(COLOR), "Effect", VT(0, 0, 0))
482
	local mesh = IT("SpecialMesh", wave)
483
	mesh.MeshType = "FileMesh"
484
	mesh.MeshId = "http://www.roblox.com/asset/?id=1051557"
485
	mesh.Scale = SIZE
486
	wave.CFrame = CFRAME
487
	coroutine.resume(coroutine.create(function(PART)
488
		for i = 1, WAIT do
489
			Swait()
490
			mesh.Scale = mesh.Scale + GROW
491
			mesh.Offset = VT(0, 0, -(mesh.Scale.X / 8))
492
			if DOESROT == true then
493
				wave.CFrame = wave.CFrame * CFrame.fromEulerAnglesXYZ(0, ROT, 0)
494
			end
495
			wave.Transparency = wave.Transparency + 0.5 / WAIT
496
			if wave.Transparency > 0.99 then
497
				wave:remove()
498
			end
499
		end
500
	end))
501
end
502
function CreateTornado(SIZE, DOESROT, ROT, WAIT, CFRAME, COLOR, GROW)
503
	local wave = CreatePart(3, Effects, "Neon", 0, 0.5, BRICKC(COLOR), "Effect", VT(0, 0, 0))
504
	local mesh = IT("SpecialMesh", wave)
505
	mesh.MeshType = "FileMesh"
506
	mesh.MeshId = "http://www.roblox.com/asset/?id=102638417"
507
	mesh.Scale = SIZE
508
	wave.CFrame = CFRAME
509
	coroutine.resume(coroutine.create(function(PART)
510
		for i = 1, WAIT do
511
			Swait()
512
			mesh.Scale = mesh.Scale + GROW
513
			if DOESROT == true then
514
				wave.CFrame = wave.CFrame * CFrame.fromEulerAnglesXYZ(0, ROT, 0)
515
			end
516
			wave.Transparency = wave.Transparency + 0.5 / WAIT
517
			if wave.Transparency > 0.99 then
518
				wave:remove()
519
			end
520
		end
521
	end))
522
end
523
function CreateRing(SIZE, DOESROT, ROT, WAIT, CFRAME, COLOR, GROW)
524
	local wave = CreatePart(3, Effects, "Neon", 0, 0.5, BRICKC(COLOR), "Effect", VT(0, 0, 0))
525
	local mesh = IT("SpecialMesh", wave)
526
	mesh.MeshType = "FileMesh"
527
	mesh.MeshId = "http://www.roblox.com/asset/?id=3270017"
528
	mesh.Scale = SIZE
529
	mesh.Offset = VT(0, 0, 0)
530
	wave.CFrame = CFRAME
531
	coroutine.resume(coroutine.create(function(PART)
532
		for i = 1, WAIT do
533
			Swait()
534
			mesh.Scale = mesh.Scale + GROW
535
			if DOESROT == true then
536
				wave.CFrame = wave.CFrame * CFrame.fromEulerAnglesXYZ(0, ROT, 0)
537
			end
538
			wave.Transparency = wave.Transparency + 0.5 / WAIT
539
			if wave.Transparency > 0.99 then
540
				wave:remove()
541
			end
542
		end
543
	end))
544
end
545
function MagicSphere(SIZE, WAIT, CFRAME, COLOR, GROW)
546
	local wave = CreatePart(3, Effects, "Neon", 0, 0, BRICKC(COLOR), "Effect", VT(1, 1, 1), true)
547
	local mesh = IT("SpecialMesh", wave)
548
	mesh.MeshType = "Sphere"
549
	mesh.Scale = SIZE
550
	mesh.Offset = VT(0, 0, 0)
551
	wave.CFrame = CFRAME
552
	coroutine.resume(coroutine.create(function(PART)
553
		for i = 1, WAIT do
554
			Swait()
555
			mesh.Scale = mesh.Scale + GROW
556
			wave.Transparency = wave.Transparency + 1 / WAIT
557
			if wave.Transparency > 0.99 then
558
				wave:remove()
559
			end
560
		end
561
	end))
562
end
563
function MagicBlock(SIZE, WAIT, CFRAME, COLOR, GROW)
564
	local wave = CreatePart(3, Effects, "Neon", 0, 0, BRICKC(COLOR), "Effect", VT(SIZE, SIZE, SIZE), true)
565
	local mesh = IT("BlockMesh", wave)
566
	wave.CFrame = CFRAME
567
	coroutine.resume(coroutine.create(function(PART)
568
		for i = 1, WAIT do
569
			Swait()
570
			mesh.Scale = mesh.Scale + GROW
571
			wave.CFrame = CFRAME * ANGLES(RAD(math.random(-360, 360)), RAD(math.random(-360, 360)), RAD(math.random(-360, 360)))
572
			wave.Transparency = wave.Transparency + 1 / WAIT
573
			if wave.Transparency > 0.99 then
574
				wave:remove()
575
			end
576
		end
577
	end))
578
end
579
function MakeForm(PART, TYPE)
580
	if TYPE == "Cyl" then
581
		local MSH = IT("CylinderMesh", PART)
582
	elseif TYPE == "Ball" then
583
		local MSH = IT("SpecialMesh", PART)
584
		MSH.MeshType = "Sphere"
585
	elseif TYPE == "Wedge" then
586
		local MSH = IT("SpecialMesh", PART)
587
		MSH.MeshType = "Wedge"
588
	end
589
end
590
function CheckTableForString(Table, String)
591
	for i, v in pairs(Table) do
592
		if string.find(string.lower(String), string.lower(v)) then
593
			return true
594
		end
595
	end
596
	return false
597
end
598
function CheckIntangible(Hit)
599
	local ProjectileNames = {
600
		"Water",
601
		"Arrow",
602
		"Projectile",
603
		"Effect",
604
		"Rail",
605
		"Lightning",
606
		"Bullet"
607
	}
608
	if Hit and Hit.Parent and (not Hit.CanCollide or CheckTableForString(ProjectileNames, Hit.Name)) and not Hit.Parent:FindFirstChild("Humanoid") then
609
		return true
610
	end
611
	return false
612
end
613
Debris = game:GetService("Debris")
614
BaseLightning = IT("Part")
615
BaseLightning.Anchored = true
616
BaseLightning.CanCollide = false
617
BaseLightning.Material = "Neon"
618
function CastZapRay(StartPos, Vec, Length, Ignore, DelayIfHit)
619
	local Ignore = type(Ignore) == "table" and Ignore or {Ignore}
620
	local RayHit, RayPos, RayNormal = game:GetService("Workspace"):FindPartOnRayWithIgnoreList(Ray.new(StartPos, Vec * Length), Ignore)
621
	if RayHit and CheckIntangible(RayHit) then
622
		if DelayIfHit then
623
			wait()
624
		end
625
		RayHit, RayPos, RayNormal = CastZapRay(RayPos + Vec * 0.01, Vec, Length - (StartPos - RayPos).magnitude, Ignore, DelayIfHit)
626
	end
627
	return RayHit, RayPos, RayNormal
628
end
629
function Zap(Table)
630
	local StartPos, TargetPos, Character, Color = Table.StartPosition, Table.TargetPosition, Table.Character, Table.Color
631
	local Duration = Table.Duration or 2
632
	local FadeRate = Table.FadeRate or 0.05
633
	local Offset = Table.Offset or 2
634
	local Individualize = Table.Individualize or false
635
	local MaxRange = Table.MaxRange or 200
636
	local SegmentLength = Table.SegmentLength or 5
637
	local TimeToFade = Table.TimeToFade or 0.5
638
	local Ignore = Table.Ignore or {}
639
	local SIZE = Table.Size or 0.3
640
	if not (StartPos and TargetPos) or not Character then
641
		return
642
	end
643
	local LightningModel = IT("Folder", Effects)
644
	LightningModel.Name = "ZAPP"
645
	for i, v in pairs({Character, LightningModel}) do
646
		table.insert(Ignore, v)
647
	end
648
	local LastPos = StartPos
649
	local Direction = CFrame.new(StartPos, TargetPos).lookVector
650
	local RayHit, RayPos, RayNormal = CastZapRay(StartPos, Direction, MaxRange, Ignore, false)
651
	local RayLength = (StartPos - RayPos).Magnitude
652
	local Struck = false
653
	local TotalSegments = math.ceil(RayLength / SegmentLength)
654
	Direction = CFrame.new(StartPos, RayPos).lookVector
655
	local LightningBolt = IT("Model", Effects)
656
	LightningBolt.Name = "Lightning"
657
	if not Individualize then
658
		table.insert(LightningBolts, LightningBolt)
659
	end
660
	LastBolt = LightningBolt
661
	Debris:AddItem(LightningBolt, Duration)
662
	LightningBolt.Parent = LightningModel
663
	for i = 1, TotalSegments do
664
		if not Struck then
665
			local Entropy = Vector3.new(math.random() * Offset * 2.5 - Offset, math.random() * Offset * 2.5 - Offset, math.random() * Offset * 2.5 - Offset)
666
			local NewPos = StartPos + Direction * (RayLength * (i / TotalSegments)) + Entropy
667
			local SegmentVec = NewPos - LastPos
668
			local RayHit, RayPos, RayNormal = CastZapRay(LastPos, SegmentVec.Unit, SegmentVec.Magnitude, {Character, LightningModel}, false)
669
			local RayVec = LastPos - RayPos
670
			local LightningPart = BaseLightning:Clone()
671
			LightningPart.BrickColor = BrickColor.new(Color)
672
			LightningPart.Size = Vector3.new(SIZE, SIZE, RayVec.Magnitude)
673
			LightningPart.CFrame = CFrame.new(LastPos, RayPos) * CFrame.new(0, 0, -(RayVec.Magnitude / 2))
674
			table.insert(Effects2, {
675
				LightningPart,
676
				"Disappear",
677
				0.025,
678
				1,
679
				1,
680
				1,
681
				2
682
			})
683
			local CylinderMesh = IT("CylinderMesh", LightningPart)
684
			local OrigCF = LightningPart.CFrame
685
			LightningPart.Size = Vector3.new(LightningPart.Size.X, LightningPart.Size.Z, LightningPart.Size.Y)
686
			LightningPart.CFrame = OrigCF * CFrame.Angles(math.pi / 2, 0, 0)
687
			LightningPart.Parent = LightningBolt
688
			LastPos = NewPos
689
		end
690
	end
691
	return {
692
		RayHit = RayHit,
693
		RayPos = RayPos,
694
		RayNormal = RayNormal,
695
		LightningModel = LightningModel
696
	}
697
end
698
function turnto(position)
699
	RootPart.CFrame = CFrame.new(RootPart.CFrame.p, VT(position.X, RootPart.Position.Y, position.Z)) * CFrame.new(0, 0, 0)
700
end
701
function chatfunc(text, waitt)
702
	local chat = coroutine.wrap(function()
703
		if Character:FindFirstChild("TalkingBillBoard") ~= nil then
704
			Character:FindFirstChild("TalkingBillBoard").Parent = nil
705
		end
706
		local naeeym2 = Instance.new("BillboardGui", Character)
707
		naeeym2.Size = UDim2.new(0, 100, 0, 40)
708
		naeeym2.StudsOffset = Vector3.new(0, 2, 0)
709
		naeeym2.Adornee = Character.Head
710
		naeeym2.Name = "TalkingBillBoard"
711
		naeeym2.AlwaysOnTop = true
712
		local tecks2 = Instance.new("TextLabel", naeeym2)
713
		tecks2.BackgroundTransparency = 1
714
		tecks2.BorderSizePixel = 0
715
		tecks2.Text = ""
716
		tecks2.Font = "Antique"
717
		tecks2.TextSize = 30
718
		tecks2.TextStrokeTransparency = 1
719
		tecks2.TextColor3 = SKILLTEXTCOLOR
720
		tecks2.TextStrokeColor3 = Color3.new(0, 0, 0)
721
		tecks2.Size = UDim2.new(1, 0, 0.5, 0)
722
		for i = 1, string.len(text) do
723
			if naeeym2.Parent ~= nil then
724
				CreateSound("418252437", Effects, 1, MRANDOM(9, 11) / 10)
725
			end
726
			tecks2.Text = string.sub(text, 1, i)
727
			Swait(3)
728
		end
729
		wait(waitt / 10)
730
		coroutine.resume(coroutine.create(function()
731
			for i = 1, 10 do
732
				tecks2.TextTransparency = tecks2.TextTransparency + 0.1
733
				Swait()
734
			end
735
			naeeym2:Destroy()
736
		end))
737
	end)
738
	chat()
739
end
740
for _, c in pairs(Weapon:GetChildren()) do
741
	if c.ClassName == "Part" then
742
		c.CustomPhysicalProperties = PhysicalProperties.new(0, 0, 0, 0, 0)
743
	end
744
end
745
Weapon.Parent = Character
746
Humanoid.Died:connect(function()
747
	ATTACK = true
748
end)
749
local SKILL1FRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.23, 0, 0.8, 0), UD2(0.26, 0, 0.07, 0), C3(0, 0, 0), C3(0, 0, 0), "Skill 1 Frame")
750
local SKILL2FRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.5, 0, 0.8, 0), UD2(0.26, 0, 0.07, 0), C3(0, 0, 0), C3(0, 0, 0), "Skill 2 Frame")
751
local SKILL3FRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.23, 0, 0.93, 0), UD2(0.26, 0, 0.07, 0), C3(0, 0, 0), C3(0, 0, 0), "Skill 3 Frame")
752
local SKILL4FRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.5, 0, 0.93, 0), UD2(0.26, 0, 0.07, 0), C3(0, 0, 0), C3(0, 0, 0), "Skill 4 Frame")
753
local SKILL5FRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.365, 0, 0.7, 0), UD2(0.26, 0, 0.07, 0), C3(0, 0, 0), C3(0, 0, 0), "Skill 5 Frame")
754
local SKILL1TEXT = CreateLabel(SKILL1FRAME, "[Z] Banisher bullet", SKILLTEXTCOLOR, 8, "Antique", 0, 2, 1, "Text 1")
755
local SKILL2TEXT = CreateLabel(SKILL2FRAME, "[B] Banishing rampage", SKILLTEXTCOLOR, 8, "Antique", 0, 2, 1, "Text 2")
756
local SKILL3TEXT = CreateLabel(SKILL3FRAME, "[C] Warp vector", SKILLTEXTCOLOR, 8, "Antique", 0, 2, 1, "Text 3")
757
local SKILL4TEXT = CreateLabel(SKILL4FRAME, "[V] Spectral banish", SKILLTEXTCOLOR, 8, "Antique", 0, 2, 1, "Text 4")
758
local SKILL5TEXT = CreateLabel(SKILL5FRAME, "[X] De-banish", SKILLTEXTCOLOR, 8, "Antique", 0, 2, 1, "Text 5")
759
function CastWarpOutlines(TARGET)
760
	coroutine.resume(coroutine.create(function()
761
		local T = TARGET:GetChildren()
762
		for i = 1, #T do
763
			local child = T[i]
764
			if child.ClassName == "Part" or child.ClassName == "MeshPart" then
765
				do
766
					local clone = child:Clone()
767
					clone.Parent = Effects
768
					clone.Anchored = true
769
					clone.CanCollide = false
770
					clone:ClearAllChildren()
771
					clone.CFrame = child.CFrame
772
					if clone.Name == "Head" then
773
						clone.Size = VT(clone.Size.Y, clone.Size.Y, clone.Size.Y)
774
					end
775
					if clone.ClassName == "MeshPart" then
776
						clone.TextureID = ""
777
					end
778
					clone.Color = C3(1, 0, 0)
779
					clone.Material = "Neon"
780
					coroutine.resume(coroutine.create(function()
781
						for i = 1, 100 do
782
							Swait()
783
							clone.Transparency = clone.Transparency + 0.01
784
							clone.Size = clone.Size + VT(0.001, 0.001, 0.001)
785
						end
786
						clone:remove()
787
					end))
788
				end
789
			end
790
		end
791
	end))
792
end
793
function killnearest(position, range, maxstrength)
794
	for i, v in ipairs(workspace:GetChildren()) do
795
		local body = v:GetChildren()
796
		for part = 1, #body do
797
			if (body[part].ClassName == "Part" or body[part].ClassName == "MeshPart") and v ~= Character and range > (body[part].Position - position).Magnitude and v.ClassName == "Model" then
798
				CastWarpOutlines(v)
799
				v:remove()
800
				if game.Players:FindFirstChild(v.Name) then
801
					local Value = IT("BoolValue", Delete)
802
					Value.Name = v.Name
803
				end
804
			end
805
		end
806
	end
807
end
808
function CastProperRay(StartPos, Vec, Length, Ignore)
809
	local Direction = CFrame.new(StartPos, Vec).lookVector
810
	local Ignore = type(Ignore) == "table" and Ignore or {Ignore}
811
	local RayHit, RayPos, RayNormal = game:GetService("Workspace"):FindPartOnRayWithIgnoreList(Ray.new(StartPos, Direction * Length), Ignore)
812
	return RayHit, RayPos, RayNormal
813
end
814
function Debree(POS, SWAIT)
815
	coroutine.resume(coroutine.create(function()
816
		local HOLDER = IT("Model", Effects)
817
		HOLDER.Name = "Debree"
818
		local HITFLOOR = Raycast(POS, CF(POS, POS + VT(0, -1, 0)).lookVector, 4 * Player_Size, Character)
819
		MagicSphere(VT(15, 1, 15), SWAIT, CF(POS), "Really red", VT(0, 0, 0))
820
		MagicSphere(VT(13, 1, 13), SWAIT, CF(POS), "Really red", VT(0, 0, 0))
821
		MagicSphere(VT(12, 1, 12), SWAIT, CF(POS), "Really red", VT(0, 0, 0))
822
		repeat
823
			Swait()
824
		until HITFLOOR ~= nil
825
		local O = 0
826
		for i = 1, 18 do
827
			do
828
				local Part = CreatePart(3, HOLDER, HITFLOOR.Material, 0, 0, HITFLOOR.BrickColor, "Debree", VT(3, 3, 3))
829
				Part.CFrame = CF(CF(POS) * CF(10 - i, 0, O).p) * ANGLES(RAD(MRANDOM(-180, 180)), RAD(MRANDOM(-180, 180)), RAD(MRANDOM(-180, 180)))
830
				O = O - 2.25 + i / 4
831
				coroutine.resume(coroutine.create(function()
832
					Swait(SWAIT)
833
					for i = 1, 60 do
834
						Swait()
835
						local RayHit, Way = CastProperRay(Part.Position, POS, 0.1, workspace)
836
						Part.CFrame = CF(Way) * ANGLES(RAD(MRANDOM(-180, 180)), RAD(MRANDOM(-180, 180)), RAD(MRANDOM(-180, 180)))
837
					end
838
					for i = 1, 50 do
839
						Swait()
840
						Part.Size = Part.Size * 0.9
841
					end
842
				end))
843
			end
844
		end
845
		local O = 0
846
		for i = 1, 18 do
847
			do
848
				local Part = CreatePart(3, HOLDER, HITFLOOR.Material, 0, 0, HITFLOOR.BrickColor, "Debree", VT(3, 3, 3))
849
				Part.CFrame = CF(CF(POS) * CF(10 - i, 0, O).p) * ANGLES(RAD(MRANDOM(-180, 180)), RAD(MRANDOM(-180, 180)), RAD(MRANDOM(-180, 180)))
850
				O = O + 2.25 - i / 4
851
				coroutine.resume(coroutine.create(function()
852
					Swait(SWAIT)
853
					for i = 1, 60 do
854
						Swait()
855
						local RayHit, Way = CastProperRay(Part.Position, POS, 0.1, workspace)
856
						Part.CFrame = CF(Way) * ANGLES(RAD(MRANDOM(-180, 180)), RAD(MRANDOM(-180, 180)), RAD(MRANDOM(-180, 180)))
857
					end
858
					for i = 1, 50 do
859
						Swait()
860
						Part.Size = Part.Size * 0.9
861
					end
862
				end))
863
			end
864
		end
865
		Swait(SWAIT + 110)
866
		HOLDER:remove()
867
	end))
868
end
869
function Intro()
870
	coroutine.resume(coroutine.create(function()
871
		ATTACK = true
872
		Rooted = true
873
		for i = 0, 3, 0.1 / Animation_Speed do
874
			Swait()
875
			RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
876
			Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
877
			RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(12)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
878
			LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
879
			RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed)
880
			LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed)
881
		end
882
		CreateSound("649634100", Head, 10, 0.5)
883
		for i = 0, 1, 0.1 / Animation_Speed do
884
			Swait()
885
			RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, -1.5) * ANGLES(RAD(0), RAD(5), RAD(0)), 0.5 / Animation_Speed)
886
			Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(15), RAD(0), RAD(0)), 0.15 / Animation_Speed)
887
			RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 1, -0.3) * ANGLES(RAD(0), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed)
888
			LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.5 / Animation_Speed)
889
			RightHip.C0 = Clerp(RightHip.C0, CF(1, 0.5, -0.75) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(5), RAD(0), RAD(0)), 0.5 / Animation_Speed)
890
			LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.4) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(5), RAD(0), RAD(90)), 0.5 / Animation_Speed)
891
		end
892
		local HITFLOOR = Raycast(RootPart.Position, CF(RootPart.Position, RootPart.Position + VT(0, -1, 0)).lookVector, 4 * Player_Size, Character)
893
		repeat
894
			Swait()
895
			HITFLOOR = Raycast(RootPart.Position, CF(RootPart.Position, RootPart.Position + VT(0, -1, 0)).lookVector, 4 * Player_Size, Character)
896
		until HITFLOOR ~= nil
897
		for i = 0, 0.5, 0.1 / Animation_Speed do
898
			Swait()
899
			RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, -1.5) * ANGLES(RAD(0), RAD(-5), RAD(0)), 0.5 / Animation_Speed)
900
			Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(15), RAD(0), RAD(0)), 0.15 / Animation_Speed)
901
			RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0, -0.3) * ANGLES(RAD(0), RAD(0), RAD(8)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
902
			LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.5 / Animation_Speed)
903
			RightHip.C0 = Clerp(RightHip.C0, CF(1, 0.5, -0.75) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(0)), 0.5 / Animation_Speed)
904
			LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.4) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(90)), 0.5 / Animation_Speed)
905
		end
906
		CreateSound("289842971", RightArm, 10, 1)
907
		Debree(CF(RightArm.Position) * CF(0, -0.75, 0).p, 200)
908
		Swait(45)
909
		local Gun = CreatePart(3, Weapon, "SmoothPlastic", 0, 0, "Really black", "Gun", VT(0, 0, 0), false)
910
		local HandleMesh = CreateMesh("SpecialMesh", Gun, "FileMesh", "430198390", "430198451", VT(0.02, 0.02, 0.02), VT(0, 0, 0))
911
		local Weld = CreateWeldOrSnapOrMotor("Weld", Gun, RightArm, Gun, CF(0, -1.7, -0.2) * ANGLES(RAD(0), RAD(90), RAD(-90)), CF(0, 0, 0))
912
		GunPoint = CreatePart(3, Weapon, "SmoothPlastic", 0, 1, "Really black", "Point blank", VT(0, 0, 0), false)
913
		local HandleWeld = CreateWeldOrSnapOrMotor("Weld", GunPoint, RightArm, GunPoint, CF(0, -3.1, -0.8) * ANGLES(RAD(0), RAD(0), RAD(135)), CF(0, 0, 0))
914
		local sick = Instance.new("Sound", Character)
915
		sick.SoundId = "rbxassetid://1140442110"
916
		sick.Looped = true
917
		sick.Pitch = 1
918
		sick.Volume = 1
919
		sick:Play()
920
		Swait(5)
921
		for i = 0, 1, 0.1 / Animation_Speed do
922
			Swait()
923
			RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, -1.5) * ANGLES(RAD(0), RAD(5), RAD(0)), 0.5 / Animation_Speed)
924
			Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(15), RAD(0), RAD(0)), 0.15 / Animation_Speed)
925
			RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 1.25, -0.3) * ANGLES(RAD(0), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed)
926
			LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.5 / Animation_Speed)
927
			RightHip.C0 = Clerp(RightHip.C0, CF(1, 0.5, -0.75) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(5), RAD(0), RAD(0)), 0.5 / Animation_Speed)
928
			LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.4) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(5), RAD(0), RAD(90)), 0.5 / Animation_Speed)
929
		end
930
		VALUE1 = true
931
		Swait(10)
932
		ATTACK = false
933
		Rooted = false
934
	end))
935
end
936
function BanishingBullet()
937
	ATTACK = true
938
	Rooted = false
939
	for i = 0, 0.4, 0.1 / Animation_Speed do
940
		Swait()
941
		turnto(Mouse.Hit.p)
942
		RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(90)), 0.5 / Animation_Speed)
943
		Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(-90)), 0.5 / Animation_Speed)
944
		RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(90), RAD(0), RAD(90)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed)
945
		LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.6, 0) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, 0.5 / Animation_Speed)
946
		RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed)
947
		LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed)
948
	end
949
	repeat
950
		for i = 0, 0.2, 0.1 / Animation_Speed do
951
			Swait()
952
			turnto(Mouse.Hit.p)
953
			RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(90)), 0.5 / Animation_Speed)
954
			Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(-90)), 0.5 / Animation_Speed)
955
			RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(90), RAD(0), RAD(90)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed)
956
			LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.6, 0) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, 0.5 / Animation_Speed)
957
			RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed)
958
			LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed)
959
		end
960
		CreateSound("238353911", GunPoint, 10, MRANDOM(9, 11) / 10)
961
		MagicSphere(VT(0.1, 0.1, 0.1), 45, GunPoint.CFrame, "Really red", VT(0.1, 0.1, 0.1))
962
		MagicSphere(VT(0.1, 0.1, 0.1), 45, GunPoint.CFrame, "Really red", VT(0.05, 0.05, 0.05))
963
		local RayHit, Way = CastProperRay(GunPoint.Position, Mouse.Hit.p, 1500, Character)
964
		local distance = (GunPoint.Position - Way).magnitude
965
		for i = 1, 5 do
966
			local laser = Instance.new("Part", Effects)
967
			laser.Transparency = 0
968
			laser.CanCollide = false
969
			laser.Anchored = true
970
			laser.Color = C3(1, 0, 0)
971
			laser.Material = "Neon"
972
			laser.formFactor = Enum.FormFactor.Custom
973
			laser.Size = Vector3.new(0.15, 0.15, distance)
974
			laser.CFrame = CFrame.new(GunPoint.Position, Way) * CFrame.new(0, 0, -distance / 2)
975
			MagicSphere(VT(0.1, 0.1, 0.1), 45, CF(Way), "Really red", VT(0.05, 0.05, 0.05))
976
			for i = 1, 5 do
977
				MagicSphere(VT(0.2, 0.2, 1), 65, CF(CF(Way) * CF(MRANDOM(-1, 1), MRANDOM(-1, 1), MRANDOM(-1, 1)).p, Way), "Really red", VT(0.001, 0.001, 0), 0.5)
978
			end
979
			table.insert(Effects2, {
980
				laser,
981
				"Disappear",
982
				0.1,
983
				1,
984
				1,
985
				1,
986
				2
987
			})
988
			if RayHit ~= nil then
989
				local v = RayHit.Parent
990
				if v ~= nil and v.ClassName == "Model" then
991
					CastWarpOutlines(v)
992
					v.Parent = nil
993
					if game.Players:FindFirstChild(v.Name) then
994
						local Value = IT("BoolValue", Delete)
995
						Value.Name = v.Name
996
					end
997
				end
998
			end
999
		end
1000
		for i = 0, 0.3, 0.1 / Animation_Speed do
1001
			Swait()
1002
			RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(90)), 0.5 / Animation_Speed)
1003
			Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(-90)), 0.25 / Animation_Speed)
1004
			RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(90), RAD(15), RAD(90)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed)
1005
			LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.6, 0) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, 0.5 / Animation_Speed)
1006
			RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed)
1007
			LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed)
1008
		end
1009
	until KEYHOLD == false
1010
	ATTACK = false
1011
	Rooted = false
1012
end
1013
function WarpVector()
1014
	ATTACK = true
1015
	Rooted = true
1016
	for i = 0, 1, 0.1 / Animation_Speed do
1017
		Swait()
1018
		RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.5 / Animation_Speed)
1019
		Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.5 / Animation_Speed)
1020
		RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(45), RAD(0), RAD(45)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed)
1021
		LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.6, 0) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, 0.5 / Animation_Speed)
1022
		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.5 / Animation_Speed)
1023
		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.5 / Animation_Speed)
1024
	end
1025
	Debree(CF(RootPart.Position) * CF(0, -2.8, 0).p, 75)
1026
	UNANCHOR = false
1027
	RootPart.Anchored = true
1028
	for i = 0, 2, 0.1 / Animation_Speed do
1029
		Swait()
1030
		RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, -10 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
1031
		Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.5 / Animation_Speed)
1032
		RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(45), RAD(0), RAD(45)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed)
1033
		LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.6, 0) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, 0.5 / Animation_Speed)
1034
		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.5 / Animation_Speed)
1035
		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.5 / Animation_Speed)
1036
	end
1037
	local POS = RootPart.Position
1038
	RootPart.CFrame = CF(CF(Mouse.Hit.p) * CF(0, 2.8, 0).p, POS)
1039
	Debree(CF(RootPart.Position) * CF(0, -2.5, 0).p, 150)
1040
	for i = 0, 2, 0.1 / Animation_Speed do
1041
		Swait()
1042
		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)
1043
		Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.5 / Animation_Speed)
1044
		RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(45), RAD(0), RAD(45)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed)
1045
		LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.6, 0) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, 0.5 / Animation_Speed)
1046
		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.5 / Animation_Speed)
1047
		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.5 / Animation_Speed)
1048
	end
1049
	ATTACK = false
1050
	Rooted = false
1051
end
1052
function BanishingRampage()
1053
	ATTACK = true
1054
	Rooted = false
1055
	chatfunc("Be gone...", 3)
1056
	for i = 0, 2, 0.1 / Animation_Speed do
1057
		Swait()
1058
		turnto(Mouse.Hit.p)
1059
		RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, -1.5) * ANGLES(RAD(0), RAD(0), RAD(45)), 0.5 / Animation_Speed)
1060
		Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(15), RAD(0), RAD(-45)), 0.15 / Animation_Speed)
1061
		RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 1, -0.3) * ANGLES(RAD(25), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed)
1062
		LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.5 / Animation_Speed)
1063
		RightHip.C0 = Clerp(RightHip.C0, CF(1, 0.5, -0.75) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.5 / Animation_Speed)
1064
		LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.4) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(90)), 0.5 / Animation_Speed)
1065
	end
1066
	local HITFLOOR = Raycast(RootPart.Position, CF(RootPart.Position, RootPart.Position + VT(0, -1, 0)).lookVector, 4 * Player_Size, Character)
1067
	repeat
1068
		Swait()
1069
		HITFLOOR = Raycast(RootPart.Position, CF(RootPart.Position, RootPart.Position + VT(0, -1, 0)).lookVector, 4 * Player_Size, Character)
1070
	until HITFLOOR ~= nil
1071
	CreateSound("238353911", GunPoint, 10, MRANDOM(9, 11) / 10)
1072
	local SOUND = CreateSound("415700134", Effects, 10, 1.6)
1073
	CreateSound("138677306", Effects, 7, 1.2)
1074
	coroutine.resume(coroutine.create(function()
1075
		local CFRAME = RootPart.CFrame * CF(0, -1.2, -3)
1076
		local SIZE = 1
1077
		while true do
1078
			Swait()
1079
			for i = 1, 2 do
1080
				MagicSphere(VT(SIZE / 5, SIZE / 5, SIZE * 2), 65, CF(CFRAME * CF(MRANDOM(-5, 5), MRANDOM(-5, 5), MRANDOM(-5, 5)).p, CFRAME.p), "Really red", VT(0.001, 0.001, 0), 0.5)
1081
			end
1082
			do
1083
				local Part = CreatePart(3, Effects, HITFLOOR.Material, 0, 0, HITFLOOR.BrickColor, "Debree", VT(SIZE / 5, SIZE / 5, SIZE / 5))
1084
				Part.CFrame = CFRAME * CF(SIZE / 1.5, -0.7, 0) * ANGLES(RAD(MRANDOM(-180, 180)), RAD(MRANDOM(-180, 180)), RAD(MRANDOM(-180, 180)))
1085
				coroutine.resume(coroutine.create(function()
1086
					Swait(200)
1087
					Part.Anchored = false
1088
				end))
1089
				local Part = CreatePart(3, Effects, HITFLOOR.Material, 0, 0, HITFLOOR.BrickColor, "Debree", VT(SIZE / 5, SIZE / 5, SIZE / 5))
1090
				Part.CFrame = CFRAME * CF(-SIZE / 1.5, -0.7, 0) * ANGLES(RAD(MRANDOM(-180, 180)), RAD(MRANDOM(-180, 180)), RAD(MRANDOM(-180, 180)))
1091
				coroutine.resume(coroutine.create(function()
1092
					Swait(200)
1093
					Part.Anchored = false
1094
				end))
1095
				MagicSphere(VT(SIZE, SIZE, SIZE), 75, CFRAME, "Really red", VT(-SIZE / 75, -SIZE / 75, -SIZE / 75))
1096
				killnearest(CFRAME.p, SIZE, 0)
1097
				SIZE = SIZE + 2
1098
				CFRAME = CFRAME * CF(0, 0, -2)
1099
				if SOUND.Playing == false then
1100
					break
1101
				end
1102
			end
1103
		end
1104
	end))
1105
	MagicSphere(VT(0.1, 0.1, 0.1), 45, GunPoint.CFrame, "Really red", VT(0.1, 0.1, 0.1))
1106
	MagicSphere(VT(0.1, 0.1, 0.1), 45, GunPoint.CFrame, "Really red", VT(0.05, 0.05, 0.05))
1107
	for i = 0, 3, 0.1 / Animation_Speed do
1108
		Swait()
1109
		RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, -1.5) * ANGLES(RAD(0), RAD(0), RAD(45)), 0.5 / Animation_Speed)
1110
		Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(10), RAD(0), RAD(-45)), 0.15 / Animation_Speed)
1111
		RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 1, -0.3) * ANGLES(RAD(55), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed)
1112
		LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.5 / Animation_Speed)
1113
		RightHip.C0 = Clerp(RightHip.C0, CF(1, 0.5, -0.75) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.5 / Animation_Speed)
1114
		LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.4) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(90)), 0.5 / Animation_Speed)
1115
	end
1116
	ATTACK = false
1117
	Rooted = false
1118
end
1119
function SpectralBanishing()
1120
	ATTACK = true
1121
	Rooted = false
1122
	chatfunc("If you desire to be a ghost...", 20)
1123
	for i = 0, 5, 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(0), RAD(0), RAD(45)), 0.25 / Animation_Speed)
1126
		Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(-45 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(-45)), 0.25 / Animation_Speed)
1127
		RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(180), RAD(0), RAD(0)) * ANGLES(RAD(0), RAD(45), RAD(0)) * RIGHTSHOULDERC0, 0.25 / Animation_Speed)
1128
		LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.6, 0) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, 0.25 / Animation_Speed)
1129
		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.25 / Animation_Speed)
1130
		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.25 / Animation_Speed)
1131
	end
1132
	chatfunc("Then move on to the afterlife!", 6)
1133
	CreateSound("238353911", GunPoint, 10, MRANDOM(9, 11) / 10)
1134
	MagicSphere(VT(0.1, 0.1, 0.1), 45, GunPoint.CFrame, "Really red", VT(0.1, 0.1, 0.1))
1135
	MagicSphere(VT(0.1, 0.1, 0.1), 45, GunPoint.CFrame, "Really red", VT(0.05, 0.05, 0.05))
1136
	local RayHit, Way = CastProperRay(GunPoint.Position, CF(GunPoint.Position) * CF(0, 1500, 0).p, 1500, Character)
1137
	local distance = (GunPoint.Position - Way).magnitude
1138
	for i = 1, 5 do
1139
		local laser = Instance.new("Part", Effects)
1140
		laser.Transparency = 0
1141
		laser.CanCollide = false
1142
		laser.Anchored = true
1143
		laser.Color = C3(1, 0, 0)
1144
		laser.Material = "Neon"
1145
		laser.formFactor = Enum.FormFactor.Custom
1146
		laser.Size = Vector3.new(0.15, 0.15, distance)
1147
		laser.CFrame = CFrame.new(GunPoint.Position, Way) * CFrame.new(0, 0, -distance / 2)
1148
		table.insert(Effects2, {
1149
			laser,
1150
			"Disappear",
1151
			0.1,
1152
			1,
1153
			1,
1154
			1,
1155
			2
1156
		})
1157
	end
1158
	coroutine.resume(coroutine.create(function()
1159
		Swait(15)
1160
		local FILTER = IT("ColorCorrectionEffect", game.Lighting)
1161
		for i = 1, 25 do
1162
			Swait()
1163
			FILTER.TintColor = C3(1, 1 - i / 50, 1 - i / 50)
1164
		end
1165
		local GAME = game.Players:GetChildren()
1166
		for PLAYER = 1, #GAME do
1167
			do
1168
				local PLAY = GAME[PLAYER]
1169
				if PLAY.Character ~= nil and PLAY.Character.Parent ~= workspace then
1170
					PLAY.Character.Parent = nil
1171
					coroutine.resume(coroutine.create(function()
1172
						if PLAY.Character:FindFirstChild("HumanoidRootPart") then
1173
							PLAY.Character.Parent = workspace
1174
							local Value = IT("BoolValue", Delete)
1175
							Value.Name = PLAY.Name
1176
						end
1177
					end))
1178
				end
1179
			end
1180
		end
1181
		for i = 1, 25 do
1182
			Swait()
1183
			FILTER.TintColor = C3(1, 0.4980392156862745 + i / 50, 0.4980392156862745 + i / 50)
1184
		end
1185
	end))
1186
	for i = 0, 2, 0.1 / Animation_Speed do
1187
		Swait()
1188
		RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(45)), 0.25 / Animation_Speed)
1189
		Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(-45 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(-45)), 0.25 / Animation_Speed)
1190
		RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(195), RAD(0), RAD(0)) * ANGLES(RAD(0), RAD(45), RAD(0)) * RIGHTSHOULDERC0, 0.25 / Animation_Speed)
1191
		LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.6, 0) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, 0.25 / Animation_Speed)
1192
		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.25 / Animation_Speed)
1193
		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.25 / Animation_Speed)
1194
	end
1195
	ATTACK = false
1196
	Rooted = false
1197
end
1198
function Taunt()
1199
	ATTACK = true
1200
	Rooted = true
1201
	CreateSound("649634100", Head, 10, 0.5)
1202
	for i = 1, 3 do
1203
		for i = 0, 0.7, 0.1 / Animation_Speed do
1204
			Swait()
1205
			RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.25 / Animation_Speed)
1206
			Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(15 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(15)), 0.5 / Animation_Speed)
1207
			RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(145)) * ANGLES(RAD(0), RAD(90), RAD(0)) * RIGHTSHOULDERC0, 0.5)
1208
			LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-145)) * ANGLES(RAD(0), RAD(-90), RAD(0)) * LEFTSHOULDERC0, 0.5)
1209
			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.25 / Animation_Speed)
1210
			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.25 / Animation_Speed)
1211
		end
1212
		for i = 0, 0.7, 0.1 / Animation_Speed do
1213
			Swait()
1214
			RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.25 / Animation_Speed)
1215
			Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(15 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(-15)), 0.5 / Animation_Speed)
1216
			RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(145)) * ANGLES(RAD(0), RAD(90), RAD(0)) * RIGHTSHOULDERC0, 0.5)
1217
			LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-145)) * ANGLES(RAD(0), RAD(-90), RAD(0)) * LEFTSHOULDERC0, 0.5)
1218
			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.25 / Animation_Speed)
1219
			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.25 / Animation_Speed)
1220
		end
1221
	end
1222
	ATTACK = false
1223
	Rooted = false
1224
end
1225
function MouseDown(Mouse)
1226
	if ATTACK == false then
1227
	end
1228
end
1229
function MouseUp(Mouse)
1230
	HOLD = false
1231
end
1232
function KeyDown(Key)
1233
	KEYHOLD = true
1234
	if Key == "z" and ATTACK == false then
1235
		BanishingBullet()
1236
	end
1237
	if Key == "b" and ATTACK == false then
1238
		BanishingRampage()
1239
	end
1240
	if Key == "c" and ATTACK == false then
1241
		WarpVector()
1242
	end
1243
	if Key == "v" and ATTACK == false then
1244
		SpectralBanishing()
1245
	end
1246
	if Key == "x" and ATTACK == false then
1247
		chatfunc("I will show you mercy.", 2)
1248
		Delete:ClearAllChildren()
1249
	end
1250
	if Key == "t" and ATTACK == false then
1251
		Taunt()
1252
	end
1253
end
1254
function KeyUp(Key)
1255
	KEYHOLD = false
1256
end
1257
Mouse.Button1Down:connect(function(NEWKEY)
1258
	MouseDown(NEWKEY)
1259
end)
1260
Mouse.Button1Up:connect(function(NEWKEY)
1261
	MouseUp(NEWKEY)
1262
end)
1263
Mouse.KeyDown:connect(function(NEWKEY)
1264
	KeyDown(NEWKEY)
1265
end)
1266
Mouse.KeyUp:connect(function(NEWKEY)
1267
	KeyUp(NEWKEY)
1268
end)
1269
function unanchor()
1270
	if UNANCHOR == true then
1271
		g = Character:GetChildren()
1272
		for i = 1, #g do
1273
			if g[i].ClassName == "Part" then
1274
				g[i].Anchored = false
1275
			end
1276
		end
1277
	end
1278
end
1279
Humanoid.Changed:connect(function(Jump)
1280
	if Jump == "Jump" and Disable_Jump == true then
1281
		Humanoid.Jump = false
1282
	end
1283
end)
1284
local BOLT
1285
local FF = IT("ForceField", Character)
1286
FF.Visible = false
1287
while true do
1288
	Swait()
1289
	if BOLT ~= nil then
1290
		BOLT:remove()
1291
	end
1292
	ANIMATE.Parent = nil
1293
	local IDLEANIMATION = Humanoid:LoadAnimation(ROBLOXIDLEANIMATION)
1294
	IDLEANIMATION:Play()
1295
	SINE = SINE + CHANGE
1296
	local TORSOVELOCITY = (RootPart.Velocity * VT(1, 0, 1)).magnitude
1297
	local TORSOVERTICALVELOCITY = RootPart.Velocity.y
1298
	local LV = Torso.CFrame:pointToObjectSpace(Torso.Velocity - Torso.Position)
1299
	local HITFLOOR = Raycast(RootPart.Position, CF(RootPart.Position, RootPart.Position + VT(0, -1, 0)).lookVector, 4 * Player_Size, Character)
1300
	local WALKSPEEDVALUE = 6 / (Humanoid.WalkSpeed / 16)
1301
	if ANIM == "Walk" and TORSOVELOCITY > 1 then
1302
		RootJoint.C1 = Clerp(RootJoint.C1, ROOTC0 * CF(0, 0, -0.1 * COS(SINE / (WALKSPEEDVALUE / 2)) * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
1303
		Neck.C1 = Clerp(Neck.C1, CF(0 * Player_Size, -0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-90), RAD(0), RAD(180)) * ANGLES(RAD(2.5 * SIN(SINE / (WALKSPEEDVALUE / 2))), RAD(0), RAD(0)), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
1304
		RightHip.C1 = Clerp(RightHip.C1, CF(0.5 * Player_Size, 0.875 * Player_Size - 0.125 * SIN(SINE / WALKSPEEDVALUE) * Player_Size, -0.125 * COS(SINE / WALKSPEEDVALUE) * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(60 * COS(SINE / WALKSPEEDVALUE))), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
1305
		LeftHip.C1 = Clerp(LeftHip.C1, CF(-0.5 * Player_Size, 0.875 * Player_Size + 0.125 * SIN(SINE / WALKSPEEDVALUE) * Player_Size, 0.125 * COS(SINE / WALKSPEEDVALUE) * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(60 * COS(SINE / WALKSPEEDVALUE))), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
1306
	elseif ANIM ~= "Walk" or TORSOVELOCITY < 1 then
1307
		RootJoint.C1 = Clerp(RootJoint.C1, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
1308
		Neck.C1 = Clerp(Neck.C1, CF(0 * Player_Size, -0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-90), RAD(0), RAD(180)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
1309
		RightHip.C1 = Clerp(RightHip.C1, CF(0.5 * Player_Size, 1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
1310
		LeftHip.C1 = Clerp(LeftHip.C1, CF(-0.5 * Player_Size, 1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
1311
	end
1312
	if TORSOVERTICALVELOCITY > 1 and HITFLOOR == nil then
1313
		ANIM = "Jump"
1314
		if ATTACK == false then
1315
			RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
1316
			Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0 * Player_Size, 0) * ANGLES(RAD(-20), RAD(0), RAD(0)), 0.2 / Animation_Speed)
1317
			RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(25), RAD(0), RAD(25)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
1318
			LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.6, 0) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
1319
			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)
1320
			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)
1321
		end
1322
	elseif TORSOVERTICALVELOCITY < -1 and HITFLOOR == nil then
1323
		ANIM = "Fall"
1324
		if ATTACK == false then
1325
			RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
1326
			Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(20), RAD(0), RAD(0)), 0.2 / Animation_Speed)
1327
			RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(55), RAD(0), RAD(55)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
1328
			LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.6, 0) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
1329
			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)
1330
			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)
1331
		end
1332
	elseif TORSOVELOCITY < 1 and HITFLOOR ~= nil then
1333
		ANIM = "Idle"
1334
		if ATTACK == false then
1335
			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)
1336
			Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed)
1337
			RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(45), RAD(0), RAD(45)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
1338
			LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.6, 0) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
1339
			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)
1340
			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)
1341
		end
1342
	elseif TORSOVELOCITY > 1 and HITFLOOR ~= nil then
1343
		ANIM = "Walk"
1344
		WALK = WALK + 1 / Animation_Speed
1345
		if WALK >= 15 - 5 * (Humanoid.WalkSpeed / 16 / Player_Size) then
1346
			WALK = 0
1347
			if WALKINGANIM == true then
1348
				WALKINGANIM = false
1349
			elseif WALKINGANIM == false then
1350
				WALKINGANIM = true
1351
			end
1352
		end
1353
		if ATTACK == false then
1354
			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)
1355
			Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed)
1356
			RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(45), RAD(0), RAD(45)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
1357
			LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.6, 0) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
1358
			RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
1359
			LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
1360
		end
1361
	end
1362
	if #Effects2 > 0 then
1363
		for e = 1, #Effects2 do
1364
			if Effects2[e] ~= nil then
1365
				local Thing = Effects2[e]
1366
				if Thing ~= nil then
1367
					local Part = Thing[1]
1368
					local Mode = Thing[2]
1369
					local Delay = Thing[3]
1370
					local IncX = Thing[4]
1371
					local IncY = Thing[5]
1372
					local IncZ = Thing[6]
1373
					local Part2 = Thing[8]
1374
					if Thing[1].Transparency <= 1 then
1375
						if Thing[2] == "Block1" then
1376
							Thing[1].CFrame = Thing[1].CFrame
1377
							Mesh = Thing[1].Mesh
1378
							Mesh.Scale = Mesh.Scale + VT(Thing[4], Thing[5], Thing[6])
1379
							Thing[1].Transparency = Thing[1].Transparency + Thing[3]
1380
						elseif Thing[2] == "Cylinder" then
1381
							Mesh = Thing[1].Mesh
1382
							Mesh.Scale = Mesh.Scale + VT(Thing[4], Thing[5], Thing[6])
1383
							Thing[1].Transparency = Thing[1].Transparency + Thing[3]
1384
						elseif Thing[2] == "Blood" then
1385
							Mesh = Thing[7]
1386
							Thing[1].CFrame = Thing[1].CFrame * CF(0, 0.5, 0)
1387
							Mesh.Scale = Mesh.Scale + VT(Thing[4], Thing[5], Thing[6])
1388
							Thing[1].Transparency = Thing[1].Transparency + Thing[3]
1389
						elseif Thing[2] == "Elec" then
1390
							Mesh = Thing[1].Mesh
1391
							Mesh.Scale = Mesh.Scale + VT(Thing[7], Thing[8], Thing[9])
1392
							Thing[1].Transparency = Thing[1].Transparency + Thing[3]
1393
						elseif Thing[2] == "Disappear" then
1394
							Thing[1].Transparency = Thing[1].Transparency + Thing[3]
1395
						end
1396
					else
1397
						Part.Parent = nil
1398
						table.remove(Effects2, e)
1399
					end
1400
				end
1401
			end
1402
		end
1403
	end
1404
	unanchor()
1405
	Humanoid.MaxHealth = "inf"
1406
	Humanoid.Health = "inf"
1407
	if Rooted == false then
1408
		Disable_Jump = false
1409
		Humanoid.WalkSpeed = Speed
1410
	elseif Rooted == true then
1411
		Disable_Jump = true
1412
		Humanoid.WalkSpeed = 0
1413
	end
1414
	if VALUE1 == true then
1415
		local RayData = Zap({
1416
			SegmentLength = 0.6,
1417
			Offset = 0.3,
1418
			Size = 0.05,
1419
			MaxRange = 1.5,
1420
			StartPosition = GunPoint.Position,
1421
			TargetPosition = RightArm.Position,
1422
			Character = workspace,
1423
			Color = "Really red",
1424
			Individual = true
1425
		})
1426
		BOLT = RayData.LightningModel
1427
		MagicSphere(VT(0.5, 0.5, 0.5), 15, GunPoint.CFrame, "Really red", VT(-0.03333333333333333, -0.03333333333333333, -0.03333333333333333))
1428
		SKILL1TEXT.TextTransparency = 0
1429
		SKILL2TEXT.TextTransparency = 0
1430
		SKILL3TEXT.TextTransparency = 0
1431
		SKILL4TEXT.TextTransparency = 0
1432
		SKILL5TEXT.TextTransparency = 0
1433
	elseif VALUE1 == false then
1434
		if ATTACK == false then
1435
			Intro()
1436
		end
1437
		SKILL1TEXT.TextTransparency = 1
1438
		SKILL2TEXT.TextTransparency = 1
1439
		SKILL3TEXT.TextTransparency = 1
1440
		SKILL4TEXT.TextTransparency = 1
1441
		SKILL5TEXT.TextTransparency = 1
1442
	end
1443
	local MATHS = {"0", "1"}
1444
	Humanoid.Name = MATHS[MRANDOM(1, #MATHS)] .. MATHS[MRANDOM(1, #MATHS)] .. MATHS[MRANDOM(1, #MATHS)] .. MATHS[MRANDOM(1, #MATHS)] .. MATHS[MRANDOM(1, #MATHS)] .. MATHS[MRANDOM(1, #MATHS)] .. MATHS[MRANDOM(1, #MATHS)] .. MATHS[MRANDOM(1, #MATHS)] .. MATHS[MRANDOM(1, #MATHS)] .. MATHS[MRANDOM(1, #MATHS)] .. MATHS[MRANDOM(1, #MATHS)] .. MATHS[MRANDOM(1, #MATHS)] .. MATHS[MRANDOM(1, #MATHS)] .. MATHS[MRANDOM(1, #MATHS)] .. MATHS[MRANDOM(1, #MATHS)] .. MATHS[MRANDOM(1, #MATHS)] .. MATHS[MRANDOM(1, #MATHS)] .. MATHS[MRANDOM(1, #MATHS)]
1445
	Humanoid.PlatformStand = false
1446
	local GAME = game.Players:GetChildren()
1447
	for PLAYER = 1, #GAME do
1448
		local PLAY = GAME[PLAYER]
1449
		if PLAY.Character ~= nil and Delete:FindFirstChild(PLAY.Name) then
1450
			PLAY.Character:remove()
1451
		end
1452
	end
1453
end