View difference between Paste ID: BwixE6CB and nieSU9mX
SHOW: | | - or go back to the newest paste.
1
Player = game:GetService("Players").LocalPlayer
2
Character = Player.Character
3
PlayerGui = Player.PlayerGui
4
Backpack = Player.Backpack
5
Torso = Character.Torso
6
Head = Character.Head
7
Humanoid = Character.Humanoid
8
RootPart = Character.HumanoidRootPart
9
RootJoint = RootPart.RootJoint
10
LeftArm = Character["Left Arm"]
11
LeftLeg = Character["Left Leg"]
12
RightArm = Character["Right Arm"]
13
RightLeg = Character["Right Leg"]
14
LS = Torso["Left Shoulder"]
15
LH = Torso["Left Hip"]
16
RS = Torso["Right Shoulder"]
17
RH = Torso["Right Hip"]
18
Humanoid.MaxHealth = math.huge
19
wait()
20
Humanoid.Health = Humanoid.MaxHealth
21
local BC = Character["Body Colors"]
22-
BC.HeadColor = BrickColor.new("White")
22+
BC.HeadColor = BrickColor.new("Really black")
23
BC.LeftArmColor = BrickColor.new("Black")
24
BC.LeftLegColor = BrickColor.new("Black")
25
BC.RightArmColor = BrickColor.new("Black")
26
BC.RightLegColor = BrickColor.new("Black")
27
BC.TorsoColor = BrickColor.new("Black")
28
for i,v in pairs(Character:children()) do
29
    if v:IsA("Shirt") then
30
        v:Destroy()
31
    end
32
end
33
for i,v in pairs(Character:children()) do
34
    if v:IsA("Pants") then
35
        v:Destroy()
36
    end
37
end
38
------Face----------
39-
Character.Head.face.Texture = "rbxassetid://258268895"
39+
Character.Head.face.Texture = "rbxassetid://701379058"
40
------Remover-------
41
42
for i,v in pairs(Character:children()) do
43
    if v:IsA("Hat") then
44
        v:Destroy()
45
    end
46
end
47
for i,v in pairs(Character:children()) do
48
    if v:IsA("Accessory") then
49
        v:Destroy()
50
    end
51
end
52
for i,v in pairs(Character:children()) do
53
    if v:IsA("Hair") then
54
        v:Destroy()
55
    end
56
end
57
------Heavy---------
58
CV="White"
59
	Player = game.Players.LocalPlayer
60
	char = Player.Character
61
	local txt = Instance.new("BillboardGui", Character)
62
	txt.Adornee = Character .Head
63
	txt.Name = "_status"
64
	txt.Size = UDim2.new(2, 0, 1.2, 0)
65
	txt.StudsOffset = Vector3.new(-9, 8, 0)
66
	local text = Instance.new("TextLabel", txt)
67
	text.Size = UDim2.new(10, 0, 7, 0)
68
	text.FontSize = "Size24"
69
	text.TextScaled = true
70
	text.TextTransparency = 0
71
	text.BackgroundTransparency = 1 
72
	text.TextTransparency = 0
73
	text.TextStrokeTransparency = 0
74
	text.Font = "SciFi"
75
	text.TextStrokeColor3 = Color3.new(0,0,0)
76
77
	v=Instance.new("Part")
78
	v.Name = "ColorBrick"
79
	v.Parent=Player.Character
80
	v.FormFactor="Symmetric"
81
	v.Anchored=true
82
	v.CanCollide=false
83
	v.BottomSurface="Smooth"
84
	v.TopSurface="Smooth"
85
	v.Size=Vector3.new(10,5,3)
86
	v.Transparency=1
87
	v.CFrame=Character.Torso.CFrame
88
	v.BrickColor=BrickColor.new(CV)
89
	v.Transparency=1
90
	text.TextColor3 = Color3.new(255,255,255)
91
	v.Shape="Block"
92-
	text.Text = "Guest 5967"
92+
	text.Text = "Guest 666/Russian Dancer"
93
--------------------
94
shirt = Instance.new("Shirt", Character)
95
shirt.Name = "Shirt"
96
pants = Instance.new("Pants", Character)
97
pants.Name = "Pants"
98
Character.Shirt.ShirtTemplate = "http://www.roblox.com/asset/?id=505308921"
99
Character.Pants.PantsTemplate = "http://www.roblox.com/asset/?id=0"
100
sound = Instance.new("Sound", Character)
101-
sound.SoundId = "rbxassetid://182244545"
101+
sound.SoundId = "rbxassetid://165507050"
102
sound.Volume = 100000000
103
sound.EmitterSize = 25
104
sound:Play()
105
sound.Looped = true
106
Face = Head.face
107
Neck = Torso.Neck
108
it = Instance.new
109
vt = Vector3.new
110
cf = CFrame.new
111
rad = math.rad
112
euler = CFrame.fromEulerAnglesXYZ
113
angles = CFrame.Angles
114
Mouse = Player:GetMouse()
115
coroutine.resume(coroutine.create(function()
116
game.StarterGui:SetCore("ChatMakeSystemMessage", {
117
	Text = "Fixed by PixelFir3 / Cortana#8155";
118
	Color = Color3.new(0, 1, 1);
119
	Font = Enum.Font.Code;
120
	FontSize = Enum.FontSize.Size24;
121
})
122
end))
123
ArtificialHB = Instance.new("BindableEvent", script)
124
ArtificialHB.Name = "ArtificialHB"
125
script:WaitForChild("ArtificialHB")
126
frame = 0.016666666666667
127
tf = 0
128
allowframeloss = false
129
tossremainder = false
130
lastframe = tick()
131
script.ArtificialHB:Fire()
132
game:GetService("RunService").Heartbeat:connect(function(s, p)
133
	
134
	tf = tf + s
135
	if frame <= tf then
136
		if allowframeloss then
137
			script.ArtificialHB:Fire()
138
			lastframe = tick()
139
		else
140
			for i = 1, math.floor(tf / frame) do
141
				script.ArtificialHB:Fire()
142
			end
143
			lastframe = tick()
144
		end
145
		if tossremainder then
146
			tf = 0
147
		else
148
			tf = tf - frame * math.floor(tf / frame)
149
		end
150
	end
151
end
152
)
153
local animationspeed = 2
154
hbwait = function(number)
155
	
156
	if number == 0 or number == nil then
157
		ArtificialHB.Event:wait()
158
	else
159
		for i = 0, number do
160
			ArtificialHB.Event:wait()
161
		end
162
	end
163
end
164
165
local Stats = Instance.new("Folder", Character)
166
Stats.Name = "Stats"
167
local Defense = Instance.new("NumberValue", Stats)
168
Defense.Name = "Defense"
169
Defense.Value = 0.1
170
local Movement = Instance.new("NumberValue", Stats)
171
Movement.Name = "Movement"
172
Movement.Value = 0.35
173
local Damage = Instance.new("NumberValue", Stats)
174
Damage.Name = "Damage"
175
Damage.Value = 0
176
local Mana = Instance.new("NumberValue", Stats)
177
Mana.Name = "Mana"
178
Mana.Value = 0
179
local Rooted = Instance.new("BoolValue", Stats)
180
Rooted.Name = "Rooted"
181
Rooted.Value = false
182
local BlockValue = Instance.new("BoolValue", Stats)
183
BlockValue.Name = "BlockValue"
184
BlockValue.Value = false
185
local StaggerHitAnim = Instance.new("BoolValue", Stats)
186
StaggerHitAnim.Name = "StaggerHitAnim"
187
StaggerHitAnim.Value = false
188
local StaggerAnim = Instance.new("BoolValue", Stats)
189
StaggerAnim.Name = "StaggerAnim"
190
StaggerAnim.Value = false
191
local StunAnim = Instance.new("BoolValue", Stats)
192
StunAnim.Name = "StunAnim"
193
StunAnim.Value = false
194
local StunValue = Instance.new("NumberValue", Stats)
195
StunValue.Name = "StunValue"
196
StunValue.Value = 0
197
local CanCrit = Instance.new("BoolValue", Stats)
198
CanCrit.Name = "CanCrit"
199
CanCrit.Value = false
200
local CritChance = Instance.new("NumberValue", Stats)
201
CritChance.Name = "CritChance"
202
CritChance.Value = 20
203
local CanPenetrateArmor = Instance.new("BoolValue", Stats)
204
CanPenetrateArmor.Name = "CanPenetrateArmor"
205
CanPenetrateArmor.Value = false
206
local AntiTeamKill = Instance.new("BoolValue", Stats)
207
AntiTeamKill.Name = "AntiTeamKill"
208
AntiTeamKill.Value = false
209
necko = cf(0, 1, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0)
210
RootCF = angles(rad(-90), 0, rad(180))
211
local idle = 0
212
local Anim = "Idle"
213
local animtype = math.floor(math.random(1, 3))
214
local attacktype = 1
215
local attack = false
216
local equipped = false
217
local LastPoint = nil
218
local staggerhitanim = false
219
local staggeranim = false
220
local stunanim = false
221
local CritChanceNumber = 0
222
local idlen = 0
223
local donum = 0
224
local sine = 0
225
local change = 2 / animationspeed
226
local walkinganim = false
227
local handidle = false
228
local walk = 0
229
local stundelay = 0
230
local manadelay = 0
231
local robloxidleanimation = Instance.new("Animation", Torso)
232
robloxidleanimation.Name = "robloxidleanimation"
233
robloxidleanimation.AnimationId = "http://www.roblox.com/asset/?id=180435571"
234
local Animator = Humanoid:FindFirstChild("Animator")
235
local Animate = Character:FindFirstChild("Animate")
236
local HitPlayerSounds = {199149137, 199149186, 199149221, 199149235, 199149269, 199149297}
237
local HitArmorSounds = {199149321, 199149338, 199149367, 199149409, 199149452}
238
local HitWeaponSounds = {199148971, 199149025, 199149072, 199149109, 199149119}
239
local HitBlockSounds = {199148933, 199148947}
240
local cooldown1 = 0
241
local cooldown2 = 0
242
local cooldown3 = 0
243
local cooldown4 = 0
244
local scrn = Instance.new("ScreenGui", PlayerGui)
245
local ud = UDim2.new
246
local c3 = Color3.new
247
local skillcolorscheme = c3(1, 1, 1)
248
subtractmana = function(k)
249
	
250
	if k <= Mana.Value then
251
		Mana.Value = Mana.Value - k
252
	end
253
end
254
255
local co1 = 0
256
local co2 = 0
257
local co3 = 0
258
local co4 = 0
259
local maxmana = 0
260
local maxstun = 1
261
local recovermana = 0
262
local losestun = 0
263
local stunwait = 0
264
local manawait = 0
265
local skill1mana = 0
266
local skill2mana = 0
267
local skill3mana = 0
268
local skill4mana = 0
269
local menuupdatespeed = 0
270
local constantupdate = false
271
local showstats = false
272
local allowstunbar = false
273
local CustomColor = Torso.BrickColor
274
local Colorpart1 = CustomColor.r
275
local Colorpart2 = CustomColor.g
276
local Colorpart3 = CustomColor.b
277
local InverseColor = BrickColor.new(Color3.new(1 - Colorpart1, 1 - Colorpart2, 1 - Colorpart3))
278
makeframe = function(par, trans, pos, size, color, name)
279
	
280
	local frame = Instance.new("Frame")
281
	frame.Parent = par
282
	frame.BackgroundTransparency = trans
283
	frame.BorderSizePixel = 2
284
	frame.Position = pos
285
	frame.Size = size
286
	frame.BackgroundColor3 = color
287
	frame.Name = name
288
	return frame
289
end
290
291
makelabel = function(par, text, trans, stroketrans, name)
292
	
293
	local label = Instance.new("TextLabel")
294
	label.Parent = par
295
	label.BackgroundTransparency = 1
296
	label.Size = ud(1, 0, 1, 0)
297
	label.Position = ud(0, 0, 0, 0)
298
	label.TextColor3 = c3(255, 255, 255)
299
	label.TextStrokeTransparency = stroketrans
300
	label.TextTransparency = trans
301
	label.FontSize = Enum.FontSize.Size32
302
	label.Font = Enum.Font.Legacy
303
	label.BorderSizePixel = 0
304
	label.TextScaled = true
305
	label.Text = text
306
	label.Name = name
307
	return label
308
end
309
310
framesk1 = makeframe(scrn, 0.5, ud(0.23, 0, 0.93, 0), ud(0.26, 0, 0, 0), c3(Colorpart1, Colorpart2, Colorpart3), "Frame 1")
311
framesk2 = makeframe(scrn, 0.5, ud(0.5, 0, 0.93, 0), ud(0.26, 0, 0, 0), c3(Colorpart1, Colorpart2, Colorpart3), "Frame 2")
312
framesk3 = makeframe(scrn, 0.5, ud(0.5, 0, 0.86, 0), ud(0.26, 0, 0, 0), c3(Colorpart1, Colorpart2, Colorpart3), "Frame 3")
313
framesk4 = makeframe(scrn, 0.5, ud(0.23, 0, 0.86, 0), ud(0.26, 0, 0, 0), c3(Colorpart1, Colorpart2, Colorpart3), "Frame 4")
314
bar1 = makeframe(framesk1, 0, ud(0, 0, 0, 0), ud(0, 0, 1, 0), c3(Colorpart1, Colorpart2, Colorpart3), "Bar 1")
315
bar2 = makeframe(framesk2, 0, ud(0, 0, 0, 0), ud(0, 0, 1, 0), c3(Colorpart1, Colorpart2, Colorpart3), "Bar 2")
316
bar3 = makeframe(framesk3, 0, ud(0, 0, 0, 0), ud(0, 0, 1, 0), c3(Colorpart1, Colorpart2, Colorpart3), "Bar 3")
317
bar4 = makeframe(framesk4, 0, ud(0, 0, 0, 0), ud(0, 0, 1, 0), c3(Colorpart1, Colorpart2, Colorpart3), "Bar 4")
318
text1 = makelabel(framesk1, "[C] Ability 3", 1, 1, "Text 1")
319
text2 = makelabel(framesk2, "[V] Ability 4", 1, 1, "Text 2")
320
text3 = makelabel(framesk3, "[X] Ability 2", 1, 1, "Text 3")
321
text4 = makelabel(framesk4, "[Z] Ability 1", 1, 1, "Text 4")
322
manabar = makeframe(scrn, 0.5, ud(0.23, 0, 0.82, 0), ud(0.26, 0, 0, 0), c3(Colorpart1, Colorpart2, Colorpart3), "Mana Bar")
323
manacover = makeframe(manabar, 0, ud(0, 0, 0, 0), ud(0, 0, 1, 0), c3(Colorpart1, Colorpart2, Colorpart3), "Mana Cover")
324
manatext = makelabel(manabar, "Mana", 1, 1, "Mana Text")
325
healthbar = makeframe(scrn, 0.5, ud(0.5, 0, 0.82, 0), ud(0.26, 0, 0, 0), c3(1, 0.19607843137255, 0.19607843137255), "Health Bar")
326
healthcover = makeframe(healthbar, 0, ud(0, 0, 0, 0), ud(0, 0, 1, 0), c3(1, 0.19607843137255, 0.19607843137255), "Health Cover")
327
healthtext = makelabel(healthbar, "Health", 1, 1, "Health Text")
328
if allowstunbar == true then
329
	stunframe = makeframe(scrn, 0.5, ud(0.5, 0, 0.78, 0), ud(0.26, 0, 0, 0), c3(1, 1, 0.19607843137255), "Stun Frame")
