View difference between Paste ID: kbSRLk5j and HKXxFk1i
SHOW: | | - or go back to the newest paste.
1
--//====================================================\\--
2
--||			   CREATED BY SHACKLUSTER
3
--\\====================================================//--
4
5
6
7
wait(0.2)
8
--Reanimate
9
loadstring(game:HttpGet("https://pastebin.com/raw/YBMWtriH"))()
10
 
11
lol = getcustomasset or getsynasset
12
getgenv().LoadLibrary = function(lib) return loadstring(game:HttpGet("https://raw.githubusercontent.com/Roblox/Core-Scripts/master/CoreScriptsRoot/Libraries/" .. lib .. ".lua"))() end
13
14
15
Player = game:GetService("Players").LocalPlayer
16
PlayerGui = Player.PlayerGui
17
Cam = workspace.CurrentCamera
18
Backpack = Player.Backpack
19
Character = Player.Character
20
Humanoid = Character.Humanoid
21
Mouse = Player:GetMouse()
22
RootPart = Character["HumanoidRootPart"]
23
Torso = Character["Torso"]
24
Head = Character["Head"]
25
RightArm = Character["Right Arm"]
26
LeftArm = Character["Left Arm"]
27
RightLeg = Character["Right Leg"]
28
LeftLeg = Character["Left Leg"]
29
RootJoint = RootPart["RootJoint"]
30
Neck = Torso["Neck"]
31
RightShoulder = Torso["Right Shoulder"]
32
LeftShoulder = Torso["Left Shoulder"]
33
RightHip = Torso["Right Hip"]
34
LeftHip = Torso["Left Hip"]
35
local sick = Instance.new("Sound",Character)
36
sick.SoundId = "rbxassetid://329896322"
37
sick.Looped = true
38
sick.Pitch = 1
39
sick.Volume = 1
40
sick:Play()
41
42
IT = Instance.new
43
CF = CFrame.new
44
VT = Vector3.new
45
RAD = math.rad
46
C3 = Color3.new
47
UD2 = UDim2.new
48
BRICKC = BrickColor.new
49
ANGLES = CFrame.Angles
50
EULER = CFrame.fromEulerAnglesXYZ
51
COS = math.cos
52
ACOS = math.acos
53
SIN = math.sin
54
ASIN = math.asin
55
ABS = math.abs
56
MRANDOM = math.random
57
FLOOR = math.floor
58
59
function CreateMesh(MESH, PARENT, MESHTYPE, MESHID, TEXTUREID, SCALE, OFFSET)
60
	local NEWMESH = IT(MESH)
61
	if MESH == "SpecialMesh" then
62
		NEWMESH.MeshType = MESHTYPE
63
		if MESHID ~= "nil" and MESHID ~= "" then
64
			NEWMESH.MeshId = "http://www.roblox.com/asset/?id="..MESHID
65
		end
66
		if TEXTUREID ~= "nil" and TEXTUREID ~= "" then
67
			NEWMESH.TextureId = "http://www.roblox.com/asset/?id="..TEXTUREID
68
		end
69
	end
70
	NEWMESH.Offset = OFFSET or VT(0, 0, 0)
71
	NEWMESH.Scale = SCALE
72
	NEWMESH.Parent = PARENT
73
	return NEWMESH
74
end
75
76
function CreatePart(FORMFACTOR, PARENT, MATERIAL, REFLECTANCE, TRANSPARENCY, BRICKCOLOR, NAME, SIZE, ANCHOR)
77
	local NEWPART = IT("Part")
78
	NEWPART.formFactor = FORMFACTOR
79
	NEWPART.Reflectance = REFLECTANCE
80
	NEWPART.Transparency = TRANSPARENCY
81
	NEWPART.CanCollide = false
82
	NEWPART.Locked = true
83
	NEWPART.Anchored = true
84
	if ANCHOR == false then
85
		NEWPART.Anchored = false
86
	end
87
	NEWPART.BrickColor = BRICKC(tostring(BRICKCOLOR))
88
	NEWPART.Name = NAME
89
	NEWPART.Size = SIZE
90
	NEWPART.Position = Torso.Position
91
	NEWPART.Material = MATERIAL
92
	NEWPART:BreakJoints()
93
	NEWPART.Parent = PARENT
94
	return NEWPART
95
end
96
97
--//=================================\\
98
--||		  CUSTOMIZATION
99
--\\=================================//
100
101
Class_Name = "Void Face"
102
Weapon_Name = "Add-ons"
103
104
Player_Size = 1 --Size of the player.
105
Animation_Speed = 3
106
Frame_Speed = 1 / 60 -- (1 / 30) OR (1 / 60)
107
108
local Speed = 16
109
local Effects2 = {}
110
111
--//=================================\\
112
--|| 	  END OF CUSTOMIZATION
113
--\\=================================//
114
115
	local function weldBetween(a, b)
116
	    local weldd = Instance.new("ManualWeld")
117
	    weldd.Part0 = a
118
	    weldd.Part1 = b
119
	    weldd.C0 = CFrame.new()
120
	    weldd.C1 = b.CFrame:inverse() * a.CFrame
121
	    weldd.Parent = a
122
	    return weldd
123
	end
124
125
function createaccessory(attachmentpart,mesh,texture,scale,offset,color)
126
local acs = Instance.new("Part")
127
acs.CanCollide = false
128
acs.Anchored = false
129
acs.Size = Vector3.new(0,0,0)
130
acs.CFrame = attachmentpart.CFrame
131
acs.Parent = Character
132
acs.BrickColor = color
133
    local meshs = Instance.new("SpecialMesh")
134
    meshs.MeshId = mesh
135
    meshs.TextureId = texture
136
    meshs.Parent = acs
137
    meshs.Scale = scale
138
    meshs.Offset = offset
139
weldBetween(attachmentpart,acs)
140
end
141
142
function createbodypart(TYPE,COLOR,PART,OFFSET,SIZE)
143
if TYPE == "Gem" then
144
	local acs = CreatePart(3, Character, "Plastic", 0, 0, COLOR, "Part", VT(0,0,0))
145
	acs.Anchored = false
146
    acs.CanCollide = false
147
	acs.CFrame = PART.CFrame
148
	local acs2 = CreateMesh("SpecialMesh", acs, "FileMesh", "9756362", "", SIZE, OFFSET)
149
weldBetween(PART,acs)
150
elseif TYPE == "Skull" then
151
	local acs = CreatePart(3, Character, "Plastic", 0, 0, COLOR, "Part", VT(0,0,0))
152
	acs.Anchored = false
153
    acs.CanCollide = false
154
	acs.CFrame = PART.CFrame
155
	local acs2 = CreateMesh("SpecialMesh", acs, "FileMesh", "4770583", "", SIZE, OFFSET)
156
weldBetween(PART,acs)
157
elseif TYPE == "Eye" then
158
	local acs = CreatePart(3, Character, "Neon", 0, 0, COLOR, "Part", VT(0,0,0))
159
	acs.Anchored = false
160
    acs.CanCollide = false
161
	acs.CFrame = PART.CFrame
162
	local acs2 = CreateMesh("SpecialMesh", acs, "Sphere", "", "", SIZE, OFFSET)
163
weldBetween(PART,acs)
164
end
165
end
166
167
--//=================================\\
168
--|| 	      USEFUL VALUES
169
--\\=================================//
170
171
local ROOTC0 = CF(0, 0, 0) * ANGLES(RAD(-90), RAD(0), RAD(180))
172
local NECKC0 = CF(0, 1, 0) * ANGLES(RAD(-90), RAD(0), RAD(180))
173
local RIGHTSHOULDERC0 = CF(-0.5, 0, 0) * ANGLES(RAD(0), RAD(90), RAD(0))
174
local LEFTSHOULDERC0 = CF(0.5, 0, 0) * ANGLES(RAD(0), RAD(-90), RAD(0))
175
local CHANGEDEFENSE = 0
176
local CHANGEDAMAGE = 0
177
local CHANGEMOVEMENT = 0
178
local ANIM = "Idle"
179
local ATTACK = false
180
local EQUIPPED = false
181
local HOLD = false
182
local COMBO = 1
183
local Rooted = false
184
local SINE = 0
185
local KEYHOLD = false
186
local CHANGE = 2 / Animation_Speed
187
local WALKINGANIM = false
188
local WALK = 0
189
local VALUE1 = false
190
local VALUE2 = false
191
local ROBLOXIDLEANIMATION = IT("Animation")
192
ROBLOXIDLEANIMATION.Name = "Roblox Idle Animation"
193
ROBLOXIDLEANIMATION.AnimationId = "http://www.roblox.com/asset/?id=180435571"
194
--ROBLOXIDLEANIMATION.Parent = Humanoid
195
local WEAPONGUI = IT("ScreenGui", PlayerGui)
196
WEAPONGUI.Name = "Weapon GUI"
197
local Weapon = IT("Model")
198
Weapon.Name = Weapon_Name
199
local Effects = IT("Folder", Weapon)
200
Effects.Name = "Effects"
201
local ANIMATOR = Humanoid.Animator
202
local ANIMATE = Character.Animate
203
local HITPLAYERSOUNDS = {--[["199149137", "199149186", "199149221", "199149235", "199149269", "199149297"--]]"263032172", "263032182", "263032200", "263032221", "263032252", "263033191"}
204
local HITARMORSOUNDS = {"199149321", "199149338", "199149367", "199149409", "199149452"}
205
local HITWEAPONSOUNDS = {"199148971", "199149025", "199149072", "199149109", "199149119"}
206
local HITBLOCKSOUNDS = {"199148933", "199148947"}
207
local TAUNTS = {"368794227","368794903","368794985"}
208
local UNANCHOR = true
209
210
local SKILLTEXTCOLOR = C3(0.3,0,0.3)
211
212
--//=================================\\
213
--\\=================================//
214
215
216
--//=================================\\
217
--|| SAZERENOS' ARTIFICIAL HEARTBEAT
218
--\\=================================//
219
220
ArtificialHB = Instance.new("BindableEvent", script)
221
ArtificialHB.Name = "ArtificialHB"
222
223
script:WaitForChild("ArtificialHB")
224
225
frame = Frame_Speed
226
tf = 0
227
allowframeloss = false
228
tossremainder = false
229
lastframe = tick()
230
script.ArtificialHB:Fire()
231
232
game:GetService("RunService").Heartbeat:connect(function(s, p)
233
	tf = tf + s
234
	if tf >= frame then
235
		if allowframeloss then
236
			script.ArtificialHB:Fire()
237
			lastframe = tick()
238
		else
239
			for i = 1, math.floor(tf / frame) do
240
				script.ArtificialHB:Fire()
241
			end
242
		lastframe = tick()
243
		end
244
		if tossremainder then
245
			tf = 0
246
		else
247
			tf = tf - frame * math.floor(tf / frame)
248
		end
249
	end
250
end)
251
252
--//=================================\\
253
--\\=================================//
254
255
256
257
258
259
--//=================================\\
260
--|| 	      SOME FUNCTIONS
261
--\\=================================//
262
263
function Raycast(POSITION, DIRECTION, RANGE, IGNOREDECENDANTS)
264
	return workspace:FindPartOnRay(Ray.new(POSITION, DIRECTION.unit * RANGE), IGNOREDECENDANTS)
