View difference between Paste ID: DqS8qnYG and r9E520KX
SHOW: | | - or go back to the newest paste.
1
--//====================================================\\--
2
--||			   CREATED BY SHACKLUSTER
3
--\\====================================================//--
4
5
wait(0.2)
6
7
Player = game:GetService("Players").LocalPlayer
8
PlayerGui = Player.PlayerGui
9
Cam = workspace.CurrentCamera
10
Backpack = Player.Backpack
11
Character = Player.Character
12
Humanoid = Character.Humanoid
13
Mouse = Player:GetMouse()
14
RootPart = Character["HumanoidRootPart"]
15
Torso = Character["Torso"]
16
Head = Character["Head"]
17
RightArm = Character["Right Arm"]
18
LeftArm = Character["Left Arm"]
19
RightLeg = Character["Right Leg"]
20
LeftLeg = Character["Left Leg"]
21
RootJoint = RootPart["RootJoint"]
22
Neck = Torso["Neck"]
23
RightShoulder = Torso["Right Shoulder"]
24
LeftShoulder = Torso["Left Shoulder"]
25
RightHip = Torso["Right Hip"]
26
LeftHip = Torso["Left Hip"]
27
28
local sick = Instance.new("Sound",Character)
29-
sick.SoundId = "rbxassetid://1591230720"
29+
sick.SoundId = "rbxassetid://384129452"
30
sick.Looped = true
31
sick.Pitch = 1
32
sick.Volume = 1.3
33
sick:Play()
34
			
35
IT = Instance.new
36
CF = CFrame.new
37
VT = Vector3.new
38
RAD = math.rad
39
C3 = Color3.new
40
UD2 = UDim2.new
41
BRICKC = BrickColor.new
42
ANGLES = CFrame.Angles
43
EULER = CFrame.fromEulerAnglesXYZ
44
COS = math.cos
45
ACOS = math.acos
46
SIN = math.sin
47
ASIN = math.asin
48
ABS = math.abs
49
MRANDOM = math.random
50
FLOOR = math.floor
51
local CLOAKED = false
52
local KILLINSTINCT = 0
53-
local SONGS = {1591230720,608671887,1589211339,0}
53+
local SONGS = {384129452,384129452,384129452,384129452}
54
local CHOICE = MRANDOM(1,4)
55
56
--//=================================\\
57
--||		 SOME OTHER STUFF
58
--\\=================================//
59
ff = Instance.new("ForceField", game.Players.LocalPlayer.Character)
60
ff.Visible = false
61
Humanoid.Name = "God Mode"
62
63
64
--//=================================\\
65
--|| 	      USEFUL VALUES
66
--\\=================================//
67
68
Animation_Speed = 3
69
Frame_Speed = 1 / 60 -- (1 / 30) OR (1 / 60)
70
local Speed = 16
71
local ROOTC0 = CF(0, 0, 0) * ANGLES(RAD(-90), RAD(0), RAD(180))
72
local NECKC0 = CF(0, 1, 0) * ANGLES(RAD(-90), RAD(0), RAD(180))
73
local RIGHTSHOULDERC0 = CF(-0.5, 0, 0) * ANGLES(RAD(0), RAD(90), RAD(0))
74
local LEFTSHOULDERC0 = CF(0.5, 0, 0) * ANGLES(RAD(0), RAD(-90), RAD(0))
75
local DAMAGEMULTIPLIER = 1
76
local ANIM = "Idle"
77
local ATTACK = false
78
local EQUIPPED = false
79
local HOLD = false
80
local COMBO = 1
81
local Rooted = false
82
local SINE = 0
83
local KEYHOLD = false
84
local CHANGE = 2 / Animation_Speed
85
local WALKINGANIM = false
86
local VALUE1 = false
87
local VALUE2 = false
88
local ROBLOXIDLEANIMATION = IT("Animation")
89
ROBLOXIDLEANIMATION.Name = "Roblox Idle Animation"
90
ROBLOXIDLEANIMATION.AnimationId = "http://www.roblox.com/asset/?id=180435571"
91
--ROBLOXIDLEANIMATION.Parent = Humanoid
92
local WEAPONGUI = IT("ScreenGui", PlayerGui)
93
WEAPONGUI.Name = "Weapon GUI"
94
local Weapon = IT("Model")
95
Weapon.Name = "Adds"
96
local Effects = IT("Folder", Weapon)
97
Effects.Name = "Effects"
98
local ANIMATOR = Humanoid.Animator
99
local ANIMATE = Character.Animate
100
local UNANCHOR = true
101
local ENERGYSOUND = 1417051162
102
local BEAMSOUND = 1417056781
103
local EXPLOSIONSOUND = 1417056081
104
105
--//=================================\\
106
--\\=================================//
107
108
local asd = Instance.new("ParticleEmitter")
109
asd.Color = ColorSequence.new(Color3.new(0.5, 0, 0), Color3.new(.3, 0, 0))
110
asd.LightEmission = .1
111
asd.Texture = "http://www.roblox.com/asset/?ID=291880914"
112
aaa = NumberSequence.new({NumberSequenceKeypoint.new(0, 0.6),NumberSequenceKeypoint.new(1, 2)})
113
bbb = NumberSequence.new({NumberSequenceKeypoint.new(0, 1),NumberSequenceKeypoint.new(0.0636, 0), NumberSequenceKeypoint.new(1, 1)})
114
asd.Transparency = bbb
115
asd.Size = aaa
116
asd.ZOffset = .9
117
asd.Acceleration = Vector3.new(0, -15, 0)
118
asd.LockedToPart = false
119
asd.EmissionDirection = "Back"
120
asd.Lifetime = NumberRange.new(1, 2)
121
asd.Rotation = NumberRange.new(-100, 100)
122
asd.RotSpeed = NumberRange.new(-100, 100)
123
asd.Speed = NumberRange.new(10)
124
asd.Enabled = false
125
asd.VelocitySpread = 999
126
127
function getbloody(victim,amount)
128-
	local PART = CreatePart(3, Effects, "Metal", 0, 1, "Mid gray", "Blood", victim.Size)
128+
	local PART = CreatePart(3, Effects, "Metal", 0, 1, "Bright yellow", "Blood", victim.Size)
129
	PART.CFrame = victim.CFrame
130
	local HITPLAYERSOUNDS = {"356551938","264486467"}
131
	Debris:AddItem(PART,5)
