View difference between Paste ID: U6MsbTCE and ynd8KAaM
SHOW: | | - or go back to the newest paste.
1
Player = game.Players.LocalPlayer
2
	Character = Player.Character
3
	local txt = Instance.new("BillboardGui", Character)
4
	txt.Adornee = Character.Head
5
	txt.Name = "_status"
6
	txt.Size = UDim2.new(2, 0, 1.2, 0)
7
	txt.StudsOffset = Vector3.new(-9, 8, 0)
8
	local text = Instance.new("TextLabel", txt)
9
	text.Size = UDim2.new(10, 0, 7, 0)
10
	text.FontSize = "Size24"
11
	text.TextScaled = true
12
	text.TextTransparency = 0
13
	text.BackgroundTransparency = 1 
14
	text.TextTransparency = 0
15
	text.TextStrokeTransparency = 0
16
	text.Font = "Antique"
17
	text.TextStrokeColor3 = Color3.new(196, 40, 28)
18-
        text.Text = "The Corrupted Doctor"
18+
        text.Text = "The Doctor"
19
script.Name = "The Corrupted Doctor"
20
--//====================================================\\--
21
--||	CREATED BY SHACKLUSTER-EDITED BY PROMLG112
22
--\\====================================================//--
23
local chara = Character
24
25
function chat(...)
26
	local txxt = {...}
27
	local ch = coroutine.wrap(function()
28
		if chara:FindFirstChild("Chatt")~= nil then
29
			Character:FindFirstChild("Chatt"):destroy()
30
		end
31
		local txt = Instance.new("BillboardGui", chara)
32
		txt.Adornee = chara.Head
33
		txt.Name = "Chatt"
34
		txt.Size = UDim2.new(2, 0, 1.2, 0)
35
		txt.StudsOffset = Vector3.new(-9, 7, 0)
36
		local text = Instance.new("TextLabel", txt)
37
		text.Size = UDim2.new(10, 0, 7, 0)
38
		text.TextSize = 32
39
		text.Font = Enum.Font.Antique
40
		text.TextScaled = false
41
		text.BackgroundTransparency = 1 
42
		text.TextColor3 = Color3.new(0,0,0)
43
		text.TextStrokeTransparency = 0
44
		text.TextStrokeColor3 = Color3.new(0/0, 0/0, 0/0)
45
		text.Text = ""
46
		txxt = table.concat(txxt,"\t")
47
		for i = 1, #txxt do
48
			text.Text = txxt:sub(1,i)
49
			
50
		end
51
		wait(2)
52
		for trans = 0,1,00.1 do
53
			text.TextTransparency = trans
54
			text.TextStrokeTransparency = trans
55
			wait()
56
		end
57
		wait()
58
		txt:destroy()
59
	end)
60
	
61
	ch(...)
62
end
63
Player.Chatted:connect(chat)
64
65
wait(0.2)
66
67
Player = game:GetService("Players").LocalPlayer
68
PlayerGui = Player.PlayerGui
69
Cam = workspace.CurrentCamera
70
Backpack = Player.Backpack
71
Character = Player.Character
72
Humanoid = Character.Humanoid
73
Mouse = Player:GetMouse()
74
RootPart = Character["HumanoidRootPart"]
75
Torso = Character["Torso"]
76
Head = Character["Head"]
77
RightArm = Character["Right Arm"]
78
LeftArm = Character["Left Arm"]
79
RightLeg = Character["Right Leg"]
80
LeftLeg = Character["Left Leg"]
81
RootJoint = RootPart["RootJoint"]
82
Neck = Torso["Neck"]
83
RightShoulder = Torso["Right Shoulder"]
84
LeftShoulder = Torso["Left Shoulder"]
85
RightHip = Torso["Right Hip"]
86
LeftHip = Torso["Left Hip"]
87
88
for i,v in pairs(Character:GetChildren()) do
89
	if v.ClassName == "Shirt" or v.ClassName == "Pants" or v.ClassName == "CharacterMesh" then
90
		v:Destroy()
91
	end
92
end
93
94
for i,v in pairs(Character:GetChildren()) do
95
	if v.ClassName == "Accessory" or v.ClassName == "Hat" then
96
		v:Destroy()
97
	end
98
end
99
100
local Shirt = Instance.new("Shirt",Character)
101
local Pants = Instance.new("Pants",Character)
102
Shirt.ShirtTemplate = "rbxassetid://648758131"
103
Pants.PantsTemplate = "rbxassetid://472675863"
104
105
local sick = Instance.new("Sound",Character)
106
sick.SoundId = "rbxassetid://561833161"
107
sick.Looped = true
108
sick.Pitch = 1
109
sick.Volume = 1.3
110
sick:Play()
111
			
112
IT = Instance.new
113
CF = CFrame.new
114
VT = Vector3.new
115
RAD = math.rad
116
C3 = Color3.new
117
UD2 = UDim2.new
118
BRICKC = BrickColor.new
119
ANGLES = CFrame.Angles
120
EULER = CFrame.fromEulerAnglesXYZ
121
COS = math.cos
122
ACOS = math.acos
123
SIN = math.sin
124
ASIN = math.asin
125
ABS = math.abs
126
MRANDOM = math.random
127
FLOOR = math.floor
128
local CLOAKED = false
129
local KILLINSTINCT = 0
130
--//=================================\\
131
--||		 SOME OTHER STUFF
132
--\\=================================//
133
ff = Instance.new("ForceField", game.Players.LocalPlayer.Character)
134
ff.Visible = false
135
Humanoid.Name = "God Mode"
136
137
--//=================================\\
138
--||		  CUSTOMIZATION
139
--\\=================================//
140
141
Player_Size = 1 --Size of the player.
142
Animation_Speed = 3
143
Frame_Speed = 1 / 60 -- (1 / 30) OR (1 / 60)
144
145
local Speed = 16
146
local Effects2 = {}
147
148
--//=================================\\
149
--|| 	  END OF CUSTOMIZATION
150
--\\=================================//
151
152
	local function weldBetween(a, b)
153
	    local weldd = Instance.new("ManualWeld")
154
	    weldd.Part0 = a
155
	    weldd.Part1 = b
156
	    weldd.C0 = CFrame.new()
157
	    weldd.C1 = b.CFrame:inverse() * a.CFrame
158
	    weldd.Parent = a
159
	    return weldd
160
	end
161
--//=================================\\
162
--|| 	      USEFUL VALUES
163
--\\=================================//
164
165
Animation_Speed = 3
166
Frame_Speed = 1 / 60 -- (1 / 30) OR (1 / 60)
167
local Speed = 16
168
local ROOTC0 = CF(0, 0, 0) * ANGLES(RAD(-90), RAD(0), RAD(180))
169
local NECKC0 = CF(0, 1, 0) * ANGLES(RAD(-90), RAD(0), RAD(180))
170
local RIGHTSHOULDERC0 = CF(-0.5, 0, 0) * ANGLES(RAD(0), RAD(90), RAD(0))
171
local LEFTSHOULDERC0 = CF(0.5, 0, 0) * ANGLES(RAD(0), RAD(-90), RAD(0))
172
local DAMAGEMULTIPLIER = 1
173
local ANIM = "Idle"
174
local ATTACK = false
175
local EQUIPPED = false
176
local HOLD = false
177
local CLOCKTARGET = nil
178
local CLOCKSPEED = 2.5
179
local CLOCKLOOP = 0
180
local COMBO = 1
181
local Rooted = false
182
local SINE = 0
183
local KEYHOLD = false
184
local CHANGE = 2 / Animation_Speed
185
local WALKINGANIM = false
186
local VALUE1 = false
187
local VALUE2 = false
188
local ROBLOXIDLEANIMATION = IT("Animation")
189
ROBLOXIDLEANIMATION.Name = "Roblox Idle Animation"
190
ROBLOXIDLEANIMATION.AnimationId = "http://www.roblox.com/asset/?id=180435571"
191
--ROBLOXIDLEANIMATION.Parent = Humanoid
192
local WEAPONGUI = IT("ScreenGui", PlayerGui)
193
WEAPONGUI.Name = "Weapon GUI"
194
local Weapon = IT("Model")
195
Weapon.Name = "Adds"
196
local Effects = IT("Folder", Weapon)
197
Effects.Name = "Effects"
198
local ANIMATOR = Humanoid.Animator
199
local ANIMATE = Character.Animate
200
local UNANCHOR = true
201
local ENERGYSOUND = 1417051162
202
local BEAMSOUND = 1417056781
203
local EXPLOSIONSOUND = 1417056081
204
205
--//=================================\\
206
--\\=================================//
207
208
local asd = Instance.new("ParticleEmitter")
209
asd.Color = ColorSequence.new(Color3.new(0.5, 0, 0), Color3.new(.3, 0, 0))
210
asd.LightEmission = .1
211
asd.Texture = "http://www.roblox.com/asset/?ID=291880914"
212
aaa = NumberSequence.new({NumberSequenceKeypoint.new(0, 0.6),NumberSequenceKeypoint.new(1, 2)})
213
bbb = NumberSequence.new({NumberSequenceKeypoint.new(0, 1),NumberSequenceKeypoint.new(0.0636, 0), NumberSequenceKeypoint.new(1, 1)})
214
asd.Transparency = bbb
215
asd.Size = aaa
216
asd.ZOffset = .9
217
asd.Acceleration = Vector3.new(0, -15, 0)
218
asd.LockedToPart = false
219
asd.EmissionDirection = "Back"
220
asd.Lifetime = NumberRange.new(1, 2)
221
asd.Rotation = NumberRange.new(-100, 100)
222
asd.RotSpeed = NumberRange.new(-100, 100)
223
asd.Speed = NumberRange.new(10)
224
asd.Enabled = false
225
asd.VelocitySpread = 999
226
227
function getbloody(victim,amount)
228
	local PART = CreatePart(3, Effects, "Metal", 0, 1, "Mid gray", "Blood", victim.Size)
229
	PART.CFrame = victim.CFrame
230
	local HITPLAYERSOUNDS = {"356551938","264486467"}
231
	Debris:AddItem(PART,5)
232
	CreateSound(HITPLAYERSOUNDS[MRANDOM(1, #HITPLAYERSOUNDS)], PART, 1, (math.random(8,12)/10))
233
	CreateSound(HITPLAYERSOUNDS[MRANDOM(1, #HITPLAYERSOUNDS)], PART, 1, (math.random(8,12)/10))
234
	CreateSound(HITPLAYERSOUNDS[MRANDOM(1, #HITPLAYERSOUNDS)], PART, 1, (math.random(8,12)/10))
235
	local prtcl = asd:Clone()
236
	prtcl.Parent = PART
237
	prtcl:Emit(amount*10)
238
end
239
240
--//=================================\\
241
--|| SAZERENOS' ARTIFICIAL HEARTBEAT
242
--\\=================================//
243
244
ArtificialHB = Instance.new("BindableEvent", script)
245
ArtificialHB.Name = "ArtificialHB"
246
247
script:WaitForChild("ArtificialHB")
248
249
frame = Frame_Speed
250
tf = 0
251
allowframeloss = false
252
tossremainder = false
253
lastframe = tick()
254
script.ArtificialHB:Fire()
255
256
game:GetService("RunService").Heartbeat:connect(function(s, p)
257
	tf = tf + s
258
	if tf >= frame then
259
		if allowframeloss then
260
			script.ArtificialHB:Fire()
261
			lastframe = tick()
262
		else
263
			for i = 1, math.floor(tf / frame) do
264
				script.ArtificialHB:Fire()
265
			end
266
		lastframe = tick()
267
		end
268
		if tossremainder then
269
			tf = 0
270
		else
271
			tf = tf - frame * math.floor(tf / frame)
272
		end
273
	end
274
end)
275
276
--//=================================\\
277
--\\=================================//
278
ff = Instance.new("ForceField", game.Players.LocalPlayer.Character)
279
ff.Visible = false
280
Humanoid.Name = "God Mode"
281
282
local l = game.Lighting
283
local sky = Instance.new("Sky",l)
284
l.TimeOfDay = "00:00:00"
285
l.Brightness = 1
286
l.Ambient = Color3.new(0.25, 0.5, 0.75)
287
---
288
289
290
291
--//=================================\\
292
--|| 	      SOME FUNCTIONS
293
--\\=================================//
294
function Raycast(POSITION, DIRECTION, RANGE, IGNOREDECENDANTS)
295
	return workspace:FindPartOnRay(Ray.new(POSITION, DIRECTION.unit * RANGE), IGNOREDECENDANTS)
296
end
297
298
function PositiveAngle(NUMBER)
299
	if NUMBER >= 0 then
300
		NUMBER = 0
301
	end
302
	return NUMBER
303
end
304
305
function NegativeAngle(NUMBER)
306
	if NUMBER <= 0 then
307
		NUMBER = 0
308
	end
309
	return NUMBER
310
end
311
312
function Swait(NUMBER)
313
	if NUMBER == 0 or NUMBER == nil then
314
		ArtificialHB.Event:wait()
315
	else
316
		for i = 1, NUMBER do
317
			ArtificialHB.Event:wait()
318
		end
319
	end
320
end
321
322
function CreateMesh(MESH, PARENT, MESHTYPE, MESHID, TEXTUREID, SCALE, OFFSET)
323
	local NEWMESH = IT(MESH)
324
	if MESH == "SpecialMesh" then
325
		NEWMESH.MeshType = MESHTYPE
326
		if MESHID ~= "nil" and MESHID ~= "" then
327
			NEWMESH.MeshId = "http://www.roblox.com/asset/?id="..MESHID
328
		end
329
		if TEXTUREID ~= "nil" and TEXTUREID ~= "" then
330
			NEWMESH.TextureId = "http://www.roblox.com/asset/?id="..TEXTUREID
331
		end
332
	end
333
	NEWMESH.Offset = OFFSET or VT(0, 0, 0)
334
	NEWMESH.Scale = SCALE
335
	NEWMESH.Parent = PARENT
336
	return NEWMESH
337
end
338
339
function CreatePart(FORMFACTOR, PARENT, MATERIAL, REFLECTANCE, TRANSPARENCY, BRICKCOLOR, NAME, SIZE, ANCHOR)
340
	local NEWPART = IT("Part")
341
	NEWPART.formFactor = FORMFACTOR
342
	NEWPART.Reflectance = REFLECTANCE
343
	NEWPART.Transparency = TRANSPARENCY
344
	NEWPART.CanCollide = false
345
	NEWPART.Locked = true
346
	NEWPART.Anchored = true
347
	if ANCHOR == false then
348
		NEWPART.Anchored = false
349
	end
350
	NEWPART.BrickColor = BRICKC(tostring(BRICKCOLOR))
351
	NEWPART.Name = NAME
352
	NEWPART.Size = SIZE
353
	NEWPART.Position = Torso.Position
354
	NEWPART.Material = MATERIAL
355
	NEWPART:BreakJoints()
356
	NEWPART.Parent = PARENT
357
	return NEWPART
358
end
359
360
	local function weldBetween(a, b)
361
	    local weldd = Instance.new("ManualWeld")
362
	    weldd.Part0 = a
363
	    weldd.Part1 = b
364
	    weldd.C0 = CFrame.new()
365
	    weldd.C1 = b.CFrame:inverse() * a.CFrame
366
	    weldd.Parent = a
367
	    return weldd
368
	end
369
370
371
function QuaternionFromCFrame(cf)
372
	local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
373
	local trace = m00 + m11 + m22
374
	if trace > 0 then 
375
		local s = math.sqrt(1 + trace)
376
		local recip = 0.5 / s
377
		return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5
378
	else
379
		local i = 0
380
		if m11 > m00 then
381
			i = 1
382
		end
383
		if m22 > (i == 0 and m00 or m11) then
384
			i = 2
385
		end
386
		if i == 0 then
387
			local s = math.sqrt(m00 - m11 - m22 + 1)
388
			local recip = 0.5 / s
389
			return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip
390
		elseif i == 1 then
391
			local s = math.sqrt(m11 - m22 - m00 + 1)
392
			local recip = 0.5 / s
393
			return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip
394
		elseif i == 2 then
395
			local s = math.sqrt(m22 - m00 - m11 + 1)
396
			local recip = 0.5 / s return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip
397
		end
398
	end
399
end
400
 
401
function QuaternionToCFrame(px, py, pz, x, y, z, w)
402
	local xs, ys, zs = x + x, y + y, z + z
403
	local wx, wy, wz = w * xs, w * ys, w * zs
404
	local xx = x * xs
405
	local xy = x * ys
406
	local xz = x * zs
407
	local yy = y * ys
408
	local yz = y * zs
409
	local zz = z * zs
410
	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))
411
end
412
 
413
function QuaternionSlerp(a, b, t)
414
	local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4]
415
	local startInterp, finishInterp;
416
	if cosTheta >= 0.0001 then
417
		if (1 - cosTheta) > 0.0001 then
418
			local theta = ACOS(cosTheta)
419
			local invSinTheta = 1 / SIN(theta)
420
			startInterp = SIN((1 - t) * theta) * invSinTheta
421
			finishInterp = SIN(t * theta) * invSinTheta
422
		else
423
			startInterp = 1 - t
424
			finishInterp = t
425
		end
426
	else
427
		if (1 + cosTheta) > 0.0001 then
428
			local theta = ACOS(-cosTheta)
429
			local invSinTheta = 1 / SIN(theta)
430
			startInterp = SIN((t - 1) * theta) * invSinTheta
431
			finishInterp = SIN(t * theta) * invSinTheta
432
		else
433
			startInterp = t - 1
434
			finishInterp = t
435
		end
436
	end
437
	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
438
end
439
440
function Clerp(a, b, t)
441
	local qa = {QuaternionFromCFrame(a)}
442
	local qb = {QuaternionFromCFrame(b)}
443
	local ax, ay, az = a.x, a.y, a.z
444
	local bx, by, bz = b.x, b.y, b.z
445
	local _t = 1 - t
446
	return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t))
447
end
448
449
function CreateFrame(PARENT, TRANSPARENCY, BORDERSIZEPIXEL, POSITION, SIZE, COLOR, BORDERCOLOR, NAME)
450
	local frame = IT("Frame")
451
	frame.BackgroundTransparency = TRANSPARENCY
452
	frame.BorderSizePixel = BORDERSIZEPIXEL
453
	frame.Position = POSITION
454
	frame.Size = SIZE
455
	frame.BackgroundColor3 = COLOR
456
	frame.BorderColor3 = BORDERCOLOR
457
	frame.Name = NAME
458
	frame.Parent = PARENT
459
	return frame
460
end
461
462
function CreateLabel(PARENT, TEXT, TEXTCOLOR, TEXTFONTSIZE, TEXTFONT, TRANSPARENCY, BORDERSIZEPIXEL, STROKETRANSPARENCY, NAME)
463
	local label = IT("TextLabel")
464
	label.BackgroundTransparency = 1
465
	label.Size = UD2(1, 0, 1, 0)
466
	label.Position = UD2(0, 0, 0, 0)
467
	label.TextColor3 = TEXTCOLOR
468
	label.TextStrokeTransparency = STROKETRANSPARENCY
469
	label.TextTransparency = TRANSPARENCY
470
	label.FontSize = TEXTFONTSIZE
471
	label.Font = TEXTFONT
472
	label.BorderSizePixel = BORDERSIZEPIXEL
473
	label.TextStrokeColor3 = C3(1,1,1)
474
	label.TextScaled = false
475
	label.Text = TEXT
476
	label.Name = NAME
477
	label.Parent = PARENT
478
	return label
479
end
480
481
function NoOutlines(PART)
482
	PART.TopSurface, PART.BottomSurface, PART.LeftSurface, PART.RightSurface, PART.FrontSurface, PART.BackSurface = 10, 10, 10, 10, 10, 10
483
end
484
485
function CreateWeldOrSnapOrMotor(TYPE, PARENT, PART0, PART1, C0, C1)
486
	local NEWWELD = IT(TYPE)
487
	NEWWELD.Part0 = PART0
488
	NEWWELD.Part1 = PART1
489
	NEWWELD.C0 = C0
490
	NEWWELD.C1 = C1
491
	NEWWELD.Parent = PARENT
492
	return NEWWELD
493
end
494
495
local S = IT("Sound")
496
function CreateSound(ID, PARENT, VOLUME, PITCH, DOESLOOP)
497
	local NEWSOUND = nil
498
	coroutine.resume(coroutine.create(function()
499
		NEWSOUND = S:Clone()
500
		NEWSOUND.Parent = PARENT
501
		NEWSOUND.Volume = VOLUME
502
		NEWSOUND.Pitch = PITCH
503
		NEWSOUND.SoundId = "http://www.roblox.com/asset/?id="..ID
504
		NEWSOUND:play()
505
		if DOESLOOP == true then
506
			NEWSOUND.Looped = true
507
		else
508
			repeat wait(1) until NEWSOUND.Playing == false
509
			NEWSOUND:remove()
510
		end
511
	end))
512
	return NEWSOUND
513
end
514
515
function CFrameFromTopBack(at, top, back)
516
	local right = top:Cross(back)
517
	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)
518
end
519
520
--WACKYEFFECT({EffectType = "", Size = VT(1,1,1), Size2 = VT(0,0,0), Transparency = 0, Transparency2 = 1, CFrame = CF(), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
521
function WACKYEFFECT(Table)
522
	local TYPE = (Table.EffectType or "Sphere")
523
	local SIZE = (Table.Size or VT(1,1,1))
524
	local ENDSIZE = (Table.Size2 or VT(0,0,0))
525
	local TRANSPARENCY = (Table.Transparency or 0)
526
	local ENDTRANSPARENCY = (Table.Transparency2 or 1)
527
	local CFRAME = (Table.CFrame or Torso.CFrame)
528
	local MOVEDIRECTION = (Table.MoveToPos or nil)
529
	local ROTATION1 = (Table.RotationX or 0)
530
	local ROTATION2 = (Table.RotationY or 0)
531
	local ROTATION3 = (Table.RotationZ or 0)
532
	local MATERIAL = (Table.Material or "Neon")
533
	local COLOR = (Table.Color or C3(1,1,1))
534
	local TIME = (Table.Time or 45)
535
	local SOUNDID = (Table.SoundID or nil)
536
	local SOUNDPITCH = (Table.SoundPitch or nil)
537
	local SOUNDVOLUME = (Table.SoundVolume or nil)
538
	coroutine.resume(coroutine.create(function()
539
		local PLAYSSOUND = false
540
		local SOUND = nil
541
		local EFFECT = CreatePart(3, Effects, MATERIAL, 0, TRANSPARENCY, BRICKC("Pearl"), "Effect", VT(1,1,1), true)
542
		if SOUNDID ~= nil and SOUNDPITCH ~= nil and SOUNDVOLUME ~= nil then
543
			PLAYSSOUND = true
544
			SOUND = CreateSound(SOUNDID, EFFECT, SOUNDVOLUME, SOUNDPITCH, false)
545
		end
546
		EFFECT.Color = COLOR
547
		local MSH = nil
548
		if TYPE == "Sphere" then
549
			MSH = CreateMesh("SpecialMesh", EFFECT, "Sphere", "", "", SIZE, VT(0,0,0))
550
		elseif TYPE == "Block" then
551
			MSH = IT("BlockMesh",EFFECT)
552
			MSH.Scale = VT(SIZE.X,SIZE.X,SIZE.X)
553
		elseif TYPE == "Wave" then
554
			MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "20329976", "", SIZE, VT(0,0,-SIZE.X/8))
555
		elseif TYPE == "Ring" then
556
			MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "559831844", "", VT(SIZE.X,SIZE.X,0.1), VT(0,0,0))
557
		elseif TYPE == "Slash" then
558
			MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662586858", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0))
559
		elseif TYPE == "Round Slash" then
560
			MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662585058", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0))
561
		elseif TYPE == "Swirl" then
562
			MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "1051557", "", SIZE, VT(0,0,0))
563
		elseif TYPE == "Skull" then
564
			MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "4770583", "", SIZE, VT(0,0,0))
565
		elseif TYPE == "Crystal" then
566
			MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "9756362", "", SIZE, VT(0,0,0))
567
		end
568
		if MSH ~= nil then
569
			local MOVESPEED = nil
570
			if MOVEDIRECTION ~= nil then
571
				MOVESPEED = (CFRAME.p - MOVEDIRECTION).Magnitude/TIME
572
			end
573
			local GROWTH = SIZE - ENDSIZE
574
			local TRANS = TRANSPARENCY - ENDTRANSPARENCY
575
			if TYPE == "Block" then
576
				EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))