330
	stunbar = makeframe(stunframe, 0, ud(0, 0, 0, 0), ud(0, 0, 1, 0), c3(1, 1, 0.19607843137255), "Stun Bar")
331
	stuntext = makelabel(stunframe, "Stun", 1, 1, "Stun Text")
332
end
333
if showstats == true then
334
	defenseframe = makeframe(scrn, 0.5, ud(0.23, 0, 0.78, 0), ud(0.075, 0, 0, 0), c3(0.3921568627451, 0.3921568627451, 1), "Defense Frame")
335
	damageframe = makeframe(scrn, 0.5, ud(0.3225, 0, 0.78, 0), ud(0.075, 0, 0, 0), c3(1, 0.3921568627451, 0.3921568627451), "Damage Frame")
336
	movementframe = makeframe(scrn, 0.5, ud(0.415, 0, 0.78, 0), ud(0.075, 0, 0, 0), c3(0.3921568627451, 1, 0.3921568627451), "Movement Frame")
337
	defensetext = makelabel(defenseframe, "Defense: " .. Defense.Value, 1, 1, "Defense Text")
338
	damagetext = makelabel(damageframe, "Damage: " .. Damage.Value, 1, 1, "Damage Text")
339
	movementtext = makelabel(movementframe, "Movement: " .. Movement.Value, 1, 1, "Movement Text")
340
end
341
NoOutline = function(Part)
342
	
343
	Part.TopSurface = 10
344
end
345
346
local weldBetween = function(a, b)
347
	
348
	local weldd = Instance.new("ManualWeld")
349
	weldd.Part0 = a
350
	weldd.Part1 = b
351
	weldd.C0 = CFrame.new()
352
	weldd.C1 = b.CFrame:inverse() * a.CFrame
353
	weldd.Parent = a
354
	return weldd
355
end
356
357
nooutline = function(part)
358
	
359
	part.TopSurface = 10
360
end
361
362
part = function(formfactor, parent, material, reflectance, transparency, brickcolor, name, size)
363
	
364
	local fp = it("Part")
365
	fp.formFactor = formfactor
366
	fp.Parent = parent
367
	fp.Reflectance = reflectance
368
	fp.Transparency = transparency
369
	fp.CanCollide = false
370
	fp.Locked = true
371
	fp.BrickColor = BrickColor.new(tostring(brickcolor))
372
	fp.Name = name
373
	fp.Size = size
374
	fp.Position = Character.Torso.Position
375
	nooutline(fp)
376
	fp.Material = material
377
	fp:BreakJoints()
378
	return fp
379
end
380
381
mesh = function(Mesh, part, meshtype, meshid, offset, scale)
382
	
383
	local mesh = it(Mesh)
384
	mesh.Parent = part
385
	if Mesh == "SpecialMesh" then
386
		mesh.MeshType = meshtype
387
		mesh.MeshId = meshid
388
	end
389
	mesh.Offset = offset
390
	mesh.Scale = scale
391
	return mesh
392
end
393
394
weld = function(parent, part0, part1, c0, c1)
395
	
396
	local weld = it("Motor")
397
	weld.Parent = parent
398
	weld.Part0 = part0
399
	weld.Part1 = part1
400
	weld.C0 = c0
401
	weld.C1 = c1
402
	return weld
403
end
404
405
local WeaponName = "Russian Kick"
406
local ClassName = "Russian Kick"
407
local PlayerSize = 1
408
local RWC0 = cf(-0.5, 0, 0) * angles(rad(0), rad(90), rad(0))
409
local LWC0 = cf(0.5, 0, 0) * angles(rad(0), rad(-90), rad(0))
410
if PlayerSize ~= 1 then
411
	RootPart.Size = RootPart.Size * PlayerSize
412
	Torso.Size = Torso.Size * PlayerSize
413
	Head.Size = Head.Size * PlayerSize
414
	RightArm.Size = RightArm.Size * PlayerSize
415
	LeftArm.Size = LeftArm.Size * PlayerSize
416
	RightLeg.Size = RightLeg.Size * PlayerSize
417
	LeftLeg.Size = LeftLeg.Size * PlayerSize
418
	RootJoint.Parent = RootPart
419
	Neck.Parent = Torso
420
	LS.Parent = Torso
421
	RS.Parent = Torso
422
	LH.Parent = Torso
423
	RH.Parent = Torso
424
	RootJoint.C0 = RootCF * cf(0 * PlayerSize, 0 * PlayerSize, 0 * PlayerSize) * angles(rad(0), rad(0), rad(0))
425
	Neck.C0 = necko * cf(0 * PlayerSize, 0 * PlayerSize, 0 + (1 * PlayerSize - 1)) * angles(rad(0), rad(0), rad(0))
426
	Neck.C1 = angles(rad(90), rad(180), 0) * cf(0, 0, -0.5 * PlayerSize)
427
	RS.C0 = cf(1.5 * PlayerSize, 0.5 * PlayerSize, 0 * PlayerSize) * angles(rad(0), rad(0), rad(0)) * RWC0
428
	LS.C0 = cf(-1.5 * PlayerSize, 0.5 * PlayerSize, 0 * PlayerSize) * angles(rad(0), rad(0), rad(0)) * LWC0
429
	RS.C1 = angles(0, rad(90), 0) * cf(0, 0.5 * PlayerSize, -0.5)
430
	LS.C1 = angles(0, rad(-90), 0) * cf(0, 0.5 * PlayerSize, -0.5)
431
	RH.C0 = cf(1 * PlayerSize, -1 * PlayerSize, 0 * PlayerSize) * angles(rad(0), rad(90), rad(0)) * angles(rad(0), rad(0), rad(0))
432
	LH.C0 = cf(-1 * PlayerSize, -1 * PlayerSize, 0 * PlayerSize) * angles(rad(0), rad(-90), rad(0)) * angles(rad(0), rad(0), rad(0))
433
	RH.C1 = angles(0, rad(90), 0) * cf(0, 1 * PlayerSize, 0.5 * PlayerSize)
434
	LH.C1 = angles(0, rad(-90), 0) * cf(0, 1 * PlayerSize, 0.5 * PlayerSize)
435
	for _,v in pairs(Character:GetChildren()) do
436
		if v.ClassName == "Hat" or v.ClassName == "Accessory" then
437
			v.Parent = nil
438
			v.Parent = Character
439
			v.Handle.Mesh.Scale = v.Handle.Mesh.Scale * PlayerSize
440
			for _,b in pairs(v.Handle:GetChildren()) do
441
				if b.ClassName == "Weld" or b.ClassName == "Motor" then
442
					local p1 = b.Part1
443
					b.Part1 = nil
444
					local c01, c02, c03, c04, c05, c06, c07, c08, c09, c010, c011, c012 = b.C0:components()
445
					local c11, c12, c13, c14, c15, c16, c17, c18, c19, c110, c111, c112 = b.C1:components()
446
					b.C0 = cf(c01 * PlayerSize, c02 * PlayerSize, c03 * PlayerSize, c04, c05, c06, c07, c08, c09, c010, c011, c012)
447
					b.C1 = cf(c11 * PlayerSize, c12 * PlayerSize, c13 * PlayerSize, c14, c15, c16, c17, c18, c19, c110, c111, c112)
448
					b.Part1 = p1
449
				end
450
			end
451
		end
452
	end
453
end
454
	m = Instance.new("Model", Character)
455
	m.Name = WeaponName
456
	Effects = Instance.new("Folder", m)
457
	Effects.Name = "Effects"
458
	Humanoid.Died:connect(function()
459
	
460
	attack = true
461
	for _,v in pairs(Character:GetChildren()) do
462
		if v.ClassName == "Model" then
463
			v:Destroy()
464
		end
465
	end
466
end
467
)
468
	for i,v in pairs(Character:GetChildren()) do
469
		if v.ClassName == "Model" then
470
			for _,c in pairs(v:GetChildren()) do
471
				if c.ClassName == "Part" then
472
					c.CustomPhysicalProperties = PhysicalProperties.new(0.001, 0.001, 0.001, 0.001, 0.001)
473
				end
474
			end
475
		end
476
	end
477
	print(ClassName .. " loaded.")
478
	clerp = function(a, b, t)
479
return a:lerp(b, t)
480
end
481
482
	positiveangle = function(number)
483
	
484
	if number > 0 then
485
		number = 0
486
	end
487
	return number
488
end
489
490
	negativeangle = function(number)
491
	
492
	if number < 0 then
493
		number = 0
494
	end
495
	return number
496
end
497
498
	so = function(id, par, vol, pit)
499
	
500
	coroutine.resume(coroutine.create(function()
501
		
502
		local sou = Instance.new("Sound", par or workspace)
503
		sou.Volume = vol
504
		sou.Pitch = pit or 1
505
		sou.SoundId = "http://roblox.com/asset/?id=" .. id
506
		hbwait()
507
		sou:play()
508
		game:GetService("Debris"):AddItem(sou, 10)
509
	end
510
))
511
end
512
513
	GetDistance = function(Part1, Part2, magnitude)
514
	
515
	local target = Part1.Position - Part2.Position
516
	local mag = target.magnitude
517
	if mag <= magnitude then
518
		return true
519
	else
520
		return false
521
	end
522
end
523
524
	rayCast = function(Pos, Dir, Max, Ignore)
525
	
526
	return game:service("Workspace"):FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore)
527
end
528
529
	DamageStatLabel = function(labeltype, cframe, text, color)
530
	
531
	local c = part(3, Effects, "SmoothPlastic", 0, 1, "Really black", "Effect", vt(0, 0, 0))
532
	c.CFrame = cf(cframe.p + vt(0, 1.5, 0))
533
	game:GetService("Debris"):AddItem(c, 5)
534
	Instance.new("BodyGyro", c)
535
	local f = Instance.new("BodyPosition", c)
536
	f.P = 2000
537
	f.D = 100
538
	f.maxForce = vt(math.huge, math.huge, math.huge)
539
	if labeltype == "Normal" then
540
		f.position = c.Position + vt(math.random(-2, 2), 6, math.random(-2, 2))
541
	else
542
		if labeltype == "Debuff" then
543
			f.position = c.Position + vt(math.random(-2, 2), 8, math.random(-2, 2))
544
		else
545
			if labeltype == "Interruption" then
546
				f.position = c.Position + vt(math.random(-2, 2), 8, math.random(-2, 2))
547
			end
548
		end
549
	end
550
	game:GetService("Debris"):AddItem(c, 5)
551
	local bg = Instance.new("BillboardGui", c)
552
	bg.Adornee = c
553
	bg.Size = UDim2.new(2.5, 0, 2.5, 0)
554
	bg.StudsOffset = vt(-2, 2, 0)
555
	bg.AlwaysOnTop = false
556
	local tl = Instance.new("TextLabel", bg)
557
	tl.BackgroundTransparency = 1
558
	tl.Size = UDim2.new(2.5, 0, 2.5, 0)
559
	tl.Text = text
560
	tl.Font = Enum.Font.SourceSans
561
	tl.FontSize = Enum.FontSize.Size42
562
	tl.TextColor3 = color
563
	tl.TextScaled = false
564
	tl.TextStrokeTransparency = 0
565
	tl.TextScaled = true
566
	tl.TextWrapped = true
567
	f.Parent = c
568
	coroutine.resume(coroutine.create(function(Part, BodyPosition, TextLabel)
569
		
570
		wait(0.25)
571
		for i = 1, 5 do
572
			wait()
573
			BodyPosition.position = Part.Position - vt(0, 0.5, 0)
574
		end
575
		wait(1.25)
576
		for i = 1, 5 do
577
			wait()
578
			TextLabel.TextTransparency = TextLabel.TextTransparency + 0.2
579
			TextLabel.TextStrokeTransparency = TextLabel.TextStrokeTransparency + 0.2
580
			BodyPosition.position = Part.Position + vt(0, 0.5, 0)
581
		end
582
		Part.Parent = nil
583
	end
584
), c, f, tl)
585
end
586
587
	IncreaseStat = function(Location, Stat, Amount, Duration, ShowTheStat)
588
	
589
	-- DECOMPILER ERROR at PC28: Unhandled construct in 'MakeBoolean' P1
590
591
	-- DECOMPILER ERROR at PC28: Unhandled construct in 'MakeBoolean' P1
592
593
	if Location:FindFirstChild("Stats") ~= nil and Location.Stats:FindFirstChild("BlockValue") ~= nil and Location.Stats:FindFirstChild("BlockValue").Value ~= true and Location.Stats[Stat] ~= nil then
594
		Location.Stats[Stat].Value = Location.Stats[Stat].Value + Amount
595
		if ShowTheStat == true then
596
			if Stat == "Defense" then
597
				DamageStatLabel("Debuff", Location.Head.CFrame, "+Defense", c3(1, 1, 1))
598
			else
599
				if Stat == "Damage" then
600
					DamageStatLabel("Debuff", Location.Head.CFrame, "+Damage", c3(1, 1, 1))
601
				else
602
					if Stat == "Movement" then
603
						DamageStatLabel("Debuff", Location.Head.CFrame, "+Movement", c3(1, 1, 1))
604
					end
605
				end
606
			end
607
		end
608
		coroutine.resume(coroutine.create(function(CurrentDecrease)
609
		
610
		wait(Duration)
611
		CurrentDecrease.Value = CurrentDecrease.Value - Amount
612
	end
613
), Location.Stats[Stat])
614
	end
615
	DamageStatLabel("Interruption", Location.Head.CFrame, "Blocked!", Color3.new(0, 0.3921568627451, 1))
616
end
617
618
	DecreaseStat = function(Location, Stat, Amount, Duration, ShowTheStat)
619
	
620
	-- DECOMPILER ERROR at PC28: Unhandled construct in 'MakeBoolean' P1
621
622
	-- DECOMPILER ERROR at PC28: Unhandled construct in 'MakeBoolean' P1
623
624
	if Location:FindFirstChild("Stats") ~= nil and Location.Stats:FindFirstChild("BlockValue") ~= nil and Location.Stats:FindFirstChild("BlockValue").Value ~= true and Location.Stats[Stat] ~= nil then
625
		Location.Stats[Stat].Value = Location.Stats[Stat].Value - Amount
626
		if ShowTheStat == true then
627
			if Stat == "Defense" then
628
				DamageStatLabel("Debuff", Location.Head.CFrame, "-Defense", c3(1, 1, 1))
629
			else
630
				if Stat == "Damage" then
631
					DamageStatLabel("Debuff", Location.Head.CFrame, "-Damage", c3(1, 1, 1))
632
				else
633
					if Stat == "Movement" then
634
						DamageStatLabel("Debuff", Location.Head.CFrame, "-Movement", c3(1, 1, 1))
635
					end
636
				end
637
			end
638
		end
639
		coroutine.resume(coroutine.create(function(CurrentDecrease)
640
		
641
		wait(Duration)
642
		CurrentDecrease.Value = CurrentDecrease.Value + Amount
643
	end
644
), Location.Stats[Stat])
645
	end
646
	DamageStatLabel("Interruption", Location.Head.CFrame, "Blocked!", Color3.new(0, 0.3921568627451, 1))