132
	CreateSound(HITPLAYERSOUNDS[MRANDOM(1, #HITPLAYERSOUNDS)], PART, 1, (math.random(8,12)/10))
133
	CreateSound(HITPLAYERSOUNDS[MRANDOM(1, #HITPLAYERSOUNDS)], PART, 1, (math.random(8,12)/10))
134
	CreateSound(HITPLAYERSOUNDS[MRANDOM(1, #HITPLAYERSOUNDS)], PART, 1, (math.random(8,12)/10))
135
	local prtcl = asd:Clone()
136
	prtcl.Parent = PART
137
	prtcl:Emit(amount*10)
138
end
139
140
--//=================================\\
141
--|| SAZERENOS' ARTIFICIAL HEARTBEAT
142
--\\=================================//
143
144
ArtificialHB = Instance.new("BindableEvent", script)
145
ArtificialHB.Name = "ArtificialHB"
146
147
script:WaitForChild("ArtificialHB")
148
149
frame = Frame_Speed
150
tf = 0
151
allowframeloss = false
152
tossremainder = false
153
lastframe = tick()
154
script.ArtificialHB:Fire()
155
156
game:GetService("RunService").Heartbeat:connect(function(s, p)
157
	tf = tf + s
158
	if tf >= frame then
159
		if allowframeloss then
160
			script.ArtificialHB:Fire()
161
			lastframe = tick()
162
		else
163
			for i = 1, math.floor(tf / frame) do
164
				script.ArtificialHB:Fire()
165
			end
166
		lastframe = tick()
167
		end
168
		if tossremainder then
169
			tf = 0
170
		else
171
			tf = tf - frame * math.floor(tf / frame)
172
		end
173
	end
174
end)
175
176
--//=================================\\
177
--\\=================================//
178
ff = Instance.new("ForceField", game.Players.LocalPlayer.Character)
179
ff.Visible = false
180
Humanoid.Name = "God Mode"
181
182
local l = game.Lighting
183
local sky = Instance.new("Sky",l)
184-
l.TimeOfDay = "00:00:00"
184+
l.TimeOfDay = "12:00:00"
185
l.Brightness = 1
186
l.Ambient = Color3.new(0.25, 0.5, 0.75)
187
---
188
189
190
191
--//=================================\\
192
--|| 	      SOME FUNCTIONS
193
--\\=================================//
194
195
function Raycast(POSITION, DIRECTION, RANGE, IGNOREDECENDANTS)
196
	return workspace:FindPartOnRay(Ray.new(POSITION, DIRECTION.unit * RANGE), IGNOREDECENDANTS)
197
end
198
199
function PositiveAngle(NUMBER)
200
	if NUMBER >= 0 then
201
		NUMBER = 0
202
	end
203
	return NUMBER
204
end
205
206
function NegativeAngle(NUMBER)
207
	if NUMBER <= 0 then
208
		NUMBER = 0
209
	end
210
	return NUMBER
211
end
212
213
function Swait(NUMBER)
214
	if NUMBER == 0 or NUMBER == nil then
215
		ArtificialHB.Event:wait()
216
	else
217
		for i = 1, NUMBER do
218
			ArtificialHB.Event:wait()
219
		end
220
	end
221
end
222
223
function CreateMesh(MESH, PARENT, MESHTYPE, MESHID, TEXTUREID, SCALE, OFFSET)
224
	local NEWMESH = IT(MESH)
225
	if MESH == "SpecialMesh" then
226
		NEWMESH.MeshType = MESHTYPE
227
		if MESHID ~= "nil" and MESHID ~= "" then
228
			NEWMESH.MeshId = "http://www.roblox.com/asset/?id="..MESHID
229
		end
230
		if TEXTUREID ~= "nil" and TEXTUREID ~= "" then
231
			NEWMESH.TextureId = "http://www.roblox.com/asset/?id="..TEXTUREID
232
		end
233
	end
234
	NEWMESH.Offset = OFFSET or VT(0, 0, 0)
235
	NEWMESH.Scale = SCALE
236
	NEWMESH.Parent = PARENT
237
	return NEWMESH
238
end
239
240
function CreatePart(FORMFACTOR, PARENT, MATERIAL, REFLECTANCE, TRANSPARENCY, BRICKCOLOR, NAME, SIZE, ANCHOR)
241
	local NEWPART = IT("Part")
242
	NEWPART.formFactor = FORMFACTOR
243
	NEWPART.Reflectance = REFLECTANCE
244
	NEWPART.Transparency = TRANSPARENCY
245
	NEWPART.CanCollide = false
246
	NEWPART.Locked = true
247
	NEWPART.Anchored = true
248
	if ANCHOR == false then
249
		NEWPART.Anchored = false
250
	end
251
	NEWPART.BrickColor = BRICKC(tostring(BRICKCOLOR))
252
	NEWPART.Name = NAME
253
	NEWPART.Size = SIZE
254
	NEWPART.Position = Torso.Position
255
	NEWPART.Material = MATERIAL
256
	NEWPART:BreakJoints()
257
	NEWPART.Parent = PARENT
258
	return NEWPART
259
end
260
261
	local function weldBetween(a, b)
262
	    local weldd = Instance.new("ManualWeld")
263
	    weldd.Part0 = a
264
	    weldd.Part1 = b
265
	    weldd.C0 = CFrame.new()
266
	    weldd.C1 = b.CFrame:inverse() * a.CFrame
267
	    weldd.Parent = a
268
	    return weldd
269
	end
270
271
272
function QuaternionFromCFrame(cf)
273
	local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
274
	local trace = m00 + m11 + m22
275
	if trace > 0 then 
276
		local s = math.sqrt(1 + trace)
277
		local recip = 0.5 / s
278
		return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5
279
	else
280
		local i = 0
281
		if m11 > m00 then
282
			i = 1
283
		end
284
		if m22 > (i == 0 and m00 or m11) then
285
			i = 2
286
		end
287
		if i == 0 then
288
			local s = math.sqrt(m00 - m11 - m22 + 1)
289
			local recip = 0.5 / s
290
			return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip
291
		elseif i == 1 then
292
			local s = math.sqrt(m11 - m22 - m00 + 1)
293
			local recip = 0.5 / s
294
			return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip
295
		elseif i == 2 then
296
			local s = math.sqrt(m22 - m00 - m11 + 1)
297
			local recip = 0.5 / s return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip
298
		end
299
	end
300
end
301
 
302
function QuaternionToCFrame(px, py, pz, x, y, z, w)
303
	local xs, ys, zs = x + x, y + y, z + z
304
	local wx, wy, wz = w * xs, w * ys, w * zs
305
	local xx = x * xs
306
	local xy = x * ys
307
	local xz = x * zs
308
	local yy = y * ys
309
	local yz = y * zs
310
	local zz = z * zs
311
	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))
312
end
313
 
314
function QuaternionSlerp(a, b, t)
315
	local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4]
316
	local startInterp, finishInterp;
317
	if cosTheta >= 0.0001 then
318
		if (1 - cosTheta) > 0.0001 then
319
			local theta = ACOS(cosTheta)
320
			local invSinTheta = 1 / SIN(theta)
321
			startInterp = SIN((1 - t) * theta) * invSinTheta
322
			finishInterp = SIN(t * theta) * invSinTheta
323
		else
324
			startInterp = 1 - t
325
			finishInterp = t
326
		end
327
	else
328
		if (1 + cosTheta) > 0.0001 then
329
			local theta = ACOS(-cosTheta)
330
			local invSinTheta = 1 / SIN(theta)
331
			startInterp = SIN((t - 1) * theta) * invSinTheta
332
			finishInterp = SIN(t * theta) * invSinTheta
333
		else
334
			startInterp = t - 1
335
			finishInterp = t
336
		end
337
	end
338
	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
339
end
340
341
function Clerp(a, b, t)
342
	local qa = {QuaternionFromCFrame(a)}
343
	local qb = {QuaternionFromCFrame(b)}
344
	local ax, ay, az = a.x, a.y, a.z
345
	local bx, by, bz = b.x, b.y, b.z
346
	local _t = 1 - t
347
	return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t))
348
end
349
350
function CreateFrame(PARENT, TRANSPARENCY, BORDERSIZEPIXEL, POSITION, SIZE, COLOR, BORDERCOLOR, NAME)
351
	local frame = IT("Frame")
352
	frame.BackgroundTransparency = TRANSPARENCY
353
	frame.BorderSizePixel = BORDERSIZEPIXEL
354
	frame.Position = POSITION
355
	frame.Size = SIZE
356
	frame.BackgroundColor3 = COLOR
357
	frame.BorderColor3 = BORDERCOLOR
358
	frame.Name = NAME
359
	frame.Parent = PARENT
360
	return frame
361
end
362
363
function CreateLabel(PARENT, TEXT, TEXTCOLOR, TEXTFONTSIZE, TEXTFONT, TRANSPARENCY, BORDERSIZEPIXEL, STROKETRANSPARENCY, NAME)
364
	local label = IT("TextLabel")
365
	label.BackgroundTransparency = 1
366
	label.Size = UD2(1, 0, 1, 0)
367
	label.Position = UD2(0, 0, 0, 0)
368
	label.TextColor3 = TEXTCOLOR
369
	label.TextStrokeTransparency = STROKETRANSPARENCY
370
	label.TextTransparency = TRANSPARENCY
371
	label.FontSize = TEXTFONTSIZE
372
	label.Font = TEXTFONT
373
	label.BorderSizePixel = BORDERSIZEPIXEL
374
	label.TextScaled = false
375
	label.Text = TEXT
376
	label.Name = NAME
377
	label.Parent = PARENT
378
	return label
379
end
380
381
function NoOutlines(PART)
382
	PART.TopSurface, PART.BottomSurface, PART.LeftSurface, PART.RightSurface, PART.FrontSurface, PART.BackSurface = 10, 10, 10, 10, 10, 10
383
end
384
385
function CreateWeldOrSnapOrMotor(TYPE, PARENT, PART0, PART1, C0, C1)
386
	local NEWWELD = IT(TYPE)
387
	NEWWELD.Part0 = PART0
388
	NEWWELD.Part1 = PART1
389
	NEWWELD.C0 = C0
390
	NEWWELD.C1 = C1
391
	NEWWELD.Parent = PARENT
392
	return NEWWELD
393
end
394
395
local S = IT("Sound")
396
function CreateSound(ID, PARENT, VOLUME, PITCH, DOESLOOP)
397
	local NEWSOUND = nil
398
	coroutine.resume(coroutine.create(function()
399
		NEWSOUND = S:Clone()
400
		NEWSOUND.Parent = PARENT
401
		NEWSOUND.Volume = VOLUME
402
		NEWSOUND.Pitch = PITCH
403
		NEWSOUND.SoundId = "http://www.roblox.com/asset/?id="..ID
404
		NEWSOUND:play()
405
		if DOESLOOP == true then
406
			NEWSOUND.Looped = true
407
		else
408
			repeat wait(1) until NEWSOUND.Playing == false
409
			NEWSOUND:remove()
410
		end
411
	end))
412
	return NEWSOUND
413
end
414
415
function CFrameFromTopBack(at, top, back)
416
	local right = top:Cross(back)
417
	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)
418
end
419
420
--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})
421
function WACKYEFFECT(Table)
422
	local TYPE = (Table.EffectType or "Sphere")
423
	local SIZE = (Table.Size or VT(1,1,1))
424
	local ENDSIZE = (Table.Size2 or VT(0,0,0))
425
	local TRANSPARENCY = (Table.Transparency or 0)
426
	local ENDTRANSPARENCY = (Table.Transparency2 or 1)
427
	local CFRAME = (Table.CFrame or Torso.CFrame)
428
	local MOVEDIRECTION = (Table.MoveToPos or nil)
429
	local ROTATION1 = (Table.RotationX or 0)
430
	local ROTATION2 = (Table.RotationY or 0)
431
	local ROTATION3 = (Table.RotationZ or 0)
432
	local MATERIAL = (Table.Material or "Neon")
433
	local COLOR = (Table.Color or C3(1,1,1))
434
	local TIME = (Table.Time or 45)
435
	local SOUNDID = (Table.SoundID or nil)
436
	local SOUNDPITCH = (Table.SoundPitch or nil)
437
	local SOUNDVOLUME = (Table.SoundVolume or nil)
438
	coroutine.resume(coroutine.create(function()
439
		local PLAYSSOUND = false
440
		local SOUND = nil
441
		local EFFECT = CreatePart(3, Effects, MATERIAL, 0, TRANSPARENCY, BRICKC("Pearl"), "Effect", VT(1,1,1), true)
442
		if SOUNDID ~= nil and SOUNDPITCH ~= nil and SOUNDVOLUME ~= nil then
443
			PLAYSSOUND = true
444
			SOUND = CreateSound(SOUNDID, EFFECT, SOUNDVOLUME, SOUNDPITCH, false)
445
		end
446
		EFFECT.Color = COLOR
447
		local MSH = nil
448
		if TYPE == "Sphere" then
449
			MSH = CreateMesh("SpecialMesh", EFFECT, "Sphere", "", "", SIZE, VT(0,0,0))
450
		elseif TYPE == "Block" then
451
			MSH = IT("BlockMesh",EFFECT)
452
			MSH.Scale = VT(SIZE.X,SIZE.X,SIZE.X)
453
		elseif TYPE == "Wave" then
454
			MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "20329976", "", SIZE, VT(0,0,-SIZE.X/8))
455
		elseif TYPE == "Ring" then
456
			MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "559831844", "", VT(SIZE.X,SIZE.X,0.1), VT(0,0,0))
457
		elseif TYPE == "Slash" then
458
			MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662586858", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0))
459
		elseif TYPE == "Round Slash" then
460
			MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662585058", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0))
461
		elseif TYPE == "Swirl" then
462
			MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "1051557", "", SIZE, VT(0,0,0))