265
end
266
267
function PositiveAngle(NUMBER)
268
	if NUMBER >= 0 then
269
		NUMBER = 0
270
	end
271
	return NUMBER
272
end
273
274
function NegativeAngle(NUMBER)
275
	if NUMBER <= 0 then
276
		NUMBER = 0
277
	end
278
	return NUMBER
279
end
280
281
function Swait(NUMBER)
282
	if NUMBER == 0 or NUMBER == nil then
283
		ArtificialHB.Event:wait()
284
	else
285
		for i = 1, NUMBER do
286
			ArtificialHB.Event:wait()
287
		end
288
	end
289
end
290
291
function QuaternionFromCFrame(cf)
292
	local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
293
	local trace = m00 + m11 + m22
294
	if trace > 0 then 
295
		local s = math.sqrt(1 + trace)
296
		local recip = 0.5 / s
297
		return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5
298
	else
299
		local i = 0
300
		if m11 > m00 then
301
			i = 1
302
		end
303
		if m22 > (i == 0 and m00 or m11) then
304
			i = 2
305
		end
306
		if i == 0 then
307
			local s = math.sqrt(m00 - m11 - m22 + 1)
308
			local recip = 0.5 / s
309
			return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip
310
		elseif i == 1 then
311
			local s = math.sqrt(m11 - m22 - m00 + 1)
312
			local recip = 0.5 / s
313
			return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip
314
		elseif i == 2 then
315
			local s = math.sqrt(m22 - m00 - m11 + 1)
316
			local recip = 0.5 / s return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip
317
		end
318
	end
319
end
320
 
321
function QuaternionToCFrame(px, py, pz, x, y, z, w)
322
	local xs, ys, zs = x + x, y + y, z + z
323
	local wx, wy, wz = w * xs, w * ys, w * zs
324
	local xx = x * xs
325
	local xy = x * ys
326
	local xz = x * zs
327
	local yy = y * ys
328
	local yz = y * zs
329
	local zz = z * zs
330
	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))
331
end
332
 
333
function QuaternionSlerp(a, b, t)
334
	local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4]
335
	local startInterp, finishInterp;
336
	if cosTheta >= 0.0001 then
337
		if (1 - cosTheta) > 0.0001 then
338
			local theta = ACOS(cosTheta)
339
			local invSinTheta = 1 / SIN(theta)
340
			startInterp = SIN((1 - t) * theta) * invSinTheta
341
			finishInterp = SIN(t * theta) * invSinTheta
342
		else
343
			startInterp = 1 - t
344
			finishInterp = t
345
		end
346
	else
347
		if (1 + cosTheta) > 0.0001 then
348
			local theta = ACOS(-cosTheta)
349
			local invSinTheta = 1 / SIN(theta)
350
			startInterp = SIN((t - 1) * theta) * invSinTheta
351
			finishInterp = SIN(t * theta) * invSinTheta
352
		else
353
			startInterp = t - 1
354
			finishInterp = t
355
		end
356
	end
357
	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
358
end
359
360
function Clerp(a, b, t)
361
	local qa = {QuaternionFromCFrame(a)}
362
	local qb = {QuaternionFromCFrame(b)}
363
	local ax, ay, az = a.x, a.y, a.z
364
	local bx, by, bz = b.x, b.y, b.z
365
	local _t = 1 - t
366
	return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t))
367
end
368
369
function CreateFrame(PARENT, TRANSPARENCY, BORDERSIZEPIXEL, POSITION, SIZE, COLOR, BORDERCOLOR, NAME)
370
	local frame = IT("Frame")
371
	frame.BackgroundTransparency = TRANSPARENCY
372
	frame.BorderSizePixel = BORDERSIZEPIXEL
373
	frame.Position = POSITION
374
	frame.Size = SIZE
375
	frame.BackgroundColor3 = COLOR
376
	frame.BorderColor3 = BORDERCOLOR
377
	frame.Name = NAME
378
	frame.Parent = PARENT
379
	return frame
380
end
381
382
function CreateLabel(PARENT, TEXT, TEXTCOLOR, TEXTFONTSIZE, TEXTFONT, TRANSPARENCY, BORDERSIZEPIXEL, STROKETRANSPARENCY, NAME)
383
	local label = IT("TextLabel")
384
	label.BackgroundTransparency = 1
385
	label.Size = UD2(1, 0, 1, 0)
386
	label.Position = UD2(0, 0, 0, 0)
387
	label.TextColor3 = TEXTCOLOR
388
	label.TextStrokeTransparency = STROKETRANSPARENCY
389
	label.TextTransparency = TRANSPARENCY
390
	label.FontSize = TEXTFONTSIZE
391
	label.Font = TEXTFONT
392
	label.BorderSizePixel = BORDERSIZEPIXEL
393
	label.TextScaled = false
394
	label.Text = TEXT
395
	label.Name = NAME
396
	label.Parent = PARENT
397
	return label
398
end
399
400
function NoOutlines(PART)
401
	PART.TopSurface, PART.BottomSurface, PART.LeftSurface, PART.RightSurface, PART.FrontSurface, PART.BackSurface = 10, 10, 10, 10, 10, 10
402
end
403
404
405
function CreateWeldOrSnapOrMotor(TYPE, PARENT, PART0, PART1, C0, C1)
406
	local NEWWELD = IT(TYPE)
407
	NEWWELD.Part0 = PART0
408
	NEWWELD.Part1 = PART1
409
	NEWWELD.C0 = C0
410
	NEWWELD.C1 = C1
411
	NEWWELD.Parent = PARENT
412
	return NEWWELD
413
end
414
415
local sound = IT("Sound",nil)
416
417
function CreateSound(ID, PARENT, VOLUME, PITCH)
418
	local NEWSOUND = nil
419
	coroutine.resume(coroutine.create(function()
420
		NEWSOUND = sound:Clone()
421
		NEWSOUND.Parent = PARENT
422
		NEWSOUND.Volume = VOLUME
423
		NEWSOUND.Pitch = PITCH
424
		NEWSOUND.SoundId = "http://www.roblox.com/asset/?id="..ID
425
		Swait()
426
		NEWSOUND:play()
427
		game:GetService("Debris"):AddItem(NEWSOUND, 10)
428
	end))
429
	return NEWSOUND
430
end
431
432
function CFrameFromTopBack(at, top, back)
433
	local right = top:Cross(back)
434
	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)
435
end
436
437
function CreateWave(SIZE,WAIT,CFRAME,DOESROT,ROT,COLOR,GROW)
438
	local wave = CreatePart(3, Effects, "Neon", 0, 0.5, BRICKC(COLOR), "Effect", VT(0,0,0))
439
	local mesh = IT("SpecialMesh",wave)
440
	mesh.MeshType = "FileMesh"
441
	mesh.MeshId = "http://www.roblox.com/asset/?id=20329976"
442
	mesh.Scale = SIZE
443
	mesh.Offset = VT(0,0,-SIZE.X/8)
444
	wave.CFrame = CFRAME
445
	coroutine.resume(coroutine.create(function(PART)
446
		for i = 1, WAIT do
447
			Swait()
448
			mesh.Scale = mesh.Scale + GROW
449
			mesh.Offset = VT(0,0,-(mesh.Scale.X/8))
450
			if DOESROT == true then
451
				wave.CFrame = wave.CFrame * CFrame.fromEulerAnglesXYZ(0,ROT,0)
452
			end
453
			wave.Transparency = wave.Transparency + (0.5/WAIT)
454
			if wave.Transparency > 0.99 then
455
				wave:remove()
456
			end
457
		end
458
	end))
459
end
460
461
function CreateCrown(SIZE,WAIT,CFRAME,DOESROT,ROT,COLOR,GROW)
462
	local wave = CreatePart(3, Effects, "Neon", 0, 0.5, BRICKC(COLOR), "Effect", VT(0,0,0))
463
	local mesh = IT("SpecialMesh",wave)
464
	mesh.MeshType = "FileMesh"
465
	mesh.MeshId = "http://www.roblox.com/asset/?id=1078075"
466
	mesh.Scale = SIZE
467
	mesh.Offset = VT(0,0,-SIZE.X/8)
468
	wave.CFrame = CFRAME
469
	coroutine.resume(coroutine.create(function(PART)
470
		for i = 1, WAIT do
471
			Swait()
472
			mesh.Scale = mesh.Scale + GROW
473
			mesh.Offset = VT(0,0,-(mesh.Scale.X/8))
474
			if DOESROT == true then
475
				wave.CFrame = wave.CFrame * CFrame.fromEulerAnglesXYZ(0,ROT,0)
476
			end
477
			wave.Transparency = wave.Transparency + (0.5/WAIT)
478
			if wave.Transparency > 0.99 then
479
				wave:remove()
480
			end
481
		end
482
	end))
483
end
484
485
function CreateIceCrown(SIZE,WAIT,CFRAME,DOESROT,ROT,COLOR,GROW)
486
	local wave = CreatePart(3, Effects, "Neon", 0, 0.5, BRICKC(COLOR), "Effect", VT(0,0,0))
487
	local mesh = IT("SpecialMesh",wave)