647
end
648
649
	Damagefunc = function(hit, minim, maxim, knockback, Type, Property, Delay, KnockbackType, incstun, stagger, staggerhit, ranged, DecreaseTheStat, DecreaseAmount, DecreaseDuration, ShowDecreasedStat)
650
	
651
	if hit.Parent == nil then
652
		return 
653
	end
654
	h = hit.Parent:FindFirstChild("Humanoid")
655
	for _,v in pairs(hit.Parent:GetChildren()) do
656
		if v:IsA("Humanoid") then
657
			h = v
658
		end
659
	end
660
	if hit.Name == "Hitbox" and ranged ~= true and hit.Parent ~= m then
661
		StaggerHitAnim.Value = true
662
		so(HitWeaponSounds[math.random(1, #HitWeaponSounds)], hit, 1, 1)
663
		return 
664
	end
665
	if hit.Parent.Parent:FindFirstChild("Torso") ~= nil then
666
		h = hit.Parent.Parent:FindFirstChild("Humanoid")
667
	end
668
	if hit.Parent.className == "Hat" then
669
		hit = hit.Parent.Parent:FindFirstChild("Head")
670
	end
671
	if h ~= nil and hit.Parent.Name ~= Character.Name and hit.Parent:FindFirstChild("Torso") ~= nil then
672
		if hit.Parent:FindFirstChild("DebounceHit") ~= nil and hit.Parent.DebounceHit.Value == true then
673
			return 
674
		end
675
		if AntiTeamKill.Value == true and Player.Neutral == false and game.Players:GetPlayerFromCharacter(hit.Parent) ~= nil and game.Players:GetPlayerFromCharacter(hit.Parent).TeamColor == Player.TeamColor then
676
			return 
677
		end
678
		if hit.Parent:FindFirstChild("Humanoid") ~= nil and hit.Parent:FindFirstChild("Humanoid").Health <= 0 then
679
			return 
680
		end
681
		if hit.Parent:FindFirstChild("Stats") ~= nil and hit.Parent.Stats:FindFirstChild("StunValue") ~= nil then
682
			hit.Parent.Stats:FindFirstChild("StunValue").Value = hit.Parent.Stats:FindFirstChild("StunValue").Value + incstun
683
		end
684
		if hit.Parent:FindFirstChild("Stats") ~= nil and hit.Parent.Stats:FindFirstChild("StaggerAnim") ~= nil and stagger == true then
685
			hit.Parent.Stats:FindFirstChild("StaggerAnim").Value = true
686
		end
687
		if hit.Parent:FindFirstChild("Stats") ~= nil and hit.Parent.Stats:FindFirstChild("BlockValue") ~= nil and hit.Parent.Stats:FindFirstChild("BlockValue").Value == true then
688
			if hit.Parent.Stats:FindFirstChild("BlockDebounce") == nil then
689
				DamageStatLabel("Interruption", hit.Parent.Head.CFrame, "Blocked!", Color3.new(0, 0.3921568627451, 1))
690
				local BlockDebounce = Instance.new("BoolValue", hit.Parent.Stats)
691
				BlockDebounce.Name = "BlockDebounce"
692
				BlockDebounce.Value = true
693
				game:GetService("Debris"):AddItem(BlockDebounce, 0.1)
694
			end
695
			do
696
				if ranged ~= true then
697
					do
698
						if hit.Parent.Stats:FindFirstChild("BlockDebounce2") == nil then
699
							local BlockDebounce2 = Instance.new("BoolValue", hit.Parent.Stats)
700
							BlockDebounce2.Name = "BlockDebounce2"
701
							BlockDebounce2.Value = true
702
							game:GetService("Debris"):AddItem(BlockDebounce2, 0.1)
703
							so(HitBlockSounds[math.random(1, #HitBlockSounds)], hit, 1, 1)
704
						end
705
						hit.Parent.Stats:FindFirstChild("BlockValue").Value = false
706
						StaggerAnim.Value = true
707
						do return  end
708
						if DecreaseTheStat ~= nil and hit.Parent:FindFirstChild("Stats") ~= nil then
709
							if DecreaseTheStat == "Defense" then
710
								DecreaseStat(hit.Parent, "Defense", DecreaseAmount, DecreaseDuration, ShowDecreasedStat)
711
							else
712
								if DecreaseTheStat == "Damage" then
713
									DecreaseStat(hit.Parent, "Damage", DecreaseAmount, DecreaseDuration, ShowDecreasedStat)
714
								else
715
									if DecreaseTheStat == "Movement" then
716
										DecreaseStat(hit.Parent, "Movement", DecreaseAmount, DecreaseDuration, ShowDecreasedStat)
717
									end
718
								end
719
							end
720
						end
721
						local D = math.random(minim, maxim) * Damage.Value
722
						if hit.Parent:FindFirstChild("Stats") ~= nil then
723
							if hit.Parent.Stats:FindFirstChild("Defense") then
724
								if CanPenetrateArmor.Value == true then
725
									D = D / hit.Parent.Stats:FindFirstChild("Defense").Value
726
									-- DECOMPILER ERROR at PC377: Unhandled construct in 'MakeBoolean' P1
727
728
									if hit.Parent.Stats:FindFirstChild("Defense") ~= nil or CanCrit.Value == true then
729
										CritChanceNumber = math.random(1, CritChance.Value)
730
										if CritChanceNumber == CritChance.Value then
731
											D = D * 2
732
										end
733
									end
734
									D = math.floor(D)
735
									h.Health = h.Health - D
736
									if D <= 3 and staggerhit == true then
737
										if ranged ~= true then
738
											StaggerHitAnim.Value = true
739
										end
740
										if ranged ~= true then
741
											so(HitArmorSounds[math.random(1, #HitArmorSounds)], hit, 1, 1)
742
										end
743
									else
744
										if D > 3 and ranged ~= true then
745
											so(HitPlayerSounds[math.random(1, #HitPlayerSounds)], hit, 1, 1)
746
										end
747
									end
748
									if D > 3 and D < 20 then
749
										if CanCrit.Value == true and CritChanceNumber == CritChance.Value then
750
											DamageStatLabel("Normal", hit.Parent.Head.CFrame, "Crit! " .. D, Color3.new(0.7843137254902, 0, 0))
751
											so("296102734", hit, 1, 1)
752
										else
753
											DamageStatLabel("Normal", hit.Parent.Head.CFrame, D, Color3.new(1, 0.86274509803922, 0))
754
										end
755
									else
756
										if D >= 20 then
757
											if CanCrit.Value == true and CritChanceNumber == CritChance.Value then
758
												DamageStatLabel("Normal", hit.Parent.Head.CFrame, "Crit! " .. D, Color3.new(0.7843137254902, 0, 0))
759
												so("296102734", hit, 1, 1)
760
											else
761
												DamageStatLabel("Normal", hit.Parent.Head.CFrame, D, Color3.new(1, 0, 0))
762
											end
763
										else
764
											if D <= 3 then
765
												if CanCrit.Value == true and CritChanceNumber == CritChance.Value then
766
													DamageStatLabel("Normal", hit.Parent.Head.CFrame, "Crit! " .. D, Color3.new(0.7843137254902, 0, 0))
767
													so("296102734", hit, 1, 1)
768
												else
769
													DamageStatLabel("Normal", hit.Parent.Head.CFrame, D, Color3.new(0.88235294117647, 0.88235294117647, 0.88235294117647))
770
												end
771
											end
772
										end
773
									end
774
									do
775
										if Type == "Normal" then
776
											local vp = Instance.new("BodyVelocity")
777
											vp.P = 500
778
											vp.maxForce = vt(math.huge, 0, math.huge)
779
											if KnockbackType == 1 then
780
												vp.Velocity = Property.CFrame.lookVector * knockback + Property.Velocity / 1.05
781
											else
782
												if KnockbackType == 2 then
783
													vp.Velocity = Property.CFrame.lookVector * knockback
784
												end
785
											end
786
											if knockback > 0 then
787
												vp.Parent = hit.Parent.Torso
788
											end
789
											game:GetService("Debris"):AddItem(vp, 0.5)
790
										end
791
										local DebounceHit = Instance.new("BoolValue", hit.Parent)
792
										DebounceHit.Name = "DebounceHit"
793
										DebounceHit.Value = true
794
										game:GetService("Debris"):AddItem(DebounceHit, Delay)
795
									end
796
								end
797
							end
798
						end
799
					end
800
				end
801
			end
802
		end
803
	end
804
end
805
806
	MagniDamage = function(Part, magni, mindam, maxdam, knock, Type, Property, Delay, KnockbackType, incstun, stagger, staggerhit, ranged, MagicDecreaseTheStat, MagicDecreaseAmount, MagicDecreaseDuration, MagicShowDecreasedStat)
807
	
808
	for _,c in pairs(workspace:GetChildren()) do
809
		local hum = (c:FindFirstChild("Humanoid"))
810
		local head = nil
811
		if hum ~= nil then
812
			head = c:FindFirstChild("Torso")
813
			if head ~= nil then
814
				local targ = head.Position - Part.Position
815
				local mag = targ.magnitude
816
				if mag <= magni and c.Name ~= Player.Name then
817
					Damagefunc(head, mindam, maxdam, knock, Type, Property, Delay, KnockbackType, incstun, stagger, staggerhit, ranged, MagicDecreaseTheStat, MagicDecreaseAmount, MagicDecreaseDuration, MagicShowDecreasedStat)
818
				end
819
			end
820
			do
821
				for _,d in pairs(c:GetChildren()) do
822
					if d.ClassName == "Model" and ranged ~= true then
823
						head = d:FindFirstChild("Hitbox")
824
						if head ~= nil then
825
							local targ = head.Position - Part.Position
826
							local mag = targ.magnitude
827
							if mag <= magni and c.Name ~= Player.Name then
828
								local hitrefpart = part(3, Effects, "SmoothPlastic", 0, 1, "Really black", "Effect", vt())
829
								hitrefpart.Anchored = true
830
								hitrefpart.CFrame = cf(head.Position)
831
								so(HitWeaponSounds[math.random(1, #HitWeaponSounds)], hitrefpart, 1, 1)
832
								StaggerHitAnim.Value = true
833
							end
834
						end
835
					end
836
				end
837
				do
838
					-- DECOMPILER ERROR at PC107: LeaveBlock: unexpected jumping out DO_STMT
839
840
					-- DECOMPILER ERROR at PC107: LeaveBlock: unexpected jumping out IF_THEN_STMT
841
842
					-- DECOMPILER ERROR at PC107: LeaveBlock: unexpected jumping out IF_STMT
843
844
				end
845
			end
846
		end
847
	end
848
end
849
850
	MagniBufforDebuff = function(Part, Magni, Type, Stat, Amount, Duration, ShowTheBufforDebuff, ApplyToOthersInstead)
851
	
852
	if Player.Neutral == true then
853
		if Type == "Buff" then
854
			IncreaseStat(Character, Stat, Amount, Duration, ShowTheBufforDebuff)
855
		else
856
			if Type == "Debuff" then
857
				DecreaseStat(Character, Stat, Amount, Duration, ShowTheBufforDebuff)
858
			end
859
		end
860
	end
861
	for _,c in pairs(workspace:GetChildren()) do
862
		local hum = (c:FindFirstChild("Humanoid"))
863
		local head = nil
864
		if hum ~= nil then
865
			head = c:FindFirstChild("Torso")
866
			if head ~= nil then
867
				local targ = head.Position - Part.Position
868
				local mag = targ.magnitude
869
				-- DECOMPILER ERROR at PC83: Unhandled construct in 'MakeBoolean' P1
870
871
				if ApplyToOthersInstead == true and mag <= Magni and c.Name ~= Player.Name and Player.Neutral == false and game.Players:GetPlayerFromCharacter(head.Parent) ~= nil and game.Players:GetPlayerFromCharacter(head.Parent).TeamColor == Player.TeamColor then
872
					if Type == "Buff" then
873
						IncreaseStat(head.Parent, Stat, Amount, Duration, ShowTheBufforDebuff)
874
					else
875
						if Type == "Debuff" then
876
							DecreaseStat(head.Parent, Stat, Amount, Duration, ShowTheBufforDebuff)
877
						end
878
					end
879
				end
880
			end
881
		end
882
		if ApplyToOthersInstead == false and mag <= Magni and Player.Neutral == false and game.Players:GetPlayerFromCharacter(head.Parent) ~= nil and game.Players:GetPlayerFromCharacter(head.Parent).TeamColor == Player.TeamColor then
883
			if Type == "Buff" then
884
				IncreaseStat(head.Parent, Stat, Amount, Duration, ShowTheBufforDebuff)
885
			else
886
				if Type == "Debuff" then
887
					DecreaseStat(head.Parent, Stat, Amount, Duration, ShowTheBufforDebuff)
888
				end
889
			end
890
		end
891
	end
892
end
893
894
	Lightning = function(p0, p1, tym, ofs, brickcolor, material, th, tra, last)
895
	
896
	local magz = p0 - p1.magnitude
897
	local curpos = p0
898
	local trz = {-ofs, ofs}
899
	for i = 1, tym do
900
		local li = part(3, Effects, material, 0, 0, brickcolor, "Effect", vt(th, th, magz / tym))
901
		do
902
			li.Anchored = true
903
			local ofz = vt(trz[math.random(1, 2)], trz[math.random(1, 2)], trz[math.random(1, 2)])
904
			local trolpos = cf(curpos, p1) * cf(0, 0, magz / tym).p + ofz
905
			if tym == i then
906
				local magz2 = curpos - p1.magnitude
907
				li.Size = vt(th, th, magz2)
908
				li.CFrame = cf(curpos, p1) * cf(0, 0, -magz2 / 2)
909
			else
910
				do
911
					do
912
						li.CFrame = cf(curpos, trolpos) * cf(0, 0, magz / tym / 2)
913
						curpos = li.CFrame * cf(0, 0, magz / tym / 2).p
914
						game.Debris:AddItem(li, last)
915
						coroutine.resume(coroutine.create(function()
916
		
917
		while li.Transparency ~= 1 do
918
			for i = 0, 1, last do
919
				hbwait()
920
				li.Transparency = li.Transparency + 0.1 / last
921
			end
922
		end
923
	end
924
))
925
					end
926
					-- DECOMPILER ERROR at PC118: LeaveBlock: unexpected jumping out IF_ELSE_STMT
927
928
					-- DECOMPILER ERROR at PC118: LeaveBlock: unexpected jumping out IF_STMT
929
930
					-- DECOMPILER ERROR at PC118: LeaveBlock: unexpected jumping out DO_STMT
931
932
				end
933
			end
934
		end
935
	end
936
end
937
938
	MagicRing = function(brickcolor, material, cframe, x1, y1, z1, x3, y3, z3, delay)
939
	
940
	local prt = part(3, Effects, material, 0, 0, brickcolor, "Effect", vt())
941
	prt.Anchored = true
942
	prt.CFrame = cframe
943
	local msh = mesh("SpecialMesh", prt, "FileMesh", "http://www.roblox.com/asset/?id=3270017", vt(0, 0, 0), vt(x1, y1, z1))
944
	game:GetService("Debris"):AddItem(prt, 10)
945
	coroutine.resume(coroutine.create(function(Part, Mesh)
946
		
947
		for i = 0, 1, delay do
948
			hbwait()
949
			Part.CFrame = Part.CFrame
950
			Part.Transparency = i
951
			Mesh.Scale = Mesh.Scale + vt(x3, y3, z3)
952
		end
953
		Part.Parent = nil
954
	end
955
), prt, msh)
956
end
957
958
	MagicWave = function(brickcolor, material, cframe, x1, y1, z1, x3, y3, z3, delay)
959
	
960
	local prt = part(3, Effects, material, 0, 0, brickcolor, "Effect", vt())
961
	prt.Anchored = true
962
	prt.CFrame = cframe
963
	local msh = mesh("SpecialMesh", prt, "FileMesh", "http://www.roblox.com/asset/?id=20329976", vt(0, 0, -0.1 * z1), vt(x1, y1, z1))
964
	game:GetService("Debris"):AddItem(prt, 10)
965
	coroutine.resume(coroutine.create(function(Part, Mesh)
966
		
967
		for i = 0, 1, delay do
968
			hbwait()
969
			Part.CFrame = Part.CFrame
970
			Part.Transparency = i
971
			Mesh.Scale = Mesh.Scale + vt(x3, y3, z3)
972
		end
973
		Part.Parent = nil
974
	end
975
), prt, msh)
976
end
977
978
	MagicBlock = function(brickcolor, material, rotate, cframe, x1, y1, z1, x3, y3, z3, delay)
979
	
980
	local prt = part(3, Effects, material, 0, 0, brickcolor, "Effect", vt())
981
	prt.Anchored = true
982
	prt.CFrame = cframe * angles(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
983
	local msh = mesh("BlockMesh", prt, "", "", vt(0, 0, 0), vt(x1, y1, z1))
984
	game:GetService("Debris"):AddItem(prt, 10)
985
	coroutine.resume(coroutine.create(function(Part, Mesh)
986
		
987
		for i = 0, 1, delay do
988
			hbwait()
989
			if rotate == true then
990
				Part.CFrame = Part.CFrame * angles(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
991
			end
992
			Part.Transparency = i
993
			Mesh.Scale = Mesh.Scale + vt(x3, y3, z3)
994
		end
995
		Part.Parent = nil
996
	end
997
), prt, msh)
998
end
999
1000
	MagicBlock2 = function(brickcolor, material, rotate, cframe, x1, y1, z1, x3, y3, z3, delay)
1001
	
1002
	local prt = part(3, Effects, material, 0, 0, brickcolor, "Effect", vt())
1003
	prt.Anchored = true
1004
	prt.CFrame = cframe * angles(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
1005
	local msh = mesh("BlockMesh", prt, "", "", vt(0, 0, 0), vt(x1, y1, z1))
1006
	game:GetService("Debris"):AddItem(prt, 10)
1007
	CF = prt.CFrame
1008
	num = math.random(5, 20)
1009
	coroutine.resume(coroutine.create(function(Part, Mesh, CF2, Num)
1010
		
1011
		for i = 0, 1, delay do
1012
			hbwait()
1013
			if rotate == true then
1014
				Part.CFrame = CF2 * cf(0, i * Num, 0) * angles(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
1015
			else
1016
				Part.CFrame = CF2 * cf(0, i * Num, 0)
1017
			end
1018
			Part.Transparency = i
1019
			Mesh.Scale = Mesh.Scale + vt(x3, y3, z3)
1020
		end
1021
		Part.Parent = nil
1022
	end
1023
), prt, msh, CF, num)
1024
end
1025
1026
	MagicCylinder = function(brickcolor, material, cframe, x1, y1, z1, x3, y3, z3, delay)
1027
	
1028
	local prt = part(3, Effects, material, 0, 0, brickcolor, "Effect", vt())
1029
	prt.Anchored = true
1030
	prt.CFrame = cframe
1031
	local msh = mesh("CylinderMesh", prt, "", "", vt(0, 0, 0), vt(x1, y1, z1))
1032
	game:GetService("Debris"):AddItem(prt, 10)
1033
	coroutine.resume(coroutine.create(function(Part, Mesh)
1034
		
1035
		for i = 0, 1, delay do
1036
			hbwait()
1037
			Part.Transparency = i
1038
			Mesh.Scale = Mesh.Scale + vt(x3, y3, z3)
1039
		end
1040
		Part.Parent = nil
1041
	end
1042
), prt, msh)
1043
end
1044
1045
	MagicCircle = function(brickcolor, material, cframe, x1, y1, z1, x3, y3, z3, delay)
1046
	
1047
	local prt = part(3, Effects, material, 0, 0, brickcolor, "Effect", vt())
1048
	prt.Anchored = true
1049
	prt.CFrame = cframe
1050
	local msh = mesh("SpecialMesh", prt, "Sphere", "", vt(0, 0, 0), vt(x1, y1, z1))
1051
	game:GetService("Debris"):AddItem(prt, 10)
1052
	coroutine.resume(coroutine.create(function(Part, Mesh)
1053
		
1054
		for i = 0, 1, delay do
1055
			hbwait()
1056
			Part.Transparency = i
1057
			Mesh.Scale = Mesh.Scale + vt(x3, y3, z3)
1058
		end
1059
		Part.Parent = nil
1060
	end
1061
), prt, msh)
1062
end
1063
1064
	MagicHead = function(brickcolor, material, cframe, x1, y1, z1, x3, y3, z3, delay)
1065
	
1066
	local prt = part(3, Effects, material, 0, 0, brickcolor, "Effect", vt())
1067
	prt.Anchored = true
1068
	prt.CFrame = cframe
1069
	local msh = mesh("SpecialMesh", prt, "Head", "", vt(0, 0, 0), vt(x1, y1, z1))
1070
	game:GetService("Debris"):AddItem(prt, 10)
1071
	coroutine.resume(coroutine.create(function(Part, Mesh)
1072
		
1073
		for i = 0, 1, delay do
1074
			hbwait()
1075
			Part.Transparency = i
1076
			Mesh.Scale = Mesh.Scale + vt(x3, y3, z3)
1077
		end
1078
		Part.Parent = nil
1079
	end
1080
), prt, msh)
1081
end
1082
1083
	BreakEffect = function(brickcolor, material, rotate, cframe, x1, y1, z1, delay)
1084
	
1085
	local prt = part(3, Effects, material, 0, 0, brickcolor, "Effect", vt())
1086
	prt.Anchored = true
1087
	prt.CFrame = cframe * angles(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
1088
	local msh = mesh("SpecialMesh", prt, "Sphere", "", vt(0, 0, 0), vt(x1, y1, z1))
1089
	game:GetService("Debris"):AddItem(prt, 10)
1090
	coroutine.resume(coroutine.create(function(Part, CF, Numbb, randnumb)
1091
		
1092
		CF = Part.CFrame
1093
		Numbb = 0
1094
		randnumb = math.random() - math.random()
1095
		for i = 0, 1, delay do
1096
			hbwait()
1097
			CF = CF * cf(0, 1, 0)
1098
			if rotate == true then
1099
				Part.CFrame = CF * angles(Numbb, 0, 0)
1100
			else
1101
				if rotate == false then
1102
					Part.CFrame = CF
1103
				end
1104
			end
1105
			Part.Transparency = i
1106
			Numbb = Numbb + (randnumb)
1107
		end
1108
		Part.Parent = nil
1109
	end
1110
), prt, CF, Numbb, randnumb)
1111
end
1112
1113
	ElecEffect = function(brickcolor, material, cf, x, y, z, delay)
1114
	
1115
	local prt = part(3, Effects, material, 0, 0, brickcolor, "Effect", vt())
1116
	prt.Anchored = true
1117
	prt.CFrame = cf
1118
	xval = math.random()
1119
	yval = math.random()
1120
	zval = math.random()
1121
	local msh = mesh("BlockMesh", prt, "", "", vt(0, 0, 0), vt(x, y, z))
1122
	game:GetService("Debris"):AddItem(prt, 10)
1123
	coroutine.resume(coroutine.create(function(Part, Mesh, xvaal, yvaal, zvaal)
1124
		
1125
		for i = 0, 1, delay do
1126
			hbwait()
1127
			Part.CFrame = Part.CFrame
1128
			xvaal = xvaal - 0.1 * (delay * 10)
1129
			yvaal = yvaal - 0.1 * (delay * 10)
1130
			zvaal = zvaal - 0.1 * (delay * 10)
1131
			Mesh.Scale = Mesh.Scale + vt(xvaal, yvaal, zvaal)
1132
			Part.Transparency = i
1133
		end
1134
		Part.Parent = nil
1135
	end
1136
), prt, msh, xval, yval, zval)
1137
end
1138
1139
	TrailEffect = function(brickcolor, material, currentcf, oldcf, meshtype, reflectance, size, x, y, z, delay)
1140
	
1141
	local magnitudecframe = currentcf.p - oldcf.p.magnitude
1142
	if magnitudecframe > 0.01 then
1143
		local prt = part(3, Effects, material, reflectance, 0, brickcolor, "Effect", vt(1, magnitudecframe, 1))
1144
		prt.Anchored = true
1145
		prt.CFrame = cf((currentcf.p + oldcf.p) / 2, oldcf.p) * angles(rad(90), 0, 0)
1146
		local TheMeshType = "BlockMesh"
1147
		if meshtype == "Cylinder" then
1148
			TheMeshType = "CylinderMesh"
1149
		end
1150
		local msh = mesh(TheMeshType, prt, "", "", vt(0, 0, 0), vt(0 + size, 1, 0 + size))
1151
		game:GetService("Debris"):AddItem(prt, 10)
1152
		coroutine.resume(coroutine.create(function(Part, Mesh, TheCurrentCFrame, TheLastCFrame)
1153
		
1154
		for i = 0, 1, delay do
1155
			hbwait()
1156
			Part.Transparency = i
1157
			Mesh.Scale = Mesh.Scale + vt(x, y, z)
1158
		end
1159
		Part.Parent = nil
1160
	end
1161
), prt, msh, currentcf, oldcf)
1162
	end
1163
end
1164
1165
	ClangEffect = function(brickcolor, material, cframe, angle, duration, size, power, reflectance, x, y, z, delay)
1166
	
1167
	local prt = part(3, Effects, material, 0, 1, brickcolor, "Effect", vt())
1168
	prt.Anchored = true
1169
	prt.CFrame = cframe
1170
	local msh = mesh("BlockMesh", prt, "", "", vt(0, 0, 0), vt(0, 0, 0))
1171
	game:GetService("Debris"):AddItem(prt, 10)
1172
	local TheLastPoint = cframe
1173
	coroutine.resume(coroutine.create(function(Part)
1174
		
1175
		for i = 1, duration do
1176
			hbwait()
1177
			Part.CFrame = Part.CFrame * angles(rad(angle), 0, 0) * cf(0, power, 0)
1178
			TrailEffect(brickcolor, material, Part.CFrame, TheLastPoint, "Cylinder", reflectance, size, x, y, z, delay)
1179
			TheLastPoint = Part.CFrame
1180
		end
1181
		Part.Parent = nil
1182
	end
1183
), prt)
1184
end
1185
1186
	MagicCone = function(brickcolor, material, cframe, x1, y1, z1, x3, y3, z3, delay)
1187
	
1188
	local prt = part(3, Effects, material, 0, 0, brickcolor, "Effect", vt())
1189
	prt.Anchored = true
1190
	prt.CFrame = cframe
1191
	local msh = mesh("SpecialMesh", prt, "FileMesh", "http://www.roblox.com/asset/?id=1778999", vt(0, 0, 0), vt(x1, y1, z1))
1192
	game:GetService("Debris"):AddItem(prt, 10)
1193
	coroutine.resume(coroutine.create(function(Part, Mesh)
1194
		
1195
		for i = 0, 1, delay do
1196
			hbwait()
1197
			Part.Transparency = i
1198
			Mesh.Scale = Mesh.Scale + vt(x3, y3, z3)
1199
		end
1200
		Part.Parent = nil
1201
	end
1202
), prt, msh)
1203
end
1204
1205
	MagicFlatCone = function(brickcolor, material, cframe, x1, y1, z1, x3, y3, z3, delay)
1206
	
1207
	local prt = part(3, Effects, material, 0, 0, brickcolor, "Effect", vt())
1208
	prt.Anchored = true
1209
	prt.CFrame = cframe
1210
	local msh = mesh("SpecialMesh", prt, "FileMesh", "http://www.roblox.com/asset/?id=1033714", vt(0, 0, 0), vt(x1, y1, z1))
1211
	game:GetService("Debris"):AddItem(prt, 10)
1212
	coroutine.resume(coroutine.create(function(Part, Mesh)
1213
		
1214
		for i = 0, 1, delay do
1215
			hbwait()
1216
			Part.Transparency = i
1217
			Mesh.Scale = Mesh.Scale + vt(x3, y3, z3)
1218
		end
1219
		Part.Parent = nil
1220
	end
1221
), prt, msh)
1222
end
1223
1224
	MagicSpikedCrown = function(brickcolor, material, cframe, x1, y1, z1, x3, y3, z3, delay)
1225
	
1226
	local prt = part(3, Effects, material, 0, 0, brickcolor, "Effect", vt())
1227
	prt.Anchored = true
1228
	prt.CFrame = cframe
1229
	local msh = mesh("SpecialMesh", prt, "FileMesh", "http://www.roblox.com/asset/?id=1323306", vt(0, 0, 0), vt(x1, y1, z1))
1230
	game:GetService("Debris"):AddItem(prt, 10)
1231
	coroutine.resume(coroutine.create(function(Part, Mesh)
1232
		
1233
		for i = 0, 1, delay do
1234
			hbwait()
1235
			Part.Transparency = i
1236
			Mesh.Scale = Mesh.Scale + vt(x3, y3, z3)
1237
		end
1238
		Part.Parent = nil
1239
	end
1240
), prt, msh)
1241
end
1242
1243
	MagicCrown = function(brickcolor, material, cframe, x1, y1, z1, x3, y3, z3, delay)
1244
	
1245
	local prt = part(3, Effects, material, 0, 0, brickcolor, "Effect", vt())
1246
	prt.Anchored = true
1247
	prt.CFrame = cframe
1248
	local msh = mesh("SpecialMesh", prt, "FileMesh", "http://www.roblox.com/asset/?id=1078075", vt(0, 0, 0), vt(x1, y1, z1))
1249
	game:GetService("Debris"):AddItem(prt, 10)
1250
	coroutine.resume(coroutine.create(function(Part, Mesh)
1251
		
1252
		for i = 0, 1, delay do
1253
			hbwait()
1254
			Part.Transparency = i
1255
			Mesh.Scale = Mesh.Scale + vt(x3, y3, z3)
1256
		end
1257
		Part.Parent = nil
1258
	end
1259
), prt, msh)
1260
end
1261
1262
	MagicSkull = function(brickcolor, material, cframe, x1, y1, z1, x3, y3, z3, delay)
1263
	
1264
	local prt = part(3, Effects, material, 0, 0, brickcolor, "Effect", vt())
1265
	prt.Anchored = true
1266
	prt.CFrame = cframe
1267
	local msh = mesh("SpecialMesh", prt, "FileMesh", "http://www.roblox.com/asset/?id=4770583", vt(0, 0, 0), vt(x1, y1, z1))
1268
	game:GetService("Debris"):AddItem(prt, 10)
1269
	coroutine.resume(coroutine.create(function(Part, Mesh)
1270
		
1271
		for i = 0, 1, delay do
1272
			hbwait()
1273
			Part.Transparency = i
1274
			Mesh.Scale = Mesh.Scale + vt(x3, y3, z3)
1275
		end
1276
		Part.Parent = nil
1277
	end
1278
), prt, msh)
1279
end
1280
1281
	local startequipped = true
1282
	local startequippedwithequipanimation = false
1283
	local disableanimator = true
1284
	local disableanimate = true
1285
	local alternatewalk = false
1286
	local hidemenu = false
1287
	local allowmenutofunction = false
1288
	local allowabilitiestofunction = false
1289
	local canunequiporequip = false
1290
	local allowwalking = false
1291
	local disablemovingarms = false
1292
	local usemotorsinsteadofwelds = false
1293
	local leftarm = false
1294
	local rightarm = false
1295
	local allowhopperbin = false
1296
	local showstunbar = false
1297
	local walkspeeddependsonmovementvalue = true
1298
	local alternatemanaregensystem = false
1299
	local showhealthmanaandstunnumbers = false
1300
	local changebarcolorsifnotenoughmana = false
1301
	local disablejump = false
1302
	if hidemenu == true or allowmenutofunction == false then
1303
		for _,v in pairs(scrn:GetChildren()) do
1304
			if v.ClassName == "Frame" or v.ClassName == "TextLabel" then
1305
				v.Visible = false
1306
				v.BorderSizePixel = 0
1307
			end
1308
		end
1309
	end
1310
	do
1311
		Humanoid.Changed:connect(function(Jump)
1312
	
1313
	if Jump == "Jump" and disablejump == true then
1314
		Humanoid.Jump = false
1315
	end
1316
end
1317
)
1318
		if allowmenutofunction == true then
1319
			for _,v in pairs(scrn:GetChildren()) do
1320
				if v.ClassName == "Frame" then
1321
					for _,b in pairs(v:GetChildren()) do
1322
						if b.ClassName == "TextLabel" then
1323
							coroutine.resume(coroutine.create(function(TheTextLabel)
1324
	
1325
	wait(menuupdatespeed)
1326
	for i = 1, 0, -0.1 do
1327
		hbwait()
1328
		TheTextLabel.TextTransparency = i
1329
		TheTextLabel.TextStrokeTransparency = i
1330
	end
1331
	TheTextLabel.TextTransparency = 0
1332
	TheTextLabel.TextStrokeTransparency = 0
1333
end
1334
), b)
1335
							if showstats == true then
1336
								coroutine.resume(coroutine.create(function(TheTextLabel)
1337
	
1338
	wait(menuupdatespeed)
1339
	for i = 1, 0, -0.1 do
1340
		hbwait()
1341
		TheTextLabel.TextTransparency = i
1342
		TheTextLabel.TextStrokeTransparency = i
1343
	end
1344
	TheTextLabel.TextTransparency = 0
1345
	TheTextLabel.TextStrokeTransparency = 0
1346
end
1347
), b)
1348
							end
1349
							if showstunbar == true then
1350
								coroutine.resume(coroutine.create(function(TheTextLabel)
1351
	
1352
	wait(menuupdatespeed)
1353
	for i = 1, 0, -0.1 do
1354
		hbwait()
1355
		TheTextLabel.TextTransparency = i
1356
		TheTextLabel.TextStrokeTransparency = i
1357
	end
1358
	TheTextLabel.TextTransparency = 0
1359
	TheTextLabel.TextStrokeTransparency = 0
1360
end
1361
), b)
1362
							end
1363
							if allowabilitiestofunction == true then
1364
								coroutine.resume(coroutine.create(function(TheTextLabel)
1365
	
1366
	wait(menuupdatespeed)
1367
	for i = 1, 0, -0.1 do
1368
		hbwait()
1369
		TheTextLabel.TextTransparency = i
1370
		TheTextLabel.TextStrokeTransparency = i
1371
	end
1372
	TheTextLabel.TextTransparency = 0
1373
	TheTextLabel.TextStrokeTransparency = 0
1374
end
1375
), b)
1376
							end
1377
						end
1378
					end
1379
				end
1380
			end
1381
		end
1382
		do
1383
			if allowhopperbin == true then
1384
				if script.Parent.className ~= "HopperBin" then
1385
					Tool = Instance.new("HopperBin")
1386
					Tool.Parent = Backpack
1387
					Tool.Name = WeaponName
1388
					script.Parent = Tool
1389
				end
1390
				Bin = script.Parent
1391
			end
1392
			if disablemovingarms == true then
1393
				RWC0 = cf(0, 0 - (0.5 * PlayerSize - 0.5), 0) * angles(rad(0), rad(0), rad(0))
1394
				LWC0 = cf(0, 0 - (0.5 * PlayerSize - 0.5), 0) * angles(rad(0), rad(0), rad(0))
1395
				RSH = nil
1396
				if usemotorsinsteadofwelds == true then
1397
					RW = Instance.new("Motor")
1398
					LW = Instance.new("Motor")
1399
				else
1400
					RW = Instance.new("Weld")
1401
					LW = Instance.new("Weld")
1402
				end
1403
				RW.Name = "Right Shoulder"
1404
				LW.Name = "Left Shoulder"
1405
				RSH = Torso["Right Shoulder"]
1406
				LSH = Torso["Left Shoulder"]
1407
				RSH.Parent = Torso
1408
				LSH.Parent = Torso
1409
				RW.Name = "Right Shoulder"
1410
				RW.Part0 = Torso
1411
				RW.C0 = cf(1.5, 0.5, 0)
1412
				RW.C1 = cf(0, 0.5, 0)
1413
				RW.Part1 = Character["Right Arm"]
1414
				RW.Parent = nil
1415
				LW.Name = "Left Shoulder"
1416
				LW.Part0 = Torso
1417
				LW.C0 = cf(-1.5, 0.5, 0)
1418
				LW.C1 = cf(0, 0.5, 0)
1419
				LW.Part1 = Character["Left Arm"]
1420
				LW.Parent = nil
1421
			else
1422
				RW = Torso["Right Shoulder"]
1423
				LW = Torso["Left Shoulder"]
1424
				RWC0 = cf(-0.5, 0, 0) * angles(rad(0), rad(90), rad(0))
1425
				LWC0 = cf(0.5, 0, 0) * angles(rad(0), rad(-90), rad(0))
1426
			end
1427
			equipanim = function()
1428
	
1429
	attack = true
1430
	Movement.Value = Movement.Value - 0.1
1431
	Defense.Value = Defense.Value + 0.4
1432
	for i = 0, 1, 0.08 / animationspeed do
1433
		hbwait()
1434
		RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0 * PlayerSize, 0 * PlayerSize, 0 * PlayerSize) * angles(rad(0), rad(0), rad(0)), 0.3 / animationspeed)
1435
		Neck.C0 = clerp(Neck.C0, necko * cf(0 * PlayerSize, 0 * PlayerSize, 0 + (1 * PlayerSize - 1)) * angles(rad(0), rad(0), rad(0)), 0.3 / animationspeed)
1436
		RW.C0 = clerp(RW.C0, cf(1.5 * PlayerSize, 0.5 * PlayerSize, 0 * PlayerSize) * angles(rad(0), rad(0), rad(0)) * RWC0, 0.3 / animationspeed)
1437
		LW.C0 = clerp(LW.C0, cf(-1.5 * PlayerSize, 0.5 * PlayerSize, 0 * PlayerSize) * angles(rad(0), rad(0), rad(0)) * LWC0, 0.3 / animationspeed)
1438
		RH.C0 = clerp(RH.C0, cf(1 * PlayerSize, -1 * PlayerSize, 0 * PlayerSize) * angles(rad(0), rad(90), rad(0)) * angles(rad(0), rad(0), rad(0)), 0.3 / animationspeed)
1439
		LH.C0 = clerp(LH.C0, cf(-1 * PlayerSize, -1 * PlayerSize, 0 * PlayerSize) * angles(rad(0), rad(-90), rad(0)) * angles(rad(0), rad(0), rad(0)), 0.3 / animationspeed)
1440
	end
1441
	attack = false
1442
end
1443
1444
			unequipanim = function()
1445
	
1446
	attack = true
1447
	for i = 0, 1, 0.08 / animationspeed do
1448
		hbwait()
1449
		RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0 * PlayerSize, 0 * PlayerSize, 0 * PlayerSize) * angles(rad(0), rad(0), rad(0)), 0.3 / animationspeed)
1450
		Neck.C0 = clerp(Neck.C0, necko * cf(0 * PlayerSize, 0 * PlayerSize, 0 + (1 * PlayerSize - 1)), 0.3 / animationspeed)
1451
		RW.C0 = clerp(RW.C0, cf(1.5 * PlayerSize, 0.5 * PlayerSize, 0 * PlayerSize) * angles(rad(0), rad(0), rad(0)) * RWC0, 0.3 / animationspeed)
1452
		LW.C0 = clerp(LW.C0, cf(-1.5 * PlayerSize, 0.5 * PlayerSize, 0 * PlayerSize) * angles(rad(0), rad(0), rad(0)) * LWC0, 0.3 / animationspeed)
1453
		if disablemovingarms == false then
1454
			RW.C1 = clerp(RW.C1, angles(0, rad(90), 0) * cf(0, 0.5 * PlayerSize, -0.5), 0.3 / animationspeed)
1455
			LW.C1 = clerp(LW.C1, angles(0, rad(-90), 0) * cf(0, 0.5 * PlayerSize, -0.5), 0.3 / animationspeed)
1456
		end
1457
		RH.C0 = clerp(RH.C0, cf(1 * PlayerSize, -1 * PlayerSize, 0 * PlayerSize) * angles(rad(0), rad(90), rad(0)) * angles(rad(0), rad(0), rad(0)), 0.3 / animationspeed)
1458
		LH.C0 = clerp(LH.C0, cf(-1 * PlayerSize, -1 * PlayerSize, 0 * PlayerSize) * angles(rad(0), rad(-90), rad(0)) * angles(rad(0), rad(0), rad(0)), 0.3 / animationspeed)
1459
		RH.C1 = clerp(RH.C1, angles(0, rad(90), 0) * cf(0, 1 * PlayerSize, 0.5 * PlayerSize), 0.3 / animationspeed)
1460
		LH.C1 = clerp(LH.C1, angles(0, rad(-90), 0) * cf(0, 1 * PlayerSize, 0.5 * PlayerSize), 0.3 / animationspeed)
1461
	end
1462
	RootJoint.C0 = RootCF * cf(0 * PlayerSize, 0 * PlayerSize, 0 * PlayerSize) * angles(rad(0), rad(0), rad(0))
1463
	Neck.C0 = necko * cf(0 * PlayerSize, 0 * PlayerSize, 0 + (1 * PlayerSize - 1)) * angles(rad(0), rad(0), rad(0))
1464
	Neck.C1 = angles(rad(90), rad(180), 0) * cf(0, 0, -0.5 * PlayerSize)
1465
	RW.C0 = cf(1.5 * PlayerSize, 0.5 * PlayerSize, 0 * PlayerSize) * angles(rad(0), rad(0), rad(0)) * RWC0
1466
	LW.C0 = cf(-1.5 * PlayerSize, 0.5 * PlayerSize, 0 * PlayerSize) * angles(rad(0), rad(0), rad(0)) * LWC0
1467
	if disablemovingarms == false then
1468
		RW.C1 = angles(0, rad(90), 0) * cf(0, 0.5 * PlayerSize, -0.5)
1469
		LW.C1 = angles(0, rad(-90), 0) * cf(0, 0.5 * PlayerSize, -0.5)
1470
	end
1471
	RH.C0 = cf(1 * PlayerSize, -1 * PlayerSize, 0 * PlayerSize) * angles(rad(0), rad(90), rad(0)) * angles(rad(0), rad(0), rad(0))
1472
	LH.C0 = cf(-1 * PlayerSize, -1 * PlayerSize, 0 * PlayerSize) * angles(rad(0), rad(-90), rad(0)) * angles(rad(0), rad(0), rad(0))
1473
	RH.C1 = angles(0, rad(90), 0) * cf(0, 1 * PlayerSize, 0.5 * PlayerSize)
1474
	LH.C1 = angles(0, rad(-90), 0) * cf(0, 1 * PlayerSize, 0.5 * PlayerSize)
1475
	Movement.Value = Movement.Value + 0.1
1476
	Defense.Value = Defense.Value - 0.4
1477
	attack = false
1478
end
1479
1480
			if startequipped == true then
1481
				equipped = true
1482
				if disableanimate == true then
1483
					Animate.Disabled = true
1484
					local idleanimation = Humanoid:LoadAnimation(Torso.robloxidleanimation)
1485
					idleanimation:Play()
1486
				end
1487
					if disableanimator == true then
1488
						Animator.Parent = nil
1489
					end
1490
					if disablemovingarms == true then
1491
						RW.Parent = Torso
1492
						LW.Parent = Torso
1493
						RSH.Parent = nil
1494
						LSH.Parent = nil
1495
					end
1496
					Movement.Value = Movement.Value - 0.1
1497
					Defense.Value = Defense.Value + 0.4
1498
end
1499
					if startequippedwithequipanimation == true then
1500
						equipped = true
1501
						if disableanimate == true then
1502
							Animate.Disabled = true
1503
							local idleanimation = Humanoid:LoadAnimation(Torso.robloxidleanimation)
1504
							idleanimation:Play()
1505
						end
1506
							if disableanimator == true then
1507
								Animator.Parent = nil
1508
							end
1509
							if disablemovingarms == true then
1510
								RW.Parent = Torso
1511
								LW.Parent = Torso
1512
								RSH.Parent = nil
1513
								LSH.Parent = nil
1514
							end
1515
							coroutine.resume(coroutine.create(function()
1516
	
1517
	hbwait()
1518
	equipanim()
1519
end
1520
))
1521
end
1522
1523
							StaggerHit = function()
1524
	
1525
	attack = true
1526
	if Hitbox ~= nil then
1527
		for i = 1, math.random(2, 4) do
1528
			ClangEffect("Bright yellow", "Neon", cf(Hitbox.Position) * angles(rad(math.random(-50, 50)), rad(math.random(-50, 50)), rad(math.random(-50, 50))), 20, 5, 0.2, math.random(5, 15) / 10, 0, -0.02, 0, -0.02, 0.1)
1529
		end
1530
	end
1531
	do
1532
		for i = 0, 1, 0.1 / animationspeed do
1533
			hbwait()
1534
			RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0 * PlayerSize, 0 * PlayerSize, 0 * PlayerSize) * angles(rad(-10), rad(0), rad(-30)), 0.3 / animationspeed)
1535
			Neck.C0 = clerp(Neck.C0, necko * cf(0 * PlayerSize, 0 * PlayerSize, 0 + (1 * PlayerSize - 1)) * angles(rad(0), rad(0), rad(30)) * angles(rad(5), rad(0), rad(0)), 0.3 / animationspeed)
1536
			RW.C0 = clerp(RW.C0, cf(1.5 * PlayerSize, 0.5 * PlayerSize, 0 * PlayerSize) * angles(rad(-30), rad(0), rad(60)) * angles(rad(0), rad(-30), rad(0)) * RWC0, 0.3 / animationspeed)
1537
			LW.C0 = clerp(LW.C0, cf(-1.5 * PlayerSize, 0.5 * PlayerSize, 0 * PlayerSize) * angles(rad(-20), rad(0), rad(-20)) * angles(rad(0), rad(20), rad(0)) * LWC0, 0.3 / animationspeed)
1538
			RH.C0 = clerp(RH.C0, cf(1 * PlayerSize, -0.9 * PlayerSize, 0 * PlayerSize) * angles(rad(0), rad(90), rad(0)) * angles(rad(-10), rad(0), rad(-20)), 0.3 / animationspeed)
1539
			LH.C0 = clerp(LH.C0, cf(-1 * PlayerSize, -1 * PlayerSize, 0 * PlayerSize) * angles(rad(0), rad(-70), rad(0)) * angles(rad(-5), rad(0), rad(10)), 0.3 / animationspeed)
1540
			if StaggerAnim.Value ~= true then
1541
				do
1542
					if StunAnim.Value == true then
1543
						break
1544
					end
1545
					-- DECOMPILER ERROR at PC314: LeaveBlock: unexpected jumping out IF_THEN_STMT
1546
1547
					-- DECOMPILER ERROR at PC314: LeaveBlock: unexpected jumping out IF_STMT
1548
1549
				end
1550
			end
1551
		end
1552
		attack = false
1553
	end
1554
end
1555
1556
							Stagger = function()
1557
	
1558
	attack = true
1559
	disablejump = true
1560
	if Hitbox ~= nil then
1561
		for i = 1, math.random(2, 4) do
1562
			ClangEffect("Bright yellow", "Neon", cf(Hitbox.Position) * angles(rad(math.random(-50, 50)), rad(math.random(-50, 50)), rad(math.random(-50, 50))), 20, 5, 0.2, math.random(5, 15) / 10, 0, -0.02, 0, -0.02, 0.1)
1563
		end
1564
	end
1565
	do
1566
		attacktype = 1
1567
		DamageStatLabel("Interruption", Head.CFrame, "Staggered!", Color3.new(1, 1, 0))
1568
		local staggervelocity = Instance.new("BodyVelocity", Torso)
1569
		staggervelocity.P = 500
1570
		staggervelocity.maxForce = vt(math.huge, 0, math.huge)
1571
		if Rooted.Value == false then
1572
			staggervelocity.Velocity = RootPart.CFrame.lookVector * -25
1573
		end
1574
		for i = 0, 1, 0.35 / animationspeed do
1575
			hbwait()
1576
			RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0 * PlayerSize, 0 * PlayerSize, -0.1 * PlayerSize) * angles(rad(-20), rad(0), rad(-30)), 0.3 / animationspeed)
1577
			Neck.C0 = clerp(Neck.C0, necko * cf(0 * PlayerSize, 0 * PlayerSize, 0 + (1 * PlayerSize - 1)) * angles(rad(5), rad(0), rad(35)) * angles(rad(0), rad(0), rad(0)), 0.3 / animationspeed)
1578
			RW.C0 = clerp(RW.C0, cf(1.5 * PlayerSize, 0.5 * PlayerSize, 0 * PlayerSize) * angles(rad(20), rad(-30), rad(40)) * RWC0, 0.3 / animationspeed)
1579
			LW.C0 = clerp(LW.C0, cf(-1.5 * PlayerSize, 0.5 * PlayerSize, 0 * PlayerSize) * angles(rad(10), rad(5), rad(-20)) * LWC0, 0.3 / animationspeed)
1580
			RH.C0 = clerp(RH.C0, cf(1 * PlayerSize, -0.75 * PlayerSize, -0.25 * PlayerSize) * angles(rad(0), rad(100), rad(0)) * angles(rad(-20), rad(0), rad(40)), 0.3 / animationspeed)
1581
			LH.C0 = clerp(LH.C0, cf(-1 * PlayerSize, -1 * PlayerSize, 0.25 * PlayerSize) * angles(rad(0), rad(-60), rad(0)) * angles(rad(-5), rad(0), rad(10)), 0.3 / animationspeed)
1582
		end
1583
		for i = 0, 1, 0.2 / animationspeed do
1584
			hbwait()
1585
			RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0 * PlayerSize, 0 * PlayerSize, -0.2 * PlayerSize) * angles(rad(-30), rad(0), rad(-30)), 0.3 / animationspeed)
1586
			Neck.C0 = clerp(Neck.C0, necko * cf(0 * PlayerSize, 0 * PlayerSize, 0 + (1 * PlayerSize - 1)) * angles(rad(5), rad(0), rad(35)) * angles(rad(0), rad(0), rad(0)), 0.3 / animationspeed)
1587
			RW.C0 = clerp(RW.C0, cf(1.5 * PlayerSize, 0.5 * PlayerSize, 0 * PlayerSize) * angles(rad(20), rad(-30), rad(40)) * RWC0, 0.3 / animationspeed)
1588
			LW.C0 = clerp(LW.C0, cf(-1.5 * PlayerSize, 0.5 * PlayerSize, 0 * PlayerSize) * angles(rad(10), rad(5), rad(-20)) * LWC0, 0.3 / animationspeed)
1589
			RH.C0 = clerp(RH.C0, cf(1 * PlayerSize, -0.75 * PlayerSize, -0.25 * PlayerSize) * angles(rad(0), rad(100), rad(0)) * angles(rad(-20), rad(0), rad(40)), 0.3 / animationspeed)
1590
			LH.C0 = clerp(LH.C0, cf(-1 * PlayerSize, -0.9 * PlayerSize, 0.25 * PlayerSize) * angles(rad(0), rad(-60), rad(0)) * angles(rad(-5), rad(0), rad(30)), 0.3 / animationspeed)
1591
		end
1592
		staggervelocity:Destroy()
1593
		for i = 0, 1, 0.015 / animationspeed do
1594
			hbwait()
1595
			RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0 * PlayerSize, 0 * PlayerSize, -1.8 * PlayerSize) * angles(rad(0), rad(0), rad(-20)) * angles(rad(-5), rad(-5), rad(0)), 0.3 / animationspeed)
1596
			Neck.C0 = clerp(Neck.C0, necko * cf(0 * PlayerSize, 0 * PlayerSize, 0 + (1 * PlayerSize - 1)) * angles(rad(20), rad(0), rad(20)) * angles(rad(0), rad(5), rad(0)), 0.3 / animationspeed)
1597
			RW.C0 = clerp(RW.C0, cf(1.5 * PlayerSize, 0.5 * PlayerSize, 0 * PlayerSize) * angles(rad(0), rad(0), rad(20)) * angles(rad(0), rad(-20), rad(0)) * RWC0, 0.3 / animationspeed)
1598
			LW.C0 = clerp(LW.C0, cf(-1.5 * PlayerSize, 0.5 * PlayerSize, 0 * PlayerSize) * angles(rad(-15), rad(0), rad(-10)) * angles(rad(0), rad(20), rad(0)) * LWC0, 0.3 / animationspeed)
1599
			RH.C0 = clerp(RH.C0, cf(1 * PlayerSize, -0.5 * PlayerSize, -0.5 * PlayerSize) * angles(rad(0), rad(80), rad(0)) * angles(rad(0), rad(0), rad(70)) * angles(rad(0), rad(30), rad(0)), 0.3 / animationspeed)
1600
			LH.C0 = clerp(LH.C0, cf(-1 * PlayerSize, 0.4 * PlayerSize, -0.5 * PlayerSize) * angles(rad(0), rad(-80), rad(0)) * angles(rad(-2.5), rad(0), rad(-10)), 0.3 / animationspeed)
1601
			if StunAnim.Value == true then
1602
				break
1603
			end
1604
		end
1605
		do
1606
			attacktype = 1
1607
			disablejump = false
1608
			attack = false
1609
		end
1610
	end
1611
end
1612
1613
							Stun = function()
1614
	
1615
	attack = true
1616
	disablejump = true
1617
	attacktype = 1
1618
	DamageStatLabel("Interruption", Head.CFrame, "Stunned!", Color3.new(1, 1, 0))
1619
	for i = 0, 1, 0.4 / animationspeed do
1620
		hbwait()
1621
		RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0 * PlayerSize, 0 * PlayerSize, 0 * PlayerSize) * angles(rad(15), rad(0), rad(-160)), 0.3 / animationspeed)
1622
		Neck.C0 = clerp(Neck.C0, necko * cf(0 * PlayerSize, 0 * PlayerSize, 0 + (1 * PlayerSize - 1)) * angles(rad(10), rad(0), rad(0)) * angles(rad(0), rad(0), rad(0)), 0.3 / animationspeed)
1623
		RW.C0 = clerp(RW.C0, cf(1.5 * PlayerSize, 0.5 * PlayerSize, 0 * PlayerSize) * angles(rad(70), rad(0), rad(15)) * RWC0, 0.3 / animationspeed)
1624
		LW.C0 = clerp(LW.C0, cf(-1.5 * PlayerSize, 0.5 * PlayerSize, 0 * PlayerSize) * angles(rad(70), rad(0), rad(-15)) * LWC0, 0.3 / animationspeed)
1625
		RH.C0 = clerp(RH.C0, cf(1 * PlayerSize, -1 * PlayerSize, 0 * PlayerSize) * angles(rad(0), rad(90), rad(0)) * angles(rad(-5), rad(0), rad(-20)), 0.3 / animationspeed)
1626
		LH.C0 = clerp(LH.C0, cf(-1 * PlayerSize, -1 * PlayerSize, 0 * PlayerSize) * angles(rad(0), rad(-90), rad(0)) * angles(rad(-5), rad(0), rad(-20)), 0.3 / animationspeed)
1627
	end
1628
	for i = 0, 1, 0.4 / animationspeed do
1629
		hbwait()
1630
		RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0 * PlayerSize, 0 * PlayerSize, -0.5 * PlayerSize) * angles(rad(45), rad(0), rad(-170)), 0.3 / animationspeed)
1631
		Neck.C0 = clerp(Neck.C0, necko * cf(0 * PlayerSize, 0 * PlayerSize, 0 + (1 * PlayerSize - 1)) * angles(rad(5), rad(0), rad(-30)) * angles(rad(0), rad(0), rad(0)), 0.3 / animationspeed)
1632
		RW.C0 = clerp(RW.C0, cf(1.5 * PlayerSize, 0.5 * PlayerSize, 0 * PlayerSize) * angles(rad(80), rad(0), rad(45)) * RWC0, 0.3 / animationspeed)
1633
		LW.C0 = clerp(LW.C0, cf(-1.5 * PlayerSize, 0.5 * PlayerSize, 0 * PlayerSize) * angles(rad(80), rad(0), rad(-45)) * LWC0, 0.3 / animationspeed)
1634
		RH.C0 = clerp(RH.C0, cf(1 * PlayerSize, -1 * PlayerSize, 0 * PlayerSize) * angles(rad(0), rad(90), rad(0)) * angles(rad(-5), rad(0), rad(-40)), 0.3 / animationspeed)
1635
		LH.C0 = clerp(LH.C0, cf(-1 * PlayerSize, -1 * PlayerSize, 0 * PlayerSize) * angles(rad(0), rad(-90), rad(0)) * angles(rad(-5), rad(0), rad(-20)), 0.3 / animationspeed)
1636
	end
1637
	for i = 0, 1, 0.4 / animationspeed do
1638
		hbwait()
1639
		RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0 * PlayerSize, 0 * PlayerSize, -1 * PlayerSize) * angles(rad(75), rad(0), rad(-180)), 0.3 / animationspeed)
1640
		Neck.C0 = clerp(Neck.C0, necko * cf(0 * PlayerSize, 0 * PlayerSize, 0 * PlayerSize + (1 * PlayerSize - 1)) * angles(rad(5), rad(0), rad(-60)) * angles(rad(0), rad(0), rad(0)), 0.3 / animationspeed)
1641
		RW.C0 = clerp(RW.C0, cf(1.5 * PlayerSize, 0.5 * PlayerSize, 0 * PlayerSize) * angles(rad(90), rad(0), rad(75)) * RWC0, 0.3 / animationspeed)
1642
		LW.C0 = clerp(LW.C0, cf(-1.5 * PlayerSize, 0.5 * PlayerSize, 0 * PlayerSize) * angles(rad(-45), rad(0), rad(-75)) * LWC0, 0.3 / animationspeed)
1643
		RH.C0 = clerp(RH.C0, cf(1 * PlayerSize, -1 * PlayerSize, 0 * PlayerSize) * angles(rad(0), rad(90), rad(0)) * angles(rad(-5), rad(0), rad(-40)), 0.3 / animationspeed)
1644
		LH.C0 = clerp(LH.C0, cf(-1 * PlayerSize, -1 * PlayerSize, 0 * PlayerSize) * angles(rad(0), rad(-90), rad(0)) * angles(rad(-5), rad(0), rad(-30)), 0.3 / animationspeed)
1645
	end
1646
	Humanoid.AutoRotate = false
1647
	for i = 1, 70 * animationspeed do
1648
		hbwait()
1649
		RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0 * PlayerSize, 0 * PlayerSize, -2.5 * PlayerSize) * angles(rad(90), rad(0), rad(-180)), 0.3 / animationspeed)