463
		elseif TYPE == "Skull" then
464
			MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "4770583", "", SIZE, VT(0,0,0))
465
		elseif TYPE == "Crystal" then
466
			MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "9756362", "", SIZE, VT(0,0,0))
467
		end
468
		if MSH ~= nil then
469
			local MOVESPEED = nil
470
			if MOVEDIRECTION ~= nil then
471
				MOVESPEED = (CFRAME.p - MOVEDIRECTION).Magnitude/TIME
472
			end
473
			local GROWTH = SIZE - ENDSIZE
474
			local TRANS = TRANSPARENCY - ENDTRANSPARENCY
475
			if TYPE == "Block" then
476
				EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))
477
			else
478
				EFFECT.CFrame = CFRAME
479
			end
480
			for LOOP = 1, TIME+1 do
481
				Swait()
482
				MSH.Scale = MSH.Scale - GROWTH/TIME
483
				if TYPE == "Wave" then
484
					MSH.Offset = VT(0,0,-MSH.Scale.X/8)
485
				end
486
				EFFECT.Transparency = EFFECT.Transparency - TRANS/TIME
487
				if TYPE == "Block" then
488
					EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))
489
				else
490
					EFFECT.CFrame = EFFECT.CFrame*ANGLES(RAD(ROTATION1),RAD(ROTATION2),RAD(ROTATION3))
491
				end
492
				if MOVEDIRECTION ~= nil then
493
					local ORI = EFFECT.Orientation
494
					EFFECT.CFrame = CF(EFFECT.Position,MOVEDIRECTION)*CF(0,0,-MOVESPEED)
495
					EFFECT.Orientation = ORI
496
				end
497
			end
498
			if PLAYSSOUND == false then
499
				EFFECT:remove()
500
			else
501
				repeat Swait() until SOUND.Playing == false
502
				EFFECT:remove()
503
			end
504
		else
505
			if PLAYSSOUND == false then
506
				EFFECT:remove()
507
			else
508
				repeat Swait() until SOUND.Playing == false
509
				EFFECT:remove()
510
			end
511
		end
512
	end))
513
end
514
515
function MakeForm(PART,TYPE)
516
	if TYPE == "Cyl" then
517
		local MSH = IT("CylinderMesh",PART)
518
	elseif TYPE == "Ball" then
519
		local MSH = IT("SpecialMesh",PART)
520
		MSH.MeshType = "Sphere"
521
	elseif TYPE == "Wedge" then
522
		local MSH = IT("SpecialMesh",PART)
523
		MSH.MeshType = "Wedge"
524
	end
525
end
526
527
Debris = game:GetService("Debris")
528
529
function CastProperRay(StartPos, EndPos, Distance, Ignore)
530
	local DIRECTION = CF(StartPos,EndPos).lookVector
531
	return Raycast(StartPos, DIRECTION, Distance, Ignore)
532
end
533
534
function turnto(position)
535
	RootPart.CFrame=CFrame.new(RootPart.CFrame.p,VT(position.X,RootPart.Position.Y,position.Z)) * CFrame.new(0, 0, 0)
536
end
537
538
--//=================================\\
539
--||	     WEAPON CREATION
540
--\\=================================//
541
542
--[[
543
		Thanks for using Build-To-Lua by jarredbcv.
544
]]--
545
546
New = function(Object, Parent, Name, Data)
547
	local Object = Instance.new(Object)
548
	for Index, Value in pairs(Data or {}) do
549
		Object[Index] = Value
550
	end
551
	Object.Parent = Parent
552
	Object.Name = Name
553
	return Object