577
			else
578
				EFFECT.CFrame = CFRAME
579
			end
580
			for LOOP = 1, TIME+1 do
581
				Swait()
582
				MSH.Scale = MSH.Scale - GROWTH/TIME
583
				if TYPE == "Wave" then
584
					MSH.Offset = VT(0,0,-MSH.Scale.X/8)
585
				end
586
				EFFECT.Transparency = EFFECT.Transparency - TRANS/TIME
587
				if TYPE == "Block" then
588
					EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))
589
				else
590
					EFFECT.CFrame = EFFECT.CFrame*ANGLES(RAD(ROTATION1),RAD(ROTATION2),RAD(ROTATION3))
591
				end
592
				if MOVEDIRECTION ~= nil then
593
					local ORI = EFFECT.Orientation
594
					EFFECT.CFrame = CF(EFFECT.Position,MOVEDIRECTION)*CF(0,0,-MOVESPEED)
595
					EFFECT.Orientation = ORI
596
				end
597
			end
598
			if PLAYSSOUND == false then
599
				EFFECT:remove()
600
			else
601
				repeat Swait() until SOUND.Playing == false
602
				EFFECT:remove()
603
			end
604
		else
605
			if PLAYSSOUND == false then
606
				EFFECT:remove()
607
			else
608
				repeat Swait() until SOUND.Playing == false
609
				EFFECT:remove()
610
			end
611
		end
612
	end))
613
end
614
615
function MakeForm(PART,TYPE)
616
	if TYPE == "Cyl" then
617
		local MSH = IT("CylinderMesh",PART)
618
	elseif TYPE == "Ball" then
619
		local MSH = IT("SpecialMesh",PART)
620
		MSH.MeshType = "Sphere"
621
	elseif TYPE == "Wedge" then
622
		local MSH = IT("SpecialMesh",PART)
623
		MSH.MeshType = "Wedge"
624
	end
625
end
626
627
Debris = game:GetService("Debris")
628
629
function CastProperRay(StartPos, EndPos, Distance, Ignore)
630
	local DIRECTION = CF(StartPos,EndPos).lookVector
631
	return Raycast(StartPos, DIRECTION, Distance, Ignore)
632
end
633
634
function turnto(position)
635
	RootPart.CFrame=CFrame.new(RootPart.CFrame.p,VT(position.X,RootPart.Position.Y,position.Z)) * CFrame.new(0, 0, 0)
636
end
637
638
function Raycast(POSITION, DIRECTION, RANGE, IGNOREDECENDANTS)
639
    return workspace:FindPartOnRay(Ray.new(POSITION, DIRECTION.unit * RANGE), IGNOREDECENDANTS)
640
end
641
 
642
function PositiveAngle(NUMBER)
643
    if NUMBER >= 0 then
644
        NUMBER = 0
645
    end
646
    return NUMBER
647
end
648
 
649
function NegativeAngle(NUMBER)
650
    if NUMBER <= 0 then
651
        NUMBER = 0
652
    end
653
    return NUMBER
654
end
655
 
656
function Swait(NUMBER)
657
    if NUMBER == 0 or NUMBER == nil then
658
        ArtificialHB.Event:wait()
659
    else
660
        for i = 1, NUMBER do
661
            ArtificialHB.Event:wait()
662
        end
663
    end
664
end
665
 
666
function CreateMesh(MESH, PARENT, MESHTYPE, MESHID, TEXTUREID, SCALE, OFFSET)
667
    local NEWMESH = IT(MESH)
668
    if MESH == "SpecialMesh" then
669
        NEWMESH.MeshType = MESHTYPE
670
        if MESHID ~= "nil" and MESHID ~= "" then
671
            NEWMESH.MeshId = "http://www.roblox.com/asset/?id="..MESHID
672
        end
673
        if TEXTUREID ~= "nil" and TEXTUREID ~= "" then
674
            NEWMESH.TextureId = "http://www.roblox.com/asset/?id="..TEXTUREID
675
        end
676
    end
677
    NEWMESH.Offset = OFFSET or VT(0, 0, 0)
678
    NEWMESH.Scale = SCALE
679
    NEWMESH.Parent = PARENT
680
    return NEWMESH
681
end
682
 
683
function CreatePart(FORMFACTOR, PARENT, MATERIAL, REFLECTANCE, TRANSPARENCY, BRICKCOLOR, NAME, SIZE, ANCHOR)
684
    local NEWPART = IT("Part")
685
    NEWPART.formFactor = FORMFACTOR
686
    NEWPART.Reflectance = REFLECTANCE
687
    NEWPART.Transparency = TRANSPARENCY
688
    NEWPART.CanCollide = false
689
    NEWPART.Locked = true
690
    NEWPART.Anchored = true
691
    if ANCHOR == false then
692
        NEWPART.Anchored = false
693
    end
694
    NEWPART.BrickColor = BRICKC(tostring(BRICKCOLOR))
695
    NEWPART.Name = NAME
696
    NEWPART.Size = SIZE
697
    NEWPART.Position = Torso.Position
698
    NEWPART.Material = MATERIAL
699
    NEWPART:BreakJoints()
700
    NEWPART.Parent = PARENT
701
    return NEWPART
702
end
703
 
704
    local function weldBetween(a, b)
705
        local weldd = Instance.new("ManualWeld")
706
        weldd.Part0 = a
707
        weldd.Part1 = b
708
        weldd.C0 = CFrame.new()
709
        weldd.C1 = b.CFrame:inverse() * a.CFrame
710
        weldd.Parent = a
711
        return weldd
712
    end
713
 
714
 
715
function QuaternionFromCFrame(cf)
716
    local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
717
    local trace = m00 + m11 + m22
718
    if trace > 0 then
719
        local s = math.sqrt(1 + trace)
720
        local recip = 0.5 / s
721
        return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5
722
    else
723
        local i = 0
724
        if m11 > m00 then
725
            i = 1
726
        end
727
        if m22 > (i == 0 and m00 or m11) then
728
            i = 2
729
        end
730
        if i == 0 then
731
            local s = math.sqrt(m00 - m11 - m22 + 1)
732
            local recip = 0.5 / s
733
            return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip
734
        elseif i == 1 then
735
            local s = math.sqrt(m11 - m22 - m00 + 1)
736
            local recip = 0.5 / s
737
            return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip
738
        elseif i == 2 then
739
            local s = math.sqrt(m22 - m00 - m11 + 1)
740
            local recip = 0.5 / s return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip
741
        end
742
    end
743
end
744
 
745
function QuaternionToCFrame(px, py, pz, x, y, z, w)
746
    local xs, ys, zs = x + x, y + y, z + z
747
    local wx, wy, wz = w * xs, w * ys, w * zs
748
    local xx = x * xs
749
    local xy = x * ys
750
    local xz = x * zs
751
    local yy = y * ys
752
    local yz = y * zs
753
    local zz = z * zs
754
    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))
755
end
756
 
757
function QuaternionSlerp(a, b, t)
758
    local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4]
759
    local startInterp, finishInterp;
760
    if cosTheta >= 0.0001 then
761
        if (1 - cosTheta) > 0.0001 then
762
            local theta = ACOS(cosTheta)
763
            local invSinTheta = 1 / SIN(theta)
764
            startInterp = SIN((1 - t) * theta) * invSinTheta
765
            finishInterp = SIN(t * theta) * invSinTheta
766
        else
767
            startInterp = 1 - t
768
            finishInterp = t
769
        end
770
    else
771
        if (1 + cosTheta) > 0.0001 then
772
            local theta = ACOS(-cosTheta)
773
            local invSinTheta = 1 / SIN(theta)
774
            startInterp = SIN((t - 1) * theta) * invSinTheta
775
            finishInterp = SIN(t * theta) * invSinTheta
776
        else
777
            startInterp = t - 1
778
            finishInterp = t
779
        end
780
    end
781
    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
782
end
783
 
784
function Clerp(a, b, t)
785
    local qa = {QuaternionFromCFrame(a)}
786
    local qb = {QuaternionFromCFrame(b)}
787
    local ax, ay, az = a.x, a.y, a.z
788
    local bx, by, bz = b.x, b.y, b.z
789
    local _t = 1 - t
790
    return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t))
791
end
792
 
793
function CreateFrame(PARENT, TRANSPARENCY, BORDERSIZEPIXEL, POSITION, SIZE, COLOR, BORDERCOLOR, NAME)
794
    local frame = IT("Frame")
795
    frame.BackgroundTransparency = TRANSPARENCY
796
    frame.BorderSizePixel = BORDERSIZEPIXEL
797
    frame.Position = POSITION
798
    frame.Size = SIZE
799
    frame.BackgroundColor3 = COLOR
800
    frame.BorderColor3 = BORDERCOLOR
801
    frame.Name = NAME
802
    frame.Parent = PARENT
803
    return frame
804
end
805
 
806
function CreateLabel(PARENT, TEXT, TEXTCOLOR, TEXTFONTSIZE, TEXTFONT, TRANSPARENCY, BORDERSIZEPIXEL, STROKETRANSPARENCY, NAME)
807
    local label = IT("TextLabel")
808
    label.BackgroundTransparency = 1
809
    label.Size = UD2(1, 0, 1, 0)
810
    label.Position = UD2(0, 0, 0, 0)
811
    label.TextColor3 = TEXTCOLOR
812
    label.TextStrokeTransparency = STROKETRANSPARENCY
813
    label.TextTransparency = TRANSPARENCY
814
    label.FontSize = TEXTFONTSIZE
815
    label.Font = TEXTFONT
816
    label.BorderSizePixel = BORDERSIZEPIXEL
817
    label.TextScaled = false
818
    label.Text = TEXT
819
    label.Name = NAME
820
    label.Parent = PARENT
821
    return label
822
end
823
 
824
function NoOutlines(PART)
825
    PART.TopSurface, PART.BottomSurface, PART.LeftSurface, PART.RightSurface, PART.FrontSurface, PART.BackSurface = 10, 10, 10, 10, 10, 10
826
end
827
 
828
function CreateWeldOrSnapOrMotor(TYPE, PARENT, PART0, PART1, C0, C1)
829
    local NEWWELD = IT(TYPE)
830
    NEWWELD.Part0 = PART0
831
    NEWWELD.Part1 = PART1
832
    NEWWELD.C0 = C0
833
    NEWWELD.C1 = C1
834
    NEWWELD.Parent = PARENT
835
    return NEWWELD
836
end
837
 
838
local S = IT("Sound")
839
function CreateSound(ID, PARENT, VOLUME, PITCH, DOESLOOP)
840
    local NEWSOUND = nil
841
    coroutine.resume(coroutine.create(function()
842
        NEWSOUND = S:Clone()
843
        NEWSOUND.Parent = PARENT
844
        NEWSOUND.Volume = VOLUME
845
        NEWSOUND.Pitch = PITCH
846
        NEWSOUND.SoundId = "http://www.roblox.com/asset/?id="..ID
847
        NEWSOUND:play()
848
        if DOESLOOP == true then
849
            NEWSOUND.Looped = true
850
        else
851
            repeat wait(1) until NEWSOUND.Playing == false
852
            NEWSOUND:remove()
853
        end
854
    end))
855
    return NEWSOUND
856
end
857
 
858
function CFrameFromTopBack(at, top, back)
859
    local right = top:Cross(back)
860
    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)
861
end
862
 
863
--WACKYEFFECT({EffectType = "", Size = VT(1,1,1), Size2 = VT(0,0,0), Transparency = 0, Transparency2 = 1, CFrame = CF(), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
864
function WACKYEFFECT(Table)
865
    local TYPE = (Table.EffectType or "Sphere")
866
    local SIZE = (Table.Size or VT(1,1,1))
867
    local ENDSIZE = (Table.Size2 or VT(0,0,0))
868
    local TRANSPARENCY = (Table.Transparency or 0)
869
    local ENDTRANSPARENCY = (Table.Transparency2 or 1)
870
    local CFRAME = (Table.CFrame or Torso.CFrame)
871
    local MOVEDIRECTION = (Table.MoveToPos or nil)
872
    local ROTATION1 = (Table.RotationX or 0)
873
    local ROTATION2 = (Table.RotationY or 0)
874
    local ROTATION3 = (Table.RotationZ or 0)
875
    local MATERIAL = (Table.Material or "Neon")
876
    local COLOR = (Table.Color or C3(1,1,1))
877
    local TIME = (Table.Time or 45)
878
    local SOUNDID = (Table.SoundID or nil)
879
    local SOUNDPITCH = (Table.SoundPitch or nil)
880
    local SOUNDVOLUME = (Table.SoundVolume or nil)
881
    coroutine.resume(coroutine.create(function()
882
        local PLAYSSOUND = false
883
        local SOUND = nil
884
        local EFFECT = CreatePart(3, Effects, MATERIAL, 0, TRANSPARENCY, BRICKC("Pearl"), "Effect", VT(1,1,1), true)
885
        if SOUNDID ~= nil and SOUNDPITCH ~= nil and SOUNDVOLUME ~= nil then
886
            PLAYSSOUND = true
887
            SOUND = CreateSound(SOUNDID, EFFECT, SOUNDVOLUME, SOUNDPITCH, false)
888
        end
889
        EFFECT.Color = COLOR
890
        local MSH = nil
891
        if TYPE == "Sphere" then
892
            MSH = CreateMesh("SpecialMesh", EFFECT, "Sphere", "", "", SIZE, VT(0,0,0))
893
        elseif TYPE == "Block" then
894
            MSH = IT("BlockMesh",EFFECT)
895
            MSH.Scale = VT(SIZE.X,SIZE.X,SIZE.X)
896
        elseif TYPE == "Wave" then
897
            MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "20329976", "", SIZE, VT(0,0,-SIZE.X/8))
898
        elseif TYPE == "Ring" then
899
            MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "559831844", "", VT(SIZE.X,SIZE.X,0.1), VT(0,0,0))
900
        elseif TYPE == "Slash" then
901
            MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662586858", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0))
902
        elseif TYPE == "Round Slash" then
903
            MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662585058", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0))
904
        elseif TYPE == "Swirl" then
905
            MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "1051557", "", SIZE, VT(0,0,0))
906
        elseif TYPE == "Skull" then
907
            MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "4770583", "", SIZE, VT(0,0,0))