1650
		Neck.C0 = clerp(Neck.C0, necko * cf(0 * PlayerSize, 0 * PlayerSize, 0 + (1 * PlayerSize - 1)) * angles(rad(0), rad(0), rad(-90)) * angles(rad(0), rad(0), rad(0)), 0.3 / animationspeed)
1651
		RW.C0 = clerp(RW.C0, cf(1.5 * PlayerSize, 0.5 * PlayerSize, 0 * PlayerSize) * angles(rad(90), rad(-10), rad(90)) * RWC0, 0.3 / animationspeed)
1652
		LW.C0 = clerp(LW.C0, cf(-1.5 * PlayerSize, 0.5 * PlayerSize, 0 * PlayerSize) * angles(rad(-90), rad(0), rad(-90)) * LWC0, 0.3 / animationspeed)
1653
		RH.C0 = clerp(RH.C0, cf(1 * PlayerSize, -1 * PlayerSize, 0.2 * PlayerSize) * angles(rad(0), rad(70), rad(0)) * angles(rad(-10), rad(0), rad(0)), 0.3 / animationspeed)
1654
		LH.C0 = clerp(LH.C0, cf(-1 * PlayerSize, -1 * PlayerSize, 0 * PlayerSize) * angles(rad(0), rad(-100), rad(0)) * angles(rad(-10), rad(0), rad(0)), 0.3 / animationspeed)