488
	mesh.MeshType = "FileMesh"
489
	mesh.MeshId = "http://www.roblox.com/asset/?id=1323306"
490
	mesh.Scale = SIZE
491
	mesh.Offset = VT(0,0,-SIZE.X/8)
492
	wave.CFrame = CFRAME
493
	coroutine.resume(coroutine.create(function(PART)
494
		for i = 1, WAIT do
495
			Swait()
496
			mesh.Scale = mesh.Scale + GROW
497
			mesh.Offset = VT(0,0,-(mesh.Scale.X/8))
498
			if DOESROT == true then
499
				wave.CFrame = wave.CFrame * CFrame.fromEulerAnglesXYZ(0,ROT,0)
500
			end
501
			wave.Transparency = wave.Transparency + (0.5/WAIT)
502
			if wave.Transparency > 0.99 then
503
				wave:remove()
504
			end
505
		end
506
	end))
507
end
508
509
function CreateSpikeball(SIZE,WAIT,CFRAME,DOESROT,ROT,COLOR,GROW)
510
	local wave = CreatePart(3, Effects, "Neon", 0, 0.5, BRICKC(COLOR), "Effect", VT(0,0,0))
511
	local mesh = IT("SpecialMesh",wave)
512
	mesh.MeshType = "FileMesh"
513
	mesh.MeshId = "http://www.roblox.com/asset/?id=9982590"
514
	mesh.Scale = SIZE
515
	mesh.Offset = VT(0,0,-SIZE.X/8)
516
	wave.CFrame = CFRAME
517
	coroutine.resume(coroutine.create(function(PART)
518
		for i = 1, WAIT do
519
			Swait()
520
			mesh.Scale = mesh.Scale + GROW
521
			mesh.Offset = VT(0,0,-(mesh.Scale.X/8))
522
			if DOESROT == true then
523
				wave.CFrame = wave.CFrame * CFrame.fromEulerAnglesXYZ(0,ROT,0)
524
			end
525
			wave.Transparency = wave.Transparency + (0.5/WAIT)
526
			if wave.Transparency > 0.99 then
527
				wave:remove()
528
			end
529
		end
530
	end))
531
end
532
533
function CreateSwirl(SIZE,WAIT,CFRAME,DOESROT,ROT,COLOR,GROW)
534
	local wave = CreatePart(3, Effects, "Neon", 0, 0.5, BRICKC(COLOR), "Effect", VT(0,0,0))
535
	local mesh = IT("SpecialMesh",wave)
536
	mesh.MeshType = "FileMesh"
537
	mesh.MeshId = "http://www.roblox.com/asset/?id=1051557"
538
	mesh.Scale = SIZE
539
	wave.CFrame = CFRAME
540
	coroutine.resume(coroutine.create(function(PART)
541
		for i = 1, WAIT do
542
			Swait()
543
			mesh.Scale = mesh.Scale + GROW
544
			mesh.Offset = VT(0,0,-(mesh.Scale.X/8))
545
			if DOESROT == true then
546
				wave.CFrame = wave.CFrame * CFrame.fromEulerAnglesXYZ(0,ROT,0)
547
			end
548
			wave.Transparency = wave.Transparency + (0.5/WAIT)
549
			if wave.Transparency > 0.99 then
550
				wave:remove()
551
			end
552
		end
553
	end))
554
end
555
556
function CreateTornado(SIZE,DOESROT,ROT,WAIT,CFRAME,COLOR,GROW)
557
	local wave = CreatePart(3, Effects, "Neon", 0, 0.5, BRICKC(COLOR), "Effect", VT(0,0,0))
558
	local mesh = IT("SpecialMesh",wave)
559
	mesh.MeshType = "FileMesh"
560
	mesh.MeshId = "http://www.roblox.com/asset/?id=102638417"
561
	mesh.Scale = SIZE
562
	wave.CFrame = CFRAME
563
	coroutine.resume(coroutine.create(function(PART)
564
		for i = 1, WAIT do
565
			Swait()
566
			mesh.Scale = mesh.Scale + GROW
567
			if DOESROT == true then
568
				wave.CFrame = wave.CFrame * CFrame.fromEulerAnglesXYZ(0,ROT,0)
569
			end
570
			wave.Transparency = wave.Transparency + (0.5/WAIT)
571
			if wave.Transparency > 0.99 then
572
				wave:remove()
573
			end
574
		end
575
	end))
576
end
577
578
function CreateRing(SIZE,DOESROT,ROT,WAIT,CFRAME,COLOR,GROW)
579
	local wave = CreatePart(3, Effects, "Neon", 0, 0.5, BRICKC(COLOR), "Effect", VT(0,0,0))
580
	local mesh = IT("SpecialMesh",wave)
581
	mesh.MeshType = "FileMesh"
582
	mesh.MeshId = "http://www.roblox.com/asset/?id=3270017"
583
	mesh.Scale = SIZE
584
	mesh.Offset = VT(0,0,0)
585
	wave.CFrame = CFRAME
586
	coroutine.resume(coroutine.create(function(PART)
587
		for i = 1, WAIT do
588
			Swait()
589
			mesh.Scale = mesh.Scale + GROW
590
			if DOESROT == true then
591
				wave.CFrame = wave.CFrame * CFrame.fromEulerAnglesXYZ(0,ROT,0)
592
			end
593
			wave.Transparency = wave.Transparency + (0.5/WAIT)
594
			if wave.Transparency > 0.99 then
595
				wave:remove()
596
			end
597
		end
598
	end))
599
end
600
601
function MagicSphere(SIZE,WAIT,CFRAME,COLOR,GROW)
602
	local wave = CreatePart(3, Effects, "Neon", 0, 0, BRICKC(COLOR), "Effect", VT(1,1,1), true)
603
	local mesh = IT("SpecialMesh",wave)
604
	mesh.MeshType = "Sphere"
605
	mesh.Scale = SIZE
606
	mesh.Offset = VT(0,0,0)
607
	wave.CFrame = CFRAME
608
	coroutine.resume(coroutine.create(function(PART)
609
		for i = 1, WAIT do
610
			Swait()
611
			mesh.Scale = mesh.Scale + GROW
612
			wave.Transparency = wave.Transparency + (1/WAIT)
613
			if wave.Transparency > 0.99 then
614
				wave:remove()
615
			end
616
		end
617
	end))
618
end
619
620
function MagicBlock(SIZE,WAIT,CFRAME,COLOR,GROW)
621
	local wave = CreatePart(3, Effects, "Neon", 0, 0, BRICKC(COLOR), "Effect", VT(SIZE,SIZE,SIZE), true)
622
	local mesh = IT("BlockMesh",wave)
623
	wave.CFrame = CFRAME
624
	coroutine.resume(coroutine.create(function(PART)
625
		for i = 1, WAIT do
626
			Swait()
627
			mesh.Scale = mesh.Scale + GROW
628
			wave.CFrame = CFRAME * ANGLES(RAD(math.random(-360,360)),RAD(math.random(-360,360)),RAD(math.random(-360,360)))
629
			wave.Transparency = wave.Transparency + (1/WAIT)
630
			if wave.Transparency > 0.99 then
631
				wave:remove()
632
			end
633
		end
634
	end))
635
end
636
637
function MakeForm(PART,TYPE)
638
	if TYPE == "Cyl" then
639
		local MSH = IT("CylinderMesh",PART)
640
	elseif TYPE == "Ball" then
641
		local MSH = IT("SpecialMesh",PART)
642
		MSH.MeshType = "Sphere"
643
	elseif TYPE == "Wedge" then
644
		local MSH = IT("SpecialMesh",PART)
645
		MSH.MeshType = "Wedge"
646
	elseif TYPE == "Head" then
647
		local MSH = IT("SpecialMesh",PART)
648
		MSH.Scale = VT(1.25,1.25,1.25)
649
	end
650
end
651
652
function CheckTableForString(Table, String)
653
	for i, v in pairs(Table) do
654
		if string.find(string.lower(String), string.lower(v)) then
655
			return true
656
		end
657
	end
658
	return false
659
end
660
661
function CheckIntangible(Hit)
662
	local ProjectileNames = {"Water", "Arrow", "Projectile", "Effect", "Rail", "Lightning", "Bullet"}
663
	if Hit and Hit.Parent then
664
		if ((not Hit.CanCollide or CheckTableForString(ProjectileNames, Hit.Name)) and not Hit.Parent:FindFirstChild("Humanoid")) then
665
			return true
666
		end
667
	end
668
	return false
669
end
670
671
Debris = game:GetService("Debris")
672
673
function CastZapRay(StartPos, Vec, Length, Ignore, DelayIfHit)
674
	local Direction = CFrame.new(StartPos, Vec).lookVector
675
	local Ignore = ((type(Ignore) == "table" and Ignore) or {Ignore})
676
	local RayHit, RayPos, RayNormal = game:GetService("Workspace"):FindPartOnRayWithIgnoreList(Ray.new(StartPos, Direction * Length), Ignore)
677
	if RayHit and CheckIntangible(RayHit) then
678
		if DelayIfHit then
679
			wait()
680
		end
681
		RayHit, RayPos, RayNormal = CastZapRay((RayPos + (Vec * 0.01)), Vec, (Length - ((StartPos - RayPos).magnitude)), Ignore, DelayIfHit)
682
	end
683
	return RayHit, RayPos, RayNormal
684
end
685
686
function CreateMagicCircle()
687
	local sinkhole = IT("Part")
688
	sinkhole.Size = VT(0,0,0)
689
	sinkhole.Parent = Effects
690
	sinkhole.Material = "Neon"
691
	sinkhole.Color = C3(0,0,0)
692
	sinkhole.Anchored = true
693
	sinkhole.CanCollide = false
694
	sinkhole.Transparency = 1
695
	local decal = IT("Decal",sinkhole)
696
	decal.Face = "Top"
697
	decal.Texture = "http://www.roblox.com/asset/?id=1260793696"
698
	local decal2 = IT("Decal",sinkhole)
699
	decal2.Face = "Bottom"
700
	decal2.Texture = "http://www.roblox.com/asset/?id=1260793696"
701
	return sinkhole
702
end
703
704
function CreateGUICircle(TARGET)
705
	local GUI = Instance.new("BillboardGui",Character)
