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