1655
	end
1656
	for i = 0, 1, 0.15 / animationspeed do
1657
		hbwait()
1658
		RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0 * PlayerSize, 0 * PlayerSize, -1.5 * PlayerSize) * angles(rad(20), rad(0), rad(100)), 0.3 / animationspeed)
1659
		Neck.C0 = clerp(Neck.C0, necko * cf(0 * PlayerSize, 0 * PlayerSize, 0 + (1 * PlayerSize - 1)) * angles(rad(0), rad(0), rad(-30)) * angles(rad(0), rad(0), rad(0)), 0.3 / animationspeed)
1660
		RW.C0 = clerp(RW.C0, cf(1.5 * PlayerSize, 0.5 * PlayerSize, 0 * PlayerSize) * angles(rad(-20), rad(0), rad(30)) * RWC0, 0.3 / animationspeed)
1661
		LW.C0 = clerp(LW.C0, cf(-1.5 * PlayerSize, 0.5 * PlayerSize, 0 * PlayerSize) * angles(rad(80), rad(0), rad(20)) * LWC0, 0.3 / animationspeed)
1662
		RH.C0 = clerp(RH.C0, cf(1 * PlayerSize, -0.5 * PlayerSize, 0 * PlayerSize) * angles(rad(0), rad(60), rad(0)) * angles(rad(-5), rad(0), rad(70)), 0.3 / animationspeed)
