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