908
        elseif TYPE == "Crystal" then
909
            MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "9756362", "", SIZE, VT(0,0,0))
910
        end
911
        if MSH ~= nil then
912
            local MOVESPEED = nil
913
            if MOVEDIRECTION ~= nil then
914
                MOVESPEED = (CFRAME.p - MOVEDIRECTION).Magnitude/TIME
915
            end
916
            local GROWTH = SIZE - ENDSIZE
917
            local TRANS = TRANSPARENCY - ENDTRANSPARENCY
918
            if TYPE == "Block" then
919
                EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))
920
            else
921
                EFFECT.CFrame = CFRAME
922
            end
923
            for LOOP = 1, TIME+1 do
924
                Swait()
925
                MSH.Scale = MSH.Scale - GROWTH/TIME
926
                if TYPE == "Wave" then
927
                    MSH.Offset = VT(0,0,-MSH.Scale.X/8)
928
                end
929
                EFFECT.Transparency = EFFECT.Transparency - TRANS/TIME
930
                if TYPE == "Block" then
931
                    EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))
932
                else
933
                    EFFECT.CFrame = EFFECT.CFrame*ANGLES(RAD(ROTATION1),RAD(ROTATION2),RAD(ROTATION3))
934
                end
935
                if MOVEDIRECTION ~= nil then
936
                    local ORI = EFFECT.Orientation
937
                    EFFECT.CFrame = CF(EFFECT.Position,MOVEDIRECTION)*CF(0,0,-MOVESPEED)
938
                    EFFECT.Orientation = ORI
939
                end
940
            end
941
            if PLAYSSOUND == false then
942
                EFFECT:remove()
943
            else
944
                SOUND.Stopped:Connect(function()
945
                    EFFECT:remove()
946
                end)
947
            end
948
        else
949
            if PLAYSSOUND == false then
950
                EFFECT:remove()
951
            else
952
                repeat Swait() until SOUND.Playing == false
953
                EFFECT:remove()
954
            end
955
        end
956
    end))
957
end
958
 
959
function MakeForm(PART,TYPE)
960
    if TYPE == "Cyl" then
961
        local MSH = IT("CylinderMesh",PART)
962
    elseif TYPE == "Ball" then
963
        local MSH = IT("SpecialMesh",PART)
964
        MSH.MeshType = "Sphere"
965
    elseif TYPE == "Wedge" then
966
        local MSH = IT("SpecialMesh",PART)
967
        MSH.MeshType = "Wedge"
968
    end
969
end
970
 
971
Debris = game:GetService("Debris")
972
 
973
function CastProperRay(StartPos, EndPos, Distance, Ignore)
974
    local DIRECTION = CF(StartPos,EndPos).lookVector
975
    return Raycast(StartPos, DIRECTION, Distance, Ignore)
976
end
977
 
978
local EyeSizes={
979
    NumberSequenceKeypoint.new(0,1,0),
980
    NumberSequenceKeypoint.new(1,0,0)
981
}
982
local EyeTrans={
983
    NumberSequenceKeypoint.new(0,0.8,0),
984
    NumberSequenceKeypoint.new(1,1,0)
985
}
986
local PE=Instance.new("ParticleEmitter",nil)
987
PE.LightEmission=.8
988
PE.Color = ColorSequence.new(BRICKC("Black").Color)
989
PE.Size=NumberSequence.new(EyeSizes)
990
PE.Transparency=NumberSequence.new(EyeTrans)
991
PE.Lifetime=NumberRange.new(0.35,1.5)
992
PE.Rotation=NumberRange.new(0,360)
993
PE.Rate=999
994
PE.VelocitySpread = 10000
995
PE.Acceleration = Vector3.new(0,0,0)
996
PE.Drag = 5
997
PE.Speed = NumberRange.new(0,0,0)
998
PE.Texture="http://www.roblox.com/asset/?id=1351966707"
999
PE.ZOffset = -0
1000
PE.Name = "PE"
1001
PE.Enabled = false
1002
 
1003
function particles(art)
1004
    local PARTICLES = PE:Clone()
1005
    PARTICLES.Parent = art
1006
end
1007
 
1008
function CreateDebreeRing(FLOOR,POSITION,SIZE,BLOCKSIZE,SWAIT)
1009
    if FLOOR ~= nil then
1010
        coroutine.resume(coroutine.create(function()
1011
            local PART = CreatePart(3, Effects, "Plastic", 0, 1, "Pearl", "DebreeCenter", VT(0,0,0))
1012
            PART.CFrame = CF(POSITION)
1013
            for i = 1, 45 do
1014
                local RingPiece = CreatePart(3, Effects, "Plastic", 0, 0, "Pearl", "DebreePart", BLOCKSIZE)
1015
                RingPiece.Material = FLOOR.Material
1016
                RingPiece.Color = FLOOR.Color
1017
                RingPiece.CFrame = PART.CFrame * ANGLES(RAD(0), RAD(i*8), RAD(0)) * CF(SIZE, 0, 0) * ANGLES(RAD(MRANDOM(-360,360)),RAD(MRANDOM(-360,360)),RAD(MRANDOM(-360,360)))
1018
                Debris:AddItem(RingPiece,SWAIT)
1019
            end
1020
            PART:remove()
1021
        end))
1022
    end
1023
end
1024
 
1025
function CreateFlyingDebree(FLOOR,POSITION,AMOUNT,BLOCKSIZE,SWAIT,STRENGTH)
1026
    if FLOOR ~= nil then
1027
        for i = 1, AMOUNT do
1028
            local DEBREE = CreatePart(3, Effects, "Neon", FLOOR.Reflectance, FLOOR.Transparency, "Peal", "Debree", BLOCKSIZE, false)
1029
            DEBREE.Material = FLOOR.Material
1030
            DEBREE.Color = FLOOR.Color
1031
            DEBREE.CFrame = POSITION * ANGLES(RAD(MRANDOM(-360,360)),RAD(MRANDOM(-360,360)),RAD(MRANDOM(-360,360)))
1032
            DEBREE.Velocity = VT(MRANDOM(-STRENGTH,STRENGTH),MRANDOM(-STRENGTH,STRENGTH),MRANDOM(-STRENGTH,STRENGTH))
1033
            coroutine.resume(coroutine.create(function()
1034
                Swait(15)
1035
                DEBREE.Parent = workspace
1036
                DEBREE.CanCollide = true
1037
                Debris:AddItem(DEBREE,SWAIT)
1038
            end))
1039
        end
1040
    end
1041
end
1042
1043
function Raycast(POSITION, DIRECTION, RANGE, IGNOREDECENDANTS)
1044
	return workspace:FindPartOnRay(Ray.new(POSITION, DIRECTION.unit * RANGE), IGNOREDECENDANTS)
1045
end
1046
1047
function PositiveAngle(NUMBER)
1048
	if NUMBER >= 0 then
1049
		NUMBER = 0
1050
	end
1051
	return NUMBER
1052
end
1053
1054
function NegativeAngle(NUMBER)
1055
	if NUMBER <= 0 then
1056
		NUMBER = 0
1057
	end
1058
	return NUMBER
1059
end
1060
1061
function Swait(NUMBER)
1062
	if NUMBER == 0 or NUMBER == nil then
1063
		ArtificialHB.Event:wait()
1064
	else
1065
		for i = 1, NUMBER do
1066
			ArtificialHB.Event:wait()
1067
		end
1068
	end
1069
end
1070
1071
function CreateMesh(MESH, PARENT, MESHTYPE, MESHID, TEXTUREID, SCALE, OFFSET)
1072
	local NEWMESH = IT(MESH)
1073
	if MESH == "SpecialMesh" then
1074
		NEWMESH.MeshType = MESHTYPE
1075
		if MESHID ~= "nil" and MESHID ~= "" then
1076
			NEWMESH.MeshId = "http://www.roblox.com/asset/?id="..MESHID
1077
		end
1078
		if TEXTUREID ~= "nil" and TEXTUREID ~= "" then
1079
			NEWMESH.TextureId = "http://www.roblox.com/asset/?id="..TEXTUREID
1080
		end
1081
	end
1082
	NEWMESH.Offset = OFFSET or VT(0, 0, 0)
1083
	NEWMESH.Scale = SCALE
1084
	NEWMESH.Parent = PARENT
1085
	return NEWMESH
1086
end
1087
1088
function CreatePart(FORMFACTOR, PARENT, MATERIAL, REFLECTANCE, TRANSPARENCY, BRICKCOLOR, NAME, SIZE, ANCHOR)
1089
	local NEWPART = IT("Part")
1090
	NEWPART.formFactor = FORMFACTOR
1091
	NEWPART.Reflectance = REFLECTANCE
1092
	NEWPART.Transparency = TRANSPARENCY
1093
	NEWPART.CanCollide = false
1094
	NEWPART.Locked = true
1095
	NEWPART.Anchored = true
1096
	if ANCHOR == false then
1097
		NEWPART.Anchored = false
1098
	end
1099
	NEWPART.BrickColor = BRICKC(tostring(BRICKCOLOR))
1100
	NEWPART.Name = NAME
1101
	NEWPART.Size = SIZE
1102
	NEWPART.Position = Torso.Position
1103
	NEWPART.Material = MATERIAL
1104
	NEWPART:BreakJoints()
1105
	NEWPART.Parent = PARENT
1106
	return NEWPART
1107
end
1108
1109
	local function weldBetween(a, b)
1110
	    local weldd = Instance.new("ManualWeld")
1111
	    weldd.Part0 = a
1112
	    weldd.Part1 = b
1113
	    weldd.C0 = CFrame.new()
1114
	    weldd.C1 = b.CFrame:inverse() * a.CFrame
1115
	    weldd.Parent = a
1116
	    return weldd
1117
	end
1118
1119
1120
function QuaternionFromCFrame(cf)
1121
	local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
1122
	local trace = m00 + m11 + m22
1123
	if trace > 0 then 
1124
		local s = math.sqrt(1 + trace)
1125
		local recip = 0.5 / s
1126
		return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5
1127
	else
1128
		local i = 0
1129
		if m11 > m00 then
1130
			i = 1
1131
		end
1132
		if m22 > (i == 0 and m00 or m11) then
1133
			i = 2
1134
		end
1135
		if i == 0 then
1136
			local s = math.sqrt(m00 - m11 - m22 + 1)
1137
			local recip = 0.5 / s
1138
			return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip
1139
		elseif i == 1 then
1140
			local s = math.sqrt(m11 - m22 - m00 + 1)
1141
			local recip = 0.5 / s
1142
			return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip
1143
		elseif i == 2 then
1144
			local s = math.sqrt(m22 - m00 - m11 + 1)
1145
			local recip = 0.5 / s return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip
1146
		end
1147
	end
1148
end
1149
 
1150
function QuaternionToCFrame(px, py, pz, x, y, z, w)
1151
	local xs, ys, zs = x + x, y + y, z + z
1152
	local wx, wy, wz = w * xs, w * ys, w * zs
1153
	local xx = x * xs
1154
	local xy = x * ys
1155
	local xz = x * zs
1156
	local yy = y * ys
1157
	local yz = y * zs
1158
	local zz = z * zs
1159
	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))
1160
end
1161
 
1162
function QuaternionSlerp(a, b, t)
1163
	local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4]
1164
	local startInterp, finishInterp;
1165
	if cosTheta >= 0.0001 then
1166
		if (1 - cosTheta) > 0.0001 then
1167
			local theta = ACOS(cosTheta)
1168
			local invSinTheta = 1 / SIN(theta)
1169
			startInterp = SIN((1 - t) * theta) * invSinTheta
1170
			finishInterp = SIN(t * theta) * invSinTheta
1171
		else
1172
			startInterp = 1 - t
1173
			finishInterp = t
1174
		end
1175
	else
1176
		if (1 + cosTheta) > 0.0001 then
1177
			local theta = ACOS(-cosTheta)
1178
			local invSinTheta = 1 / SIN(theta)
1179
			startInterp = SIN((t - 1) * theta) * invSinTheta
1180
			finishInterp = SIN(t * theta) * invSinTheta
1181
		else
1182
			startInterp = t - 1
1183
			finishInterp = t
1184
		end
1185
	end
1186
	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
1187
end
1188
1189
function Clerp(a, b, t)
1190
	local qa = {QuaternionFromCFrame(a)}
1191
	local qb = {QuaternionFromCFrame(b)}
1192
	local ax, ay, az = a.x, a.y, a.z
1193
	local bx, by, bz = b.x, b.y, b.z
1194
	local _t = 1 - t
1195
	return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t))
1196
end
1197
1198
function CreateFrame(PARENT, TRANSPARENCY, BORDERSIZEPIXEL, POSITION, SIZE, COLOR, BORDERCOLOR, NAME)
1199
	local frame = IT("Frame")
1200
	frame.BackgroundTransparency = TRANSPARENCY
1201
	frame.BorderSizePixel = BORDERSIZEPIXEL
1202
	frame.Position = POSITION
1203
	frame.Size = SIZE
1204
	frame.BackgroundColor3 = COLOR
1205
	frame.BorderColor3 = BORDERCOLOR
1206
	frame.Name = NAME
1207
	frame.Parent = PARENT
1208
	return frame
1209
end
1210
1211
function CreateLabel(PARENT, TEXT, TEXTCOLOR, TEXTFONTSIZE, TEXTFONT, TRANSPARENCY, BORDERSIZEPIXEL, STROKETRANSPARENCY, NAME)
1212
	local label = IT("TextLabel")
1213
	label.BackgroundTransparency = 1
1214
	label.Size = UD2(1, 0, 1, 0)
1215
	label.Position = UD2(0, 0, 0, 0)
1216
	label.TextColor3 = TEXTCOLOR
1217
	label.TextStrokeTransparency = STROKETRANSPARENCY
1218
	label.TextTransparency = TRANSPARENCY
1219
	label.FontSize = TEXTFONTSIZE
1220
	label.Font = TEXTFONT
1221
	label.BorderSizePixel = BORDERSIZEPIXEL
1222
	label.TextScaled = false
1223
	label.Text = TEXT
1224
	label.Name = NAME
1225
	label.Parent = PARENT
1226
	return label
1227
end
1228
1229
function NoOutlines(PART)
1230
	PART.TopSurface, PART.BottomSurface, PART.LeftSurface, PART.RightSurface, PART.FrontSurface, PART.BackSurface = 10, 10, 10, 10, 10, 10
1231
end
1232
1233
function CreateWeldOrSnapOrMotor(TYPE, PARENT, PART0, PART1, C0, C1)
1234
	local NEWWELD = IT(TYPE)
1235
	NEWWELD.Part0 = PART0
1236
	NEWWELD.Part1 = PART1
1237
	NEWWELD.C0 = C0
1238
	NEWWELD.C1 = C1
1239
	NEWWELD.Parent = PARENT
1240
	return NEWWELD
1241
end
1242
1243
local S = IT("Sound")
1244
function CreateSound(ID, PARENT, VOLUME, PITCH, DOESLOOP)
1245
	local NEWSOUND = nil
1246
	coroutine.resume(coroutine.create(function()
1247
		NEWSOUND = S:Clone()
1248
		NEWSOUND.Parent = PARENT
1249
		NEWSOUND.Volume = VOLUME
1250
		NEWSOUND.Pitch = PITCH
1251
		NEWSOUND.SoundId = "http://www.roblox.com/asset/?id="..ID
1252
		NEWSOUND:play()
1253
		if DOESLOOP == true then
1254
			NEWSOUND.Looped = true
1255
		else
1256
			repeat wait(1) until NEWSOUND.Playing == false
1257
			NEWSOUND:remove()
1258
		end
1259
	end))
1260
	return NEWSOUND
1261
end
1262
1263
function CFrameFromTopBack(at, top, back)
1264
	local right = top:Cross(back)
1265
	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)
1266
end
1267
1268
--WACKYEFFECT({EffectType = "", Size = VT(1,1,1), Size2 = VT(0,0,0), Transparency = 0, Transparency2 = 1, CFrame = CF(), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
1269
function WACKYEFFECT(Table)
1270
	local TYPE = (Table.EffectType or "Sphere")
1271
	local SIZE = (Table.Size or VT(1,1,1))
1272
	local ENDSIZE = (Table.Size2 or VT(0,0,0))
1273
	local TRANSPARENCY = (Table.Transparency or 0)
1274
	local ENDTRANSPARENCY = (Table.Transparency2 or 1)
1275
	local CFRAME = (Table.CFrame or Torso.CFrame)
1276
	local MOVEDIRECTION = (Table.MoveToPos or nil)
1277
	local ROTATION1 = (Table.RotationX or 0)
1278
	local ROTATION2 = (Table.RotationY or 0)
1279
	local ROTATION3 = (Table.RotationZ or 0)
1280
	local MATERIAL = (Table.Material or "Neon")
1281
	local COLOR = (Table.Color or C3(1,1,1))
1282
	local TIME = (Table.Time or 45)
1283
	local SOUNDID = (Table.SoundID or nil)
1284
	local SOUNDPITCH = (Table.SoundPitch or nil)
1285
	local SOUNDVOLUME = (Table.SoundVolume or nil)
1286
	coroutine.resume(coroutine.create(function()
1287
		local PLAYSSOUND = false
1288
		local SOUND = nil
1289
		local EFFECT = CreatePart(3, Effects, MATERIAL, 0, TRANSPARENCY, BRICKC("Pearl"), "Effect", VT(1,1,1), true)
1290
		if SOUNDID ~= nil and SOUNDPITCH ~= nil and SOUNDVOLUME ~= nil then
1291
			PLAYSSOUND = true
1292
			SOUND = CreateSound(SOUNDID, EFFECT, SOUNDVOLUME, SOUNDPITCH, false)
1293
		end
1294
		EFFECT.Color = COLOR
1295
		local MSH = nil
1296
		if TYPE == "Sphere" then
1297
			MSH = CreateMesh("SpecialMesh", EFFECT, "Sphere", "", "", SIZE, VT(0,0,0))
1298
		elseif TYPE == "Block" then
1299
			MSH = IT("BlockMesh",EFFECT)
1300
			MSH.Scale = VT(SIZE.X,SIZE.X,SIZE.X)
1301
		elseif TYPE == "Wave" then
1302
			MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "20329976", "", SIZE, VT(0,0,-SIZE.X/8))
1303
		elseif TYPE == "Ring" then
1304
			MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "559831844", "", VT(SIZE.X,SIZE.X,0.1), VT(0,0,0))
1305
		elseif TYPE == "Slash" then
1306
			MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662586858", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0))
1307
		elseif TYPE == "Round Slash" then
1308
			MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662585058", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0))
1309
		elseif TYPE == "Swirl" then
1310
			MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "1051557", "", SIZE, VT(0,0,0))
1311
		elseif TYPE == "Skull" then
1312
			MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "4770583", "", SIZE, VT(0,0,0))