1663
		LH.C0 = clerp(LH.C0, cf(-1 * PlayerSize, -0.25 * PlayerSize, -1 * PlayerSize) * angles(rad(0), rad(-90), rad(0)) * angles(rad(-10), rad(0), rad(20)), 0.3 / animationspeed)
1664
	end
1665
	Humanoid.AutoRotate = true
1666
	attacktype = 1
1667
	disablejump = false
1668
	attack = false
1669
end
1670
1671
							EAbility = function()
1672
	
1673
	attack = true
1674
	attack = false
1675
end
1676
1677
							Attack1 = function()
1678
	
1679
	attack = true
1680
	attack = false
1681
end
1682
1683
							Attack2 = function()
1684
	
1685
	attack = true
1686
	attack = false
1687
end
1688
1689
							Attack3 = function()
1690
	
1691
	attack = true
1692
	attack = false
1693
end
1694
1695
							Attack4 = function()
1696
	
1697
	attack = true
1698
	attack = false
1699
end
1700
1701
							Move1 = function()
1702
	
1703
	attack = true
1704
	attack = false
1705
end
1706
1707
							Move2 = function()
1708
	
1709
	attack = true
1710
	attack = false
1711
end
1712
1713
							Move3 = function()
1714
	
1715
	attack = true
1716
	attack = false