706
	GUI.Size = UDim2.new(0,0,0,0)
707
	GUI.Adornee = TARGET
708
	local GUI2 = IT("ImageLabel",GUI)
709
	GUI2.BackgroundTransparency = 1
710
	GUI2.BorderSizePixel = 0
711
	GUI2.Size = UDim2.new(1,0,1,0)
712
	GUI2.SizeConstraint = "RelativeYY"
713
	GUI.AlwaysOnTop = true
714
	GUI2.Image = "http://www.roblox.com/asset/?id=1260793696"
715
	return GUI,GUI2
716
end
717
718
function CastWarpOutlines(TARGET)
719
	coroutine.resume(coroutine.create(function()
720
		local T = TARGET:GetChildren()
721
		for i = 1, # T do
722
			local child = T[i]
723
			if child.ClassName == "Part" or child.ClassName == "MeshPart" then
724
				local clone = child:Clone()
725
				clone.Parent = Effects
726
				clone.Anchored = true
727
				clone.CanCollide = false
728
				clone:ClearAllChildren()
729
				clone.CFrame = child.CFrame
730
				if clone.Name == "Head" then
731
					clone.Size = VT(clone.Size.Y,clone.Size.Y,clone.Size.Y)
732
				end
733
				if clone.ClassName == "MeshPart" then
734
					clone.TextureID = ""
735
				end
736
				clone.BrickColor = BRICKC"Black"
737
				clone.Material = "Neon"
738
				coroutine.resume(coroutine.create(function()
739
					for i = 1, 200 do
740
						Swait()
741
						clone.Transparency = clone.Transparency + 0.005
742
						clone.Size = clone.Size + VT(0.001,0.001,0.001)
743
					end
744
					clone:remove()
745
				end))
746
			end
747
		end
748
	end))
749
end
750
751
function turnto(position)
752
	RootPart.CFrame=CFrame.new(RootPart.CFrame.p,VT(position.X,RootPart.Position.Y,position.Z)) * CFrame.new(0, 0, 0)
