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