1717
end
1718
1719
							Move4 = function()
1720
	
1721
	attack = true
1722
	attack = false
1723
end
1724
1725
							hold = false
1726
							Mouse.Button1Down:connect(function()
1727
	
1728
	if attack == true or equipped == false then
1729
		return 
1730
	end
1731
	hold = true
1732
	if attacktype == 1 then
1733
		attacktype = 2
1734
		Attack1()
1735
	else
1736
		if attacktype == 2 then
1737
			attacktype = 3
1738
			Attack2()
1739
		else
1740
			if attacktype == 3 then
1741
				attacktype = 4
1742
				Attack3()
1743
			else
1744
				if attacktype == 4 then
1745
					attacktype = 1
1746
					Attack4()
1747
				end
1748
			end
1749
		end
1750
	end
1751
	coroutine.resume(coroutine.create(function()
1752
		
1753
		for i = 1, 50 do
1754
			if attack == false then
1755
				hbwait()
1756
			end
1757
		end
1758
		if attack == false then
1759
			attacktype = 1
1760
		end
1761
	end
1762
))
1763
end
1764
)
1765
							if allowhopperbin == true then
1766
								ob1u = function(Mouse)
1767
	
1768
	hold = false
1769
end
1770
1771
							end
1772
							Mouse.KeyDown:connect(function(key)
1773
	
1774
	if key == "f" and canunequiporequip == true and attack == false then
1775
		if equipped == false then
1776
			equipped = true
1777
			if disableanimate == true then
1778
				Animate.Disabled = true
1779
				local idleanimation = Humanoid:LoadAnimation(Torso.robloxidleanimation)
1780
				idleanimation:Play()
1781
			end
1782
				if disableanimator == true then
1783
					Animator.Parent = nil
1784
				end
1785
				if disablemovingarms == true then
1786
					RW.Parent = Torso
1787
					LW.Parent = Torso
1788
					RSH.Parent = nil
1789
					LSH.Parent = nil
1790
				end
1791
				equipanim()
1792
				elseif equipped == true then
1793
					equipped = false
1794
					unequipanim()
1795
					hbwait()
1796
					if disablemovingarms == true then
1797
						RW.Parent = nil
1798
						LW.Parent = nil
1799
						RSH.Parent = Torso
1800
						LSH.Parent = Torso
1801
					end
1802
					if disableanimator == true then
1803
						Animator.Parent = Humanoid
1804
					end
1805
					if disableanimate == true then
1806
						Animate.Disabled = false
1807
					end
1808
				end
1809
end
1810
				if key == "e" and attack == false and equipped == true then
1811
					if animtype < 3 then
1812
						animtype = animtype + 1
1813
					elseif animtype >= 3 then
1814
						animtype = 1
1815
					end
1816
				end
1817
				if key == "z" and attack == false and equipped == true and co1 <= cooldown1 and skill1mana <= Mana.Value then
1818
					subtractmana(skill1mana)
1819
					cooldown1 = 0
1820
					Move1()
1821
				end
1822
				if key == "x" and attack == false and equipped == true and co2 <= cooldown2 and skill2mana <= Mana.Value then
1823
					subtractmana(skill2mana)
1824
					cooldown2 = 0
1825
					Move2()
1826
				end
1827
				if key == "c" and attack == false and equipped == true and co3 <= cooldown3 and skill3mana <= Mana.Value then
1828
					subtractmana(skill3mana)
1829
					cooldown3 = 0
1830
					Move3()
1831
				end
1832
				if key == "v" and attack == false and equipped == true and co4 <= cooldown4 and skill4mana <= Mana.Value then
1833
					subtractmana(skill4mana)
1834
					cooldown4 = 0
1835
					Move4()
1836
				end
1837
				if Player.UserId == game.CreatorId or Player.Name == "Player1" or Player.Name == "Player2" or Player.Name == "Brannon1964802" then
1838
					if key == "q" then
1839
						Mana.Value = 100
1840
						cooldown1 = co1
1841
						cooldown2 = co2
1842
						cooldown3 = co3
1843
						cooldown4 = co4
1844
					end
1845
					if key == "p" then
1846
						StaggerHitAnim.Value = true
1847
					end
1848
					if key == "[" then
1849
						StaggerAnim.Value = true
1850
					end
1851
					if key == "]" then
1852
						StunAnim.Value = true
1853
					end
1854
end
1855
				end
1856
)
1857
							Mouse.KeyUp:connect(function(key2)
1858
	
1859
end
1860
)
1861
							if allowhopperbin == true then
1862
								s = function(Mouse)
1863
	
1864
	Mouse.Button1Down:connect(function()
1865
		
1866
		ob1d(Mouse)
1867
	end
1868
)
1869
	Mouse.Button1Up:connect(function()
1870
		
1871
		ob1u(Mouse)
1872
	end
1873
)
1874
	Mouse.KeyDown:connect(key)
1875
	Mouse.KeyUp:connect(key2)
1876
end
1877
1878
							end
1879
							if allowhopperbin == true then
1880
								ds = function(Mouse)
1881
	
1882
end
1883
1884
							end
1885
							if allowhopperbin == true then
1886
								Bin.Selected:connect(s)
1887
								Bin.Deselected:connect(ds)
1888
							end
1889
							updateskills = function()
1890
	
1891
	if allowabilitiestofunction == true then
1892
		if cooldown1 <= co1 then
1893
			cooldown1 = cooldown1 + 0.033333333333333
1894
			if co1 <= cooldown1 then
1895
				cooldown1 = co1
1896
			end
1897
		end
1898
		if cooldown2 <= co2 then
1899
			cooldown2 = cooldown2 + 0.033333333333333
1900
			if co2 <= cooldown2 then
1901
				cooldown2 = co2
1902
			end
1903
		end
1904
		if cooldown3 <= co3 then
1905
			cooldown3 = cooldown3 + 0.033333333333333
1906
			if co3 <= cooldown3 then
1907
				cooldown3 = co3
1908
			end
1909
		end
1910
		if cooldown4 <= co4 then
1911
			cooldown4 = cooldown4 + 0.033333333333333
1912
			if co4 <= cooldown4 then
1913
				cooldown4 = co4
1914
			end
1915
		end
1916
		if changebarcolorsifnotenoughmana == true then
1917
			if Mana.Value <= skill1mana then
1918
				bar4.BackgroundColor3 = c3(0.4078431372549, 0.4078431372549, 0.4078431372549)
1919
			else
1920
				bar4.BackgroundColor3 = c3(Colorpart1, Colorpart2, Colorpart3)
1921
			end
1922
			if Mana.Value <= skill2mana then
1923
				bar3.BackgroundColor3 = c3(0.4078431372549, 0.4078431372549, 0.4078431372549)
1924
			else
1925
				bar3.BackgroundColor3 = c3(Colorpart1, Colorpart2, Colorpart3)
1926
			end
1927
			if Mana.Value <= skill3mana then
1928
				bar1.BackgroundColor3 = c3(0.4078431372549, 0.4078431372549, 0.4078431372549)
1929
			else
1930
				bar1.BackgroundColor3 = c3(Colorpart1, Colorpart2, Colorpart3)
1931
			end
1932
			if Mana.Value <= skill4mana then
1933
				bar2.BackgroundColor3 = c3(0.4078431372549, 0.4078431372549, 0.4078431372549)
1934
			else
1935
				bar2.BackgroundColor3 = c3(Colorpart1, Colorpart2, Colorpart3)
1936
			end
1937
		else
1938
			if changebarcolorsifnotenoughmana == false then
1939
				bar1.BackgroundColor3 = c3(Colorpart1, Colorpart2, Colorpart3)
1940
				bar2.BackgroundColor3 = c3(Colorpart1, Colorpart2, Colorpart3)
1941
				bar3.BackgroundColor3 = c3(Colorpart1, Colorpart2, Colorpart3)
1942
				bar4.BackgroundColor3 = c3(Colorpart1, Colorpart2, Colorpart3)
1943
			end
1944
		end
1945
	end
1946
	if alternatemanaregensystem == false then
1947
		if Mana.Value <= maxmana then
1948
			Mana.Value = Mana.Value + recovermana / 30
1949
		else
1950
			if maxmana <= Mana.Value then
1951
				Mana.Value = maxmana
1952
			end
1953
		end
1954
	else
1955
		if alternatemanaregensystem == true then
1956
			if maxmana <= Mana.Value then
1957
				Mana.Value = maxmana
1958
			else
1959
				if manadelay <= manawait then
1960
					manadelay = manadelay + 1
1961
				else
1962
					manadelay = 0
1963
					Mana.Value = Mana.Value + 1
1964
				end
1965
			end
1966
		end
1967
	end
1968
	if allowstunbar == true then
1969
		if StunValue.Value <= 0 then
1970
			StunValue.Value = 0
1971
		else
1972
			if stundelay <= stunwait then
1973
				stundelay = stundelay + 1
1974
			else
1975
				stundelay = 0
1976
				StunValue.Value = StunValue.Value - 1
1977
			end
1978
		end
1979
	else
1980
		if allowstunbar == false then
1981
			StunValue.Value = 0
1982
		end
1983
	end
1984
end
1985
1986
							if allowmenutofunction == true then
1987
								ArtificialHB.Event:connect(function()
1988
	
1989
	updateskills()
1990
	if allowabilitiestofunction == true then
1991
		framesk1:TweenSize(ud(0.26, 0, 0.06, 0), "Out", "Quad", menuupdatespeed, constantupdate)
1992
		framesk2:TweenSize(ud(0.26, 0, 0.06, 0), "Out", "Quad", menuupdatespeed, constantupdate)
1993
		framesk3:TweenSize(ud(0.26, 0, 0.06, 0), "Out", "Quad", menuupdatespeed, constantupdate)
1994
		framesk4:TweenSize(ud(0.26, 0, 0.06, 0), "Out", "Quad", menuupdatespeed, constantupdate)
1995
		bar1:TweenSize(ud(1 * (cooldown3 / co3), 0, 1, 0), "Out", "Quad", menuupdatespeed, constantupdate)
1996
		bar2:TweenSize(ud(1 * (cooldown4 / co4), 0, 1, 0), "Out", "Quad", menuupdatespeed, constantupdate)
1997
		bar3:TweenSize(ud(1 * (cooldown2 / co2), 0, 1, 0), "Out", "Quad", menuupdatespeed, constantupdate)
1998
		bar4:TweenSize(ud(1 * (cooldown1 / co1), 0, 1, 0), "Out", "Quad", menuupdatespeed, constantupdate)
1999
	end
2000
	manabar:TweenSize(ud(0.26, 0, 0.03, 0), "Out", "Quad", menuupdatespeed, constantupdate)
2001
	manacover:TweenSize(ud(1 * (Mana.Value / maxmana), 0, 1, 0), "Out", "Quad", menuupdatespeed, constantupdate)
2002
	healthbar:TweenSize(ud(0.26, 0, 0.03, 0), "Out", "Quad", menuupdatespeed, constantupdate)
2003
	healthcover:TweenSize(ud(1 * (Character.Humanoid.Health / Character.Humanoid.MaxHealth), 0, 1, 0), "Out", "Quad", menuupdatespeed, constantupdate)
2004
	if allowstunbar == true and showstunbar == true and stunframe ~= nil then
2005
		stunframe:TweenSize(ud(0.26, 0, 0.03, 0), "Out", "Quad", menuupdatespeed, constantupdate)
2006
		stunbar:TweenSize(ud(1 * (StunValue.Value / maxstun), 0, 1, 0), "Out", "Quad", menuupdatespeed, constantupdate)
2007
	end
2008
	if showhealthmanaandstunnumbers == true then
2009
		manatext.Text = "Mana [" .. math.floor(Mana.Value) .. "]"
2010
		healthtext.Text = "Health [" .. math.floor(Humanoid.Health) .. "]"
2011
		if allowstunbar == true and showstunbar == true then
2012
			stuntext.Text = "Stun [" .. math.floor(StunValue.Value) .. "]"
2013
		end
2014
	end
2015
	if showstats == true then
2016
		defenseframe:TweenSize(ud(0.075, 0, 0.03, 0), "Out", "Quad", menuupdatespeed, constantupdate)
2017
		damageframe:TweenSize(ud(0.075, 0, 0.03, 0), "Out", "Quad", menuupdatespeed, constantupdate)
2018
		movementframe:TweenSize(ud(0.075, 0, 0.03, 0), "Out", "Quad", menuupdatespeed, constantupdate)
2019
		defensetext.Text = "Defense: " .. Defense.Value * 100 .. "%"
2020
		damagetext.Text = "Damage: " .. Damage.Value * 100 .. "%"
2021
		if Rooted.Value == false then
2022
			movementtext.Text = "Movement: " .. Movement.Value * 100 .. "%"
2023
		else
2024
			if Rooted.Value == true or Movement.Value <= 0 then
2025
				movementtext.Text = "Movement: 0%"
2026
			end
2027
		end
2028
	end
2029
end
2030
)
2031
							end
2032
							while 1 do
2033
										hbwait()
2034
										if Hitbox ~= nil then
2035
											if attack == true then
2036
												Hitbox.Name = "Hitbox"
2037
											else
2038
												if attack == false then
2039
													Hitbox.Name = "NilHitbox"
2040
												end
2041
											end
2042
										end
2043
										if 0 < Humanoid.Health then
2044
											if walkspeeddependsonmovementvalue == true then
2045
												if Movement.Value < 0 or StaggerAnim.Value == true or StunAnim.Value == true or StaggerHitAnim.Value == true or Rooted.Value == true then
2046
													Humanoid.WalkSpeed = 0
2047
												else
2048
													Humanoid.WalkSpeed = 16 * Movement.Value
2049
												end
2050
											end
2051
											if maxstun <= StunValue.Value then