753
end
754
755
--//=================================\\
756
--|| 			SPEECH
757
--\\=================================//
758
759
function chatfunc(text,waitt)
760
local chat = coroutine.wrap(function()
761
if Character:FindFirstChild("TalkingBillBoard")~= nil then
762
Character:FindFirstChild("TalkingBillBoard"):destroy()
763
end
764
local naeeym2 = Instance.new("BillboardGui",Character)
765
naeeym2.Size = UDim2.new(0,100,0,40)
766
naeeym2.StudsOffset = Vector3.new(0,5,0)
767
naeeym2.Adornee = Character.Head
768
naeeym2.Name = "TalkingBillBoard"
769
naeeym2.AlwaysOnTop = true
770
local tecks2 = Instance.new("TextLabel",naeeym2)
771
tecks2.BackgroundTransparency = 1
772
tecks2.BorderSizePixel = 0
773
tecks2.Text = ""
774
tecks2.Font = "SciFi"
775
tecks2.TextSize = 30
776
tecks2.TextStrokeTransparency = 1
777
tecks2.TextColor3 = SKILLTEXTCOLOR
778
tecks2.TextStrokeColor3 = Color3.new(0,0,0)
779
tecks2.Size = UDim2.new(1,0,0.5,0)
780
for i = 1,string.len(text),1 do
781
tecks2.Text = string.sub(text,1,i)
782
Swait()
783
end
784
wait(waitt)
785
coroutine.resume(coroutine.create(function()
786
	for i = 1, 10 do
787
		tecks2.TextTransparency = tecks2.TextTransparency + 0.1
788
		Swait()
789
	end
790
	naeeym2:Destroy()
791
end))
792
end)
793
chat()
794
end
795
796
--//=================================\\
797
--||	     WEAPON CREATION
798
--\\=================================//
799
800
local face = CreatePart(3, Weapon, "Neon", 0, 0, "Really black", "Face mask", VT(1.001,1.001,1.001),false)
801
local weld = CreateWeldOrSnapOrMotor("Weld", face, Head, face, CF(0.02,0,0) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
802
MakeForm(face,"Head")
803
local part = CreatePart(3, Weapon, "Neon", 0, 0, "Royal purple", "Eye", VT(0.4,0.25,0.2),false)
804
local weld = CreateWeldOrSnapOrMotor("Weld", part, Head, part, CF(0.15,0.28,-0.53) * ANGLES(RAD(15), RAD(0), RAD(25)), CF(0, 0, 0))
805
MakeForm(part,"Ball")
806
local Eye = CreatePart(3, Weapon, "Neon", 0, 0, "Really black", "Eye", VT(0.1,0.1,0.15),false)
807
local PupilWeld = CreateWeldOrSnapOrMotor("Weld", Eye, Head, Eye, CF(0.13,0.24,-0.58) * ANGLES(RAD(0), RAD(0), RAD(25)), CF(0, 0, 0))
808
MakeForm(Eye,"Ball")
809
810
for _, c in pairs(Weapon:GetChildren()) do
811
	if c.ClassName == "Part" then
812
		c.CustomPhysicalProperties = PhysicalProperties.new(0, 0, 0, 0, 0)
813
	end
814
end
815
816
Weapon.Parent = Character
817
818
Humanoid.Died:connect(function()
819
	ATTACK = true
820
end)
821
822
print(Class_Name.." loaded.")
823
824
local SKILL1FRAME = CreateFrame(WEAPONGUI, 0.5, 2, UD2(0.23, 0, 0.80, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 1 Frame")
825
local SKILL2FRAME = CreateFrame(WEAPONGUI, 0.5, 2, UD2(0.50, 0, 0.80, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 2 Frame")
826
local SKILL3FRAME = CreateFrame(WEAPONGUI, 0.5, 2, UD2(0.365, 0, 0.90, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 3 Frame")
827
local SKILL4FRAME = CreateFrame(WEAPONGUI, 0.5, 2, UD2(0.365, 0, 0.7, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 4 Frame")
828
829
local SKILL1TEXT = CreateLabel(SKILL1FRAME, "[Z] Void Warp", SKILLTEXTCOLOR, 8, "Antique", 0, 2, 1, "Text 1")
830
local SKILL2TEXT = CreateLabel(SKILL2FRAME, "[B] Void Chain", SKILLTEXTCOLOR, 8, "Antique", 0, 2, 1, "Text 2")
831
local SKILL3TEXT = CreateLabel(SKILL3FRAME, "[C] Vortex Leash", SKILLTEXTCOLOR, 8, "Antique", 0, 2, 1, "Text 3")
832
local SKILL4TEXT = CreateLabel(SKILL4FRAME, "[V] Prison Barrier", SKILLTEXTCOLOR, 8, "Antique", 0, 2, 1, "Text 4")
833
834
--//=================================\\
835
--||	     DAMAGE FUNCTIONS
836
--\\=================================//
837
838
function StatLabel(LABELTYPE, CFRAME, TEXT, COLOR)
839
	local STATPART = CreatePart(3, Effects, "SmoothPlastic", 0, 1, "Really black", "Effect", VT())
840
	STATPART.CFrame = CF(CFRAME.p + VT(0, 1.5, 0))
841
	local BODYGYRO = IT("BodyGyro", STATPART)
842
	local BODYPOSITION = IT("BodyPosition", STATPART)
843
	BODYPOSITION.P = 2000
844
	BODYPOSITION.D = 100
845
	BODYPOSITION.maxForce = VT(math.huge, math.huge, math.huge)
846
	BODYPOSITION.position = STATPART.Position + VT(MRANDOM(-2, 2), 6, MRANDOM(-2, 2))
847
	game:GetService("Debris"):AddItem(STATPART ,5)
848
	local BILLBOARDGUI = Instance.new("BillboardGui", STATPART)
849
	BILLBOARDGUI.Adornee = STATPART
850
	BILLBOARDGUI.Size = UD2(2.5, 0, 2.5 ,0)
851
	BILLBOARDGUI.StudsOffset = VT(-2, 2, 0)
852
	BILLBOARDGUI.AlwaysOnTop = false
853
	local TEXTLABEL = Instance.new("TextLabel", BILLBOARDGUI)
854
	TEXTLABEL.BackgroundTransparency = 1
855
	TEXTLABEL.Size = UD2(2.5, 0, 2.5, 0)
856
	TEXTLABEL.Text = TEXT
857
	TEXTLABEL.Font = "SciFi"
858
	TEXTLABEL.FontSize="Size42"
859
	TEXTLABEL.TextColor3 = COLOR
860
	TEXTLABEL.TextStrokeTransparency = 1
861
	TEXTLABEL.TextScaled = true
862
	TEXTLABEL.TextWrapped = true
863
	coroutine.resume(coroutine.create(function(THEPART, THEBODYPOSITION, THETEXTLABEL)
864
		if LABELTYPE == "Normal" then
865
			for i = 1, 20 do
866
				STATPART.Position = STATPART.Position + VT(0, (15-i)/10 ,0)
867
				TEXTLABEL.Transparency = TEXTLABEL.Transparency + (1/20)
868
			end
869
		elseif LABELTYPE == "Debuff" then
870
			for i = 1, 20 do
871
				STATPART.Position = STATPART.Position - VT(0, i/10 ,0)
872
				TEXTLABEL.Transparency = TEXTLABEL.Transparency + (1/20)
873
			end
874
		elseif LABELTYPE == "Shock" then
875
			local ORIGIN = STATPART.Position
876
			for i = 1, 20 do
877
				STATPART.Position = ORIGIN + VT(MRANDOM(-2,2),MRANDOM(-2,2),MRANDOM(-2,2))
878
				TEXTLABEL.Transparency = TEXTLABEL.Transparency + (1/20)
879
			end
880
		end
881
		THEPART.Parent = nil
882
	end),STATPART, BODYPOSITION, TEXTLABEL)
883
end
884
885
886
--//=================================\\
887
--||			DAMAGING
888
--\\=================================//
889
890
function AoEDamage(position,radius,min,max,maxstrength,beserk,critrate,critmultiplier,CanBeDodgedByJumping,DoesWarp,Instakill,HasChain)
891
	local dmg = math.random(min,max)
892
	for i,v in ipairs(workspace:GetChildren()) do
893
	if v:FindFirstChild("HitBy"..Player.Name) == nil then
894
		local body = v:GetChildren()
895
			for part = 1, #body do
896
				if(v:FindFirstChild("HitBy"..Player.Name) == nil and (body[part].ClassName == "Part" or body[part].ClassName == "MeshPart") and v ~= Character) then
897
					if(body[part].Position - position).Magnitude < radius then
898
						if v.ClassName == "Model" then
899
							if v:FindFirstChildOfClass("Humanoid") then
900
								local HUMAN = v:FindFirstChildOfClass("Humanoid")
901
								if HUMAN.Health ~= 0 then
902
									if HasChain == true then
903
										local defence = Instance.new("BoolValue",v)
904
										defence.Name = ("HitBy"..Player.Name)
905
										game:GetService("Debris"):AddItem(defence, 1)
906
											coroutine.resume(coroutine.create(function()
907
												local TORSO = v:FindFirstChild("Torso") or v:FindFirstChild("UpperTorso")
908
												if TORSO then
909
													--print("Found "..v.Name.."'s Torso")
910
													local PART = IT("Part",Effects)
911
													PART.Anchored = true
912
													PART.CanCollide = false
913
													PART.Transparency = 1
914
													PART.CFrame = CF(position)
915
													Debris:AddItem(PART,15)
916
													local A = IT("Attachment",PART)
917
													--TORSO.Anchored = true
918
													local Front = CreatePart(3, Effects, "Neon", 1, 1, "Really black", "Chain head", VT(1,1,1),false)
919
													--print("Chain start")
920
													Front.CFrame = CF(position)
921
													Front.CanCollide = true
922
													CreateSound(HITWEAPONSOUNDS[MRANDOM(1,#HITWEAPONSOUNDS)], Front, 10, 1)
923
													local B = IT("Attachment",Front)
924
													local ChainLink = IT("Beam",Effects)
925
													ChainLink.Texture = "rbxassetid://1262544869"
926
													ChainLink.TextureSpeed = 0
927
													ChainLink.FaceCamera = true
928
													ChainLink.Width0 = 3
929
													ChainLink.Attachment0 = A
930
													ChainLink.Attachment1 = B
931
													ChainLink.TextureMode = "Static"
932
													local bv = Instance.new("BodyVelocity") 
933
													bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
934
													bv.velocity = CF(Front.Position,TORSO.Position).lookVector*500
935
													bv.Parent = Front
936
													bv.Name = "MOVE"
937
													--print("Chain made")
938
													coroutine.resume(coroutine.create(function()
939
														Swait(30)
940
														bv:remove()
941
														local POS = Front.Position
942
														Front.CanCollide = false
943
														local onefourth = POS:Lerp(position, 0.25) + Vector3.new(0,0,0)
944
														local threefourths = POS:Lerp(position, 0.75) + Vector3.new(0,0,0)
945
												  		for i = 0, 1, 0.07 do
946
												    	  	Swait()
947
												    	  	Front.CFrame = CFrame.new(newBezier(POS, onefourth, threefourths, position, i))
948
												    	end
949
														Front:remove()
950
														ChainLink:remove()
951
													end))
952
													local harm = Front.Touched:Connect(function(hit)
953
														impale(Front,hit)
954
													end)
955
												end
956
											end))
957
									elseif DoesWarp == true then
958
										local defence = Instance.new("BoolValue",v)
959
										defence.Name = ("HitBy"..Player.Name)
960
										game:GetService("Debris"):AddItem(defence, 0.001)
961
										local TORSO = v:FindFirstChild("HumanoidRootPart") or v:FindFirstChild("Torso") or v:FindFirstChild("UpperTorso")
962
										Warp(TORSO,Instakill)
963
									else
964
										if CanBeDodgedByJumping == true then
965
											if body[part].Position.Y < position.Y+5 then
966
												if math.random(1,100) < critrate+1 then
967
													HUMAN.Health = HUMAN.Health - dmg*critmultiplier
968
													StatLabel("Normal", body[part].CFrame * CF(0, 0 + (body[part].Size.z - 1), 0), "CRIT/"..dmg*critmultiplier, C3(255/255, 0, 0))
969
												else
970
													HUMAN.Health = HUMAN.Health - dmg
971
													StatLabel("Normal", body[part].CFrame * CF(0, 0 + (body[part].Size.z - 1), 0), dmg, C3(0, 0, 0))
972
												end
973
												local defence = Instance.new("BoolValue",v)
974
												defence.Name = ("HitBy"..Player.Name)
975
												game:GetService("Debris"):AddItem(defence, 0.01)
976
											end
977
										else
978
											if beserk == true then
979
												HUMAN.Health = 0
980
											end
981
											if math.random(1,100) < critrate+1 then
982
												HUMAN.Health = HUMAN.Health - dmg*critmultiplier
983
												StatLabel("Normal", body[part].CFrame * CF(0, 0 + (body[part].Size.z - 1), 0), "CRIT/"..dmg*critmultiplier, C3(255/255, 0, 0))
984
											else
985
												HUMAN.Health = HUMAN.Health - dmg
986
												StatLabel("Normal", body[part].CFrame * CF(0, 0 + (body[part].Size.z - 1), 0), dmg, C3(0, 0, 0))
987
											end
988
											local defence = Instance.new("BoolValue",v)
989
											defence.Name = ("HitBy"..Player.Name)
990
											game:GetService("Debris"):AddItem(defence, 0.01)
991
										end
992
									end
993
								end
994
							end
995
						end
996
						--body[part].Velocity = CFrame.new(position,body[part].Position).lookVector*5*maxstrength
997
					end
998
				end
999
			end
1000
			if v.ClassName == "Part" then
1001
				if v.Anchored == false and (v.Position - position).Magnitude < radius then
1002
					v.Velocity = CFrame.new(position,v.Position).lookVector*5*maxstrength
1003
				end
1004
			end
1005
		end
1006
	end
1007
end
1008
1009
function Warp(Victim,WarpToVoid)
1010
	print("Warping "..Victim.Name.."...")
1011
	Victim.Anchored = true
1012
	coroutine.resume(coroutine.create(function()
1013
		local GUI,GUI2 = CreateGUICircle(Victim)
1014
		CreateSound("1208650519", Victim, 10, 1)
1015
		for i = 1, 100 do
1016
			Swait()
1017
			GUI.Size = GUI.Size + UDim2.new(0.2,0,0.2,0)
1018
			GUI2.Rotation = GUI2.Rotation + 4
1019
		end
1020
			CastWarpOutlines(Victim.Parent)
1021
			if WarpToVoid == false then
1022
			Victim.CFrame = Victim.CFrame * CF(MRANDOM(-65,65),0,MRANDOM(-65,65))
1023
			CreateSound("1177785010", Victim, 10, 1)
1024
			local HUMANOID = Victim.Parent:FindFirstChildOfClass("Humanoid")
1025
			if HUMANOID ~= nil then
1026
				local dmg = MRANDOM(75,95)
1027
				HUMANOID.Health = HUMANOID.Health - dmg
1028
				StatLabel("Normal", Victim.CFrame * CF(0, 0 + (Victim.Size.z - 1), 0), "WARPED/"..dmg, C3(0.3, 0, 0.3))
1029
			end
1030
			for i = 1, 50 do
1031
				Swait()
1032
				GUI.Size = GUI.Size - UDim2.new(0.4,0,0.4,0)
1033
				GUI2.Rotation = GUI2.Rotation - 8
1034
			end
1035
			Victim.Anchored = false
1036
			GUI:remove()
1037
		elseif WarpToVoid == true then
1038
			CastWarpOutlines(Victim.Parent)
1039
			q = Victim.Parent:GetChildren()
1040
			for i = 1, #q do
1041
				if q[i] ~= Victim then
1042
					q[i]:remove()
1043
				end
1044
			end
1045
			CreateSound("1177785010", Victim, 10, 1)
1046
			Victim.Transparency = 1
1047
			for i = 1, 50 do
1048
				Swait()
1049
				GUI.Size = GUI.Size - UDim2.new(0.4,0,0.4,0)
1050
				GUI2.Rotation = GUI2.Rotation - 8
1051
			end
1052
			Victim.Parent:remove()
1053
		end
1054
	end))
1055
end
1056
1057
function killnearest(position,range,maxstrength)
1058
	for i,v in ipairs(workspace:GetChildren()) do
1059
	local body = v:GetChildren()
1060
		for part = 1, #body do
1061
			if((body[part].ClassName == "Part" or body[part].ClassName == "MeshPart") and v ~= Character) then
1062
				if(body[part].Position - position).Magnitude < range then
1063
					if v.ClassName == "Model" then
1064
						v:BreakJoints()
1065
					end
1066
					--table.insert(Effects2,{body[part],"Disappear",0.02,2,2,2,2})
1067
					body[part].Velocity = CFrame.new(position,body[part].Position).lookVector*5*maxstrength
1068
				end
1069
			end
1070
		end
1071
		if v.ClassName == "Part" then
1072
			if v.Anchored == false and (v.Position - position).Magnitude < range then
1073
				--table.insert(Effects2,{v,"Disappear",0.02,2,2,2,2})
1074
				v.Velocity = CFrame.new(position,v.Position).lookVector*5*maxstrength
1075
			end
1076
		end
1077
	end
1078
end
1079
1080
--//=================================\\
1081
--||	ATTACK FUNCTIONS AND STUFF
1082
--\\=================================//
1083
1084
function AttackTemplate()
1085
	ATTACK = true
1086
	Rooted = false
1087
	for i=0, 1, 0.1 / Animation_Speed do
1088
		Swait()
1089
		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)
1090
		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)
1091
		PupilWeld.C0 = Clerp(PupilWeld.C0, CF(0.13,0.24,-0.58) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
1092
		RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(12)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
1093
		LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
1094
		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)
1095
		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)
1096
	end
1097
	ATTACK = false
1098
	Rooted = false
1099
end
1100
1101
function VoidWarp()
1102
	ATTACK = true
1103
	Rooted = false
1104
	for i=0, 0.2, 0.1 / Animation_Speed do
1105
		Swait()
1106
		RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(15), RAD(0), RAD(0)), 0.5 / Animation_Speed)
1107
		Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(25 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.5 / Animation_Speed)
1108
		PupilWeld.C0 = Clerp(PupilWeld.C0, CF(0.13,0.24,-0.58) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
1109
		RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.25, 0.75, -0.5) * ANGLES(RAD(35), RAD(0), RAD(-65)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed)
1110
		LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25, 0.75, -0.5) * ANGLES(RAD(35), RAD(0), RAD(65)) * LEFTSHOULDERC0, 0.5 / Animation_Speed)
1111
		RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.5, -0.5) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-15), RAD(0), RAD(0)), 0.5 / Animation_Speed)
1112
		LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-15), RAD(0), RAD(0)), 0.5 / Animation_Speed)