1313
		elseif TYPE == "Crystal" then
1314
			MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "9756362", "", SIZE, VT(0,0,0))
1315
		end
1316
		if MSH ~= nil then
1317
			local MOVESPEED = nil
1318
			if MOVEDIRECTION ~= nil then
1319
				MOVESPEED = (CFRAME.p - MOVEDIRECTION).Magnitude/TIME
1320
			end
1321
			local GROWTH = SIZE - ENDSIZE
1322
			local TRANS = TRANSPARENCY - ENDTRANSPARENCY
1323
			if TYPE == "Block" then
1324
				EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))
1325
			else
1326
				EFFECT.CFrame = CFRAME
1327
			end
1328
			for LOOP = 1, TIME+1 do
1329
				Swait()
1330
				MSH.Scale = MSH.Scale - GROWTH/TIME
1331
				if TYPE == "Wave" then
1332
					MSH.Offset = VT(0,0,-MSH.Scale.X/8)
1333
				end
1334
				EFFECT.Transparency = EFFECT.Transparency - TRANS/TIME
1335
				if TYPE == "Block" then
1336
					EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))
1337
				else
1338
					EFFECT.CFrame = EFFECT.CFrame*ANGLES(RAD(ROTATION1),RAD(ROTATION2),RAD(ROTATION3))
1339
				end
1340
				if MOVEDIRECTION ~= nil then
1341
					local ORI = EFFECT.Orientation
1342
					EFFECT.CFrame = CF(EFFECT.Position,MOVEDIRECTION)*CF(0,0,-MOVESPEED)
1343
					EFFECT.Orientation = ORI
1344
				end
1345
			end
1346
			if PLAYSSOUND == false then
1347
				EFFECT:remove()
1348
			else
1349
				repeat Swait() until SOUND.Playing == false
1350
				EFFECT:remove()
1351
			end
1352
		else
1353
			if PLAYSSOUND == false then
1354
				EFFECT:remove()
1355
			else
1356
				repeat Swait() until SOUND.Playing == false
1357
				EFFECT:remove()
1358
			end
1359
		end
1360
	end))
1361
end
1362
1363
function MakeForm(PART,TYPE)
1364
	if TYPE == "Cyl" then
1365
		local MSH = IT("CylinderMesh",PART)
1366
	elseif TYPE == "Ball" then
1367
		local MSH = IT("SpecialMesh",PART)
1368
		MSH.MeshType = "Sphere"
1369
	elseif TYPE == "Wedge" then
1370
		local MSH = IT("SpecialMesh",PART)
1371
		MSH.MeshType = "Wedge"
1372
	end
1373
end
1374
1375
Debris = game:GetService("Debris")
1376
1377
function CastProperRay(StartPos, EndPos, Distance, Ignore)
1378
	local DIRECTION = CF(StartPos,EndPos).lookVector
1379
	return Raycast(StartPos, DIRECTION, Distance, Ignore)
1380
end
1381
1382
function turnto(position)
1383
	RootPart.CFrame=CFrame.new(RootPart.CFrame.p,VT(position.X,RootPart.Position.Y,position.Z)) * CFrame.new(0, 0, 0)
1384
end
1385
1386
--//=================================\\
1387
--||	     WEAPON CREATION
1388
--\\=================================//
1389
local BODY = {}
1390
1391
for _, c in pairs(Character:GetDescendants()) do
1392
	if c:IsA("BasePart") and c.Name ~= "Handle" then
1393
		if c ~= RootPart and c ~= Torso and c ~= Head and c ~= RightArm and c ~= LeftArm and c ~= RightLeg and c ~= LeftLeg then
1394
			c.CustomPhysicalProperties = PhysicalProperties.new(0, 0, 0, 0, 0)
1395
		end
1396
		table.insert(BODY,{c,c.Parent,c.Material,c.Color,c.Transparency})
1397
	elseif c:IsA("JointInstance") then
1398
		table.insert(BODY,{c,c.Parent,nil,nil,nil})
1399
	end
1400
end
1401
1402
for e = 1, #BODY do
1403
	if BODY[e] ~= nil then
1404
		local STUFF = BODY[e]
1405
		local PART = STUFF[1]
1406
		local PARENT = STUFF[2]
1407
		local MATERIAL = STUFF[3]
1408
		local COLOR = STUFF[4]
1409
		local TRANSPARENCY = STUFF[5]
1410
		if PART.ClassName == "Part" and PART ~= RootPart then
1411
			PART.Material = MATERIAL
1412
			PART.Color = COLOR
1413
			PART.Transparency = TRANSPARENCY
1414
		end
1415
		PART.AncestryChanged:Connect(function()
1416
			PART.Parent = PARENT
1417
		end)
1418
	end
1419
end
1420
1421
-------------------------------------------------------
1422
local Orbd = Instance.new("Part", Character)
1423
Orbd.Name = "Orbd"
1424
Orbd.Shape = Enum.PartType.Ball
1425
Orbd.CanCollide = false
1426
Orbd.BrickColor = BrickColor.new("Really black")
1427
Orbd.Transparency = 0
1428
Orbd.Material = "Neon"
1429
Orbd.Size = Vector3.new(0.3, 0.3, 0.3)
1430
Orbd.TopSurface = Enum.SurfaceType.Smooth
1431
Orbd.BottomSurface = Enum.SurfaceType.Smooth
1432
1433
local Weld = Instance.new("Weld", Orbd)
1434
Weld.Part0 = Character.Head
1435
Weld.Part1 = Orbd
1436
Weld.C1 = CFrame.new(-0.26, -0.24, 0.55)
1437
1438
--------------------------------------------------------
1439
local Orbvc = Instance.new("Part", Character)
1440
Orbvc.Name = "Orbvc"
1441
Orbvc.Shape = Enum.PartType.Ball
1442
Orbvc.CanCollide = false
1443
Orbvc.BrickColor = BrickColor.new("Really black")
1444
Orbvc.Transparency = 0
1445
Orbvc.Material = "Neon"
1446
Orbvc.Size = Vector3.new(0.3, 0.3, 0.3)
1447
Orbvc.TopSurface = Enum.SurfaceType.Smooth
1448
Orbvc.BottomSurface = Enum.SurfaceType.Smooth
1449
1450
local Weld = Instance.new("Weld", Orbvc)
1451
Weld.Part0 = Character.Head
1452
Weld.Part1 = Orbvc
1453
Weld.C1 = CFrame.new(0.26, -0.24, 0.55)
1454
---------------------------------------------------------
1455
local Mask = Instance.new("Part", Character)
1456
Mask.Name = "Mask"
1457
Mask.CanCollide = false
1458
Mask.BrickColor = BrickColor.new("Medium stone grey")
1459
Mask.Transparency = 0
1460
Mask.Material = "Neon"
1461
Mask.Size = Vector3.new(0.1, 0.1, 0.1)
1462
Mask.TopSurface = Enum.SurfaceType.Smooth
1463
Mask.BottomSurface = Enum.SurfaceType.Smooth
1464
1465
local Weld = Instance.new("Weld", Mask)
1466
Weld.Part0 = Character.Head
1467
Weld.Part1 = Mask
1468
Weld.C1 = CFrame.new(0, -0.1, 0.8)
1469
1470
local M1 = Instance.new("SpecialMesh")
1471
M1.Parent = Mask
1472
M1.MeshId = "http://www.roblox.com/asset/?id=62679079"
1473
M1.Scale = Vector3.new( 1, 1, 2)
1474
----------------------------------------------------------
1475
local Hood = Instance.new("Part", Character)
1476
Hood.Name = "Hood"
1477
Hood.CanCollide = false
1478
Hood.BrickColor = BrickColor.new("Really black")
1479
Hood.Transparency = 0
1480
Hood.Material = "Plastic"
1481
Hood.Size = Vector3.new(0.1, 0.1, 0.1)
1482
Hood.TopSurface = Enum.SurfaceType.Smooth
1483
Hood.BottomSurface = Enum.SurfaceType.Smooth
1484
1485
local Weld = Instance.new("Weld", Hood)
1486
Weld.Part0 = Character.Head
1487
Weld.Part1 = Hood
1488
Weld.C1 = CFrame.new(0, -0.2, 0)
1489
1490
local M2 = Instance.new("SpecialMesh")
1491
M2.Parent = Hood
1492
M2.MeshId = "http://www.roblox.com/asset/?id=83499032"
1493
M2.Scale = Vector3.new( 1, 1.2, 1.1)
1494
------------------------------------------------------
1495
--[[
1496
		Thanks for using Build-To-Lua by jarredbcv.
1497
]]--
1498
1499
New = function(Object, Parent, Name, Data)
1500
	local Object = Instance.new(Object)
1501
	for Index, Value in pairs(Data or {}) do
1502
		Object[Index] = Value
1503
	end
1504
	Object.Parent = Parent
1505
	Object.Name = Name
1506
	return Object
1507
end
1508
1509
for i = 1, 35 do
1510
	local FACE = CreatePart(3, Character, "Fabric", 0, 0+(i-1)/35.2, "Dark stone grey", "FaceGradient", VT(1.01,0.5,1.01),false)
1511
	FACE.Color = C3(0,0,0)
1512
	Head:FindFirstChildOfClass("SpecialMesh"):Clone().Parent = FACE
1513
	CreateWeldOrSnapOrMotor("Weld", Head, Head, FACE, CF(0,0.35-(i-1)/75,0), CF(0, 0, 0))