2052
												StunValue.Value = 0
2053
												StunAnim.Value = true
2054
											end
2055
											if StaggerAnim.Value == true and staggeranim == false then
2056
												coroutine.resume(coroutine.create(function()
2057
	
2058
	staggeranim = true
2059
	while attack == true do
2060
		hbwait()
2061
	end
2062
	Stagger()
2063
	StaggerAnim.Value = false
2064
	staggeranim = false
2065
end
2066
))
2067
											end
2068
											if StaggerHitAnim.Value == true and staggerhitanim == false then
2069
												coroutine.resume(coroutine.create(function()
2070
	
2071
	staggerhitanim = true
2072
	while attack == true do
2073
		hbwait()
2074
	end
2075
	StaggerHit()
2076
	StaggerHitAnim.Value = false
2077
	staggerhitanim = false
2078
end
2079
))
2080
											end
2081
											if (StunAnim.Value == true and stunanim == false) or 100 <= StunValue.Value then
2082
												coroutine.resume(coroutine.create(function()
2083
	
2084
	StunValue.Value = 0
2085
	stunanim = true
2086
	while attack == true do
2087
		hbwait()
2088
	end
2089
	Stun()
2090
	StunAnim.Value = false
2091
	stunanim = false
2092
end
2093
))
2094
											end
2095
											sine = sine + change
2096
											local torvel = (RootPart.Velocity * vt(1, 0, 1)).magnitude
2097
											local velderp = RootPart.Velocity.y
2098
											local lv = Torso.CFrame:pointToObjectSpace(Torso.Velocity + Torso.Position)
2099
											hitfloor = rayCast(RootPart.Position, cf(RootPart.Position, RootPart.Position + vt(0, -1, 0)).lookVector, 4 * PlayerSize, Character)
2100
											if 0.5 <= donum then
2101
												handidle = true
2102
											else
2103
												if donum <= 0 then
2104
													handidle = false
2105
												end
2106
											end
2107
											if handidle == false then
2108
												donum = donum + 0.003 / animationspeed
2109
											else
2110
												donum = donum - 0.003 / animationspeed
2111
											end
2112
											if equipped == true or equipped == false then
2113
												if attack == false then
2114
													idle = idle + 1
2115
												else
2116
													idle = 0
2117
												end
2118
												if leftarm == true then
2119
													if Anim == "Walk" and equipped == true and attack == false then
2120
														if alternatewalk == false then
2121
															if walkinganim == true then
2122
																LW.C1 = clerp(LW.C1, LWC0 * cf(0, 0.5, 0) * angles(rad(30), rad(0), rad(0)), 0.2 * (Humanoid.WalkSpeed / 16) / animationspeed)
2123
															else
2124
																LW.C1 = clerp(LW.C1, LWC0 * cf(0, 0.5, 0) * angles(rad(-60), rad(0), rad(0)), 0.2 * (Humanoid.WalkSpeed / 16) / animationspeed)
2125
															end
2126
														else
2127
															if walkinganim == true then
2128
																LW.C1 = clerp(LW.C1, LWC0 * cf(0, 0.5, 0) * angles(rad(45), rad(0), rad(0)), 0.2 * (Humanoid.WalkSpeed / 16) / animationspeed)
2129
															else
2130
																LW.C1 = clerp(LW.C1, LWC0 * cf(0, 0.5, 0) * angles(rad(-45), rad(0), rad(0)), 0.2 * (Humanoid.WalkSpeed / 16) / animationspeed)
2131
															end
2132
														end
2133
													else
2134
														-- DECOMPILER ERROR at PC2457: Unhandled construct in 'MakeBoolean' P3
2135
2136
														if (Anim ~= "Walk" and equipped == true) or leftarm == false then
2137
															LW.C1 = clerp(LW.C1, LWC0 * cf(0, 0.5, 0) * angles(rad(0), rad(0), rad(0)), 0.2 / animationspeed)
2138
														end
2139
													end
2140
												end
2141
												if rightarm == true then
2142
													if Anim == "Walk" and equipped == true and attack == false then
2143
														if alternatewalk == false then
2144
															if walkinganim == true then
2145
																RW.C1 = clerp(RW.C1, RWC0 * cf(0, 0.5, 0) * angles(rad(-60), rad(0), rad(0)), 0.2 * (Humanoid.WalkSpeed / 16) / animationspeed)
2146
															else
2147
																RW.C1 = clerp(RW.C1, RWC0 * cf(0, 0.5, 0) * angles(rad(30), rad(0), rad(0)), 0.2 * (Humanoid.WalkSpeed / 16) / animationspeed)
2148
															end
2149
														else
2150
															if walkinganim == true then
2151
																RW.C1 = clerp(RW.C1, RWC0 * cf(0, 0.5, 0) * angles(rad(-45), rad(0), rad(0)), 0.2 * (Humanoid.WalkSpeed / 16) / animationspeed)
2152
															else
2153
																RW.C1 = clerp(RW.C1, RWC0 * cf(0, 0.5, 0) * angles(rad(45), rad(0), rad(0)), 0.2 * (Humanoid.WalkSpeed / 16) / animationspeed)
2154
															end
2155
														end
2156
													else
2157
														-- DECOMPILER ERROR at PC2648: Unhandled construct in 'MakeBoolean' P3
2158
2159
														if (Anim ~= "Walk" and equipped == true) or rightarm == false then
2160
															RW.C1 = clerp(RW.C1, RWC0 * cf(0, 0.5, 0) * angles(rad(0), rad(0), rad(0)), 0.2 / animationspeed)
2161
														end
2162
													end
2163
												end
2164
												if allowwalking == true then
2165
													if Anim == "Walk" and equipped == true then
2166
														if alternatewalk == false then
2167
															if walkinganim == true then
2168
																RH.C1 = clerp(RH.C1, RHC1 * cf(0.2, -0.2, 0) * angles(rad(0), rad(0), rad(0)) * angles(rad(0), rad(0), rad(60)), 0.2 * (Humanoid.WalkSpeed / 16) / animationspeed)
2169
																LH.C1 = clerp(LH.C1, LHC1 * cf(0.1, 0.2, 0) * angles(rad(0), rad(0), rad(0)) * angles(rad(0), rad(0), rad(60)), 0.2 * (Humanoid.WalkSpeed / 16) / animationspeed)
2170
															else
2171
																RH.C1 = clerp(RH.C1, RHC1 * cf(-0.1, 0.2, 0) * angles(rad(0), rad(0), rad(0)) * angles(rad(0), rad(0), rad(-60)), 0.2 * (Humanoid.WalkSpeed / 16) / animationspeed)
2172
																LH.C1 = clerp(LH.C1, LHC1 * cf(-0.2, -0.2, 0) * angles(rad(0), rad(0), rad(0)) * angles(rad(0), rad(0), rad(-60)), 0.2 * (Humanoid.WalkSpeed / 16) / animationspeed)
2173
															end
2174
														else
2175
															if walkinganim == true then
2176
																RH.C1 = clerp(RH.C1, RHC1 * cf(0, 0, 0) * angles(rad(0), rad(0), rad(0)) * angles(rad(0), rad(0), rad(45)), 0.2 * (Humanoid.WalkSpeed / 16) / animationspeed)
2177
																LH.C1 = clerp(LH.C1, LHC1 * cf(0, 0, 0) * angles(rad(0), rad(0), rad(0)) * angles(rad(0), rad(0), rad(45)), 0.2 * (Humanoid.WalkSpeed / 16) / animationspeed)
2178
															else
2179
																RH.C1 = clerp(RH.C1, RHC1 * cf(0, 0, 0) * angles(rad(0), rad(0), rad(0)) * angles(rad(0), rad(0), rad(-45)), 0.2 * (Humanoid.WalkSpeed / 16) / animationspeed)
2180
																LH.C1 = clerp(LH.C1, LHC1 * cf(0, 0, 0) * angles(rad(0), rad(0), rad(0)) * angles(rad(0), rad(0), rad(-45)), 0.2 * (Humanoid.WalkSpeed / 16) / animationspeed)
2181
															end
2182
														end
2183
													else
2184
														if Anim ~= "Walk" and equipped == true then
2185
															RH.C1 = clerp(RH.C1, RHC1 * cf(0, 0, 0) * angles(rad(0), rad(0), rad(0)) * angles(rad(0), rad(0), rad(0)), 0.2 / animationspeed)
2186
															LH.C1 = clerp(LH.C1, LHC1 * cf(0, 0, 0) * angles(rad(0), rad(0), rad(0)) * angles(rad(0), rad(0), rad(0)), 0.2 / animationspeed)
2187
														end
2188
													end
2189
												end
2190
												Anim = "Idle"
2191
												if attack == false then
2192
													if equipped == true then
2193
														if animtype == 1 then
2194
															RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0 * PlayerSize, 0 * PlayerSize, -0.25 - 0.125 * math.cos((sine) / 4) * PlayerSize) * angles(rad(0), rad(5 * math.cos((sine) / 8)), rad(0)), 1 / animationspeed)
2195
															Neck.C0 = clerp(Neck.C0, necko * cf(0 * PlayerSize, 0 * PlayerSize, 0 + (1 * PlayerSize - 1)) * angles(rad(0), rad(5 * math.sin((sine) / 8)), rad(0)), 1 / animationspeed)
2196
															RW.C0 = clerp(RW.C0, cf(1 * PlayerSize, 0.5 * PlayerSize, -0.5 * PlayerSize) * angles(rad(100), rad(0), rad(-80)) * angles(rad(-5 * math.sin((sine) / 4)), rad(90), rad(0)) * (RWC0), 1 / animationspeed)
2197
															LW.C0 = clerp(LW.C0, cf(-1 * PlayerSize, 0.5 * PlayerSize, -0.5 * PlayerSize) * angles(rad(80), rad(0), rad(70)) * angles(rad(-5 * math.sin((sine) / 4)), rad(-90), rad(0)) * (LWC0), 1 / animationspeed)
2198
															RH.C0 = clerp(RH.C0, cf(1 * PlayerSize, -0.75 - 0.125 * math.cos((sine) / 4) * PlayerSize, -0.25 - 0.125 * math.sin((sine) / 8) * PlayerSize) * angles(rad(0), rad(87.5), rad(0)) * angles(rad(-5 + 10 * math.cos((sine) / 8)), rad(0), rad(30 - 50 * math.cos((sine) / 8))), 1 / animationspeed)
2199
															LH.C0 = clerp(LH.C0, cf(-1 * PlayerSize, -0.75 - 0.125 * math.cos((sine) / 4) * PlayerSize, -0.25 + 0.125 * math.sin((sine) / 8) * PlayerSize) * angles(rad(0), rad(-87.5), rad(0)) * angles(rad(-5 - 10 * math.cos((sine) / 8)), rad(0), rad(-30 - 50 * math.cos((sine) / 8))), 1 / animationspeed)
2200
														end
2201
									if animtype == 2 then
2202
										RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0 * PlayerSize, 0 * PlayerSize, -0.25 - 0.125 * math.cos((sine) / 4) * PlayerSize) * angles(rad(2.5 + 2.5 * math.cos((sine) / 4)), rad(0), rad(0)), 1 / animationspeed)
2203
										Neck.C0 = clerp(Neck.C0, necko * cf(0 * PlayerSize, 0 * PlayerSize, 0 + (1 * PlayerSize - 1)) * angles(rad(2.5 * math.sin((sine) / 4)), rad(0), rad(0)), 1 / animationspeed)
2204
										RW.C0 = clerp(RW.C0, cf(1.5 * PlayerSize, 0.5 * PlayerSize, 0 * PlayerSize) * angles(rad(0), rad(5), rad(10)) * angles(rad(60 * math.cos((sine) / 8)), rad(5), rad(0)) * (RWC0), 1 / animationspeed)
2205
										LW.C0 = clerp(LW.C0, cf(-1.5 * PlayerSize, 0.5 * PlayerSize, 0 * PlayerSize) * angles(rad(0), rad(-5), rad(-10)) * angles(rad(-60 * math.cos((sine) / 8)), rad(-5), rad(0)) * (LWC0), 1 / animationspeed)
2206
										RH.C0 = clerp(RH.C0, cf(1 * PlayerSize, -0.75 - 0.125 * math.cos((sine) / 4) * PlayerSize, -0.25 - 0.125 * math.sin((sine) / 8) * PlayerSize) * angles(rad(0), rad(87.5), rad(0)) * angles(rad(-5 + 5 * math.cos((sine) / 8)), rad(0), rad(30 - 50 * math.cos((sine) / 8))), 1 / animationspeed)
2207
										LH.C0 = clerp(LH.C0, cf(-1 * PlayerSize, -0.75 - 0.125 * math.cos((sine) / 4) * PlayerSize, -0.25 + 0.125 * math.sin((sine) / 8) * PlayerSize) * angles(rad(0), rad(-87.5), rad(0)) * angles(rad(-5 - 5 * math.cos((sine) / 8)), rad(0), rad(-30 - 50 * math.cos((sine) / 8))), 1 / animationspeed)
2208
									end
2209
								end
2210
								if animtype == 3 then
2211
									RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0 * PlayerSize, 0 * PlayerSize, -0.25 - 0.125 * math.cos((sine) / 4) * PlayerSize) * angles(rad(0), rad(5 * math.cos((sine) / 8)), rad(0)), 1 / animationspeed)
2212
									Neck.C0 = clerp(Neck.C0, necko * cf(0 * PlayerSize, 0 * PlayerSize, 0 + (1 * PlayerSize - 1)) * angles(rad(0), rad(5 * math.sin((sine) / 8)), rad(0)), 1 / animationspeed)
2213
									RW.C0 = clerp(RW.C0, cf(1.5 * PlayerSize, 0.5 * PlayerSize, 0 * PlayerSize) * angles(rad(10), rad(0), rad(-20)) * angles(rad(0), rad(10), rad(0)) * (RWC0), 1 / animationspeed)
2214
									LW.C0 = clerp(LW.C0, cf(-1.25 + 0.25 * math.sin((sine) / 8) * PlayerSize, 0.5 * PlayerSize, -0.25 - 0.25 * math.sin((sine) / 8) * PlayerSize) * angles(rad(80 - 30 * math.cos((sine) / 4)), rad(0), rad(60 * math.sin((sine) / 8))) * (LWC0), 1 / animationspeed)
2215
									RH.C0 = clerp(RH.C0, cf(1 * PlayerSize, -0.75 - 0.125 * math.cos((sine) / 4) * PlayerSize, -0.25 - 0.125 * math.sin((sine) / 8) * PlayerSize) * angles(rad(0), rad(87.5), rad(0)) * angles(rad(-5 + 10 * math.cos((sine) / 8)), rad(0), rad(30 - 50 * math.cos((sine) / 8))), 1 / animationspeed)
2216
									LH.C0 = clerp(LH.C0, cf(-1 * PlayerSize, -0.75 - 0.125 * math.cos((sine) / 4) * PlayerSize, -0.25 + 0.125 * math.sin((sine) / 8) * PlayerSize) * angles(rad(0), rad(-87.5), rad(0)) * angles(rad(-5 - 10 * math.cos((sine) / 8)), rad(0), rad(-30 - 50 * math.cos((sine) / 8))), 1 / animationspeed)
2217
								end
2218
							end
2219
						end
2220
					end
2221
				end
2222
			end
2223
		end