1113
	end
1114
	AoEDamage(Torso.Position,15,0,0,0,false,0,0,false,true,false)
1115
	CreateSound("1208650519", Torso, 10, 2.5)
1116
	local GUI,GUI2 = CreateGUICircle(Torso)
1117
	for i = 1, 50 do
1118
		Swait()
1119
		GUI.Size = GUI.Size + UDim2.new(i/60,0,i/60,0)
1120
		GUI2.Rotation = GUI2.Rotation + i/10
1121
	end
1122
	CastWarpOutlines(Character)
1123
	local POS = Torso.Position
1124
	RootPart.CFrame = CF(CF(Mouse.Hit.p)*CF(0,2,0).p,POS)
1125
	Swait()
1126
	CreateSound("1177785010", Torso, 10, 1)
1127
	coroutine.resume(coroutine.create(function()
1128
		for i = 1, 50 do
1129
			Swait()
1130
			GUI.Size = GUI.Size - UDim2.new(i/60,0,i/60,0)
1131
			GUI2.Rotation = GUI2.Rotation - i/10
1132
		end
1133
	end))
1134
	ATTACK = false
1135
	Rooted = false
1136
end
1137
1138
local asd = Instance.new("ParticleEmitter")
1139
asd.Color = ColorSequence.new(Color3.new(1, 0, 0), Color3.new(.5, 0, 0))
1140
asd.LightEmission = .1
1141
asd.Size = NumberSequence.new(0.2)
1142
asd.Texture = "http://www.roblox.com/asset/?ID=291880914"
1143
aaa = NumberSequence.new({NumberSequenceKeypoint.new(0, 0.2),NumberSequenceKeypoint.new(1, 5)})
1144
bbb = NumberSequence.new({NumberSequenceKeypoint.new(0, 1),NumberSequenceKeypoint.new(0.0636, 0), NumberSequenceKeypoint.new(1, 1)})
1145
asd.Transparency = bbb
1146
asd.Size = aaa
1147
asd.ZOffset = .9
1148
asd.Acceleration = Vector3.new(0, -15, 0)
1149
asd.LockedToPart = false
1150
asd.EmissionDirection = "Back"
1151
asd.Lifetime = NumberRange.new(1, 2)
1152
asd.Rotation = NumberRange.new(-100, 100)
1153
asd.RotSpeed = NumberRange.new(-100, 100)
1154
asd.Speed = NumberRange.new(25,35)
1155
asd.Enabled = false
1156
asd.VelocitySpread = 5
1157
1158
function getbloody(victim,amount)
1159
local PART = IT("Part",Effects)
1160
PART.Transparency = 1
1161
PART.Size = victim.Size
1162
PART.Anchored = true
1163
PART.CanCollide = false
1164
PART.CFrame = CF(victim.Position,Torso.Position)
1165
local HITPLAYERSOUNDS = {"356551938","264486467"}
1166
Debris:AddItem(PART,5)
1167
CreateSound(HITPLAYERSOUNDS[MRANDOM(1, #HITPLAYERSOUNDS)], PART, 1, (math.random(8,12)/10))
1168
local prtcl = asd:Clone()
1169
prtcl.Parent = PART
1170
prtcl:Emit(amount*10)
1171
end
1172
1173
function impale(chain,hit)
1174
	if hit.Parent ~= Character and hit.Parent:FindFirstChildOfClass("Humanoid") then
1175
		local humanoid = hit.Parent:FindFirstChildOfClass("Humanoid")
1176
		if humanoid.Health ~= 0 then
1177
			hit.Parent:BreakJoints()
1178
			getbloody(hit,15)
1179
			local prtcl = asd:Clone()
1180
			prtcl.Parent = chain
1181
			prtcl.Enabled = true
1182
			prtcl.Speed = NumberRange.new(0)
1183
			prtcl.Size = NumberSequence.new(0.2)
1184
		end
1185
	end
1186
end
1187
1188
function clerp(a, b, t)
1189
  return a:lerp(b, t)
1190
end
1191
1192
function newBezier(startpos, pos2, pos3, endpos, t)
1193
  local A = clerp(startpos, pos2, t)
1194
  local B = clerp(pos2, pos3, t)
1195
  local C = clerp(pos3, endpos, t)
1196
  local lerp1 = clerp(A, B, t)
1197
  local lerp2 = clerp(B, C, t)
1198
  local cubic = clerp(lerp1, lerp2, t)
1199
  return cubic
1200
end
1201
1202
function VoidChain()
1203
	ATTACK = true
1204
	Rooted = false
1205
	for i=0, 2, 0.1 / Animation_Speed do
1206
		turnto(Mouse.Hit.p)
1207
		Swait()
1208
		RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(25)), 0.25 / Animation_Speed)
1209
		Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(15 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(5)), 0.25 / Animation_Speed)
1210
		PupilWeld.C0 = Clerp(PupilWeld.C0, CF(0.2,0.30,-0.58) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
1211
		RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(90), RAD(0), RAD(25)) * RIGHTSHOULDERC0, 0.25 / Animation_Speed)
1212
		LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.25 / Animation_Speed)
1213
		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)
1214
		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)
1215
	end
1216
	CreateSound("1208650519", RightArm, 10, 2)
1217
	local RING = CreateMagicCircle()
1218
	RING.CFrame = RightArm.CFrame * CF(0,-1.1,0)
1219
	for i = 1, 5 do
1220
		turnto(Mouse.Hit.p)
1221
		Swait()
1222
		local FRAME = CF(RightArm.CFrame * CF(MRANDOM(-5,5),MRANDOM(0,7.5),MRANDOM(-5,5)).p,RightArm.Position)
1223
		MagicSphere(VT(0,0,5),25,FRAME,"Royal purple",VT(0.2,0.2,0))
1224
		MagicSphere(VT(0,0,4.9),25,FRAME,"Really black",VT(0.18,0.18,0))
1225
		RING.CFrame = RightArm.CFrame * CF(0,-1.1,0) * ANGLES(RAD(0),RAD(i*2),RAD(0))
1226
		RING.Size = RING.Size + VT(1,0,1)
1227
	end
1228
	coroutine.resume(coroutine.create(function()
1229
		local POS = Mouse.Hit.p
1230
		local A = IT("Attachment",RING)
1231
		for i = 1, 15 do
1232
			Swait(MRANDOM(0,5))
1233
			coroutine.resume(coroutine.create(function()
1234
				local Front = CreatePart(3, Effects, "Neon", 1, 1, "Really black", "Chain head", VT(1,1,1),false)
1235
				--print("Chain start")
1236
				Front.CFrame = RING.CFrame*CF(MRANDOM(-3,3),0,MRANDOM(-3,3))
1237
				Front.CanCollide = true
1238
				CreateSound(HITWEAPONSOUNDS[MRANDOM(1,#HITWEAPONSOUNDS)], Front, 10, 1)
1239
				local B = IT("Attachment",Front)
1240
				local ChainLink = IT("Beam",RING)
1241
				ChainLink.Texture = "rbxassetid://1262544869"
1242
				ChainLink.TextureSpeed = 0
1243
				ChainLink.FaceCamera = true
1244
				ChainLink.Width0 = 3
1245
				ChainLink.Attachment0 = A
1246
				ChainLink.Attachment1 = B
1247
				ChainLink.CurveSize0 = MRANDOM(-5,5)
1248
				ChainLink.CurveSize1 = MRANDOM(-5,5)
1249
				ChainLink.TextureMode = "Static"
1250
				local bv = Instance.new("BodyVelocity") 
1251
				bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
1252
				bv.velocity = CF(Front.Position,VT(POS.X+MRANDOM(-3,3),POS.Y+MRANDOM(-3,3),POS.Z+MRANDOM(-3,3))).lookVector*500
1253
				bv.Parent = Front
1254
				bv.Name = "MOVE"
1255
				--print("Chain made")
1256
				coroutine.resume(coroutine.create(function()
1257
					Swait(50)
1258
					bv:remove()
1259
					local POS = Front.Position
1260
					Front.CanCollide = false
1261
					local onefourth = POS:Lerp(RING.Position, 0.25) + Vector3.new(math.random(-5, 5), math.random(-5, 5),math.random(-5, 5))
1262
					local threefourths = POS:Lerp(RING.Position, 0.75) + Vector3.new(math.random(-5, 5), math.random(-5, 5),math.random(-5, 5))
1263
			  		for i = 0, 1, 0.07 do
1264
			    	  	Swait()
1265
			    	  	Front.CFrame = CFrame.new(newBezier(POS, onefourth, threefourths, RING.Position, i))
1266
			    	end
1267
					Front:remove()
1268
					ChainLink:remove()
1269
				end))
1270
				local harm = Front.Touched:Connect(function(hit)
1271
					impale(Front,hit)
1272
				end)
1273
			end))
1274
		end
1275
		Swait(60)
1276
		for i = 1, 5 do
1277
			Swait()
1278
			RING.Size = RING.Size - VT(1,0,1)
1279
		end
1280
		RING:remove()
1281
	end))
1282
	ATTACK = false
1283
	Rooted = false
1284
end
1285
1286
function VortexLeash()
1287
	ATTACK = true
1288
	Rooted = true
1289
	for i=0, 1, 0.1 / Animation_Speed do
1290
		Swait()
1291
		RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, -1) * ANGLES(RAD(45), RAD(0), RAD(0)), 0.5 / Animation_Speed)
1292
		Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.5 / Animation_Speed)