554
end
555
556
557-
Corruption = New("Part",Character,"Corruption",{BrickColor = BrickColor.new("Really red"),Material = Enum.Material.Neon,FormFactor = Enum.FormFactor.Symmetric,Size = Vector3.new(0.330000252, 0.660000384, 0.0500000007),CFrame = CFrame.new(-67.6787415, 1.33912802, 93.9772263, 0, 0, -1, 0, 1, 0, 1, 0, 0),})
557+
Corruption = New("Part",Character,"Corruption",{BrickColor = BrickColor.new("Bright yellow"),Material = Enum.Material.Neon,FormFactor = Enum.FormFactor.Symmetric,Size = Vector3.new(0.330000252, 0.660000384, 0.0500000007),CFrame = CFrame.new(-67.6787415, 1.33912802, 93.9772263, 0, 0, -1, 0, 1, 0, 1, 0, 0),})
558
mot = New("Motor",Corruption,"mot",{Part0 = Corruption,Part1 = LeftLeg,C0 = CFrame.new(0, 0, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0),C1 = CFrame.new(0.0127105713, 0.339127064, 0.487541199, 0, 0, 1, 0, 1, 0, -1, 0, 0),})
559-
Corruption = New("Part",Character,"Corruption",{BrickColor = BrickColor.new("Really red"),Material = Enum.Material.Neon,FormFactor = Enum.FormFactor.Symmetric,Size = Vector3.new(0.330000252, 0.660000384, 0.0500000007),CFrame = CFrame.new(-66.6787415, 1.33912802, 93.9772263, 0, 0, -1, 0, 1, 0, 1, 0, 0),})
559+
Corruption = New("Part",Character,"Corruption",{BrickColor = BrickColor.new("Bright yellow"),Material = Enum.Material.Neon,FormFactor = Enum.FormFactor.Symmetric,Size = Vector3.new(0.330000252, 0.660000384, 0.0500000007),CFrame = CFrame.new(-66.6787415, 1.33912802, 93.9772263, 0, 0, -1, 0, 1, 0, 1, 0, 0),})
560
mot = New("Motor",Corruption,"mot",{Part0 = Corruption,Part1 = LeftLeg,C0 = CFrame.new(0, 0, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0),C1 = CFrame.new(0.0127105713, 0.339127064, -0.512458801, 0, 0, 1, 0, 1, 0, -1, 0, 0),})
561
562-
Corruption = New("Part",Character,"Corruption",{BrickColor = BrickColor.new("Really red"),Material = Enum.Material.Neon,FormFactor = Enum.FormFactor.Symmetric,Size = Vector3.new(0.740000069, 0.140000015, 0.0500000007),CFrame = CFrame.new(-67.6787415, 3.12643075, 92.6921463, -9.31322575e-10, -1.86264515e-09, -0.999999285, 0.777135551, 0.629333496, 9.31322575e-10, 0.6293329, -0.777134895, 0),})
562+
Corruption = New("Part",Character,"Corruption",{BrickColor = BrickColor.new("Bright yellow"),Material = Enum.Material.Neon,FormFactor = Enum.FormFactor.Symmetric,Size = Vector3.new(0.740000069, 0.140000015, 0.0500000007),CFrame = CFrame.new(-67.6787415, 3.12643075, 92.6921463, -9.31322575e-10, -1.86264515e-09, -0.999999285, 0.777135551, 0.629333496, 9.31322575e-10, 0.6293329, -0.777134895, 0),})
563
mot = New("Motor",Corruption,"mot",{Part0 = Corruption,Part1 = Torso,C0 = CFrame.new(0, 0, 0, 0, 0.777135491, 0.629333377, 0, 0.629333377, -0.777135491, -1, 0, 0),C1 = CFrame.new(-0.766067505, 0.138611317, 0.515716553, -0.0156119959, -4.38656264e-11, 0.999877751, -0.0062854127, 0.999980271, -9.81397825e-05, -0.999858022, -0.00628618058, -0.0156116877),})
564-
Corruption = New("Part",Character,"Corruption",{BrickColor = BrickColor.new("Really red"),Material = Enum.Material.Neon,FormFactor = Enum.FormFactor.Symmetric,Size = Vector3.new(1.12999988, 1.12000012, 0.0500000007),CFrame = CFrame.new(-67.6951752, 3.43133378, 93.991272, 0, -9.31322575e-10, -0.999999285, 0, 1, 9.31322575e-10, 0.999999225, 0, 0),})
564+
Corruption = New("Part",Character,"Corruption",{BrickColor = BrickColor.new("Bright yellow"),Material = Enum.Material.Neon,FormFactor = Enum.FormFactor.Symmetric,Size = Vector3.new(1.12999988, 1.12000012, 0.0500000007),CFrame = CFrame.new(-67.6951752, 3.43133378, 93.991272, 0, -9.31322575e-10, -0.999999285, 0, 1, 9.31322575e-10, 0.999999225, 0, 0),})
565
mot = New("Motor",Corruption,"mot",{Part0 = Corruption,Part1 = Torso,C0 = CFrame.new(0, 0, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0),C1 = CFrame.new(0.533157349, 0.443484068, 0.50994873, -0.0156119959, -4.38656264e-11, 0.999877751, -0.0062854127, 0.999980271, -9.81397825e-05, -0.999858022, -0.00628618058, -0.0156116877),})
566-
Corruption = New("Part",Character,"Corruption",{BrickColor = BrickColor.new("Really red"),Material = Enum.Material.Neon,FormFactor = Enum.FormFactor.Symmetric,Size = Vector3.new(0.450000018, 0.590000272, 0.0500000007),CFrame = CFrame.new(-67.6951752, 2.60608268, 94.3512573, 0, -9.31322575e-10, -0.999999285, 0, 1, 9.31322575e-10, 0.999999225, 0, 0),})
566+
Corruption = New("Part",Character,"Corruption",{BrickColor = BrickColor.new("Bright yellow"),Material = Enum.Material.Neon,FormFactor = Enum.FormFactor.Symmetric,Size = Vector3.new(0.450000018, 0.590000272, 0.0500000007),CFrame = CFrame.new(-67.6951752, 2.60608268, 94.3512573, 0, -9.31322575e-10, -0.999999285, 0, 1, 9.31322575e-10, 0.999999225, 0, 0),})
567
mot = New("Motor",Corruption,"mot",{Part0 = Corruption,Part1 = Torso,C0 = CFrame.new(0, 0, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0),C1 = CFrame.new(0.893096924, -0.381786108, 0.509513855, -0.0156119959, -4.38656264e-11, 0.999877751, -0.0062854127, 0.999980271, -9.81397825e-05, -0.999858022, -0.00628618058, -0.0156116877),})
568-
Corruption = New("Part",Character,"Corruption",{BrickColor = BrickColor.new("Really red"),Material = Enum.Material.Neon,FormFactor = Enum.FormFactor.Symmetric,Size = Vector3.new(0.330000013, 0.590000272, 0.0500000007),CFrame = CFrame.new(-66.6951752, 2.60608268, 94.2912598, 0, -9.31322575e-10, -0.999999285, 0, 1, 9.31322575e-10, 0.999999225, 0, 0),})
568+
Corruption = New("Part",Character,"Corruption",{BrickColor = BrickColor.new("Bright yellow"),Material = Enum.Material.Neon,FormFactor = Enum.FormFactor.Symmetric,Size = Vector3.new(0.330000013, 0.590000272, 0.0500000007),CFrame = CFrame.new(-66.6951752, 2.60608268, 94.2912598, 0, -9.31322575e-10, -0.999999285, 0, 1, 9.31322575e-10, 0.999999225, 0, 0),})
569
mot = New("Motor",Corruption,"mot",{Part0 = Corruption,Part1 = Torso,C0 = CFrame.new(0, 0, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0),C1 = CFrame.new(0.817497253, -0.388065577, -0.489402771, -0.0156119959, -4.38656264e-11, 0.999877751, -0.0062854127, 0.999980271, -9.81397825e-05, -0.999858022, -0.00628618058, -0.0156116877),})
570-
Corruption = New("Part",Character,"Corruption",{BrickColor = BrickColor.new("Really red"),Material = Enum.Material.Neon,FormFactor = Enum.FormFactor.Symmetric,Size = Vector3.new(0.220000237, 0.660000384, 0.0500000007),CFrame = CFrame.new(-66.6787338, 2.57395577, 93.9222183, 0, -9.31322575e-10, -0.999999285, 0, 1, 9.31322575e-10, 0.999999225, 0, 0),})
570+
Corruption = New("Part",Character,"Corruption",{BrickColor = BrickColor.new("Bright yellow"),Material = Enum.Material.Neon,FormFactor = Enum.FormFactor.Symmetric,Size = Vector3.new(0.220000237, 0.660000384, 0.0500000007),CFrame = CFrame.new(-66.6787338, 2.57395577, 93.9222183, 0, -9.31322575e-10, -0.999999285, 0, 1, 9.31322575e-10, 0.999999225, 0, 0),})
571
mot = New("Motor",Corruption,"mot",{Part0 = Corruption,Part1 = Torso,C0 = CFrame.new(0, 0, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0),C1 = CFrame.new(0.448242188, -0.420258999, -0.49987793, -0.0156119959, -4.38656264e-11, 0.999877751, -0.0062854127, 0.999980271, -9.81397825e-05, -0.999858022, -0.00628618058, -0.0156116877),})
572-
Corruption = New("Part",Character,"Corruption",{BrickColor = BrickColor.new("Really red"),Material = Enum.Material.Neon,FormFactor = Enum.FormFactor.Symmetric,Size = Vector3.new(1.07999992, 1.12000012, 0.0500000007),CFrame = CFrame.new(-66.6951752, 3.43133354, 93.9662704, 0, -9.31322575e-10, -0.999999285, 0, 1, 9.31322575e-10, 0.999999225, 0, 0),})
572+
Corruption = New("Part",Character,"Corruption",{BrickColor = BrickColor.new("Bright yellow"),Material = Enum.Material.Neon,FormFactor = Enum.FormFactor.Symmetric,Size = Vector3.new(1.07999992, 1.12000012, 0.0500000007),CFrame = CFrame.new(-66.6951752, 3.43133354, 93.9662704, 0, -9.31322575e-10, -0.999999285, 0, 1, 9.31322575e-10, 0.999999225, 0, 0),})
573
mot = New("Motor",Corruption,"mot",{Part0 = Corruption,Part1 = Torso,C0 = CFrame.new(0, 0, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0),C1 = CFrame.new(0.492546082, 0.437201023, -0.489517212, -0.0156119959, -4.38656264e-11, 0.999877751, -0.0062854127, 0.999980271, -9.81397825e-05, -0.999858022, -0.00628618058, -0.0156116877),})
574-
Corruption = New("Part",Character,"Corruption",{BrickColor = BrickColor.new("Really red"),Material = Enum.Material.Neon,FormFactor = Enum.FormFactor.Symmetric,Size = Vector3.new(0.740000069, 0.340000302, 0.0500000007),CFrame = CFrame.new(-66.6787415, 3.2281816, 93.1287689, 0, -9.31322575e-10, -0.999999285, 0, 1, 9.31322575e-10, 0.999999225, 0, 0),})
574+
Corruption = New("Part",Character,"Corruption",{BrickColor = BrickColor.new("Bright yellow"),Material = Enum.Material.Neon,FormFactor = Enum.FormFactor.Symmetric,Size = Vector3.new(0.740000069, 0.340000302, 0.0500000007),CFrame = CFrame.new(-66.6787415, 3.2281816, 93.1287689, 0, -9.31322575e-10, -0.999999285, 0, 1, 9.31322575e-10, 0.999999225, 0, 0),})
575
mot = New("Motor",Corruption,"mot",{Part0 = Corruption,Part1 = Torso,C0 = CFrame.new(0, 0, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0),C1 = CFrame.new(-0.345108032, 0.234031916, -0.491600037, -0.0156119959, -4.38656264e-11, 0.999877751, -0.0062854127, 0.999980271, -9.81397825e-05, -0.999858022, -0.00628618058, -0.0156116877),})
576-
Corruption = New("Part",Character,"Corruption",{BrickColor = BrickColor.new("Really red"),Material = Enum.Material.Neon,FormFactor = Enum.FormFactor.Symmetric,Size = Vector3.new(1.0999999, 0.0500000007, 1.00999975),CFrame = CFrame.new(-67.1759109, 3.99574399, 93.9762726, 0, -0.0260759834, -0.999659359, 0, 0.999660075, -0.0260760002, 0.999999225, -2.91038305e-11, -9.31322575e-10),})
576+
Corruption = New("Part",Character,"Corruption",{BrickColor = BrickColor.new("Bright yellow"),Material = Enum.Material.Neon,FormFactor = Enum.FormFactor.Symmetric,Size = Vector3.new(1.0999999, 0.0500000007, 1.00999975),CFrame = CFrame.new(-67.1759109, 3.99574399, 93.9762726, 0, -0.0260759834, -0.999659359, 0, 0.999660075, -0.0260760002, 0.999999225, -2.91038305e-11, -9.31322575e-10),})
577
mot = New("Motor",Corruption,"mot",{Part0 = Corruption,Part1 = Torso,C0 = CFrame.new(0, 0, 0, 0, 0, 1, -0.0260760002, 0.999660015, 0, -0.999660015, -0.0260760002, 0),C1 = CFrame.new(0.510047913, 1.00462079, -0.0125579834, -0.0156119959, -4.38656264e-11, 0.999877751, -0.0062854127, 0.999980271, -9.81397825e-05, -0.999858022, -0.00628618058, -0.0156116877),})
578
579-
Corruption = New("Part",Character,"Corruption",{BrickColor = BrickColor.new("Really red"),Material = Enum.Material.Neon,FormFactor = Enum.FormFactor.Symmetric,Size = Vector3.new(0.740000069, 0.419999987, 0.870000064),CFrame = CFrame.new(-67.0815201, 2.81366396, 91.9528885, 0, 0, -1, 0.777135491, 0.629333377, 0, 0.629333377, -0.777135491, 0),})
579+
Corruption = New("Part",Character,"Corruption",{BrickColor = BrickColor.new("Bright yellow"),Material = Enum.Material.Neon,FormFactor = Enum.FormFactor.Symmetric,Size = Vector3.new(0.740000069, 0.419999987, 0.870000064),CFrame = CFrame.new(-67.0815201, 2.81366396, 91.9528885, 0, 0, -1, 0.777135491, 0.629333377, 0, 0.629333377, -0.777135491, 0),})
580
mot = New("Motor",Corruption,"mot",{Part0 = Corruption,Part1 = LeftArm,C0 = CFrame.new(0, 0, 0, 0, 0.777135491, 0.629333377, 0, 0.629333377, -0.777135491, -1, 0, 0),C1 = CFrame.new(-0.00936126709, -0.184385061, -0.0693511963, 0, 0, 1, 0, 1, 0, -1, 0, 0),})
581
582
583
584
for i = 1, 35 do
585
	local FACE = CreatePart(3, Character, "Fabric", 0, 0+(i-1)/35.2, "Dark stone grey", "FaceGradient", VT(1.01,0.5,1.01),false)
