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