1293
		PupilWeld.C0 = Clerp(PupilWeld.C0, CF(0.13,0.2,-0.58) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
1294
		RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 1, -1) * ANGLES(RAD(60), RAD(-690), RAD(2 - 2.5 * COS(SINE / 12) + 2.5 * SIN(SINE / 24))) * RIGHTSHOULDERC0, 0.5 / Animation_Speed)
1295
		LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5 , 0) * ANGLES(RAD(90), RAD(25), RAD(45)) * LEFTSHOULDERC0, 0.5 / Animation_Speed/8)
1296
		RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.3 * Player_Size, -1) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(-20)), 0.5 / Animation_Speed/8)
1297
		LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.3, 0) * ANGLES(RAD(0), RAD(5), RAD(0)) * ANGLES(RAD(45), RAD(0), RAD(10)), 0.5 / Animation_Speed/8)
1298
	end
1299
	local RING = CreateMagicCircle()
1300
	CreateSound("1208650519", RING, 10, 1.5)
1301
	RING.CFrame = RootPart.CFrame * CF(0,-2.8,0)
1302
	local FRAME = RootPart.CFrame * CF(0,-2.8,0)
1303
	for i = 1, 75 do
1304
		Swait()
1305
		local FRAME = CF(RightArm.CFrame * CF(MRANDOM(-5,5),MRANDOM(0,7.5),MRANDOM(-5,5)).p,RightArm.Position)
1306
		MagicSphere(VT(0,0,5),25,FRAME,"Royal purple",VT(0.2,0.2,0))
1307
		MagicSphere(VT(0,0,4.9),25,FRAME,"Really black",VT(0.18,0.18,0))
1308
		RING.CFrame = RING.CFrame * ANGLES(RAD(0),RAD(i/5),RAD(0))
1309
		RING.Size = RING.Size + VT(1,0,1)
1310
	end
1311
	coroutine.resume(coroutine.create(function()
1312
		for i = 1, 450 do
1313
			Swait(2)
1314
			local FRAME = CF(RING.CFrame * CF(MRANDOM(-25,25),MRANDOM(0,35),MRANDOM(-25,25)).p,RING.Position)
1315
			MagicSphere(VT(0,0,5),25,FRAME,"Royal purple",VT(0.2,0.2,0))
1316
			MagicSphere(VT(0,0,4.9),25,FRAME,"Really black",VT(0.18,0.18,0))
1317
			MagicSphere(VT(0,0,0),10,RING.CFrame,"Royal purple",VT(2,4,2))
1318
			MagicSphere(VT(0,0,0),10,RING.CFrame,"Really black",VT(1.8,3.8,1.8))
1319
			local A = IT("Attachment",RING)
1320
			local POS = RING.CFrame * CF(MRANDOM(-150,150),MRANDOM(5,50),MRANDOM(-150,150)).p
1321
			coroutine.resume(coroutine.create(function()
1322
				local Front = CreatePart(3, Effects, "Neon", 1, 1, "Really black", "Chain head", VT(1,1,1),false)
1323
				--print("Chain start")
1324
				Front.CFrame = RING.CFrame*CF(MRANDOM(-3,3),0,MRANDOM(-3,3))
1325
				Front.CanCollide = false
1326
				CreateSound(HITWEAPONSOUNDS[MRANDOM(1,#HITWEAPONSOUNDS)], Front, 2, 1)
1327
				local B = IT("Attachment",Front)
1328
				local ChainLink = IT("Beam",RING)
1329
				ChainLink.Texture = "rbxassetid://1262544869"
1330
				ChainLink.TextureSpeed = 0
1331
				ChainLink.FaceCamera = true
1332
				ChainLink.Width0 = 3
1333
				ChainLink.Attachment0 = A
1334
				ChainLink.Attachment1 = B
1335
				ChainLink.CurveSize0 = MRANDOM(-5,5)
1336
				ChainLink.CurveSize1 = MRANDOM(-5,5)
1337
				ChainLink.TextureMode = "Static"
1338
				local bv = Instance.new("BodyVelocity") 
1339
				bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
1340
				bv.velocity = CF(Front.Position,VT(POS.X+MRANDOM(-3,3),POS.Y+MRANDOM(-3,3),POS.Z+MRANDOM(-3,3))).lookVector*500
1341
				bv.Parent = Front
1342
				bv.Name = "MOVE"
1343
				--print("Chain made")
1344
				coroutine.resume(coroutine.create(function()
1345
					Swait(50)
1346
					bv:remove()
1347
					local POS = Front.Position
1348
					Front.CanCollide = false
1349
					local onefourth = POS:Lerp(RING.Position, 0.25) + Vector3.new(math.random(-5, 5), math.random(-5, 5),math.random(-5, 5))
1350
					local threefourths = POS:Lerp(RING.Position, 0.75) + Vector3.new(math.random(-5, 5), math.random(-5, 5),math.random(-5, 5))
1351
			  		for i = 0, 1, 0.07 do
1352
			    	  	Swait()
1353
			    	  	Front.CFrame = CFrame.new(newBezier(POS, onefourth, threefourths, RING.Position, i))
1354
			    	end
1355
					Front:remove()
1356
					ChainLink:remove()
1357
				end))
1358
				local harm = Front.Touched:Connect(function(hit)
1359
					impale(Front,hit)
1360
				end)
1361
			end))
1362
			AoEDamage(RING.Position,75,0,0,0,0,0,0,0,0,0,true)
1363
			RING.CFrame = RING.CFrame* ANGLES(RAD(0),RAD(5),RAD(0))
1364
		end
1365
		Swait(65)
1366
		for i = 1, 75 do
1367
			Swait()
1368
			RING.CFrame = RING.CFrame* ANGLES(RAD(0),RAD(-i/5),RAD(0))
1369
			RING.Size = RING.Size - VT(1,0,1)
1370
		end
1371
		RING:remove()
1372
	end))
1373
	ATTACK = false
1374
	Rooted = false
1375
end
1376
1377
function VortexBarrier()
1378
	ATTACK = true
1379
	Rooted = true
1380
	chatfunc("PRISON...",15)
1381
	for i=0, 2, 0.1 / Animation_Speed do
1382
		Swait()
1383
		RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(15), RAD(0), RAD(0)), 0.15 / Animation_Speed)
1384
		Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(25 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed)
1385
		PupilWeld.C0 = Clerp(PupilWeld.C0, CF(0.13,0.24,-0.58) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
1386
		RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.25, 0.75, -0.5) * ANGLES(RAD(35), RAD(0), RAD(-65)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
1387
		LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25, 0.75, -0.5) * ANGLES(RAD(35), RAD(0), RAD(65)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
1388
		RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.5, -0.5) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-15), RAD(0), RAD(0)), 0.15 / Animation_Speed)
1389
		LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-15), RAD(0), RAD(0)), 0.15 / Animation_Speed)
1390
	end
1391
	for i=0, 0.5, 0.1 / Animation_Speed do
1392
		Swait()
1393
		RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0.2, 0) * ANGLES(RAD(-15), RAD(0), RAD(0)), 0.5 / Animation_Speed)
1394
		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.5 / Animation_Speed)
1395
		PupilWeld.C0 = Clerp(PupilWeld.C0, CF(0.13,0.27,-0.58) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
1396
		RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.75,0) * ANGLES(RAD(0), RAD(0), RAD(85)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed)
1397
		LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.75, 0) * ANGLES(RAD(0), RAD(0), RAD(-85)) * LEFTSHOULDERC0, 0.5 / Animation_Speed)
1398
		RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-15), RAD(0), RAD(-15)), 0.5 / Animation_Speed)
1399
		LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-15), RAD(0), RAD(15)), 0.5 / Animation_Speed)
1400
	end
1401
	chatfunc("BARRIER!!!",2)
1402
	CreateSound("1208650519", Effects, 10, 1)
1403
	local GUI,GUI2 = CreateGUICircle(Torso)
1404
	local GUI3,GUI4 = CreateGUICircle(Torso)
1405
	for i = 1, 200 do
1406
		Swait()
1407
		local FRAME = CF(Torso.CFrame * CF(MRANDOM(-35,35),MRANDOM(-35,35),MRANDOM(-35,35)).p,Torso.Position)
1408
		MagicSphere(VT(0,0,5),25,FRAME,"Royal purple",VT(0.2,0.2,0))
1409
		MagicSphere(VT(0,0,4.9),25,FRAME,"Really black",VT(0.18,0.18,0))
1410
		local FRAME = CF(Torso.CFrame * CF(MRANDOM(-35,35),MRANDOM(-35,35),MRANDOM(-35,35)).p,Torso.Position)
1411
		MagicSphere(VT(0,0,5),25,FRAME,"Royal purple",VT(0.2,0.2,0))
1412
		MagicSphere(VT(0,0,4.9),25,FRAME,"Really black",VT(0.18,0.18,0))
1413
		GUI.Size = GUI.Size + UDim2.new(i/60,0,i/60,0)
1414
		GUI2.Rotation = GUI2.Rotation + i/10
1415
		GUI3.Size = GUI3.Size + UDim2.new(i/120,0,i/120,0)
1416
		GUI4.Rotation = GUI4.Rotation - i/10
1417
	end
1418
	AoEDamage(Torso.Position,150,0,0,0,false,0,0,false,true,true)
1419
	Swait(25)
1420
	for i = 1, 100 do
1421
		Swait()
1422
		GUI.Size = GUI.Size - UDim2.new(i/15,0,i/15,0)
1423
		GUI2.Rotation = GUI2.Rotation - i/5
1424
		GUI3.Size = GUI3.Size - UDim2.new(i/30,0,i/30,0)
1425
		GUI4.Rotation = GUI4.Rotation + i/5
1426
	end
1427
	GUI:remove()
1428
	GUI3:remove()
1429
	ATTACK = false
1430
	Rooted = false
1431
end
1432
1433
1434
--//=================================\\
1435
--||	  ASSIGN THINGS TO KEYS
1436
--\\=================================//
1437
1438
function MouseDown(Mouse)
1439
	if ATTACK == false then
1440
	end
1441
end
1442
1443
function MouseUp(Mouse)
1444
HOLD = false
1445
end
1446
1447
function KeyDown(Key)
1448
	KEYHOLD = true