1514
end
1515
1516
local Eye = CreatePart(3, Character, "Neon", 0, 0, "Really red", "Eye", VT(0.6,0.1,1)/2,false)
1517
MakeForm(Eye,"Ball")
1518
CreateWeldOrSnapOrMotor("Weld", Eye, Head, Eye, CF(0,0.2,0) * ANGLES(RAD(0), RAD(-18), RAD(15)), CF(0, 0, 0.4))
1519
local Eye = CreatePart(3, Character, "Neon", 0, 0, "Black", "Eye", VT(0.6,0.1,1)/2,false)
1520
MakeForm(Eye,"Ball")
1521
CreateWeldOrSnapOrMotor("Weld", Eye, Head, Eye, CF(0,0.2,0) * ANGLES(RAD(0), RAD(18), RAD(-15)), CF(0, 0, 0.4))
1522
local Eye = CreatePart(3, Character, "Neon", 0, 0, "Black", "Eye", VT(0.1,1,1)/2,false)
1523
MakeForm(Eye,"Ball")
1524
CreateWeldOrSnapOrMotor("Weld", Eye, Head, Eye, CF(0,0.15,0) * ANGLES(RAD(0), RAD(-18), RAD(0)), CF(0, 0, 0.4))
1525
local Eye = CreatePart(3, Character, "Neon", 0, 0, "Black", "Eye", VT(0.1,1,1)/2,false)
1526
MakeForm(Eye,"Ball")
1527
CreateWeldOrSnapOrMotor("Weld", Eye, Head, Eye, CF(0,0.15,0) * ANGLES(RAD(0), RAD(18), RAD(0)), CF(0, 0, 0.4))
1528
1529
local BasePart = CreatePart(3, Weapon, "SmoothPlastic", 1, 1, "Black", "BraceletPart", VT(1.01,0.3,1.01),false)
1530
CreateWeldOrSnapOrMotor("Weld", RightArm, RightArm, BasePart, CF(0, -0.2, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
1531
for i = 1, 3 do
1532
	local Part = CreatePart(3, Weapon, "SmoothPlastic", 1, 1, "Black", "BraceletPart", VT(0.2,1.02,0.2),false)
1533
	CreateWeldOrSnapOrMotor("Weld", BasePart, BasePart, Part, CF(0, 0, 0.6-0.3*i) * ANGLES(RAD(0), RAD(0), RAD(90)), CF(0, 0, 0))
1534
	MakeForm(Part,"Cyl")
1535
end
1536
for i = 1, 3 do
1537
	local Part = CreatePart(3, Weapon, "SmoothPlastic", 1, 1, "Black", "BraceletPart", VT(0.2,1.02,0.2),false)
1538
	CreateWeldOrSnapOrMotor("Weld", BasePart, BasePart, Part, CF(0.6-0.3*i, 0, 0) * ANGLES(RAD(0), RAD(90), RAD(90)), CF(0, 0, 0))
1539
	MakeForm(Part,"Cyl")
1540
end
1541
local Part = CreatePart(3, Weapon, "SmoothPlastic", 1, 1, "Black", "BraceletPart", VT(0.51,0.6,0.25),false)
1542
CreateWeldOrSnapOrMotor("Weld", BasePart, BasePart, Part, CF(-0.125, -0.4, -0.25) * ANGLES(RAD(0), RAD(90), RAD(180)), CF(0, 0, 0))
1543
MakeForm(Part,"Wedge")
1544
local Part = CreatePart(3, Weapon, "SmoothPlastic", 1, 1, "Black", "BraceletPart", VT(0.51,0.6,0.25),false)
1545
CreateWeldOrSnapOrMotor("Weld", BasePart, BasePart, Part, CF(0.125, -0.4, -0.25) * ANGLES(RAD(0), RAD(-90), RAD(180)), CF(0, 0, 0))
1546
MakeForm(Part,"Wedge")
1547
local Part = CreatePart(3, Weapon, "SmoothPlastic", 1, 1, "Black", "BraceletPart", VT(0.52,0.5,0.25/2.3),false)
1548
CreateWeldOrSnapOrMotor("Weld", BasePart, BasePart, Part, CF(-0.125/2.3, -0.25, -0.25) * ANGLES(RAD(0), RAD(90), RAD(180)), CF(0, 0, 0))
1549
MakeForm(Part,"Wedge")
1550
local Part = CreatePart(3, Weapon, "SmoothPlastic", 1, 1, "Black", "BraceletPart", VT(0.52,0.5,0.25/2.3),false)
1551
CreateWeldOrSnapOrMotor("Weld", BasePart, BasePart, Part, CF(0.125/2.3, -0.25, -0.25) * ANGLES(RAD(0), RAD(-90), RAD(180)), CF(0, 0, 0))
1552
MakeForm(Part,"Wedge")
1553
1554
1555
1556
1557
1558
1559
1560
for _, c in pairs(Weapon:GetChildren()) do
1561
	if c.ClassName == "Part" then
1562
		c.CustomPhysicalProperties = PhysicalProperties.new(0, 0, 0, 0, 0)
1563
		local AURA = c:Clone()
1564
		AURA:BreakJoints()
1565
		AURA.Parent = c
1566
		AURA.CFrame = c.CFrame
1567
		AURA.Size = AURA.Size*1.001
1568
		AURA.Transparency = 0.8
1569
		AURA.BrickColor = BRICKC"Royal purple"
1570
		AURA.Material = "Neon"
1571
		weldBetween(c,AURA)
1572
	end
1573
end
1574
function refit()
1575
	Character.Parent = workspace
1576
	for e = 1, #BODY do
1577
		if BODY[e] ~= nil then
1578
			local STUFF = BODY[e]
1579
			local PART = STUFF[1]
1580
			local PARENT = STUFF[2]
1581
			local MATERIAL = STUFF[3]
1582
			local COLOR = STUFF[4]
1583
			local TRANSPARENCY = STUFF[5]
1584
			if PART.ClassName == "Part" and PART ~= RootPart then
1585
				PART.Material = MATERIAL
1586
				PART.Color = COLOR
1587
				PART.Transparency = TRANSPARENCY
1588
			end
1589
			if PART.Parent ~= PARENT then
1590
				Humanoid:remove()
1591
				PART.Parent = PARENT
1592
				Humanoid = IT("Humanoid",Character)
1593
			end
1594
		end
1595
	end
1596
end
1597
1598
local SKILLTEXTCOLOR = BRICKC"Black".Color
1599
local SKILLFONT = "Bodoni"
1600
local SKILLTEXTSIZE = 7
1601
1602
Weapon.Parent = Character
1603
1604
Humanoid.Died:connect(function()
1605
	
1606
	ATTACK = true
1607
end)
1608
1609
local SKILL1FRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.23-.20, 0, 0.84, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 1 Frame")
1610
local SKILL2FRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.50+.20, 0, 0.84, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 2 Frame")
1611
local SKILL3FRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.23, 0, 0.90, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 3 Frame")
1612
local SKILL4FRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.50, 0, 0.90, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 4 Frame")
1613
local SKILL5FRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.365, 0, 0.86, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 5 Frame")
1614
local SKILL6FRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.365, 0, 0.76, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 6 Frame")
1615
1616
1617
local SKILL1TEXT = CreateLabel(SKILL1FRAME, "[Z] BEAM OF CORRUPTION", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 0, 0, "Text 1")
1618
local SKILL2TEXT = CreateLabel(SKILL2FRAME, "[X] EXPLOSION", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 0, 0, "Text 2")
1619
local SKILL3TEXT = CreateLabel(SKILL3FRAME, "[C] STUN", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 0, 0, "Text 3")
1620
local SKILL4TEXT = CreateLabel(SKILL4FRAME, "[E] SCREAM", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 0, 0, "Text 4")
1621
local SKILL5TEXT = CreateLabel(SKILL5FRAME, "[R] WARP", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 0, 0, "Text 5")
1622
local SKILL6TEXT = CreateLabel(SKILL6FRAME, "[Q] PAIN", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 0, 0, "Text 6")
1623
1624
--//=================================\\
1625
--||	     RAGDOLL STUFF
1626
--\\=================================//
1627
1628
function recurse(root,callback,i)
1629
	i= i or 0
1630
	for _,v in pairs(root:GetChildren()) do
1631
		i = i + 1
1632
		callback(i,v)
1633
		
1634
		if #v:GetChildren() > 0 then
1635
			i = recurse(v,callback,i)
1636
		end
1637
	end
1638
	
1639
	return i
1640
end
1641
1642
function ragdollJoint(character, part0, part1, attachmentName, className, properties)
1643
	attachmentName = attachmentName.."RigAttachment"
1644
	local constraint = Instance.new(className.."Constraint")
1645
	constraint.Attachment0 = part0:FindFirstChild(attachmentName)
1646
	constraint.Attachment1 = part1:FindFirstChild(attachmentName)
1647
	constraint.Name = "RagdollConstraint"..part1.Name
1648
	
1649
	for _,propertyData in next,properties or {} do
1650
		constraint[propertyData[1]] = propertyData[2]
1651
	end
1652
	
1653
	constraint.Parent = character
1654
end
1655
1656
function getAttachment0(character, attachmentName)
1657
	for _,child in next,character:GetChildren() do
1658
		local attachment = child:FindFirstChild(attachmentName)
1659
		if attachment then
1660
			return attachment
1661
		end
1662
	end
1663
end
1664
1665
function ArtificialHitbox(Part)
1666
	local HITBOX = CreatePart(3, Part, "Metal", 0, 1, "Really black", "Hitbox", Part.Size/2, false)
1667
	HITBOX.CanCollide = true
1668
	HITBOX.CFrame = Part.CFrame
1669
	weldBetween(Part,HITBOX)
1670
end
1671
1672
function R15Ragdoll(character,KeepArms)
1673
	character:BreakJoints()
1674
	coroutine.resume(coroutine.create(function()
1675
		recurse(character, function(_,v)
1676
			if v:IsA("Attachment") then
1677
				v.Axis = Vector3.new(0, 1, 0)
1678
				v.SecondaryAxis = Vector3.new(0, 0, 1)
1679
				v.Rotation = Vector3.new(0, 0, 0)
1680
			end
1681
		end)
1682
		for _,child in next,character:GetChildren() do
1683
			if child:IsA("Accoutrement") then
1684
				for _,part in next,child:GetChildren() do
1685
					if part:IsA("BasePart") and part.Name ~= "HumanoidRootPart" then
1686
						local attachment1 = part:FindFirstChildOfClass("Attachment")
1687
						local attachment0 = getAttachment0(character,attachment1.Name)
1688
						if attachment0 and attachment1 then
1689
							local constraint = Instance.new("HingeConstraint")
1690
							constraint.Attachment0 = attachment0
1691
							constraint.Attachment1 = attachment1
1692
							constraint.LimitsEnabled = true
1693
							constraint.UpperAngle = 0
1694
							constraint.LowerAngle = 0
1695
							constraint.Parent = character
1696
						end
1697
						ArtificialHitbox(part)
1698
					elseif part.Name == "HumanoidRootPart" then
1699
						part:remove()
1700
					end
1701
				end
1702
			end
1703
		end
1704
		
1705
		ragdollJoint(character,character.LowerTorso, character.UpperTorso, "Waist", "BallSocket", {
1706
			{"LimitsEnabled",true};
1707
			{"UpperAngle",5};
1708
		})
1709
		if character:FindFirstChild("Head") then
1710
			ragdollJoint(character,character.UpperTorso, character.Head, "Neck", "BallSocket", {
1711
				{"LimitsEnabled",true};
1712
				{"UpperAngle",15};
1713
			})
1714
		end
1715
		
1716
		local handProperties = {
1717
			{"LimitsEnabled", true};
1718
			{"UpperAngle",0};
1719
			{"LowerAngle",0};
1720
		}
1721
		ragdollJoint(character,character.LeftLowerArm, character.LeftHand, "LeftWrist", "Hinge", handProperties)
1722
		ragdollJoint(character,character.RightLowerArm, character.RightHand, "RightWrist", "Hinge", handProperties)
1723
		
1724
		local shinProperties = {
1725
			{"LimitsEnabled", true};
1726
			{"UpperAngle", 0};
1727
			{"LowerAngle", -75};
1728
		}
1729
		ragdollJoint(character,character.LeftUpperLeg, character.LeftLowerLeg, "LeftKnee", "Hinge", shinProperties)
1730
		ragdollJoint(character,character.RightUpperLeg, character.RightLowerLeg, "RightKnee", "Hinge", shinProperties)
1731
		
1732
		local footProperties = {
1733
			{"LimitsEnabled", true};
1734
			{"UpperAngle", 15};
1735
			{"LowerAngle", -45};
1736
		}
1737
		ragdollJoint(character,character.LeftLowerLeg, character.LeftFoot, "LeftAnkle", "Hinge", footProperties)
1738
		ragdollJoint(character,character.RightLowerLeg, character.RightFoot, "RightAnkle", "Hinge", footProperties)
1739
		if KeepArms == true then
1740
			ragdollJoint(character,character.UpperTorso, character.RightUpperArm, "RightShoulder", "BallSocket")
1741
			ragdollJoint(character,character.RightUpperArm, character.RightLowerArm, "RightElbow", "BallSocket")
1742
			ragdollJoint(character,character.UpperTorso, character.LeftUpperArm, "LeftShoulder", "BallSocket")
1743
			ragdollJoint(character,character.LeftUpperArm, character.LeftLowerArm, "LeftElbow", "BallSocket")
1744
		end
1745
		ragdollJoint(character,character.LowerTorso, character.LeftUpperLeg, "LeftHip", "BallSocket")
1746
		ragdollJoint(character,character.LowerTorso, character.RightUpperLeg, "RightHip", "BallSocket")
1747
		Debris:AddItem(character,5)
1748
	end))
1749
end
1750
1751
function Ragdoll(Character2,CharTorso,KeepArms)
1752
	coroutine.resume(coroutine.create(function()
1753
		Character2:BreakJoints()
1754
		local hum = Character2:findFirstChild("Humanoid")
1755
		hum:remove()
1756
		local function Scan(ch)
1757
			local e
1758
			for e = 1,#ch do
1759
				Scan(ch[e]:GetChildren())
1760
				if ch[e].ClassName == "Weld" or ch[e].ClassName == "Motor6D" then
1761
					ch[e]:remove()
1762
				end
1763
			end
1764
		end
1765
		local NEWHUM = IT("Humanoid")
1766
		NEWHUM.Name = "Corpse"
1767
		NEWHUM.Health = 0
1768
		NEWHUM.MaxHealth = 0
1769
		NEWHUM.PlatformStand = true
1770
		NEWHUM.Parent = Character2
1771
		NEWHUM.DisplayDistanceType = "None"
1772
	
1773
		local ch = Character2:GetChildren()
1774
		local i
1775
		for i = 1,#ch do
1776
			if ch[i].Name == "THandle1" or ch[i].Name == "THandle2" then
1777
				ch[i]:remove()
1778
			end
1779
		end
1780
	
1781
		local Torso2 = Character2.Torso
1782
		local movevector = Vector3.new()
1783
	
1784
		if Torso2 then
1785
			movevector = CFrame.new(CharTorso.Position,Torso2.Position).lookVector
1786
			local Head = Character2:FindFirstChild("Head")
1787
			if Head then
1788
				local Neck = Instance.new("Weld")
1789
				Neck.Name = "Neck"
1790
				Neck.Part0 = Torso2
1791
				Neck.Part1 = Head
1792
				Neck.C0 = CFrame.new(0, 1.5, 0)
1793
				Neck.C1 = CFrame.new()
1794
				Neck.Parent = Torso2
1795
	
1796
			end
1797
			local Limb = Character2:FindFirstChild("Right Arm")
1798
			if Limb and KeepArms == true then
1799
	
1800
				Limb.CFrame = Torso2.CFrame * CFrame.new(1.5, 0, 0)
1801
				local Joint = Instance.new("Glue")
1802
				Joint.Name = "RightShoulder"
1803
				Joint.Part0 = Torso2
1804
				Joint.Part1 = Limb
1805
				Joint.C0 = CFrame.new(1.5, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
1806
				Joint.C1 = CFrame.new(-0, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
1807
				Joint.Parent = Torso2
1808
	
1809
				local B = Instance.new("Part")
1810
				B.TopSurface = 0
1811
				B.BottomSurface = 0
1812
				B.formFactor = "Symmetric"
1813
				B.Size = Vector3.new(1, 1, 1)
1814
				B.Transparency = 1
1815
				B.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0)
1816
				B.Parent = Character2
1817
				local W = Instance.new("Weld")
1818
				W.Part0 = Limb
1819
				W.Part1 = B
1820
				W.C0 = CFrame.new(0, -0.5, 0)
1821
				W.Parent = Limb
1822
	
1823
			end
1824
			local Limb = Character2:FindFirstChild("Left Arm")
1825
			if Limb and KeepArms == true then
1826
	
1827
				Limb.CFrame = Torso2.CFrame * CFrame.new(-1.5, 0, 0)
1828
				local Joint = Instance.new("Glue")
1829
				Joint.Name = "LeftShoulder"
1830
				Joint.Part0 = Torso2
1831
				Joint.Part1 = Limb
1832
				Joint.C0 = CFrame.new(-1.5, 0.5, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
1833
				Joint.C1 = CFrame.new(0, 0.5, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
1834
				Joint.Parent = Torso2
1835
	
1836
				local B = Instance.new("Part")
1837
				B.TopSurface = 0
1838
				B.BottomSurface = 0
1839
				B.formFactor = "Symmetric"
1840
				B.Size = Vector3.new(1, 1, 1)
1841
				B.Transparency = 1
1842
				B.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0)
1843
				B.Parent = Character2
1844
				local W = Instance.new("Weld")
1845
				W.Part0 = Limb
1846
				W.Part1 = B
1847
				W.C0 = CFrame.new(0, -0.5, 0)
1848
				W.Parent = Limb
1849
	
1850
			end
1851
			local Limb = Character2:FindFirstChild("Right Leg")
1852
			if Limb then
1853
	
1854
				Limb.CFrame = Torso2.CFrame * CFrame.new(0.5, -2, 0)
1855
				local Joint = Instance.new("Glue")
1856
				Joint.Name = "RightHip"
1857
				Joint.Part0 = Torso2
1858
				Joint.Part1 = Limb
1859
				Joint.C0 = CFrame.new(0.5, -1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
1860
				Joint.C1 = CFrame.new(0, 1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
1861
				Joint.Parent = Torso2
1862
	
1863
				local B = Instance.new("Part")
1864
				B.TopSurface = 0
1865
				B.BottomSurface = 0
1866
				B.formFactor = "Symmetric"
1867
				B.Size = Vector3.new(1, 1, 1)
1868
				B.Transparency = 1
1869
				B.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0)
1870
				B.Parent = Character2
1871
				local W = Instance.new("Weld")
1872
				W.Part0 = Limb
1873
				W.Part1 = B
1874
				W.C0 = CFrame.new(0, -0.5, 0)
1875
				W.Parent = Limb
1876
	
1877
			end
1878
			local Limb = Character2:FindFirstChild("Left Leg")
1879
			if Limb then
1880
	
1881
				Limb.CFrame = Torso2.CFrame * CFrame.new(-0.5, -2, 0)
1882
				local Joint = Instance.new("Glue")
1883
				Joint.Name = "LeftHip"
1884
				Joint.Part0 = Torso2
1885
				Joint.Part1 = Limb
1886
				Joint.C0 = CFrame.new(-0.5, -1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
1887
				Joint.C1 = CFrame.new(-0, 1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
1888
				Joint.Parent = Torso2
1889
	
1890
				local B = Instance.new("Part")
1891
				B.TopSurface = 0
1892
				B.BottomSurface = 0
1893
				B.formFactor = "Symmetric"
1894
				B.Size = Vector3.new(1, 1, 1)
1895
				B.Transparency = 1
1896
				B.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0)
1897
				B.Parent = Character2
1898
				local W = Instance.new("Weld")
1899
				W.Part0 = Limb
1900
				W.Part1 = B
1901
				W.C0 = CFrame.new(0, -0.5, 0)
1902
				W.Parent = Limb
1903
	
1904
			end
1905
			--[
1906
			local Bar = Instance.new("Part")
1907
			Bar.TopSurface = 0
1908
			Bar.BottomSurface = 0
1909
			Bar.formFactor = "Symmetric"
1910
			Bar.Size = Vector3.new(1, 1, 1)
1911
			Bar.Transparency = 1
1912
			Bar.CFrame = Torso2.CFrame * CFrame.new(0, 0.5, 0)
1913
			Bar.Parent = Character2
1914
			local Weld = Instance.new("Weld")
1915
			Weld.Part0 = Torso2
1916
			Weld.Part1 = Bar
1917
			Weld.C0 = CFrame.new(0, 0.5, 0)
1918
			Weld.Parent = Torso2
1919
			--]]
1920
		end
1921
		Character2.Parent = workspace
1922
		Debris:AddItem(Character2,5)
1923
	
1924
		return Character2,Torso2
1925
	end))
1926
end
1927
1928
--//=================================\\
1929
--||	     DAMAGE FUNCTIONS
1930
--\\=================================//
1931
function StatLabel(CFRAME, TEXT, COLOR)
1932
    local STATPART = CreatePart(3, Effects, "SmoothPlastic", 0, 1, "Really black", "Effect", VT())
1933
    STATPART.CFrame = CF(CFRAME.p,CFRAME.p+VT(MRANDOM(-5,5),MRANDOM(0,5),MRANDOM(-5,5)))
1934
    local BODYGYRO = IT("BodyGyro", STATPART)
1935
    game:GetService("Debris"):AddItem(STATPART ,5)
1936
    local BILLBOARDGUI = Instance.new("BillboardGui", STATPART)
1937
    BILLBOARDGUI.Adornee = STATPART
1938
    BILLBOARDGUI.Size = UD2(2.5, 0, 2.5 ,0)
1939
    BILLBOARDGUI.StudsOffset = VT(-2, 2, 0)
1940
    BILLBOARDGUI.AlwaysOnTop = false
1941
    local TEXTLABEL = Instance.new("TextLabel", BILLBOARDGUI)
1942
    TEXTLABEL.BackgroundTransparency = 1
1943
    TEXTLABEL.Size = UD2(2.5, 0, 2.5, 0)
1944
    TEXTLABEL.Text = TEXT
1945
    TEXTLABEL.Font = SKILLFONT
1946
    TEXTLABEL.FontSize="Size42"
1947
    TEXTLABEL.TextColor3 = COLOR
1948
    TEXTLABEL.TextStrokeTransparency = 0
1949
    TEXTLABEL.TextScaled = true
1950
    TEXTLABEL.TextWrapped = true
1951
    coroutine.resume(coroutine.create(function(THEPART, THEBODYPOSITION, THETEXTLABEL)
1952
        for i = 1, 50 do
1953
            Swait()
1954
            STATPART.CFrame = STATPART.CFrame * CF(0,0,-0.2)
1955
            TEXTLABEL.TextTransparency = TEXTLABEL.TextTransparency + (1/50)
1956
            TEXTLABEL.TextStrokeTransparency = TEXTLABEL.TextTransparency
1957
        end
1958
        THEPART.Parent = nil
1959
    end),STATPART, TEXTLABEL)
1960
end
1961
1962
function StatLabel(CFRAME, TEXT, COLOR)
1963
	local STATPART = CreatePart(3, Effects, "SmoothPlastic", 0, 1, "Really black", "Effect", VT())
1964
	STATPART.CFrame = CF(CFRAME.p,CFRAME.p+VT(MRANDOM(-5,5),MRANDOM(0,5),MRANDOM(-5,5)))
1965
	local BODYGYRO = IT("BodyGyro", STATPART)
1966
	game:GetService("Debris"):AddItem(STATPART ,5)
1967
	local BILLBOARDGUI = Instance.new("BillboardGui", STATPART)
1968
	BILLBOARDGUI.Adornee = STATPART
1969
	BILLBOARDGUI.Size = UD2(2.5, 0, 2.5 ,0)
1970
	BILLBOARDGUI.StudsOffset = VT(-2, 2, 0)
1971
	BILLBOARDGUI.AlwaysOnTop = false
1972
	local TEXTLABEL = Instance.new("TextLabel", BILLBOARDGUI)
1973
	TEXTLABEL.BackgroundTransparency = 1
1974
	TEXTLABEL.Size = UD2(2.5, 0, 2.5, 0)
1975
	TEXTLABEL.Text = TEXT
1976
	TEXTLABEL.Font = "Fantasy"
1977
	TEXTLABEL.FontSize="Size42"
1978
	TEXTLABEL.TextColor3 = COLOR
1979
	TEXTLABEL.TextStrokeTransparency = 0
1980
	TEXTLABEL.TextScaled = true
1981
	TEXTLABEL.TextWrapped = true
1982
	coroutine.resume(coroutine.create(function(THEPART, THEBODYPOSITION, THETEXTLABEL)
1983
		for i = 1, 50 do
1984
			Swait()
1985
			STATPART.CFrame = STATPART.CFrame * CF(0,0,-0.2)
1986
			TEXTLABEL.TextTransparency = TEXTLABEL.TextTransparency + (1/50)
1987
			TEXTLABEL.TextStrokeTransparency = TEXTLABEL.TextTransparency
1988
		end
1989
		THEPART.Parent = nil
1990
	end),STATPART, TEXTLABEL)
1991
end
1992
1993
function StatLabel(CFRAME, TEXT, COLOR)
1994
	local STATPART = CreatePart(3, Effects, "SmoothPlastic", 0, 1, "Really black", "Effect", VT())
1995
	STATPART.CFrame = CF(CFRAME.p,CFRAME.p+VT(MRANDOM(-5,5),MRANDOM(0,5),MRANDOM(-5,5)))
1996
	local BODYGYRO = IT("BodyGyro", STATPART)
1997
	game:GetService("Debris"):AddItem(STATPART ,5)
1998
	local BILLBOARDGUI = Instance.new("BillboardGui", STATPART)
1999
	BILLBOARDGUI.Adornee = STATPART
2000
	BILLBOARDGUI.Size = UD2(2.5, 0, 2.5 ,0)
2001
	BILLBOARDGUI.StudsOffset = VT(-2, 2, 0)
2002
	BILLBOARDGUI.AlwaysOnTop = false
2003
	local TEXTLABEL = Instance.new("TextLabel", BILLBOARDGUI)
2004
	TEXTLABEL.BackgroundTransparency = 1
2005
	TEXTLABEL.Size = UD2(2.5, 0, 2.5, 0)
2006
	TEXTLABEL.Text = TEXT
2007
	TEXTLABEL.Font = SKILLFONT
2008
	TEXTLABEL.FontSize="Size42"
2009
	TEXTLABEL.TextColor3 = COLOR
2010
	TEXTLABEL.TextStrokeTransparency = 0
2011
	TEXTLABEL.TextScaled = true
2012
	TEXTLABEL.TextWrapped = true
2013
	coroutine.resume(coroutine.create(function(THEPART, THEBODYPOSITION, THETEXTLABEL)
2014
		for i = 1, 50 do
2015
			Swait()
2016
			STATPART.CFrame = STATPART.CFrame * CF(0,0,-0.2)
2017
			TEXTLABEL.TextTransparency = TEXTLABEL.TextTransparency + (1/50)
2018
			TEXTLABEL.TextStrokeTransparency = TEXTLABEL.TextTransparency
2019
		end
2020
		THEPART.Parent = nil
2021
	end),STATPART, TEXTLABEL)
2022
end
2023
2024
--//=================================\\
2025
--||			DAMAGING
2026
--\\=================================//
2027
function ApplyDamage(Humanoid,Damage,TorsoPart)
2028
	local defence = Instance.new("BoolValue",Humanoid.Parent)
2029
	defence.Name = ("HitBy"..Player.Name)
2030
	game:GetService("Debris"):AddItem(defence, 0.001)
2031
	Damage = Damage * DAMAGEMULTIPLIER
2032
	if Humanoid.Health ~= 0 then
2033
		local CritChance = MRANDOM(1,100)
2034
		if Damage > Humanoid.Health then
2035
			Damage = math.ceil(Humanoid.Health)
2036
			if Damage == 0 then
2037
				Damage = 0.1
2038
			end
2039
		end
2040
		Humanoid.Health = Humanoid.Health - Damage
2041
	end
2042
end
2043
2044
function ApplyAoE(POSITION,RANGE,MINDMG,MAXDMG,FLING,INSTAKILL)
2045
	local CHILDREN = workspace:GetDescendants()
2046
	for index, CHILD in pairs(CHILDREN) do
2047
		if CHILD.ClassName == "Model" and CHILD ~= Character and CHILD.Parent ~= Effects then
2048
			local HUM = CHILD:FindFirstChildOfClass("Humanoid")
2049
			if HUM then
2050
				local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso")
2051
				if TORSO then
2052
					if (TORSO.Position - POSITION).Magnitude <= RANGE then
2053
						if INSTAKILL == false then
2054
							CHILD:BreakJoints()
2055
						else
2056
							local DMG = MRANDOM(MINDMG,MAXDMG)
2057
							ApplyDamage(HUM,DMG,TORSO)
2058
						end
2059
						if FLING > 0 then
2060
							for _, c in pairs(CHILD:GetChildren()) do
2061
								if c:IsA("BasePart") then
2062
									local bv = Instance.new("BodyVelocity") 
2063
									bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
2064
									bv.velocity = CF(POSITION,TORSO.Position).lookVector*FLING
2065
									bv.Parent = c
2066
									Debris:AddItem(bv,0.05)
2067
								end
2068
							end
2069
						end
2070
					end
2071
				end
2072
			end
2073
		end
2074
	end
2075
end
2076
2077
function KillChildren(v)
2078
    v:BreakJoints()
2079
    for _, c in pairs(v:GetChildren()) do
2080
        if c:IsA("BasePart") then
2081
            if c.Transparency < 1 then
2082
                if c:FindFirstChildOfClass("Decal") then
2083
                    c:FindFirstChildOfClass("Decal"):remove()
2084
                end
2085
                particles(c)
2086
                c.PE.Enabled = true
2087
                c.Parent = Effects
2088
                c.CanCollide = false
2089
                c.Material = "Neon"
2090
                c.Color = C3(0,0,0)
2091
                c.Transparency = 1
2092
                local grav = Instance.new("BodyPosition",c)
2093
                grav.P = 20000
2094
                grav.maxForce = Vector3.new(math.huge,math.huge,math.huge)
2095
                grav.position = c.Position + VT(MRANDOM(-5,5),MRANDOM(-5,5),MRANDOM(-5,5))
2096
                grav.Name = "GravityForce"
2097
                coroutine.resume(coroutine.create(function()
2098
                    for i = 1, 20 do
2099
                        Swait()
2100
                        c.Transparency = c.Transparency + 1/20
2101
                    end
2102
                    c.PE.Enabled = false
2103
                    Debris:AddItem(c,2)
2104
                end))
2105
            end
2106
        end
2107
    end
2108
end
2109
 
2110
function ApplyAoE(POSITION,RANGE)
2111
    local CHILDREN = workspace:GetDescendants()
2112
    for index, CHILD in pairs(CHILDREN) do
2113
        if CHILD.ClassName == "Model" and CHILD ~= Character then
2114
            local LISTED = false
2115
            for LIST = 1, #WHITELIST do
2116
                if WHITELIST[LIST] ~= nil then
2117
                    if CHILD.Name == WHITELIST[LIST] then
2118
                        LISTED = true
2119
                    end
2120
                end
2121
            end
2122
            if LISTED == false then
2123
                local HUM = CHILD:FindFirstChildOfClass("Humanoid")
2124
                if HUM then
2125
                    local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso")
2126
                    if TORSO then
2127
                        if (TORSO.Position - POSITION).Magnitude <= RANGE+TORSO.Size.Magnitude then
2128
                            KillChildren(CHILD)
2129
                        end
2130
                    end
2131
                end
2132
            end
2133
        end
2134
    end
2135
end
2136
2137
function ApplyDamage(Humanoid,Damage,CritRate,CritMultiplier)
2138
	local defence = Instance.new("BoolValue",Humanoid.Parent)
2139
	defence.Name = ("HitBy"..Player.Name)
2140
	game:GetService("Debris"):AddItem(defence, 0.001)
2141
	if Humanoid.Health ~= 0 then
2142
		local CritChance = MRANDOM(1,100)
2143
		if CritChance < CritRate + 1 then
2144
			Damage = Damage*CritMultiplier
2145
		end
2146
		if Damage > Humanoid.Health then
2147
			Damage = math.ceil(Humanoid.Health)
2148
			if Damage == 0 then
2149
				Damage = 0.1
2150
			end
2151
		end
2152
		Humanoid.Health = Humanoid.Health - Damage
2153
		if Humanoid.Parent:FindFirstChild("Head") then
2154
			CreateSound(HITPLAYERSOUNDS[MRANDOM(1,#HITPLAYERSOUNDS)], Humanoid.Parent.Head, 5, 1)
2155
			if CritChance < CritRate + 1 then
2156
				StatLabel(Humanoid.Parent.Head.CFrame * CF(0, 0 + (Humanoid.Parent.Head.Size.z - 1), 0), "CRIT//"..Damage, C3(1, 0, 0))
2157
			else
2158
				StatLabel(Humanoid.Parent.Head.CFrame * CF(0, 0 + (Humanoid.Parent.Head.Size.z - 1), 0), Damage, SKILLTEXTCOLOR)
2159
			end
2160
		end
2161
	end
2162
end
2163
2164
function AoEDamage(position,radius,min,max,maxstrength,critrate,critmultiplier,CanBeDodgedByJumping)
2165
	local dmg = math.random(min,max)
2166
	for i,v in ipairs(workspace:GetChildren()) do
2167
	if v:FindFirstChild("HitBy"..Player.Name) == nil then
2168
		local body = v:GetChildren()
2169
			for part = 1, #body do
2170
				if(v:FindFirstChild("HitBy"..Player.Name) == nil and (body[part].ClassName == "Part" or body[part].ClassName == "MeshPart") and v ~= Character) then
2171
					if(body[part].Position - position).Magnitude < radius then
2172
						if v.ClassName == "Model" then
2173
							if v:FindFirstChildOfClass("Humanoid") then
2174
								if CanBeDodgedByJumping == true then
2175
									if body[part].Position.Y < position.Y+5 then
2176
										ApplyDamage(v:FindFirstChildOfClass("Humanoid"),dmg,critrate,critmultiplier)
2177
									end
2178
								else
2179
									ApplyDamage(v:FindFirstChildOfClass("Humanoid"),dmg,critrate,critmultiplier)
2180
								end
2181
								local bv = Instance.new("BodyVelocity") 
2182
								bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
2183
								bv.velocity = RootPart.CFrame.lookVector*maxstrength
2184
								bv.Parent = body[part]
2185
								Debris:AddItem(bv,0.2)
2186
							end
2187
						end
2188
					end
2189
				end
2190
			end
2191
		end
2192
		if v:FindFirstChild("HitBy"..Player.Name) then
2193
			v:FindFirstChild("HitBy"..Player.Name):remove()
2194
		end
2195
	end
2196
end
2197
2198
function Kill(Char)
2199
	local NewCharacter = IT("Model",Effects)
2200
	NewCharacter.Name = "Ow im ded ;-;"
2201
	for _, c in pairs(Char:GetDescendants()) do
2202
		if c:IsA("BasePart") and c.Transparency == 0 then
2203
			if c.Parent == Char then
2204
				getbloody(c,5)
2205
			end
2206
			c:BreakJoints()
2207
			c.Material = "Glass"
2208
			c.Color = C3(0.5,0,0)
2209
			c.CanCollide = true
2210
			c.Transparency = 0.3
2211
			if c:FindFirstChildOfClass("SpecialMesh") then
2212
				c:FindFirstChildOfClass("SpecialMesh").TextureId = ""
2213
			end
2214
			if c.Name == "Head" then
2215
				c:ClearAllChildren()
2216
				c.Size = VT(c.Size.Y,c.Size.Y,c.Size.Y)
2217
			end
2218
			if c.ClassName == "MeshPart" then
2219
				c.TextureID = ""
2220
			end
2221
			if c:FindFirstChildOfClass("BodyPosition") then
2222
				c:FindFirstChildOfClass("BodyPosition"):remove()
2223
			end
2224
			if c:FindFirstChildOfClass("ParticleEmitter") then
2225
				c:FindFirstChildOfClass("ParticleEmitter"):remove()
2226
			end
2227
			c.Parent = NewCharacter
2228
			c.Name = "DeadPart"
2229
			c.Velocity = VT(MRANDOM(-45,45),MRANDOM(-45,45),MRANDOM(-45,45))/15
2230
			c.RotVelocity = VT(MRANDOM(-45,45),MRANDOM(-15,85),MRANDOM(-45,45))
2231
		end
2232
	end
2233
	Char:remove()
2234
	Debris:AddItem(NewCharacter,5)
2235
end
2236
2237
function ApplyAoE(POSITION,RANGE,BRUTAL)
2238
	local CHILDREN = workspace:GetDescendants()
2239
	for index, CHILD in pairs(CHILDREN) do
2240
		if CHILD.ClassName == "Model" and CHILD ~= Character then
2241
			local HUM = CHILD:FindFirstChildOfClass("Humanoid")
2242
			if HUM then
2243
				local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso")
2244
				if TORSO then
2245
					if (TORSO.Position - POSITION).Magnitude <= RANGE then
2246
						if BRUTAL == true then
2247
							Kill(CHILD)
2248
						else
2249
							CHILD:BreakJoints()
2250
						end
2251
					end
2252
				end
2253
			end
2254
		end
2255
	end
2256
end
2257
2258
--//=================================\\
2259
--||	ATTACK FUNCTIONS AND STUFF
2260
--\\=================================//
2261
function Click()
2262
	ATTACK = true
2263
	Rooted = false
2264
	local HIT = nil
2265
	OFFSET = -45
2266
	for i=0, 1, 0.1 / Animation_Speed do
2267
		Swait()
2268
		Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(5 - 2.5), RAD(0), RAD(45)), 0.15 / Animation_Speed)
2269
		RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0.5) * ANGLES(RAD(90), RAD(0), RAD(12)) * RIGHTSHOULDERC0, 2 / Animation_Speed)
2270
	end
2271
	OFFSET = 45
2272
	local PUNCH = CreatePart(3, Effects, "Granite", 0, 1, "Really black", "Hit", VT(0.7,0.7,0.7),false)
2273
	PUNCH.CanCollide = true
2274
	CreateWeldOrSnapOrMotor("Weld", RightArm, RightArm, PUNCH, CF(0,-1,0), CF(0, 0, 0))
2275
	TAUNT = true
2276
	local TOUCH = PUNCH.Touched:Connect(function(hit)
2277
		if hit.Parent:FindFirstChildOfClass("Humanoid") then
2278
			HIT = hit.Parent
2279
		end
2280
	end)
2281
	for i=0, 0.3, 0.1 / Animation_Speed do
2282
		Swait()
2283
		RootPart.CFrame = RootPart.CFrame*CF(0,0,-0.3)
2284
		if HIT ~= nil then
2285
			break
2286
		end
2287
		Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(5 - 2.5), RAD(0), RAD(-45)), 0.15 / Animation_Speed)
2288
		RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.45, 0.5, -0.75) * ANGLES(RAD(90), RAD(0), RAD(35)) * RIGHTSHOULDERC0, 2 / Animation_Speed)