586
	FACE.Color = C3(0,0,0)
587
	Head:FindFirstChildOfClass("SpecialMesh"):Clone().Parent = FACE
588
	CreateWeldOrSnapOrMotor("Weld", Head, Head, FACE, CF(0,0.35-(i-1)/75,0), CF(0, 0, 0))
589
end
590
591-
local Eye = CreatePart(3, Character, "Neon", 0, 0, "Really red", "Eye", VT(0.6,0.1,1)/2,false)
591+
local Eye = CreatePart(3, Character, "Neon", 0, 0, "Bright yellow", "Eye", VT(0.6,0.1,1)/2,false)
592
MakeForm(Eye,"Ball")
593
CreateWeldOrSnapOrMotor("Weld", Eye, Head, Eye, CF(0,0.2,0) * ANGLES(RAD(0), RAD(-18), RAD(15)), CF(0, 0, 0.4))
594-
local Eye = CreatePart(3, Character, "Neon", 0, 0, "Really red", "Eye", VT(0.6,0.1,1)/2,false)
594+
local Eye = CreatePart(3, Character, "Neon", 0, 0, "Bright yellow", "Eye", VT(0.6,0.1,1)/2,false)
595
MakeForm(Eye,"Ball")
596
CreateWeldOrSnapOrMotor("Weld", Eye, Head, Eye, CF(0,0.2,0) * ANGLES(RAD(0), RAD(18), RAD(-15)), CF(0, 0, 0.4))
597-
local Eye = CreatePart(3, Character, "Neon", 0, 0, "Really red", "Eye", VT(0.1,1,1)/2,false)
597+
local Eye = CreatePart(3, Character, "Neon", 0, 0, "Bright yellow", "Eye", VT(0.1,1,1)/2,false)
598
MakeForm(Eye,"Ball")
599
CreateWeldOrSnapOrMotor("Weld", Eye, Head, Eye, CF(0,0.15,0) * ANGLES(RAD(0), RAD(-18), RAD(0)), CF(0, 0, 0.4))
600-
local Eye = CreatePart(3, Character, "Neon", 0, 0, "Really red", "Eye", VT(0.1,1,1)/2,false)
600+
local Eye = CreatePart(3, Character, "Neon", 0, 0, "Bright yellow", "Eye", VT(0.1,1,1)/2,false)
601
MakeForm(Eye,"Ball")
602
CreateWeldOrSnapOrMotor("Weld", Eye, Head, Eye, CF(0,0.15,0) * ANGLES(RAD(0), RAD(18), RAD(0)), CF(0, 0, 0.4))
603
604-
local BasePart = CreatePart(3, Weapon, "SmoothPlastic", 1, 1, "Really red", "BraceletPart", VT(1.01,0.3,1.01),false)
604+
local BasePart = CreatePart(3, Weapon, "SmoothPlastic", 1, 1, "Bright yellow", "BraceletPart", VT(1.01,0.3,1.01),false)
605
CreateWeldOrSnapOrMotor("Weld", RightArm, RightArm, BasePart, CF(0, -0.2, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
606
for i = 1, 3 do
607-
	local Part = CreatePart(3, Weapon, "SmoothPlastic", 1, 1, "Royal purple", "BraceletPart", VT(0.2,1.02,0.2),false)
607+
	local Part = CreatePart(3, Weapon, "SmoothPlastic", 1, 1, "Bright yellow", "BraceletPart", VT(0.2,1.02,0.2),false)
608
	CreateWeldOrSnapOrMotor("Weld", BasePart, BasePart, Part, CF(0, 0, 0.6-0.3*i) * ANGLES(RAD(0), RAD(0), RAD(90)), CF(0, 0, 0))
609
	MakeForm(Part,"Cyl")
610
end
611
for i = 1, 3 do
612-
	local Part = CreatePart(3, Weapon, "SmoothPlastic", 1, 1, "Really red", "BraceletPart", VT(0.2,1.02,0.2),false)
612+
	local Part = CreatePart(3, Weapon, "SmoothPlastic", 1, 1, "Bright yellow", "BraceletPart", VT(0.2,1.02,0.2),false)
613
	CreateWeldOrSnapOrMotor("Weld", BasePart, BasePart, Part, CF(0.6-0.3*i, 0, 0) * ANGLES(RAD(0), RAD(90), RAD(90)), CF(0, 0, 0))
614
	MakeForm(Part,"Cyl")
615
end
616-
local Part = CreatePart(3, Weapon, "SmoothPlastic", 1, 1, "Really red", "BraceletPart", VT(0.51,0.6,0.25),false)
616+
local Part = CreatePart(3, Weapon, "SmoothPlastic", 1, 1, "Bright yellow", "BraceletPart", VT(0.51,0.6,0.25),false)
617
CreateWeldOrSnapOrMotor("Weld", BasePart, BasePart, Part, CF(-0.125, -0.4, -0.25) * ANGLES(RAD(0), RAD(90), RAD(180)), CF(0, 0, 0))
618
MakeForm(Part,"Wedge")
619-
local Part = CreatePart(3, Weapon, "SmoothPlastic", 1, 1, "Really red", "BraceletPart", VT(0.51,0.6,0.25),false)
619+
local Part = CreatePart(3, Weapon, "SmoothPlastic", 1, 1, "Bright yellow", "BraceletPart", VT(0.51,0.6,0.25),false)
620
CreateWeldOrSnapOrMotor("Weld", BasePart, BasePart, Part, CF(0.125, -0.4, -0.25) * ANGLES(RAD(0), RAD(-90), RAD(180)), CF(0, 0, 0))
621
MakeForm(Part,"Wedge")
622-
local Part = CreatePart(3, Weapon, "SmoothPlastic", 1, 1, "Really red", "BraceletPart", VT(0.52,0.5,0.25/2.3),false)
622+
local Part = CreatePart(3, Weapon, "SmoothPlastic", 1, 1, "Bright yellow", "BraceletPart", VT(0.52,0.5,0.25/2.3),false)
623
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))
624
MakeForm(Part,"Wedge")
625-
local Part = CreatePart(3, Weapon, "SmoothPlastic", 1, 1, "Really red", "BraceletPart", VT(0.52,0.5,0.25/2.3),false)
625+
local Part = CreatePart(3, Weapon, "SmoothPlastic", 1, 1, "Bright yellow", "BraceletPart", VT(0.52,0.5,0.25/2.3),false)
626
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))
627
MakeForm(Part,"Wedge")
628
629
630
631
632
633
634
635
for _, c in pairs(Weapon:GetChildren()) do
636
	if c.ClassName == "Part" then
