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