2289
		LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(45), RAD(-12)) * ANGLES(RAD(-35), RAD(0), RAD(0)) * LEFTSHOULDERC0, 2 / Animation_Speed)
2290
	end
2291
	PUNCH:remove()
2292
	TOUCH:disconnect()
2293
	if HIT ~= nil then
2294
		for _, c in pairs(HIT:GetChildren()) do
2295
			if c:IsA("BasePart") then
2296
				c.Anchored = true
2297
			end
2298
		end
2299
		Rooted = true
2300
		CreateSound(649634100, Torso, 10, 0.8)
2301
		CreateSound(1368573150, RightArm, 3, 1.5)
2302
		for i=0, 0.6, 0.1 / Animation_Speed do
2303
			Swait()
2304
			WACKYEFFECT({EffectType = "Block", Size = VT(3,3,3)/3, Size2 = VT(1,1,1)/3, Transparency = 0.5, Transparency2 = 1, CFrame = RightArm.CFrame*CF(0,-1.3,0), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(0,0,0), SoundID = nil, SoundPitch = 1, SoundVolume = 5})
2305
			Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(5 - 2.5), RAD(25), RAD(-45)), 0.05 / Animation_Speed)
2306
			RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.45, 0.5, -0.75) * ANGLES(RAD(90), RAD(0), RAD(35)) * RIGHTSHOULDERC0, 2 / Animation_Speed)
2307
			LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(45), RAD(-12)) * ANGLES(RAD(-35), RAD(0), RAD(0)) * LEFTSHOULDERC0, 2 / Animation_Speed)
2308
		end
2309
		for _, c in pairs(HIT:GetChildren()) do
2310
			if c:IsA("BasePart") then
2311
				c.Anchored = false
2312
			end
2313
		end
2314
		KillChildren(HIT)
2315
	end
2316
	OFFSET = 0
2317
	ATTACK = false
2318
	Rooted = false
2319
	TAUNT = false
2320
end
2321
2322
function Teleport()
2323
    ATTACK = true
2324
    Rooted = false
2325
    for i=0, 0.5, 0.1 / Animation_Speed do
2326
        Swait()
2327
        Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(15 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
2328
        RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.6, 0.75, -0.5) * ANGLES(RAD(0), RAD(-25), RAD(12)) * ANGLES(RAD(125 - 2.5 * COS(SINE / 12) + 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 1.5 / Animation_Speed)
2329
    end
2330
    for e = 1, #BODY do
2331
        if BODY[e] ~= nil then
2332
            local STUFF = BODY[e]
2333
            local PART = STUFF[1]
2334
            if PART:IsA("BasePart") and PART ~= RootPart and PART.Name ~= "FaceGradient" and PART.Name ~= "Hair" and PART.Transparency ~= 1 then
2335
                local PRT = PART:Clone()
2336
                PRT.Anchored = true
2337
                PRT.CanCollide = false
2338
                PRT.Material = "Neon"
2339
                PRT.Color = C3(0,0,0)
2340
                PRT.Name = "WarpEffect"
2341
                PRT.Parent = Effects
2342
                PRT.CFrame = PART.CFrame
2343
                PRT:BreakJoints()
2344
                if PRT:FindFirstChildOfClass("Sound") then
2345
                    PRT:FindFirstChildOfClass("Sound"):remove()
2346
                end
2347
                if PRT:FindFirstChildOfClass("Decal") then
2348
                    PRT:FindFirstChildOfClass("Decal"):remove()
2349
                end
2350
                coroutine.resume(coroutine.create(function()
2351
                    for i = 1, 100 do
2352
                        Swait()
2353
                        PRT.Transparency = PRT.Transparency + 1/100
2354
                    end
2355
                    PRT:remove()
2356
                end))
2357
            end
2358
        end
2359
    end
2360
    CreateSound(217767125, Torso, 10, 1)
2361
    local POS = RootPart.Orientation
2362
    RootPart.CFrame = CF(Mouse.Hit.p+VT(0,6,0))
2363
    RootPart.Orientation = POS
2364
    RootJoint.Parent = RootPart
2365
    for i=0, 0.5, 0.1 / Animation_Speed do
2366
        Swait()
2367
        Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(15 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
2368
        RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.6, 0.75, -0.5) * ANGLES(RAD(0), RAD(-15), RAD(12)) * ANGLES(RAD(175 - 2.5 * COS(SINE / 12) + 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 2.5 / Animation_Speed)
2369
    end
2370
    for i=0, 0.1, 0.1 / Animation_Speed do
2371
        Swait()
2372
        RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1, 0.5, 0.5) * ANGLES(RAD(0), RAD(-45), RAD(12)) * ANGLES(RAD(45 - 2.5 * COS(SINE / 12) + 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 0.75 / Animation_Speed)
2373
    end
2374
    ATTACK = false
2375
    Rooted = false
2376
end
2377
2378
function SpawnSmite(POS)
2379
    local HITFLOOR,HITPOS = Raycast(POS+VT(0,1,0), (CF(POS, POS + VT(0, -1, 0))).lookVector, 100, Character)
2380
    local EMITPOS = HITPOS
2381
    if HITFLOOR ~= nil then
2382
        if HITFLOOR.Parent:FindFirstChildOfClass("Humanoid") then
2383
            HITFLOOR,HITPOS = Raycast(POS+VT(0,1,0), (CF(POS, POS + VT(0, -1, 0))).lookVector, 100, HITFLOOR.Parent)
2384
            EMITPOS = HITPOS
2385
        elseif HITFLOOR.Parent.Parent:FindFirstChildOfClass("Humanoid") then
2386
            HITFLOOR,HITPOS = Raycast(POS+VT(0,1,0), (CF(POS, POS + VT(0, -1, 0))).lookVector, 100, HITFLOOR.Parent.Parent)
2387
            EMITPOS = HITPOS
2388
        end
2389
    end
2390
    if HITFLOOR ~= nil then
2391
        ApplyAoE(EMITPOS,10)
2392
        WACKYEFFECT({EffectType = "Sphere", Size = VT(0,100000,0), Size2 = VT(10,100000,10), Transparency = 0, Transparency2 = 1, CFrame = CF(EMITPOS) * ANGLES(RAD(MRANDOM(-15,15)), RAD(0), RAD(MRANDOM(-15,15))), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(0,0,0), SoundID = 419011114, SoundPitch = 1, SoundVolume = 5})
2393
        WACKYEFFECT({EffectType = "Block", Size = VT(0,0,0), Size2 = VT(10,10,10)*2, Transparency = 0, Transparency2 = 1, CFrame = CF(EMITPOS), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(0,0,0), SoundID = nil, SoundPitch = 1, SoundVolume = 5})
2394
        WACKYEFFECT({EffectType = "Block", Size = VT(0,0,0), Size2 = VT(10,10,10)*1.5, Transparency = 0, Transparency2 = 1, CFrame = CF(EMITPOS), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(0,0,0), SoundID = nil, SoundPitch = 1, SoundVolume = 5})
2395
        for i = 1, 5 do
2396
            local TOPOS = CF(EMITPOS)*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))*CF(0,0,12)