637
		c.CustomPhysicalProperties = PhysicalProperties.new(0, 0, 0, 0, 0)
638
		local AURA = c:Clone()
639
		AURA:BreakJoints()
640
		AURA.Parent = c
641
		AURA.CFrame = c.CFrame
642
		AURA.Size = AURA.Size*1.001
643
		AURA.Transparency = 0.8
644
		AURA.BrickColor = BRICKC"Royal purple"
645
		AURA.Material = "Neon"
646
		weldBetween(c,AURA)
647
	end
648
end
649
650-
local SKILLTEXTCOLOR = BRICKC"Really red".Color
650+
local SKILLTEXTCOLOR = BRICKC"Bright yellow".Color
651
local SKILLFONT = "Bodoni"
652
local SKILLTEXTSIZE = 7
653
654
Weapon.Parent = Character
655
656
Humanoid.Died:connect(function()
657
	
658
	ATTACK = true
659
end)
660
661
local SKILL1FRAME = CreateFrame(WEAPONGUI, 0.75, 2, UD2(0.23, 0, 0.80, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 1 Frame")
662
local SKILL2FRAME = CreateFrame(WEAPONGUI, 0.75, 2, UD2(0.50, 0, 0.80, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 2 Frame")
663
local SKILL3FRAME = CreateFrame(WEAPONGUI, 0.75, 2, UD2(0.365, 0, 0.90, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 3 Frame")
664
665
local SKILL1TEXT = CreateLabel(SKILL1FRAME, "[Z] Corrupted Beam", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 1, "Text 1")
666
local SKILL2TEXT = CreateLabel(SKILL2FRAME, "[X] Corrupted Explosion", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 1, "Text 2")
667
local SKILL3TEXT = CreateLabel(SKILL3FRAME, "[C] Corrupted Stun", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 1, "Text 3")
668
669
--//=================================\\
670
--||	     DAMAGE FUNCTIONS
671
--\\=================================//
672
673
function StatLabel(CFRAME, TEXT, COLOR)
674
	local STATPART = CreatePart(3, Effects, "SmoothPlastic", 0, 1, "Really black", "Effect", VT())
675
	STATPART.CFrame = CF(CFRAME.p,CFRAME.p+VT(MRANDOM(-5,5),MRANDOM(0,5),MRANDOM(-5,5)))
676
	local BODYGYRO = IT("BodyGyro", STATPART)
677
	game:GetService("Debris"):AddItem(STATPART ,5)
678
	local BILLBOARDGUI = Instance.new("BillboardGui", STATPART)
679
	BILLBOARDGUI.Adornee = STATPART
680
	BILLBOARDGUI.Size = UD2(2.5, 0, 2.5 ,0)
681
	BILLBOARDGUI.StudsOffset = VT(-2, 2, 0)
682
	BILLBOARDGUI.AlwaysOnTop = false
683
	local TEXTLABEL = Instance.new("TextLabel", BILLBOARDGUI)
684
	TEXTLABEL.BackgroundTransparency = 1
685
	TEXTLABEL.Size = UD2(2.5, 0, 2.5, 0)
686
	TEXTLABEL.Text = TEXT
687
	TEXTLABEL.Font = SKILLFONT
688
	TEXTLABEL.FontSize="Size42"
689
	TEXTLABEL.TextColor3 = COLOR
690
	TEXTLABEL.TextStrokeTransparency = 0
691
	TEXTLABEL.TextScaled = true
692
	TEXTLABEL.TextWrapped = true
693
	coroutine.resume(coroutine.create(function(THEPART, THEBODYPOSITION, THETEXTLABEL)
694
		for i = 1, 50 do
695
			Swait()
696
			STATPART.CFrame = STATPART.CFrame * CF(0,0,-0.2)
697
			TEXTLABEL.TextTransparency = TEXTLABEL.TextTransparency + (1/50)
698
			TEXTLABEL.TextStrokeTransparency = TEXTLABEL.TextTransparency
699
		end
700
		THEPART.Parent = nil
701
	end),STATPART, TEXTLABEL)
702
end
703
704
--//=================================\\
705
--||			DAMAGING
706
--\\=================================//
707
708
709
function Kill(Char)
710
	local NewCharacter = IT("Model",Effects)
711
	NewCharacter.Name = "Ow im ded ;-;"
712
	for _, c in pairs(Char:GetDescendants()) do
713
		if c:IsA("BasePart") and c.Transparency == 0 then
714
			if c.Parent == Char then
715
				getbloody(c,5)
716
			end
717
			c:BreakJoints()
718
			c.Material = "Glass"
719
			c.Color = C3(0.5,0,0)
720
			c.CanCollide = true
721
			c.Transparency = 0.3
722
			if c:FindFirstChildOfClass("SpecialMesh") then
723
				c:FindFirstChildOfClass("SpecialMesh").TextureId = ""
724
			end
725
			if c.Name == "Head" then
726
				c:ClearAllChildren()
727
				c.Size = VT(c.Size.Y,c.Size.Y,c.Size.Y)
728
			end
729
			if c.ClassName == "MeshPart" then
730
				c.TextureID = ""
731
			end
732
			if c:FindFirstChildOfClass("BodyPosition") then
733
				c:FindFirstChildOfClass("BodyPosition"):remove()
734
			end
735
			if c:FindFirstChildOfClass("ParticleEmitter") then
736
				c:FindFirstChildOfClass("ParticleEmitter"):remove()
737
			end
738
			c.Parent = NewCharacter
739
			c.Name = "DeadPart"
740
			c.Velocity = VT(MRANDOM(-45,45),MRANDOM(-45,45),MRANDOM(-45,45))/15
741
			c.RotVelocity = VT(MRANDOM(-45,45),MRANDOM(-15,85),MRANDOM(-45,45))
742
		end
743
	end
744
	Char:remove()
745
	Debris:AddItem(NewCharacter,5)
746
end
747
748
function ApplyAoE(POSITION,RANGE,BRUTAL)
749
	local CHILDREN = workspace:GetDescendants()
750
	for index, CHILD in pairs(CHILDREN) do
751
		if CHILD.ClassName == "Model" and CHILD ~= Character then
752
			local HUM = CHILD:FindFirstChildOfClass("Humanoid")
753
			if HUM then
754
				local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso")
755
				if TORSO then
756
					if (TORSO.Position - POSITION).Magnitude <= RANGE then
757
						if BRUTAL == true then
758
							Kill(CHILD)
759
						else
760
							CHILD:BreakJoints()
761
						end
762
					end
763
				end
764
			end
765
		end
766
	end
767
end
768
769
--//=================================\\
770
--||	ATTACK FUNCTIONS AND STUFF
771
--\\=================================//
772
773
function Charge(TIME,GYRO)
774
	local SND = CreateSound(ENERGYSOUND,Torso,6,TIME,false)
775
	local G = nil
776
	if GYRO == true then
777
		G = IT("BodyGyro",RootPart)
778
		G.D = 250
779
		G.P = 200000
780
		G.MaxTorque = VT(math.huge,math.huge,math.huge)
781
	end
782
	for i=0, TIME, 0.1 / Animation_Speed do
783
		Swait()
784
		if G then
785
			G.cframe = CF(RootPart.Position,Mouse.Hit.p)
786
		end
787
		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})
788
		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)
789
		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)
790
		RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.25, 0.5, -0.5) * ANGLES(RAD(90), RAD(0), RAD(-45)) * RIGHTSHOULDERC0, 2 / Animation_Speed)