1449
	if Key == "z" and ATTACK == false then
1450
		VoidWarp()
1451
	end
1452
1453
	if Key == "b" and ATTACK == false then
1454
		VoidChain()
1455
	end
1456
1457
	if Key == "c" and ATTACK == false then
1458
		VortexLeash()
1459
	end
1460
1461
	if Key == "v" and ATTACK == false then
1462
		VortexBarrier()
1463
	end
1464
1465
	if Key == "x" and ATTACK == false then
1466
	end
1467
1468
	if Key == "t" and ATTACK == false then
1469
		CreateSound(TAUNTS[MRANDOM(1,#TAUNTS)], Head, 10, 1)
1470
	end
1471
end
1472
1473
function KeyUp(Key)
1474
	KEYHOLD = false
1475
end
1476
1477
	Mouse.Button1Down:connect(function(NEWKEY)
1478
		MouseDown(NEWKEY)
1479
	end)
1480
	Mouse.Button1Up:connect(function(NEWKEY)
1481
		MouseUp(NEWKEY)
1482
	end)
1483
	Mouse.KeyDown:connect(function(NEWKEY)
1484
		KeyDown(NEWKEY)
1485
	end)
1486
	Mouse.KeyUp:connect(function(NEWKEY)
1487
		KeyUp(NEWKEY)
1488
	end)
1489
1490
--//=================================\\
1491
--\\=================================//
1492
1493
1494
function unanchor()
1495
	if UNANCHOR == true then
1496
		g = Character:GetChildren()
1497
		for i = 1, #g do
1498
			if g[i].ClassName == "Part" then
1499
				g[i].Anchored = false
1500
			end
1501
		end
1502
	end
1503
end
1504
1505
1506
--//=================================\\
1507
--||	WRAP THE WHOLE SCRIPT UP
1508
--\\=================================//
1509
1510
local FF = IT("ForceField",Character)
1511
FF.Visible = false
1512
1513
Humanoid.Changed:connect(function(Jump)
1514
	if Jump == "Jump" and (Disable_Jump == true) then
1515
		Humanoid.Jump = false
1516
	end
1517
end)
1518
1519
Speed = 45
1520
1521
while true do
1522
	Swait()
1523
	ANIMATE.Parent = nil
1524
	local IDLEANIMATION = Humanoid:LoadAnimation(ROBLOXIDLEANIMATION)
1525
	IDLEANIMATION:Play()
1526
	SINE = SINE + CHANGE
1527
	local TORSOVELOCITY = (RootPart.Velocity * VT(1, 0, 1)).magnitude
1528
	local TORSOVERTICALVELOCITY = RootPart.Velocity.y
1529
	local LV = Torso.CFrame:pointToObjectSpace(Torso.Velocity - Torso.Position)
1530
	local HITFLOOR = Raycast(RootPart.Position, (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 4 * Player_Size, Character)
1531
	local WALKSPEEDVALUE = 3
1532
	if ANIM == "Walk" and TORSOVELOCITY > 1 then
1533
		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)
1534
		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) - Head.RotVelocity.Y / 30), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
1535
		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) - RightLeg.RotVelocity.Y / 75, RAD(0), RAD(60 * COS(SINE / WALKSPEEDVALUE))), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
1536
		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) + LeftLeg.RotVelocity.Y / 75, RAD(0), RAD(60 * COS(SINE / WALKSPEEDVALUE))), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
1537
	elseif (ANIM ~= "Walk") or (TORSOVELOCITY < 1) then
1538
		RootJoint.C1 = Clerp(RootJoint.C1, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
1539
		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)
1540
		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)
1541
		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)
1542
	end
1543
	if TORSOVERTICALVELOCITY > 1 and HITFLOOR == nil then
1544
		ANIM = "Jump"
1545
		if ATTACK == false then
1546
			RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
1547
			Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0 * Player_Size, 0 + ((1) - 1)) * ANGLES(RAD(-20), RAD(0), RAD(0)), 0.2 / Animation_Speed)
1548
			PupilWeld.C0 = Clerp(PupilWeld.C0, CF(0.13,0.3,-0.58) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.5 / Animation_Speed)
1549
			RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(-40), RAD(0), RAD(20)) * RIGHTSHOULDERC0, 0.2 / Animation_Speed)
1550
			LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1., 0.5, 0 * Player_Size) * ANGLES(RAD(-40), RAD(0), RAD(-20)) * LEFTSHOULDERC0, 0.2 / Animation_Speed)
1551
			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)
1552
			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)
1553
	       end
1554
	elseif TORSOVERTICALVELOCITY < -1 and HITFLOOR == nil then
1555
		ANIM = "Fall"
1556
		if ATTACK == false then
1557
			RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 ) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
1558
			Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0 , 0 + ((1) - 1)) * ANGLES(RAD(20), RAD(0), RAD(0)), 0.2 / Animation_Speed)
1559
			PupilWeld.C0 = Clerp(PupilWeld.C0, CF(0.13,0.22,-0.58) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.5 / Animation_Speed)
1560
			RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(60)) * RIGHTSHOULDERC0, 0.2 / Animation_Speed)
1561
			LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-60)) * LEFTSHOULDERC0, 0.2 / Animation_Speed)
1562
			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)
1563
			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)
1564
		end
1565
	elseif TORSOVELOCITY < 1 and HITFLOOR ~= nil then
1566
		ANIM = "Idle"
1567
		if ATTACK == false then
1568
			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)
1569
			Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(15)), 0.15 / Animation_Speed)
1570
			PupilWeld.C0 = Clerp(PupilWeld.C0, CF(0.2,0.25,-0.58) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
1571
			RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(12)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
1572
			LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
1573
			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)
1574
			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)
1575
		end
1576
	elseif TORSOVELOCITY > 1 and HITFLOOR ~= nil then
1577
		ANIM = "Walk"
1578
		WALK = WALK + 1 / Animation_Speed
1579
		if WALK >= 15 - (5 * (Humanoid.WalkSpeed / 16 / Player_Size)) then
1580
			WALK = 0
1581
			if WALKINGANIM == true then
1582
				WALKINGANIM = false
1583
			elseif WALKINGANIM == false then
1584
				WALKINGANIM = true
1585
			end
1586
		end
1587
		--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) - RightLeg.RotVelocity.Y / 75, RAD(0), RAD(60 * COS(SINE / WALKSPEEDVALUE))), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
1588
		--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) + LeftLeg.RotVelocity.Y / 75, RAD(0), RAD(60 * COS(SINE / WALKSPEEDVALUE))), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
1589
		if ATTACK == false then
1590
			RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(25), RAD(0), RAD(0)), 0.15 / Animation_Speed)
1591
			Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-15 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed)
1592
			PupilWeld.C0 = Clerp(PupilWeld.C0, CF(0.13,0.26,-0.58) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
1593
			RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(120 * COS(SINE / WALKSPEEDVALUE)), RAD(0), RAD(12)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed)
1594
			LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-120 * COS(SINE / WALKSPEEDVALUE)), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.5 / Animation_Speed)
1595
			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)
1596
			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)
1597
		end
1598
	end
1599
if #Effects2>0 then
1600
for e=1,#Effects2 do
1601
if Effects2[e]~=nil then
1602
local Thing=Effects2[e]
1603
if Thing~=nil then
1604
local Part=Thing[1]
1605
local Mode=Thing[2]
1606
local Delay=Thing[3]
1607
local IncX=Thing[4]
1608
local IncY=Thing[5]
1609
local IncZ=Thing[6]
1610
local Part2=Thing[8]
1611
if Thing[1].Transparency<=1 then
1612
if Thing[2]=="Block1" then
1613
Thing[1].CFrame=Thing[1].CFrame
1614
Mesh=Thing[1].Mesh
1615
Mesh.Scale=Mesh.Scale+VT(Thing[4],Thing[5],Thing[6])
1616
Thing[1].Transparency=Thing[1].Transparency+Thing[3]
1617
elseif Thing[2]=="Cylinder" then
1618
Mesh=Thing[1].Mesh
1619
Mesh.Scale=Mesh.Scale+VT(Thing[4],Thing[5],Thing[6])
1620
Thing[1].Transparency=Thing[1].Transparency+Thing[3]
1621
elseif Thing[2]=="Blood" then
1622
Mesh=Thing[7]
1623
Thing[1].CFrame=Thing[1].CFrame*CF(0,.5,0)
1624
Mesh.Scale=Mesh.Scale+VT(Thing[4],Thing[5],Thing[6])
1625
Thing[1].Transparency=Thing[1].Transparency+Thing[3]
1626
elseif Thing[2]=="Elec" then
1627
Mesh=Thing[1].Mesh
1628
Mesh.Scale=Mesh.Scale+VT(Thing[7],Thing[8],Thing[9])
1629
Thing[1].Transparency=Thing[1].Transparency+Thing[3]
1630
elseif Thing[2]=="Disappear" then
1631
Thing[1].Transparency=Thing[1].Transparency+Thing[3]
1632
end
1633
else
1634
Part.Parent=nil
1635
table.remove(Effects2,e)
1636
end
1637
end
1638
end
1639
end
1640
end
1641
unanchor()
1642
Humanoid.MaxHealth = "inf"
1643
Humanoid.Health = "inf"
1644
if Rooted == false then
1645
	Disable_Jump = false
1646
	Humanoid.WalkSpeed = Speed
1647
elseif Rooted == true then
1648
	Disable_Jump = true
1649
	Humanoid.WalkSpeed = 0
1650
end
1651
q = Character:GetChildren()
1652
	for u = 1, #q do
1653
		if q[u].ClassName == "Accessory" or q[u].ClassName == "Hat" then
1654
			if q[u].Handle:FindFirstChild("FaceFrontAttachment") or q[u].Handle:FindFirstChild("HatAttachment") then
1655
				q[u].Handle.Transparency = 1
1656
			end
1657
		end
1658
	end
1659
local MATHS = {"0","1"}
1660
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)]
1661
Humanoid.PlatformStand = false
1662
end
1663
1664
--//=================================\\
1665
--\\=================================//
1666
1667
1668
1669
1670
1671
--//====================================================\\--
1672
--||			  		 END OF SCRIPT
1673
--\\====================================================//--