2397
            WACKYEFFECT({EffectType = "Slash", Size = VT(0,0,0), Size2 = VT(0.2,0,0.2), Transparency = 0, Transparency2 = 1, CFrame = CF(EMITPOS,TOPOS.p) * ANGLES(RAD(90), RAD(0), RAD(0)), MoveToPos = TOPOS.p, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(0,0,0), SoundID = 419011114, SoundPitch = 1, SoundVolume = 5})
2398
        end
2399
    end
2400
end
2401
 
2402
function SpawnMeteor(POS,SIZE,ISDEBREE,ORIPOS)
2403
    coroutine.resume(coroutine.create(function()
2404
        local METEOR = IT("Model",Effects)
2405
        METEOR.Name = "Meteorite"
2406
        local CENTER = CreatePart(3, METEOR, "Granite", 0, 0, "Really black", "MeteorCenter", VT(5,5,5)*SIZE)
2407
        METEOR.PrimaryPart = CENTER
2408
        local PRT = CreatePart(3, METEOR, "Granite", 0, 0, "Really black", "MeteorCenter", VT(5,5,5)*SIZE)
2409
        PRT.CFrame = CENTER.CFrame*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))
2410
        for i = 1, 15 do
2411
            local FIRE = CreatePart(3, METEOR, "Neon", 0, 0, "Really black", "Fire", VT(5.1,1,5.1)*SIZE)
2412
            FIRE.CFrame = CENTER.CFrame*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))
2413
        end
2414
        if ISDEBREE ~= true then
2415
            METEOR:SetPrimaryPartCFrame(CF(POS) * ANGLES(RAD(MRANDOM(-15,15)), RAD(0), RAD(MRANDOM(-15,15)))*CF(0,500,0) * ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360))))
2416
        else
2417
            METEOR:SetPrimaryPartCFrame(CF(ORIPOS,POS) * ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360))))
2418
        end
2419
        local IMPACT = false
2420
        CreateSound(463593339, CENTER, 10, 0.6)
2421
        if SIZE >= 3.5 then
2422
            for i = 1, MRANDOM(3,7) do
2423
                SpawnMeteor(CF(POS) * ANGLES(RAD(0), RAD(MRANDOM(0,360)), RAD(0))*CF(0,0,SIZE*12).p,SIZE/MRANDOM(4,5),true,CENTER.CFrame*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))*CF(0,0,SIZE*15).p)
2424
            end
2425
        end
2426
        for i = 1, 200 do
2427
            Swait()
2428
            local HITFLOOR,HITPOS = Raycast(CENTER.Position, CF(CENTER.Position,POS).lookVector, 3, Character)
2429
            if HITFLOOR == nil then
2430
                local ORI = CENTER.Orientation
2431
                METEOR:SetPrimaryPartCFrame(CF(HITPOS) * ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360))))
2432
            else
2433
                if HITFLOOR.Anchored == true then
2434
                    CreateDebreeRing(HITFLOOR,HITPOS,30*SIZE,VT(6,6,6)*SIZE,5)
2435
                    CreateFlyingDebree(HITFLOOR,CF(HITPOS),8,VT(4,4,4)*SIZE,5,175)
2436
                end
2437
                IMPACT = true
2438
                break
2439
            end
2440
        end
2441
        if IMPACT == true then
2442
            WACKYEFFECT({EffectType = "Block", Size = CENTER.Size, Size2 = VT(10,10,10)*4*SIZE, Transparency = 0, Transparency2 = 1, CFrame = CF(CENTER.Position), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(0,0,0), SoundID = 130972023, SoundPitch = 1, SoundVolume = 5})
2443
            WACKYEFFECT({EffectType = "Block", Size = CENTER.Size, Size2 = VT(10,10,10)*3*SIZE, Transparency = 0, Transparency2 = 1, CFrame = CF(CENTER.Position), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(0,0,0), SoundID = 201858144, SoundPitch = 1, SoundVolume = 5})
2444
            WACKYEFFECT({EffectType = "Sphere", Size = VT(SIZE*20,0,SIZE*20), Size2 = VT(0,SIZE*750,0), Transparency = 0, Transparency2 = 1, CFrame = CF(CENTER.Position), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(0,0,0), SoundID = 130972023, SoundPitch = 1, SoundVolume = 5})
2445
            ApplyAoE(CENTER.Position,30*SIZE)
2446
        end
2447
        METEOR:remove()
2448
    end))
2449
end
2450
function Equivalent_Pain()
2451
    local HITFLOOR,HITPOS = Raycast(RootPart.Position, (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 4, Character)
2452
        if HITFLOOR then
2453
        ATTACK = true
2454
        Rooted = true
2455
        FULL = true
2456
        local GYRO = IT("BodyGyro",RootPart)
2457
        GYRO.D = 25
2458
        GYRO.P = 20000
2459
        GYRO.MaxTorque = VT(0,math.huge,0)
2460
        for i=0, 0.3, 0.1 / Animation_Speed do
2461
            GYRO.cframe = CF(RootPart.Position,Mouse.Hit.p)
2462
            Swait()
2463
            RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(-25), RAD(0), RAD(-15)), 1 / Animation_Speed)
2464
            Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
2465
            RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0.3) * ANGLES(RAD(90), RAD(0), RAD(12)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
2466
            LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(45), RAD(-12)) * ANGLES(RAD(-25), RAD(0), RAD(0)) * LEFTSHOULDERC0, 1 / Animation_Speed)
2467
            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(-35)), 1 / Animation_Speed)
2468
            LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-75), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(5)), 1 / Animation_Speed)
2469
        end
2470
        GYRO:remove()
2471
        CreateSound(12222200, RightArm, 10, 1)
2472
        for i=0, 0.4, 0.1 / Animation_Speed do
2473
            Swait()
2474
            RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, -0.3, -0.75) * ANGLES(RAD(40), RAD(0), RAD(35)), 1.5 / Animation_Speed)
2475
            Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-15 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
2476
            RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.45, -1.45) * ANGLES(RAD(75), RAD(0), RAD(35)) * RIGHTSHOULDERC0, 2 / Animation_Speed)
2477
            LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(-25), RAD(-12)) * ANGLES(RAD(-35), RAD(55), RAD(0)) * LEFTSHOULDERC0, 2 / Animation_Speed)
2478
            RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.3, -0.5) * ANGLES(RAD(0), RAD(55), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(65)), 1 / Animation_Speed)
2479
            LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.6, -0.2) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(-15)), 1 / Animation_Speed)
2480
        end
2481
        CreateSound(289842971, RightArm, 10, 1)
2482
        coroutine.resume(coroutine.create(function()
2483
            local HIT,POS = Raycast(Mouse.Hit.p+VT(0,1,0), (CF(Mouse.Hit.p+VT(0,1,0), Mouse.Hit.p-VT(0,1,0))).lookVector, 45, Character)
2484
            local ECHO = POS
2485
            if HITFLOOR.Parent:FindFirstChildOfClass("Humanoid") then
2486
                HIT,POS = Raycast(ECHO+VT(0,1,0), (CF(ECHO, ECHO + VT(0, -1, 0))).lookVector, 100, HITFLOOR.Parent)
2487
                ECHO = POS
2488
            elseif HITFLOOR.Parent.Parent:FindFirstChildOfClass("Humanoid") then
2489
                HIT,POS = Raycast(ECHO+VT(0,1,0), (CF(ECHO, ECHO + VT(0, -1, 0))).lookVector, 100, HITFLOOR.Parent.Parent)
2490
                ECHO = POS
2491
            end
2492
            if ECHO.Y == HITPOS.Y then
2493
                local DISTANCE = (HITPOS - ECHO).Magnitude/3
2494
                local CFRAME = CF(HITPOS,ECHO)
2495
                local RANGE = math.ceil(DISTANCE)
2496
                for i = 1, RANGE-1 do
2497
                    Swait(3)
2498
                    local A = CFRAME*CF(0,0,-i*3)
2499
                    ApplyAoE(A.p,4)
2500
                    CreateFlyingDebree(HITFLOOR,A,2,VT(2,2,2),2,65)
2501
                end
2502
                local SIZE = 3
2503
                local POS = CFRAME*CF(0,0,-RANGE*3).p
2504
                WACKYEFFECT({Time = 75, EffectType = "Sphere", Size = VT(55,0,55)*SIZE, Size2 = VT(55,15,55)*SIZE, Transparency = 0, Transparency2 = 1, CFrame = CF(POS), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(0,0,0), SoundID = 130972023, SoundPitch = 0.8, SoundVolume = 10})
2505
                WACKYEFFECT({EffectType = "Sphere", Size = VT(10,250,10)*SIZE, Size2 = VT(20,1000,20)*SIZE, Transparency = 0, Transparency2 = 1, CFrame = CF(POS), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(0,0,0), SoundID = 178452241, SoundPitch = 1, SoundVolume = 10})
2506
                WACKYEFFECT({EffectType = "Sphere", Size = VT(30,150,30)*SIZE, Size2 = VT(50,300,50)*SIZE, Transparency = 0, Transparency2 = 1, CFrame = CF(POS), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(0,0,0), SoundID = 178452241, SoundPitch = 1, SoundVolume = 10})
2507
                for i = 1, 9 do
2508
                    WACKYEFFECT({TIME = 65, EffectType = "Sphere", Size = VT(5,5,0)*SIZE, Size2 = VT(0,0,35)*SIZE, Transparency = 0, Transparency2 = 1, CFrame = CF(POS+VT(0,15*SIZE,0))*ANGLES(RAD(0),RAD((360/9)*i),RAD(0))*ANGLES(RAD(25),RAD(0),RAD(0))*CF(0,0,-25*SIZE), MoveToPos = CF(POS+VT(0,15*SIZE,0))*ANGLES(RAD(0),RAD((360/9)*i),RAD(0))*ANGLES(RAD(25),RAD(0),RAD(0))*CF(0,0,-55*SIZE).p, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(0,0,0), SoundID = nil, SoundPitch = 0.8, SoundVolume = 5})
2509
                end
2510
                for i = 1, 9 do
2511
                    WACKYEFFECT({TIME = 65, EffectType = "Sphere", Size = VT(5,5,0)*SIZE, Size2 = VT(0,0,35)*SIZE, Transparency = 0, Transparency2 = 1, CFrame = CF(POS+VT(0,5*SIZE,0))*ANGLES(RAD(0),RAD((360/9)*i),RAD(0))*ANGLES(RAD(25),RAD(0),RAD(0))*CF(0,0,-25*SIZE), MoveToPos = CF(POS+VT(0,5*SIZE,0))*ANGLES(RAD(0),RAD((360/9)*i),RAD(0))*ANGLES(RAD(25),RAD(0),RAD(0))*CF(0,0,-55*SIZE).p, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(0,0,0), SoundID = nil, SoundPitch = 0.8, SoundVolume = 5})
2512
                end
2513
                ApplyAoE(POS,30*SIZE)
2514
                CreateDebreeRing(HITFLOOR,POS,30*SIZE,VT(8,8,8)*SIZE,5)
2515
                CreateDebreeRing(HITFLOOR,POS,50*SIZE,VT(2,2,2)*SIZE,5)
2516
            end
2517
        end))
2518
        for i=0, 0.6, 0.1 / Animation_Speed do
2519
            Swait()
2520
            RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, -0.3, -0.75) * ANGLES(RAD(40), RAD(0), RAD(35)), 1.5 / Animation_Speed)
2521
            Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-15 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
2522
            RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.45, -1.45) * ANGLES(RAD(75), RAD(0), RAD(35)) * RIGHTSHOULDERC0, 2 / Animation_Speed)
2523
            LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(-25), RAD(-12)) * ANGLES(RAD(-35), RAD(55), RAD(0)) * LEFTSHOULDERC0, 2 / Animation_Speed)
2524
            RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.3, -0.5) * ANGLES(RAD(0), RAD(55), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(65)), 1 / Animation_Speed)
2525
            LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.6, -0.2) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(-15)), 1 / Animation_Speed)
2526
        end
2527
        FULL = false
2528
        ATTACK = false
2529
        Rooted = false
2530
    end
2531
end
2532
2533
function ReeeEEEEEE()
2534
	ATTACK = true
2535
	Rooted = false
2536
	Speed = 12
2537
	local FX = CreateSound(198165368, Head, 4, 0.5, false)
2538
	repeat
2539
		Swait()
2540
		FX.Parent = Head
2541
		local CHILDREN = workspace:GetDescendants()
2542
		for index, CHILD in pairs(CHILDREN) do
2543
			if CHILD.ClassName == "Model" and CHILD ~= Character then
2544
				local HUM = CHILD:FindFirstChildOfClass("Humanoid")
2545
				if HUM then
2546
					local TORSO = CHILD:FindFirstChild("Head")
2547
					if TORSO then
2548
						if (TORSO.Position - Head.Position).Magnitude <= 25 then
2549
							WACKYEFFECT({Time = 45, EffectType = "Sphere", Size = VT(1,1,1), Size2 = VT(5,5,5), Transparency = 0, Transparency2 = 1, CFrame = CF(TORSO.Position), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(0,0,0), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
2550
							TORSO:remove()
2551
							if CHILD:FindFirstChild("Torso") then
2552
								Ragdoll(CHILD,Torso,true)
2553
							elseif CHILD:FindFirstChild("UpperTorso") then
2554
								R15Ragdoll(CHILD,true)
2555
							end
2556
						end
2557
					end
2558
				end
2559
			end
2560
		end
2561
		RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0.5, 0) * ANGLES(RAD(-45), RAD(0), RAD(0)), 1 / Animation_Speed)
2562
		Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-45), RAD(0), RAD(0)), 1 / Animation_Speed)
2563
		RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(-35), RAD(0), RAD(15)) * ANGLES(RAD(0), RAD(15), RAD(0)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
2564
		LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-35), RAD(0), RAD(-15)) * ANGLES(RAD(0), RAD(-15), RAD(0)) * LEFTSHOULDERC0, 1 / Animation_Speed)
2565
		RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(-45), RAD(80), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
2566
		LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(-45), RAD(-80), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
2567
	until FX.Playing == false
2568
	Speed = 16
2569
	ATTACK = false
2570
	Rooted = false
2571
end
2572
2573
function Charge(TIME,GYRO)
2574
	local SND = CreateSound(ENERGYSOUND,Torso,6,TIME,false)
2575
	local G = nil
2576
	if GYRO == true then
2577
		G = IT("BodyGyro",RootPart)
2578
		G.D = 250
2579
		G.P = 200000
2580
		G.MaxTorque = VT(math.huge,math.huge,math.huge)
2581
	end
2582
	for i=0, TIME, 0.1 / Animation_Speed do
2583
		Swait()
2584
		if G then
2585
			G.cframe = CF(RootPart.Position,Mouse.Hit.p)
2586
		end
2587
		WACKYEFFECT({TIME = 25, EffectType = "Sphere", Size = VT(1.2,1.2,1.2), Size2 = VT(0,0,0), Transparency = 0.5, Transparency2 = 1, CFrame = BasePart.CFrame, MoveToPos = BasePart.CFrame*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))*CF(0,0,-4).p, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = SKILLTEXTCOLOR, SoundID = nil, SoundPitch = nil, SoundVolume = nil})
2588
		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)
2589
		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)
2590
		RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.25, 0.5, -0.5) * ANGLES(RAD(90), RAD(0), RAD(-45)) * RIGHTSHOULDERC0, 2 / Animation_Speed)
2591
		LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25, 0.5, -0.5) * ANGLES(RAD(90), RAD(0), RAD(45)) * LEFTSHOULDERC0, 2 / Animation_Speed)
2592
		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)
2593
		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)
2594
	end
2595
	SND:remove()
2596
	if G then
2597
		return G
2598
	end
2599
end
2600
2601
function Corrupted_Beam()
2602
	ATTACK = true
2603
	Rooted = false
2604
	local GRAV = IT("BodyPosition",RootPart)
2605
	GRAV.D = 75
2606
	GRAV.P = 20000
2607
	GRAV.MaxForce = VT(math.huge,math.huge,math.huge)
2608
	GRAV.Position = RootPart.Position
2609
	local GYRO = Charge(2,true)
2610
	local BEAM = CreatePart(3, Effects, "Neon", 0, 0, "Black", "Beam", VT(15,15,0))
2611
	MakeForm(BEAM,"Ball")
2612
	CreateSound(BEAMSOUND,BEAM,10,1,false)
2613
	CreateSound(BEAMSOUND,BEAM,10,0.9,false)
2614
	CreateSound(BEAMSOUND,BEAM,10,0.8,false)
2615
	for i = 1, 150 do
2616
		Swait()
2617
		BEAM.Size = BEAM.Size + VT(-0.1,-0.1,2)
2618
		ApplyAoE(BEAM.CFrame*CF(0,0,-BEAM.Size.Z/2).p,BEAM.Size.Y/2,50,200,0,false)
2619
		WACKYEFFECT({TIME = 25, EffectType = "Sphere", Size = VT(3,3,3), Size2 = VT(0,0,0), Transparency = 0.5, Transparency2 = 1, CFrame = BEAM.CFrame*CF(0,0,BEAM.Size.Z/2), MoveToPos = BEAM.CFrame*CF(0,0,BEAM.Size.Z/2)*ANGLES(RAD(90),RAD(MRANDOM(0,360)),RAD(0))*CF(0,0.3,-25).p, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = SKILLTEXTCOLOR, SoundID = nil, SoundPitch = nil, SoundVolume = nil})
