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