791
		LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25, 0.5, -0.5) * ANGLES(RAD(90), RAD(0), RAD(45)) * LEFTSHOULDERC0, 2 / Animation_Speed)
792
		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)
793
		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)
794
	end
795
	SND:remove()
796
	if G then
797
		return G
798
	end
799
end
800
801
function Corrupted_Beam()
802
	ATTACK = true
803
	Rooted = false
804
	local GRAV = IT("BodyPosition",RootPart)
805
	GRAV.D = 75
806
	GRAV.P = 20000
807
	GRAV.MaxForce = VT(math.huge,math.huge,math.huge)
808
	GRAV.Position = RootPart.Position
809
	local GYRO = Charge(2,true)
810-
	local BEAM = CreatePart(3, Effects, "Neon", 0, 0, "Really red", "Beam", VT(15,15,0))
810+
	local BEAM = CreatePart(3, Effects, "Neon", 0, 0, "Bright yellow", "Beam", VT(15,15,0))
811
	MakeForm(BEAM,"Ball")
812
	CreateSound(BEAMSOUND,BEAM,10,1,false)
813
	CreateSound(BEAMSOUND,BEAM,10,0.9,false)
814
	CreateSound(BEAMSOUND,BEAM,10,0.8,false)
815
	for i = 1, 150 do
816
		Swait()
817
		BEAM.Size = BEAM.Size + VT(-0.1,-0.1,2)
818
		ApplyAoE(BEAM.CFrame*CF(0,0,-BEAM.Size.Z/2).p,BEAM.Size.Y/2,50,200,0,false)
819
		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})
820
		BEAM.CFrame = CF(Torso.Position,Torso.CFrame*CF(0,0,-1).p)*CF(0,0,-2-(BEAM.Size.Z/2))
821
		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)
822
		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)
823
		RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, -0.5) * ANGLES(RAD(90), RAD(0), RAD(12)) * RIGHTSHOULDERC0, 2 / Animation_Speed)
824
		LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, -0.5) * ANGLES(RAD(90), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 2 / Animation_Speed)
825
		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)
826
		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)
827
	end
828
	GRAV:remove()
829
	BEAM:remove()
830
	GYRO:remove()
831
	ATTACK = false
832
	Rooted = false
833
end
834
835
function Corrupted_Explosion()
836
	ATTACK = true
837
	Rooted = true
838
	for i=0, 1, 0.1 / Animation_Speed do
839
		Swait()
840
		RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, -0.3, 0) * ANGLES(RAD(0), RAD(0), RAD(-75)), 0.6 / Animation_Speed)
841
		Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0), RAD(0), RAD(75)), 0.6 / Animation_Speed)
842
		RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(90), RAD(0), RAD(15)) * RIGHTSHOULDERC0, 0.3 / Animation_Speed)
843
		LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-90)) * LEFTSHOULDERC0, 0.1 / Animation_Speed)
844
		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)
845
		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)
846
	end
847
	for i=0, 0.4, 0.1 / Animation_Speed do
848
		Swait()
849
		RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, -1, -0.3) * ANGLES(RAD(75), RAD(0), RAD(75)), 1 / Animation_Speed)
850
		Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0), RAD(0), RAD(-75)), 1/ Animation_Speed)
851
		RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(90)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
852
		LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(0)) * LEFTSHOULDERC0, 1 / Animation_Speed)
853
		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)
854
		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)
855
	end
856-
	local BEAM = CreatePart(3, Effects, "Neon", 0, 0, "Really red", "Beam", VT(0,0,0))
856+
	local BEAM = CreatePart(3, Effects, "Neon", 0, 0, "Bright yellow", "Beam", VT(0,0,0))
857-
	local BEAM2 = CreatePart(3, Effects, "Neon", 0, 0, "Really red", "Beam", VT(0,0,0))
857+
	local BEAM2 = CreatePart(3, Effects, "Neon", 0, 0, "Bright yellow", "Beam", VT(0,0,0))
858
	MakeForm(BEAM,"Ball")
859
	MakeForm(BEAM2,"Ball")
860
	BEAM.CFrame = CF(RootPart.Position)
861
	BEAM2.CFrame = CF(RootPart.Position)
862
	CreateSound(EXPLOSIONSOUND,RootPart,10,1,false)
863
	for i=1, 100 do
864
		Swait()
865
		BEAM.Size = BEAM.Size + VT(0.7,8,0.7)
866
		BEAM2.Size = BEAM2.Size + VT(2,2,2)
867
		ApplyAoE(BEAM2.Position,BEAM2.Size.Z/2,5,5,15,true)
868
		BEAM.CFrame = CF(RootPart.Position)
869
		BEAM2.CFrame = CF(RootPart.Position)
870
		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})