2620
		BEAM.CFrame = CF(Torso.Position,Torso.CFrame*CF(0,0,-1).p)*CF(0,0,-2-(BEAM.Size.Z/2))
2621
		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)
2622
		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)
2623
		RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, -0.5) * ANGLES(RAD(90), RAD(0), RAD(12)) * RIGHTSHOULDERC0, 2 / Animation_Speed)
2624
		LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, -0.5) * ANGLES(RAD(90), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 2 / Animation_Speed)
2625
		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)
2626
		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)
2627
	end
2628
	GRAV:remove()
2629
	BEAM:remove()
2630
	GYRO:remove()
2631
	ATTACK = false
2632
	Rooted = false
2633
end
2634
2635
function Corrupted_Explosion()
2636
	ATTACK = true
2637
	Rooted = true
2638
	for i=0, 1, 0.1 / Animation_Speed do
2639
		Swait()
2640
		RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, -0.3, 0) * ANGLES(RAD(0), RAD(0), RAD(-75)), 0.6 / Animation_Speed)
2641
		Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0), RAD(0), RAD(75)), 0.6 / Animation_Speed)
2642
		RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(90), RAD(0), RAD(15)) * RIGHTSHOULDERC0, 0.3 / Animation_Speed)
2643
		LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-90)) * LEFTSHOULDERC0, 0.1 / Animation_Speed)
2644
		RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-15), RAD(0), RAD(0)), 0.5 / Animation_Speed)
2645
		LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-15), RAD(0), RAD(0)), 0.5 / Animation_Speed)
2646
	end
2647
	for i=0, 0.4, 0.1 / Animation_Speed do
2648
		Swait()
2649
		RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, -1, -0.3) * ANGLES(RAD(75), RAD(0), RAD(75)), 1 / Animation_Speed)
2650
		Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0), RAD(0), RAD(-75)), 1/ Animation_Speed)
2651
		RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(90)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
2652
		LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(0)) * LEFTSHOULDERC0, 1 / Animation_Speed)
2653
		RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.5, -0.01) * ANGLES(RAD(75), RAD(25), RAD(0)) * ANGLES(RAD(-35), RAD(0), RAD(0)), 1 / Animation_Speed)
2654
		LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-15), RAD(0), RAD(0)), 1 / Animation_Speed)
2655
	end
2656
	local BEAM = CreatePart(3, Effects, "Neon", 0, 0, "Black", "Beam", VT(0,0,0))
2657
	local BEAM2 = CreatePart(3, Effects, "Neon", 0, 0, "Black", "Beam", VT(0,0,0))
2658
	MakeForm(BEAM,"Ball")
2659
	MakeForm(BEAM2,"Ball")
2660
	BEAM.CFrame = CF(RootPart.Position)
2661
	BEAM2.CFrame = CF(RootPart.Position)
2662
	CreateSound(EXPLOSIONSOUND,RootPart,10,1,false)
2663
	for i=1, 100 do
2664
		Swait()
2665
		BEAM.Size = BEAM.Size + VT(0.7,8,0.7)
2666
		BEAM2.Size = BEAM2.Size + VT(2,2,2)
2667
		ApplyAoE(BEAM2.Position,BEAM2.Size.Z/2,5,5,15,true)
2668
		BEAM.CFrame = CF(RootPart.Position)
2669
		BEAM2.CFrame = CF(RootPart.Position)
2670
		WACKYEFFECT({TIME = 5+i, EffectType = "Swirl", Size = BEAM2.Size*1.15, Size2 = VT(0,BEAM.Size.Y,0), Transparency = 0.8, Transparency2 = 1, CFrame = BEAM.CFrame * ANGLES(RAD(0), RAD(i*5), RAD(0)), MoveToPos = nil, RotationX = 0, RotationY = i/8, RotationZ = 0, Material = "Neon", Color = SKILLTEXTCOLOR, SoundID = nil, SoundPitch = nil, SoundVolume = nil})
2671
		RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, -1, -0.3) * ANGLES(RAD(75), RAD(0), RAD(75)), 1 / Animation_Speed)
2672
		Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0), RAD(0), RAD(-75)), 1/ Animation_Speed)
2673
		RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(90)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
2674
		LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(0)) * LEFTSHOULDERC0, 1 / Animation_Speed)
2675
		RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.5, -0.01) * ANGLES(RAD(75), RAD(25), RAD(0)) * ANGLES(RAD(-35), RAD(0), RAD(0)), 1 / Animation_Speed)
2676
		LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-15), RAD(0), RAD(0)), 1 / Animation_Speed)
2677
	end
2678
	WACKYEFFECT({TIME = 75, EffectType = "Sphere", Size = BEAM.Size, Size2 = VT(0,BEAM.Size.Y,0), Transparency = 0, Transparency2 = 0, CFrame = BEAM.CFrame, MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = SKILLTEXTCOLOR, SoundID = nil, SoundPitch = nil, SoundVolume = nil})
2679
	WACKYEFFECT({TIME = 75, EffectType = "Sphere", Size = BEAM2.Size, Size2 = VT(0,0,0), Transparency = 0, Transparency2 = 0.6, CFrame = BEAM2.CFrame, MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = SKILLTEXTCOLOR, SoundID = nil, SoundPitch = nil, SoundVolume = nil})
2680
	BEAM2:remove()
2681
	BEAM:remove()
2682
	ATTACK = false
2683
	Rooted = false
2684
end
2685
2686
function Corrupted_Immobilization()
2687
	ATTACK = true
2688
	Rooted = true
2689
	Charge(2,false)
2690
	local SND = CreateSound(EXPLOSIONSOUND,RootPart,10,1,false)
2691
	local SND2 = CreateSound(ENERGYSOUND,RootPart,10,1,false)
2692
	for i = 1, 60 do
2693
		Swait()
2694
		ApplyAoE(RootPart.Position,i*1.3,10,20,-200,true)
2695
		SND.Pitch = SND.Pitch - 1/60
2696
		SND2.Pitch = SND.Pitch
2697
		WACKYEFFECT({TIME = 4, EffectType = "Wave", Size = VT(i*2,10,i*2), Size2 = VT(i*2,10,i*2), Transparency = 0.9, Transparency2 = 1, CFrame = CF(RootPart.Position-VT(0,3,0)) * ANGLES(RAD(0), RAD(i*5), RAD(0)), MoveToPos = nil, RotationX = 0, RotationY = i/8, RotationZ = 0, Material = "Neon", Color = SKILLTEXTCOLOR, SoundID = nil, SoundPitch = nil, SoundVolume = nil})
2698
		WACKYEFFECT({TIME = math.ceil(15-(i/10)), EffectType = "Wave", Size = VT(0,10,0), Size2 = VT(i*2,6,i*2), Transparency = 0.8, Transparency2 = 1, CFrame = CF(RootPart.Position-VT(0,3,0)) * ANGLES(RAD(0), RAD(i*5), RAD(0)), MoveToPos = nil, RotationX = 0, RotationY = i/8, RotationZ = 0, Material = "Neon", Color = SKILLTEXTCOLOR, SoundID = nil, SoundPitch = nil, SoundVolume = nil})
2699
		WACKYEFFECT({TIME = math.ceil(15-(i/10)), EffectType = "Wave", Size = VT(0,6,0), Size2 = VT(i*1.6,10,i*1.6), Transparency = 0.8, Transparency2 = 1, CFrame = CF(RootPart.Position-VT(0,3,0)) * ANGLES(RAD(MRANDOM(-5,5)), RAD(i*5), RAD(MRANDOM(-5,5))), MoveToPos = nil, RotationX = 0, RotationY = i/8, RotationZ = 0, Material = "Neon", Color = SKILLTEXTCOLOR, SoundID = nil, SoundPitch = nil, SoundVolume = nil})
2700
		RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
2701
		Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-15 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
2702
		RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(-45), RAD(-45), RAD(45)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
2703
		LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-45), RAD(45), RAD(-45)) * LEFTSHOULDERC0, 1 / Animation_Speed)
2704
		RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(65), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 1 / Animation_Speed)
2705
		LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-65), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 1 / Animation_Speed)
2706
	end
2707
	SND:remove()
2708
	SND2:remove()
2709
	ATTACK = false
2710
	Rooted = false
2711
end
2712
2713
--//=================================\\
2714
--||	  ASSIGN THINGS TO KEYS
2715
--\\=================================//
2716
2717
function MouseDown(Mouse)
2718
	if ATTACK == false then
2719
		Click()
2720
	end
2721
end
2722
2723
function MouseUp(Mouse)
2724
HOLD = false
2725
end
2726
2727
function KeyDown(Key)
2728
	KEYHOLD = true
2729
	if Key == "z" and ATTACK == false then
2730
		Corrupted_Beam()
2731
	end
2732
2733
	if Key == "e" and ATTACK == false then
2734
		ReeeEEEEEE()
2735
	end
2736
2737
        if Key == "r" and ATTACK == false then
2738
            Teleport()
2739
        end
2740
2741
        if Key == "q" and ATTACK == false then
2742
            Equivalent_Pain()
2743
        end
2744
2745
	if Key == "x" and ATTACK == false then
2746
		Corrupted_Explosion()
2747
	end
2748
2749
	if Key == "c" and ATTACK == false then
2750
		Corrupted_Immobilization()
2751
	elseif Key == "1" and ATTACK == false then
2752
			if CHOICE ~= 1 then
2753
				CHOICE = 1
2754
				sick:Play()
2755
			end
2756
		elseif Key == "2" and ATTACK == false then
2757
			if CHOICE ~= 2 then
2758
				CHOICE = 2
2759
				sick:Play()
2760
			end
2761
		elseif Key == "3" and ATTACK == false then
2762
			if CHOICE ~= 3 then
2763
				CHOICE = 3
2764
				sick:Play()
2765
			end
2766
		elseif Key == "4" and ATTACK == false then
2767
			if CHOICE ~= 4 then
2768
				CHOICE = 4
2769
				sick:Play()
2770
			end
2771
			
2772
	end
2773
end
2774
2775
2776
2777
function KeyUp(Key)
2778
	KEYHOLD = false
2779
end
2780
2781
	Mouse.Button1Down:connect(function(NEWKEY)
2782
		MouseDown(NEWKEY)
2783
	end)
2784
	Mouse.Button1Up:connect(function(NEWKEY)
2785
		MouseUp(NEWKEY)
2786
	end)
2787
	Mouse.KeyDown:connect(function(NEWKEY)
2788
		KeyDown(NEWKEY)
2789
	end)
2790
	Mouse.KeyUp:connect(function(NEWKEY)
2791
		KeyUp(NEWKEY)
2792
	end)
2793
2794
--//=================================\\
2795
--\\=================================//
2796
2797
function unanchor()
2798
	if UNANCHOR == true then
2799
		g = Character:GetChildren()
2800
		for i = 1, #g do
2801
			if g[i].ClassName == "Part" then
2802
				g[i].Anchored = false
2803
			end
2804
		end
2805
	end
2806
end
2807
2808
--//=================================\\
2809
--||	WRAP THE WHOLE SCRIPT UP
2810
--\\=================================//
2811
2812
Humanoid.Changed:connect(function(Jump)
2813
	if Jump == "Jump" and (Disable_Jump == true) then
2814
		Humanoid.Jump = false
2815
	end
2816
end)
2817
2818
while true do
2819
	Swait()
2820
	script.Parent = WEAPONGUI
2821
	ANIMATE.Parent = nil
2822
	if Humanoid then
2823
		local IDLEANIMATION = Humanoid:LoadAnimation(ROBLOXIDLEANIMATION)
2824
		IDLEANIMATION:Play()
2825
	end
2826
	SINE = SINE + CHANGE
2827
	local TORSOVELOCITY = (RootPart.Velocity * VT(1, 0, 1)).magnitude
2828
	local TORSOVERTICALVELOCITY = RootPart.Velocity.y
2829
	local HITFLOOR = Raycast(RootPart.Position, (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 4, Character)
2830
	local WALKSPEEDVALUE = 5 / (Humanoid.WalkSpeed / 16)
2831
	if ANIM == "Walk" and TORSOVELOCITY > 1 then
2832
		RootJoint.C1 = Clerp(RootJoint.C1, ROOTC0 * CF(0, 0, -0.15 * COS(SINE / (WALKSPEEDVALUE / 2))) * ANGLES(RAD(0), RAD(0) - RootPart.RotVelocity.Y / 75, RAD(0)), 2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
2833
		Neck.C1 = Clerp(Neck.C1, CF(0, -0.5, 0) * ANGLES(RAD(-90), RAD(0), RAD(180)) * ANGLES(RAD(2.5 * SIN(SINE / (WALKSPEEDVALUE / 2))), RAD(0), RAD(0) - Head.RotVelocity.Y / 30), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
2834
		RightHip.C1 = Clerp(RightHip.C1, CF(0.5, 0.875 - 0.125 * SIN(SINE / WALKSPEEDVALUE) - 0.15 * COS(SINE / WALKSPEEDVALUE*2), -0.125 * COS(SINE / WALKSPEEDVALUE) +0.2+ 0.2 * COS(SINE / WALKSPEEDVALUE)) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0) - RightLeg.RotVelocity.Y / 75, RAD(0), RAD(45 * COS(SINE / WALKSPEEDVALUE))), 1 / Animation_Speed)
2835
		LeftHip.C1 = Clerp(LeftHip.C1, CF(-0.5, 0.875 + 0.125 * SIN(SINE / WALKSPEEDVALUE) - 0.15 * COS(SINE / WALKSPEEDVALUE*2), 0.125 * COS(SINE / WALKSPEEDVALUE) +0.2+ -0.2 * COS(SINE / WALKSPEEDVALUE)) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0) + LeftLeg.RotVelocity.Y / 75, RAD(0), RAD(45 * COS(SINE / WALKSPEEDVALUE))), 1 / Animation_Speed)
2836
	elseif (ANIM ~= "Walk") or (TORSOVELOCITY < 1) then
2837
		RootJoint.C1 = Clerp(RootJoint.C1, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
2838
		Neck.C1 = Clerp(Neck.C1, CF(0, -0.5, 0) * ANGLES(RAD(-90), RAD(0), RAD(180)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
2839
		RightHip.C1 = Clerp(RightHip.C1, CF(0.5, 1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
2840
		LeftHip.C1 = Clerp(LeftHip.C1, CF(-0.5, 1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
2841
	end
2842
	if TORSOVERTICALVELOCITY > 1 and HITFLOOR == nil then
2843
		ANIM = "Jump"
2844
		if ATTACK == false then
2845
			RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0,  0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
2846
			Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-20), RAD(0), RAD(0)), 0.2 / Animation_Speed)
2847
			RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(-40), RAD(0), RAD(20)) * RIGHTSHOULDERC0, 0.2 / Animation_Speed)
2848
			LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-40), RAD(0), RAD(-20)) * LEFTSHOULDERC0, 0.2 / Animation_Speed)
2849
			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)
2850
			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)
2851
	    end
2852
	elseif TORSOVERTICALVELOCITY < -1 and HITFLOOR == nil then
2853
		ANIM = "Fall"
2854
		if ATTACK == false then
2855
			RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 ) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
2856
			Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0 , 0 + ((1) - 1)) * ANGLES(RAD(20), RAD(0), RAD(0)), 0.2 / Animation_Speed)
2857
			RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(60)) * RIGHTSHOULDERC0, 0.2 / Animation_Speed)
2858
			LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-60)) * LEFTSHOULDERC0, 0.2 / Animation_Speed)
2859
			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)
2860
			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)
2861
		end
2862
	elseif TORSOVELOCITY < 1 and HITFLOOR ~= nil then
2863
		ANIM = "Idle"
2864
		if ATTACK == false then
2865
			RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0 - 0.05 * COS(SINE / 12), 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(-2 + 2 * COS(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed)
2866
				Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed)
2867
				RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(-15), RAD(5 + 1 * COS(SINE / 12))) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
2868
				LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(15), RAD(-5 - 1 * COS(SINE / 12))) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
2869
				RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(-2 + 2 * COS(SINE / 12)), RAD(74), RAD(0)) * ANGLES(RAD(-2), RAD(0), RAD(0)), 0.15 / Animation_Speed)
2870
				LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(-2 + 2 * COS(SINE / 12)), RAD(-74), RAD(0)) * ANGLES(RAD(-2), RAD(0), RAD(0)), 0.15 / Animation_Speed)
2871
	if VALUE1 == false and MRANDOM(1,200) == 1 then
2872
				coroutine.resume(coroutine.create(function()
2873
					VALUE1 = true
2874
					for i = 1, 25 do
2875
						Swait()
2876
						Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(-5), RAD((15+MRANDOM(-15,15)/15)), RAD(0)), 3 / Animation_Speed)
2877
					
2878
					end
2879
		VALUE1 = false
2880
				end))
2881
			end
2882
		end
2883
		
2884
	elseif TORSOVELOCITY > 1 and HITFLOOR ~= nil then
2885
		ANIM = "Walk"
2886
		if ATTACK == false then
2887
			RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -0.1) * ANGLES(RAD(5), RAD(0), RAD(0)), 0.15 / Animation_Speed)
2888
			Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(5 - 8 * SIN(SINE / (WALKSPEEDVALUE / 2))), RAD(0), RAD(0)), 0.15 / Animation_Speed)
2889
			RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0.15 * SIN(SINE / WALKSPEEDVALUE)) * ANGLES(RAD(25 * COS(SINE / WALKSPEEDVALUE)), RAD(0), RAD(5)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
2890
			LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, -0.15 * SIN(SINE / WALKSPEEDVALUE)) * ANGLES(RAD(-25 * COS(SINE / WALKSPEEDVALUE)), RAD(0), RAD(-5)) * LEFTSHOULDERC0, 1 / Animation_Speed)
2891
			RightHip.C0 = Clerp(RightHip.C0, CF(1 , -1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(-15)), 2 / Animation_Speed)
2892
			LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(15)), 2 / Animation_Speed)
2893
		end
2894
	end
2895
2896
	
2897
sick.Parent = Torso
2898
	sick.Playing = true
2899
2900
2901
	unanchor()
2902
	Humanoid.MaxHealth = "inf"
2903
	Humanoid.Health = "inf"
2904
	if Rooted == false then
2905
		Disable_Jump = false
2906
		Humanoid.WalkSpeed = Speed
2907
	elseif Rooted == true then
2908
		Disable_Jump = true
2909
		Humanoid.WalkSpeed = 0
2910
	end
2911
end
2912
--//=================================\\
2913
--\\=================================//
2914
2915
2916
2917
2918
2919
--//====================================================\\--
2920
--||			  		 END OF SCRIPT
2921
--\\====================================================//--