871
		RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, -1, -0.3) * ANGLES(RAD(75), RAD(0), RAD(75)), 1 / Animation_Speed)
872
		Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0), RAD(0), RAD(-75)), 1/ Animation_Speed)
873
		RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(90)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
874
		LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(0)) * LEFTSHOULDERC0, 1 / Animation_Speed)
875
		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)
876
		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)
877
	end
878
	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})
879
	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})
880
	BEAM2:remove()
881
	BEAM:remove()
882
	ATTACK = false
883
	Rooted = false
884
end
885
886
function Corrupted_Immobilization()
887
	ATTACK = true
888
	Rooted = true
889
	Charge(2,false)
890
	local SND = CreateSound(EXPLOSIONSOUND,RootPart,10,1,false)
891
	local SND2 = CreateSound(ENERGYSOUND,RootPart,10,1,false)
892
	for i = 1, 60 do
893
		Swait()
894
		ApplyAoE(RootPart.Position,i*1.3,10,20,-200,true)
895
		SND.Pitch = SND.Pitch - 1/60
896
		SND2.Pitch = SND.Pitch
897
		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})
898
		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})
899
		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})
900
		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)
901
		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)
902
		RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(-45), RAD(-45), RAD(45)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
903
		LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-45), RAD(45), RAD(-45)) * LEFTSHOULDERC0, 1 / Animation_Speed)
904
		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)
905
		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)
906
	end
907
	SND:remove()
908
	SND2:remove()
909
	ATTACK = false
910
	Rooted = false
911
end
912
913
--//=================================\\
914
--||	  ASSIGN THINGS TO KEYS
915
--\\=================================//
916
917
function MouseDown(Mouse)
918
	if ATTACK == false then
919
	end
920
end
921
922
function MouseUp(Mouse)
923
HOLD = false
924
end
925
926
function KeyDown(Key)
927
	KEYHOLD = true
928
	if Key == "z" and ATTACK == false then
929
		Corrupted_Beam()
930
	end
931
932
	if Key == "x" and ATTACK == false then
933
		Corrupted_Explosion()
934
	end
935
936
	if Key == "c" and ATTACK == false then
937
		Corrupted_Immobilization()
938
	elseif Key == "1" and ATTACK == false then
939
			if CHOICE ~= 1 then
940
				CHOICE = 1
941
				sick:Play()
942
			end
943
		elseif Key == "2" and ATTACK == false then
944
			if CHOICE ~= 2 then
945
				CHOICE = 2
946
				sick:Play()
947
			end
948
		elseif Key == "3" and ATTACK == false then
949
			if CHOICE ~= 3 then
950
				CHOICE = 3
951
				sick:Play()
952
			end
953
		elseif Key == "4" and ATTACK == false then
954
			if CHOICE ~= 4 then
955
				CHOICE = 4
956
				sick:Play()
957
			end
958
			
959
	end
960
end
961
962
963
964
function KeyUp(Key)
965
	KEYHOLD = false
966
end
967
968
	Mouse.Button1Down:connect(function(NEWKEY)
969
		MouseDown(NEWKEY)
970
	end)
971
	Mouse.Button1Up:connect(function(NEWKEY)
972
		MouseUp(NEWKEY)
973
	end)
974
	Mouse.KeyDown:connect(function(NEWKEY)
975
		KeyDown(NEWKEY)
976
	end)
977
	Mouse.KeyUp:connect(function(NEWKEY)
978
		KeyUp(NEWKEY)
979
	end)
980
981
--//=================================\\
982
--\\=================================//
983
984
function unanchor()
985
	if UNANCHOR == true then
986
		g = Character:GetChildren()
987
		for i = 1, #g do
988
			if g[i].ClassName == "Part" then
989
				g[i].Anchored = false
990
			end
991
		end
992
	end
993
end
994
995
--//=================================\\
996
--||	WRAP THE WHOLE SCRIPT UP
997
--\\=================================//
998
999
Humanoid.Changed:connect(function(Jump)
1000
	if Jump == "Jump" and (Disable_Jump == true) then
1001
		Humanoid.Jump = false
1002
	end
1003
end)
1004
1005
while true do
1006
	Swait()
1007
	script.Parent = WEAPONGUI
1008
	ANIMATE.Parent = nil
1009
	if Humanoid then
1010
		local IDLEANIMATION = Humanoid:LoadAnimation(ROBLOXIDLEANIMATION)
1011
		IDLEANIMATION:Play()
1012
	end
1013
	SINE = SINE + CHANGE
1014
	local TORSOVELOCITY = (RootPart.Velocity * VT(1, 0, 1)).magnitude
1015
	local TORSOVERTICALVELOCITY = RootPart.Velocity.y
1016
	local HITFLOOR = Raycast(RootPart.Position, (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 4, Character)
1017
	local WALKSPEEDVALUE = 5 / (Humanoid.WalkSpeed / 16)
1018
	if ANIM == "Walk" and TORSOVELOCITY > 1 then
1019
		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)
1020
		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)
1021
		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)
1022
		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)
1023
	elseif (ANIM ~= "Walk") or (TORSOVELOCITY < 1) then
1024
		RootJoint.C1 = Clerp(RootJoint.C1, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
1025
		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)
1026
		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)
1027
		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)
1028
	end
1029
	if TORSOVERTICALVELOCITY > 1 and HITFLOOR == nil then
1030
		ANIM = "Jump"
1031
		if ATTACK == false then
1032
			RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0,  0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
1033
			Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-20), RAD(0), RAD(0)), 0.2 / Animation_Speed)
1034
			RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(-40), RAD(0), RAD(20)) * RIGHTSHOULDERC0, 0.2 / Animation_Speed)
1035
			LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-40), RAD(0), RAD(-20)) * LEFTSHOULDERC0, 0.2 / Animation_Speed)
1036
			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)
1037
			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)
1038
	    end
1039
	elseif TORSOVERTICALVELOCITY < -1 and HITFLOOR == nil then
1040
		ANIM = "Fall"
1041
		if ATTACK == false then
1042
			RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 ) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
1043
			Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0 , 0 + ((1) - 1)) * ANGLES(RAD(20), RAD(0), RAD(0)), 0.2 / Animation_Speed)
1044
			RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(60)) * RIGHTSHOULDERC0, 0.2 / Animation_Speed)
1045
			LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-60)) * LEFTSHOULDERC0, 0.2 / Animation_Speed)
1046
			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)
1047
			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)
1048
		end
1049
	elseif TORSOVELOCITY < 1 and HITFLOOR ~= nil then
1050
		ANIM = "Idle"
1051
		if ATTACK == false then
1052
			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)
1053
				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)
1054
				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)
1055
				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)
1056
				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)
1057
				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)
1058
	if VALUE1 == false and MRANDOM(1,200) == 1 then
1059
				coroutine.resume(coroutine.create(function()
1060
					VALUE1 = true
1061
					for i = 1, 25 do
1062
						Swait()
1063
						Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(-5), RAD((15+MRANDOM(-15,15)/15)), RAD(0)), 3 / Animation_Speed)
1064
					
1065
					end
1066
		VALUE1 = false
1067
				end))
1068
			end
1069
		end
1070
		
1071
	elseif TORSOVELOCITY > 1 and HITFLOOR ~= nil then
1072
		ANIM = "Walk"
1073
		if ATTACK == false then
1074
			RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -0.1) * ANGLES(RAD(5), RAD(0), RAD(0)), 0.15 / Animation_Speed)
1075
			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)
1076
			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)
1077
			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)
1078
			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)
1079
			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)
1080
		end
1081
	end
1082
1083
	
1084
sick.Parent = Torso
1085
	sick.Playing = true
1086
		sick.SoundId = "rbxassetid://"..SONGS[CHOICE]
1087
1088
1089
	unanchor()
1090
	Humanoid.MaxHealth = "inf"
1091
	Humanoid.Health = "inf"
1092
	if Rooted == false then
1093
		Disable_Jump = false
1094
		Humanoid.WalkSpeed = Speed
1095
	elseif Rooted == true then
1096
		Disable_Jump = true
1097
		Humanoid.WalkSpeed = 0
1098
	end
1099
end
1100
1101
--//=================================\\
1102
--\\=================================//
1103
1104
1105
1106
1107
1108
--//====================================================\\--
1109
--||			  		 END OF SCRIPT
1110
--\\====================================================//--