View difference between Paste ID: C1bSb9Ti and KGdRBUZ5
SHOW: | | - or go back to the newest paste.
1
-- This script has been converted to FE by iPxter
2
--//====================================================\\--
3
--|| Monika edit by deivis97
4
--\\====================================================//--
5
6
 
7
 
8
if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
9
local Player,Mouse,mouse,UserInputService,ContextActionService = owner
10
do
11
    print("FE Compatibility code by Mokiros | Translated to FE by iPxter")
12
    script.Parent = Player.Character
13
 
14
    --RemoteEvent for communicating
15
    local Event = Instance.new("RemoteEvent")
16
    Event.Name = "UserInput_Event"
17
 
18
    --Fake event to make stuff like Mouse.KeyDown work
19
    local function fakeEvent()
20
        local t = {_fakeEvent=true,Connect=function(self,f)self.Function=f end}
21
        t.connect = t.Connect
22
        return t
23
    end
24
 
25
    --Creating fake input objects with fake variables
26
    local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()}
27
    local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
28
    local CAS = {Actions={},BindAction=function(self,name,fun,touch,...)
29
        CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil
30
    end}
31
    --Merged 2 functions into one by checking amount of arguments
32
    CAS.UnbindAction = CAS.BindAction
33
 
34
    --This function will trigger the events that have been :Connect()'ed
35
    local function te(self,ev,...)
36
        local t = m[ev]
37
        if t and t._fakeEvent and t.Function then
38
            t.Function(...)
39
        end
40
    end
41
    m.TrigEvent = te
42
    UIS.TrigEvent = te
43
 
44
    Event.OnServerEvent:Connect(function(plr,io)
45
        if plr~=Player then return end
46
        if io.isMouse then
47
            m.Target = io.Target
48
            m.Hit = io.Hit
49
        else
50
            local b = io.UserInputState == Enum.UserInputState.Begin
51
            if io.UserInputType == Enum.UserInputType.MouseButton1 then
52
                return m:TrigEvent(b and "Button1Down" or "Button1Up")
53
            end
54
            for _,t in pairs(CAS.Actions) do
55
                for _,k in pairs(t.Keys) do
56
                    if k==io.KeyCode then
57
                        t.Function(t.Name,io.UserInputState,io)
58
                    end
59
                end
60
            end
61
            m:TrigEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower())
62
            UIS:TrigEvent(b and "InputBegan" or "InputEnded",io,false)
63
        end
64
    end)
65
    Event.Parent = NLS([==[
66
    local Player = game:GetService("Players").LocalPlayer
67
    local Event = script:WaitForChild("UserInput_Event")
68
 
69
    local UIS = game:GetService("UserInputService")
70
    local input = function(io,a)
71
        if a then return end
72
        --Since InputObject is a client-side instance, we create and pass table instead
73
        Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState})
74
    end
75
    UIS.InputBegan:Connect(input)
76
    UIS.InputEnded:Connect(input)
77
 
78
    local Mouse = Player:GetMouse()
79
    local h,t
80
    --Give the server mouse data 30 times every second, but only if the values changed
81
    --If player is not moving their mouse, client won't fire events
82
    while wait(1/30) do
83
        if h~=Mouse.Hit or t~=Mouse.Target then
84
            h,t=Mouse.Hit,Mouse.Target
85
            Event:FireServer({isMouse=true,Target=t,Hit=h})
86
        end
87
    end]==],Player.Character)
88
    Mouse,mouse,UserInputService,ContextActionService = m,m,UIS,CAS
89
end
90
91
Player = game:GetService("Players").LocalPlayer
92
PlayerGui = Player.PlayerGui
93
Cam = workspace.CurrentCamera
94
Backpack = Player.Backpack
95
Character = Player.Character
96
char = Player.Character
97
Humanoid = Character.Humanoid
98
Mouse = Player:GetMouse()
99
RootPart = Character["HumanoidRootPart"]
100
Torso = Character["Torso"]
101
Head = Character["Head"]
102
RightArm = Character["Right Arm"]
103
LeftArm = Character["Left Arm"]
104
RightLeg = Character["Right Leg"]
105
LeftLeg = Character["Left Leg"]
106
RootJoint = RootPart["RootJoint"]
107
Neck = Torso["Neck"]
108
RightShoulder = Torso["Right Shoulder"]
109
LeftShoulder = Torso["Left Shoulder"]
110
RightHip = Torso["Right Hip"]
111
LeftHip = Torso["Left Hip"]
112
Humanoid.MaxHealth = "inf"
113
Humanoid.Health = "inf"
114
Humanoid.JumpPower = 100
115
116
----------------------------------------------------------------------
117
		
118
local Orin = "http://www.roblox.com/asset/?id=492754352"
119
Head.face.Texture = Orin
120
function weld(a, b, acf)
121
	local w = Instance.new("Weld", a)
122
	w.Part0 = a
123
	w.Part1 = b
124
	w.C0 = acf
125
end
126
local righteyebrickcolor = "Lime green"
127
local reye = Instance.new("Part", char)
128
reye.CanCollide = false
129
reye.BrickColor = BrickColor.new(righteyebrickcolor)
130
reye.Material = "Neon"
131
reye.Size = Vector3.new(.25,.35,.15)
132
weld(reye, char.Head, CFrame.new(0.15,-0.2,0.55), CFrame.new(1,0,0))
133
m1 = Instance.new("SpecialMesh", reye)
134
m1.MeshType = "Sphere"
135
m1.Scale = Vector3.new(0.9,0.9,0.9)
136
reye.Locked = true
137
reye.Name = "re"
138
139
local leye = Instance.new("Part", char)
140
leye.CanCollide = false
141
leye.BrickColor = BrickColor.new(righteyebrickcolor)
142
leye.Material = "Neon"
143
leye.Size = Vector3.new(.25,.35,.15)
144
weld(leye, char.Head, CFrame.new(-0.15,-0.2,0.55), CFrame.new(1,0,0))
145
local m = Instance.new("SpecialMesh", leye)
146
m.MeshType = "Sphere"
147
m.Scale = Vector3.new(0.9,0.9,0.9)
148
leye.Locked = true
149
leye.Name = "le"
150
for i,v in pairs(char:GetChildren()) do
151
		if v.ClassName == "Accessory" or v.ClassName == "Hat" then
152
			v:destroy()
153
		end
154
	end
155
156
local Hair = Instance.new("Part")
157
Hair.Parent = char
158
Hair.Name = "Hair"
159
Hair.Size = Vector3.new(0.1, 0.1, 0.1)
160
Hair.CFrame = char.Head.CFrame
161
Hair:BreakJoints()
162
Hair.CanCollide = false
163
Hair.BrickColor = BrickColor.new("New Yeller")
164
Hair.TopSurface = "Smooth"
165
Hair.BottomSurface = "Smooth"
166
Weld = Instance.new("Weld") 
167
Weld.Name = "Weld"
168
Weld.Part0 = char.Head 
169
Weld.Part1 = Hair
170
Weld.Parent = char.Head 
171
Weld.C0 = CFrame.new(-0.1, -0.71, 0.8)*CFrame.fromEulerAnglesXYZ(0, 3, 0) 
172
Mesh = Instance.new("SpecialMesh")
173
Mesh.Parent = Hair
174
Mesh.MeshId = "rbxassetid://731142602"
175
Mesh.TextureId = "http://www.roblox.com/asset/?id=1332227116"
176
Mesh.Scale = Vector3.new(0.25, 0.21, 0.2)
177
178
local Shirt = "rbxassetid://1298116952"
179
local Pants = "rbxassetid://1340645290"
180
181
ypcall(function()
182
shirt = Instance.new("Shirt", char)
183
shirt.Name = "Shirt"
184
pants = Instance.new("Pants", char)
185
pants.Name = "Pants"
186
char.Shirt.ShirtTemplate = Shirt
187
char.Pants.PantsTemplate = Pants
188
end)
189
190
c = "White"
191
192
vt=Vector3.new
193
cf=CFrame.new
194
euler=CFrame.fromEulerAnglesXYZ
195
angles=CFrame.Angles
196
197
	function part(formfactor,parent,material,reflectance,transparency,brickcolor,name,size)
198
		local fp=Instance.new("Part")
199
		fp.formFactor=formfactor
200
		fp.Parent=parent
201
		fp.Reflectance=reflectance
202
		fp.Transparency=transparency
203
		fp.CanCollide=false
204
		fp.Locked=true
205
		fp.BrickColor=BrickColor.new(tostring(brickcolor))
206
		fp.Name=name
207
		fp.Size=size
208
		fp.Position=Character.Torso.Position
209
		fp.Material=material
210
		fp:BreakJoints()
211
		return fp
212
	end
213
214
	function mesh(Mesh,part,meshtype,meshid,offset,scale)
215
		local mesh=Instance.new(Mesh)
216
		mesh.Parent=part
217
		if Mesh=="SpecialMesh" then
218
			mesh.MeshType=meshtype
219
			mesh.MeshId=meshid
220
		end
221
		mesh.Offset=offset
222
		mesh.Scale=scale
223
		return mesh
224
	end
225
226
function BreakEffect(brickcolor,cframe,x1,y1,z1,Color)
227
local prt=part("Custom",workspace,"Neon",0,0,Color,"Effect",vt(0.5,0.5,0.5))
228
prt.Anchored=true
229
prt.CFrame=cframe*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
230
local msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(x1,y1,z1))
231
coroutine.resume(coroutine.create(function(Part,CF,Numbb,randnumb) 
232
CF=Part.CFrame
233
Numbb=0
234
randnumb=math.random()-math.random()
235
for i=0,1,0.05 do
236
wait()
237
CF=CF*cf(0,1,0)
238
--Part.CFrame=Part.CFrame*euler(0.5,0,0)*cf(0,1,0)
239
Part.CFrame=CF*euler(Numbb,0,0)
240
Part.Transparency=i
241
Numbb=Numbb+randnumb
242
end
243
Part.Parent=nil
244
end),prt)
245
end
246
247
248
--------------------------------------------------------------------------------
249
250
251
Humanoid.DisplayDistanceType = "None"
252
if Character:FindFirstChild("Granted") == nil then
253
kkk = Instance.new("Sound",Character)
254
kkk.Volume = 1
255
kkk.PlaybackSpeed = 1
256
kkk.Pitch = 1
257
kkk.SoundId = "rbxassetid://1163840119"
258
kkk:Play()
259
kkk.Name = "BackgroundMusic"
260
kkk.Looped = true
261
local naeeym2 = Instance.new("BillboardGui",Character)
262
naeeym2.AlwaysOnTop = true
263
naeeym2.Size = UDim2.new(0,100,0,40)
264
naeeym2.StudsOffset = Vector3.new(0,3,0)
265
naeeym2.Adornee = Character.Head
266
naeeym2.Name = "TalkingBillBoard"
267
local tecks2 = Instance.new("TextLabel",naeeym2)
268
tecks2.BackgroundTransparency = 1
269
tecks2.BorderSizePixel = 0
270
tecks2.Text = "Monika"
271
tecks2.Font = "Cartoon"
272
tecks2.TextSize = 30
273
tecks2.TextStrokeTransparency = 0
274
tecks2.TextColor3 = Color3.new(255,0,245)
275
tecks2.TextStrokeColor3 = Color3.new(1,1,1)
276
tecks2.Size = UDim2.new(1,0,0.5,0)
277
tecks2.Parent = naeeym2
278
elseif Character:FindFirstChild("Granted") then
279
local naeeym2 = Instance.new("BillboardGui",Character)
280
naeeym2.AlwaysOnTop = true
281
naeeym2.Size = UDim2.new(0,100,0,40)
282
naeeym2.StudsOffset = Vector3.new(0,3,0)
283
naeeym2.Adornee = Character.Head
284
naeeym2.Name = "TalkingBillBoard"
285
local tecks2 = Instance.new("TextLabel",naeeym2)
286
tecks2.BackgroundTransparency = 1
287
tecks2.BorderSizePixel = 0
288
tecks2.Text = "Student " .. Character.Name
289
tecks2.Font = "Bodoni"
290
tecks2.TextSize = 30
291
tecks2.TextStrokeTransparency = 0
292
tecks2.TextColor3 = Color3.new(0,0,0)
293
tecks2.TextStrokeColor3 = Color3.new(1,1,1)
294
tecks2.Size = UDim2.new(1,0,0.5,0)
295
tecks2.Parent = naeeym2
296
end
297
298
IT = Instance.new
299
CF = CFrame.new
300
VT = Vector3.new
301
RAD = math.rad
302
C3 = Color3.new
303
UD2 = UDim2.new
304
BRICKC = BrickColor.new
305
ANGLES = CFrame.Angles
306
EULER = CFrame.fromEulerAnglesXYZ
307
COS = math.cos
308
ACOS = math.acos
309
SIN = math.sin
310
ASIN = math.asin
311
ABS = math.abs
312
MRANDOM = math.random
313
FLOOR = math.floor
314
315
316
317
318
319
--//=================================\\
320
--||		  CUSTOMIZATION
321
--\\=================================//
322
323
Class_Name = "Monika edit"
324
Weapon_Name = "Just monika"
325
326
Custom_Colors = {
327
	Custom_Color_1 = BRICKC("Carnation pink"); --1st color for the weapon.
328
	Custom_Color_2 = BRICKC("Institutional white"); --2nd color for the weapon.
329
330
	Custom_Color_3 = BRICKC("Carnation pink"); --Color for the abilities.
331
	Custom_Color_4 = BRICKC("Carnation pink"); --Color for the secondary bar.
332
	Custom_Color_5 = BRICKC("Carnation pink"); --Color for the mana bar.
333
	Custom_Color_6 = BRICKC("Carnation pink"); --Color for the health bar.
334
	Custom_Color_7 = BRICKC("Carnation pink"); --Color for the stun bar.
335
336
	Custom_Color_8 = BRICKC("Institutional white"); --Background for the mana bar.
337
	Custom_Color_9 = BRICKC("Institutional white"); --Background for the secondary mana bar.
338
	Custom_Color_10 = BRICKC("Institutional white"); --Background for the stun bar.
339
	Custom_Color_11 = BRICKC("Institutional white"); --Background for the health bar.
340
	Custom_Color_12 = BRICKC("Institutional white"); --Background for the abilities.
341
}
342
343
Mana_Bar_Background_Transparency = 0 --Transparency for the background of the mana bar.
344
Secondary_Mana_Bar_Background_Transparency = 0 --Transparency for the background of the secondary mana bar.
345
Health_Bar_Background_Transparency = 0 --Transparency for the background of the health bar.
346
Stun_Bar_Background_Transparency = 0 --Transparency for the background of the stun bar.
347
Ability_Background_Transparency = 0  --Transparency for the background of the abilities.
348
Stat_Background_Transparency = 0 --Transparency for the background of the stats.
349
350
Player_Size = 1 --Size of the player.
351
Animation_Speed = 6
352
Frame_Speed = 1 / 60 -- (1 / 30) OR (1 / 60)
353
354
Enable_Gui = false --Enables or disables the Weapon Gui. Also functions as hiding or showing the Gui.
355
Enable_Stats = false --Enables or disables stats.
356
Put_Stats_In_Character = false --Places stats in Character.
357
Enable_Stagger_Hit = false --Enables or disables staggering when hitting a hitbox of some sort.
358
Play_Hitbox_Hit_Sound = true --Plays a hit sound when hitting a hitbox of some sort.
359
Enable_Stagger = false --Enables or disables staggering.
360
Enable_Stun = false --Enables or disables the stun mechanic.
361
Enable_Abilities = false --Enables abilites with cooldowns and mana costs.
362
Enable_Secondary_Bar = false --Enables the secondary mana bar, if true.
363
364
Start_Equipped = false --Starts the player equipped with their weapon.
365
Start_Equipped_With_Equipped_Animation = false --Used in conjunction with the above option. Starts your equip animation.
366
Can_Equip_Or_Unequip = true --Enables or disables the ability to unequip or equip your weapon.
367
Disable_Animator = true --Disables the Animator in the humanoid.
368
Disable_Animate = true --Disables the Animate script in the monicter.
369
Disable_Moving_Arms = false --Keeps the arms from moving around.
370
Use_Motors_Instead_Of_Welds = false --Uses motors instead of welds to disable moving arms.
371
Walkspeed_Depends_On_Movement_Value = false --Walkspeed depends on movement value. Self-explanatory.
372
Disable_Jump = false --Disables jumping.
373
Use_HopperBin = true --Uses a hopperbin to do things.
374
375
Cooldown_1 = 0 --Cooldowns for abilites.
376
Cooldown_2 = 0
377
Cooldown_3 = 0
378
Cooldown_4 = 0
379
Skill_1_Mana_Cost = 0 --How much mana is required to use the skill.
380
Skill_2_Mana_Cost = 0
381
Skill_3_Mana_Cost = 0
382
Skill_4_Mana_Cost = 0
383
Max_Mana = 0 --Maximum amount of mana you can have.
384
Max_Secondary_Mana = 0 --Maximum amount of secondary mana you can have.
385
Mana_Name = "Mana" --Name for the mana bar.
386
Secondary_Mana_Name = "Block" --Name for the secondary mana bar.
387
Max_Stun = 1 --Maximum amount of stun you can have.
388
Recover_Mana = 0 --How much mana you gain.
389
Mana_Regen_Mode = "1" --Basically switches from one mana regen system to another.
390
Secondary_Mana_Regen_Mode = "1" --Basically switches from one secondary mana regen system to another.
391
Stun_Lose_Mode = "1" --Basically switches from one secondary stun loss system to another.
392
Recover_Secondary_Mana = 0 --How much secondary mana you gain.
393
Lose_Stun = 0 --How much stun you lose.
394
Stun_Wait = 0 --Delay between losing stun.
395
Mana_Wait = 0 --Delay between gaining mana.
396
Secondary_Mana_Wait = 0 --Delay between gaining secondary mana.
397
Menu_Update_Speed = 0 --How fast the Weapon Gui will update.
398
Constant_Update = false --Removes the delay between updating the Weapon GUI.
399
Show_Stats = false --Hides or shows stats.
400
Stat_Offset = 0.74 --For cosmetic purposes. {0.74, 0.78}
401
402
--//=================================\\
403
--|| 	  END OF CUSTOMIZATION
404
--\\=================================//
405
406
407
408
409
410
--//=================================\\
411
--|| 	      USEFUL VALUES
412
--\\=================================//
413
414
local ROOTC0 = CF(0, 0, 0) * ANGLES(RAD(-90), RAD(0), RAD(180))
415
local NECKC0 = CF(0, 1, 0) * ANGLES(RAD(-90), RAD(0), RAD(180))
416
local RIGHTSHOULDERC0 = CF(-0.5, 0, 0) * ANGLES(RAD(0), RAD(90), RAD(0))
417
local LEFTSHOULDERC0 = CF(0.5, 0, 0) * ANGLES(RAD(0), RAD(-90), RAD(0))
418
local CO1 = 0
419
local CO2 = 0
420
local CO3 = 0
421
local CO4 = 0
422
local CHANGEDEFENSE = 0
423
local CHANGEDAMAGE = 0
424
local CHANGEMOVEMENT = 0
425
local ANIM = "Idle"
426
local ATTACK = false
427
local EQUIPPED = false
428
local HOLD = false
429
local COMBO = 1
430
local LASTPOINT = nil
431
local BLCF = nil
432
local SCFR = nil
433
local STAGGERHITANIM = false
434
local STAGGERANIM = false
435
local STUNANIM = false
436
local CRITCHANCENUMBER = 0
437
local IDLENUMBER = 0
438
local DONUMBER = 0
439
local HANDIDLE = false
440
local SINE = 0
441
local CHANGE = 2 / Animation_Speed
442
local WALKINGANIM = false
443
local WALK = 0
444
local DISABLEJUMPING = false
445
local HASBEENBLOCKED = false
446
local STUNDELAYNUMBER = 0
447
local MANADELAYNUMBER = 0
448
local SECONDARYMANADELAYNUMBER = 0
449
local ROBLOXIDLEANIMATION = IT("Animation")
450
ROBLOXIDLEANIMATION.Name = "Roblox Idle Animation"
451
ROBLOXIDLEANIMATION.AnimationId = "http://www.roblox.com/asset/?id=180435571"
452
--ROBLOXIDLEANIMATION.Parent = Humanoid
453
local WEAPONGUI = IT("ScreenGui", nil)
454
WEAPONGUI.Name = "Weapon GUI"
455
local WEAPONTOOL = IT("HopperBin", nil)
456
WEAPONTOOL.Name = Weapon_Name
457
local Weapon = IT("Model")
458
Weapon.Name = Weapon_Name
459
local Effects = IT("Folder", Weapon)
460
Effects.Name = "Effects"
461
local ANIMATOR = Humanoid.Animator
462
local ANIMATE = Character.Animate
463
local HITPLAYERSOUNDS = {--[["199149137", "199149186", "199149221", "199149235", "199149269", "199149297"--]]"263032172", "263032182", "263032200", "263032221", "263032252", "263033191"}
464
local HITARMORSOUNDS = {"199149321", "199149338", "199149367", "199149409", "199149452"}
465
local HITWEAPONSOUNDS = {"199148971", "199149025", "199149072", "199149109", "199149119"}
466
local HITBLOCKSOUNDS = {"199148933", "199148947"}
467
468
--//=================================\\
469
--\\=================================//
470
471
472
473
474
475
--//=================================\\
476
--||			  STATS
477
--\\=================================//
478
479
if Character:FindFirstChild("Stats") ~= nil then
480
Character:FindFirstChild("Stats").Parent = nil
481
end
482
483
local Stats = IT("Folder", nil)
484
Stats.Name = "Stats"
485
local ChangeStat = IT("Folder", Stats)
486
ChangeStat.Name = "ChangeStat"
487
local Defense = IT("NumberValue", Stats)
488
Defense.Name = "Defense"
489
Defense.Value = 1
490
local Movement = IT("NumberValue", Stats)
491
Movement.Name = "Movement"
492
Movement.Value = 1
493
local Damage = IT("NumberValue", Stats)
494
Damage.Name = "Damage"
495
Damage.Value = 1
496
local Mana = IT("NumberValue", Stats)
497
Mana.Name = "Mana"
498
Mana.Value = 0
499
local SecondaryMana = IT("NumberValue", Stats)
500
SecondaryMana.Name = "SecondaryMana"
501
SecondaryMana.Value = 0
502
local CanCrit = IT("BoolValue", Stats)
503
CanCrit.Name = "CanCrit"
504
CanCrit.Value = false
505
local CritChance = IT("NumberValue", Stats)
506
CritChance.Name = "CritChance"
507
CritChance.Value = 20
508
local CanPenetrateArmor = IT("BoolValue", Stats)
509
CanPenetrateArmor.Name = "CanPenetrateArmor"
510
CanPenetrateArmor.Value = false
511
local AntiTeamKill = IT("BoolValue", Stats)
512
AntiTeamKill.Name = "AntiTeamKill"
513
AntiTeamKill.Value = false
514
local Rooted = IT("BoolValue", Stats)
515
Rooted.Name = "Rooted"
516
Rooted.Value = false
517
local Block = IT("BoolValue", Stats)
518
Block.Name = "Block"
519
Block.Value = false
520
local RecentEnemy = IT("ObjectValue", Stats)
521
RecentEnemy.Name = "RecentEnemy"
522
RecentEnemy.Value = nil
523
local StaggerHit = IT("BoolValue", Stats)
524
StaggerHit.Name = "StaggerHit"
525
StaggerHit.Value = false
526
local Stagger = IT("BoolValue", Stats)
527
Stagger.Name = "Stagger"
528
Stagger.Value = false
529
local Stun = IT("BoolValue", Stats)
530
Stun.Name = "Stun"
531
Stun.Value = false
532
local StunValue = IT("NumberValue", Stats)
533
StunValue.Name = "StunValue"
534
StunValue.Value = 0
535
536
if Enable_Stats == true and Put_Stats_In_Character == true then
537
	Stats.Parent = Character
538
end
539
540
--//=================================\\
541
--\\=================================//
542
543
544
545
546
547
--//=================================\\
548
--|| 	     DEBUFFS / BUFFS
549
--\\=================================//
550
551
local DEFENSECHANGE1 = IT("NumberValue", ChangeStat)
552
DEFENSECHANGE1.Name = "ChangeDefense"
553
DEFENSECHANGE1.Value = 0
554
555
local MOVEMENTCHANGE1 = IT("NumberValue", nil)
556
MOVEMENTCHANGE1.Name = "ChangeMovement"
557
MOVEMENTCHANGE1.Value = 0
558
559
--//=================================\\
560
--\\=================================//
561
562
563
564
565
566
--//=================================\\
567
--|| SAZERENOS' ARTIFICIAL HEARTBEAT
568
--\\=================================//
569
570
ArtificialHB = Instance.new("BindableEvent", script)
571
ArtificialHB.Name = "ArtificialHB"
572
573
script:WaitForChild("ArtificialHB")
574
575
frame = Frame_Speed
576
tf = 0
577
allowframeloss = false
578
tossremainder = false
579
lastframe = tick()
580
script.ArtificialHB:Fire()
581
582
game:GetService("RunService").Heartbeat:connect(function(s, p)
583
	tf = tf + s
584
	if tf >= frame then
585
		if allowframeloss then
586
			script.ArtificialHB:Fire()
587
			lastframe = tick()
588
		else
589
			for i = 1, math.floor(tf / frame) do
590
				script.ArtificialHB:Fire()
591
			end
592
		lastframe = tick()
593
		end
594
		if tossremainder then
595
			tf = 0
596
		else
597
			tf = tf - frame * math.floor(tf / frame)
598
		end
599
	end
600
end)
601
602
--//=================================\\
603
--\\=================================//
604
605
606
607
608
609
--//=================================\\
610
--|| 	      SOME FUNCTIONS
611
--\\=================================//
612
613
function Raycast(POSITION, DIRECTION, RANGE, IGNOREDECENDANTS)
614
	return workspace:FindPartOnRay(Ray.new(POSITION, DIRECTION.unit * RANGE), IGNOREDECENDANTS)
615
end
616
617
function PositiveAngle(NUMBER)
618
	if NUMBER >= 0 then
619
		NUMBER = 0
620
	end
621
	return NUMBER
622
end
623
624
function NegativeAngle(NUMBER)
625
	if NUMBER <= 0 then
626
		NUMBER = 0
627
	end
628
	return NUMBER
629
end
630
631
function Swait(NUMBER)
632
	if NUMBER == 0 or NUMBER == nil then
633
		ArtificialHB.Event:wait()
634
	else
635
		for i = 1, NUMBER do
636
			ArtificialHB.Event:wait()
637
		end
638
	end
639
end
640
641
function QuaternionFromCFrame(cf)
642
	local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
643
	local trace = m00 + m11 + m22
644
	if trace > 0 then 
645
		local s = math.sqrt(1 + trace)
646
		local recip = 0.5 / s
647
		return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5
648
	else
649
		local i = 0
650
		if m11 > m00 then
651
			i = 1
652
		end
653
		if m22 > (i == 0 and m00 or m11) then
654
			i = 2
655
		end
656
		if i == 0 then
657
			local s = math.sqrt(m00 - m11 - m22 + 1)
658
			local recip = 0.5 / s
659
			return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip
660
		elseif i == 1 then
661
			local s = math.sqrt(m11 - m22 - m00 + 1)
662
			local recip = 0.5 / s
663
			return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip
664
		elseif i == 2 then
665
			local s = math.sqrt(m22 - m00 - m11 + 1)
666
			local recip = 0.5 / s return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip
667
		end
668
	end
669
end
670
 
671
function QuaternionToCFrame(px, py, pz, x, y, z, w)
672
	local xs, ys, zs = x + x, y + y, z + z
673
	local wx, wy, wz = w * xs, w * ys, w * zs
674
	local xx = x * xs
675
	local xy = x * ys
676
	local xz = x * zs
677
	local yy = y * ys
678
	local yz = y * zs
679
	local zz = z * zs
680
	return CFrame.new(px, py, pz, 1 - (yy + zz), xy - wz, xz + wy, xy + wz, 1 - (xx + zz), yz - wx, xz - wy, yz + wx, 1 - (xx + yy))
681
end
682
 
683
function QuaternionSlerp(a, b, t)
684
	local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4]
685
	local startInterp, finishInterp;
686
	if cosTheta >= 0.0001 then
687
		if (1 - cosTheta) > 0.0001 then
688
			local theta = ACOS(cosTheta)
689
			local invSinTheta = 1 / SIN(theta)
690
			startInterp = SIN((1 - t) * theta) * invSinTheta
691
			finishInterp = SIN(t * theta) * invSinTheta
692
		else
693
			startInterp = 1 - t
694
			finishInterp = t
695
		end
696
	else
697
		if (1 + cosTheta) > 0.0001 then
698
			local theta = ACOS(-cosTheta)
699
			local invSinTheta = 1 / SIN(theta)
700
			startInterp = SIN((t - 1) * theta) * invSinTheta
701
			finishInterp = SIN(t * theta) * invSinTheta
702
		else
703
			startInterp = t - 1
704
			finishInterp = t
705
		end
706
	end
707
	return a[1] * startInterp + b[1] * finishInterp, a[2] * startInterp + b[2] * finishInterp, a[3] * startInterp + b[3] * finishInterp, a[4] * startInterp + b[4] * finishInterp
708
end
709
710
function Clerp(a, b, t)
711
	local qa = {QuaternionFromCFrame(a)}
712
	local qb = {QuaternionFromCFrame(b)}
713
	local ax, ay, az = a.x, a.y, a.z
714
	local bx, by, bz = b.x, b.y, b.z
715
	local _t = 1 - t
716
	return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t))
717
end
718
719
function CreateFrame(PARENT, TRANSPARENCY, BORDERSIZEPIXEL, POSITION, SIZE, COLOR, BORDERCOLOR, NAME)
720
	local frame = IT("Frame")
721
	frame.BackgroundTransparency = TRANSPARENCY
722
	frame.BorderSizePixel = BORDERSIZEPIXEL
723
	frame.Position = POSITION
724
	frame.Size = SIZE
725
	frame.BackgroundColor3 = COLOR
726
	frame.BorderColor3 = BORDERCOLOR
727
	frame.Name = NAME
728
	frame.Parent = PARENT
729
	return frame
730
end
731
732
function CreateLabel(PARENT, TEXT, TEXTCOLOR, TEXTFONTSIZE, TEXTFONT, TRANSPARENCY, BORDERSIZEPIXEL, STROKETRANSPARENCY, NAME)
733
	local label = IT("TextLabel")
734
	label.BackgroundTransparency = 1
735
	label.Size = UD2(1, 0, 1, 0)
736
	label.Position = UD2(0, 0, 0, 0)
737
	label.TextColor3 = C3(255, 255, 255)
738
	label.TextStrokeTransparency = STROKETRANSPARENCY
739
	label.TextTransparency = TRANSPARENCY
740
	label.FontSize = TEXTFONTSIZE
741
	label.Font = TEXTFONT
742
	label.BorderSizePixel = BORDERSIZEPIXEL
743
	label.TextScaled = true
744
	label.Text = TEXT
745
	label.Name = NAME
746
	label.Parent = PARENT
747
	return label
748
end
749
750
function NoOutlines(PART)
751
	PART.TopSurface, PART.BottomSurface, PART.LeftSurface, PART.RightSurface, PART.FrontSurface, PART.BackSurface = 10, 10, 10, 10, 10, 10
752
end
753
754
function CreatePart(FORMFACTOR, PARENT, MATERIAL, REFLECTANCE, TRANSPARENCY, BRICKCOLOR, NAME, SIZE)
755
	local NEWPART = IT("Part")
756
	NEWPART.formFactor = FORMFACTOR
757
	NEWPART.Reflectance = REFLECTANCE
758
	NEWPART.Transparency = TRANSPARENCY
759
	NEWPART.CanCollide = false
760
	NEWPART.Locked = true
761
	NEWPART.BrickColor = BRICKC(tostring(BRICKCOLOR))
762
	NEWPART.Name = NAME
763
	NEWPART.Size = SIZE
764
	NEWPART.Position = Torso.Position
765
	NoOutlines(NEWPART)
766
	NEWPART.Material = MATERIAL
767
	NEWPART:BreakJoints()
768
	NEWPART.Parent = PARENT
769
	return NEWPART
770
end
771
772
function CreateMesh(MESH, PARENT, MESHTYPE, MESHID, TEXTUREID, SCALE, OFFSET)
773
	local NEWMESH = IT(MESH)
774
	if MESH == "SpecialMesh" then
775
		NEWMESH.MeshType = MESHTYPE
776
		if MESHID ~= "nil" and MESHID ~= "" then
777
			NEWMESH.MeshId = "http://www.roblox.com/asset/?id="..MESHID
778
		end
779
	end
780
	NEWMESH.Offset = OFFSET or VT(0, 0, 0)
781
	NEWMESH.Scale = Vector3.new(1,1,1)
782
	NEWMESH.Parent = PARENT
783
    PARENT.Reflectance = 1
784
    PARENT.Transparency = 1
785
	return NEWMESH
786
end
787
788
function CreateWeldOrSnapOrMotor(TYPE, PARENT, PART0, PART1, C0, C1)
789
	local NEWWELD = IT(TYPE)
790
	NEWWELD.Part0 = PART0
791
	NEWWELD.Part1 = PART1
792
	NEWWELD.C0 = C0
793
	NEWWELD.C1 = C1
794
	NEWWELD.Parent = PARENT
795
	return NEWWELD
796
end
797
798
function CreateSound(ID, PARENT, VOLUME, PITCH)
799
	coroutine.resume(coroutine.create(function()
800
		local NEWSOUND = IT("Sound", PARENT)
801
		NEWSOUND.Volume = VOLUME
802
		NEWSOUND.Pitch = PITCH
803
		NEWSOUND.SoundId = "http://www.roblox.com/asset/?id="..ID
804
		Swait()
805
		NEWSOUND:play()
806
		game:GetService("Debris"):AddItem(NEWSOUND, 100)
807
	end))
808
end
809
810
function CFrameFromTopBack(at, top, back)
811
	local right = top:Cross(back)
812
	return CF(at.x, at.y, at.z, right.x, top.x, back.x, right.y, top.y, back.y, right.z, top.z, back.z)
813
end
814
815
function Lightning(POSITION1, POSITION2, MULTIPLIERTIME, LIGHTNINGDELAY, OFFSET, BRICKCOLOR, MATERIAL, SIZE, TRANSPARENCY, LASTINGTIME)
816
	local MAGNITUDE = (POSITION1 - POSITION2).magnitude 
817
	local CURRENTPOSITION = POSITION1
818
	local LIGHTNINGOFFSET = {-OFFSET, OFFSET}
819
	coroutine.resume(coroutine.create(function()
820
		for i = 1, MULTIPLIERTIME do 
821
			local LIGHTNINGPART = CreatePart(3, Effects, MATERIAL, 0, 0, BRICKCOLOR,"Effect", VT(SIZE * Player_Size, SIZE * Player_Size, MAGNITUDE / MULTIPLIERTIME))
822
			LIGHTNINGPART.Anchored = true
823
			local LIGHTNINGOFFSET2 = VT(LIGHTNINGOFFSET[MRANDOM(1, 2)], LIGHTNINGOFFSET[MRANDOM(1, 2)], LIGHTNINGOFFSET[MRANDOM(1, 2)]) 
824
			local LIGHTNINGPOSITION1 = CF(CURRENTPOSITION, POSITION2) * CF(0, 0, MAGNITUDE / MULTIPLIERTIME).p + LIGHTNINGOFFSET2
825
			if MULTIPLIERTIME == i then 
826
				local LIGHTNINGMAGNITUDE1 = (CURRENTPOSITION - POSITION2).magnitude
827
				LIGHTNINGPART.Size = VT(SIZE * Player_Size, SIZE * Player_Size, LIGHTNINGMAGNITUDE1)
828
				LIGHTNINGPART.CFrame = CF(CURRENTPOSITION, POSITION2) * CF(0, 0, -LIGHTNINGMAGNITUDE1 / 2)
829
			else
830
				LIGHTNINGPART.CFrame = CF(CURRENTPOSITION, LIGHTNINGPOSITION1) * CF(0, 0, MAGNITUDE / MULTIPLIERTIME / 2)
831
			end
832
			CURRENTPOSITION=LIGHTNINGPART.CFrame * CF(0, 0, MAGNITUDE / MULTIPLIERTIME / 2).p
833
			game.Debris:AddItem(LIGHTNINGPART, LASTINGTIME)
834
			coroutine.resume(coroutine.create(function()
835
				while LIGHTNINGPART.Transparency ~= 1 do
836
					--local StartTransparency = tra
837
					for i=0, 1, LASTINGTIME do
838
						Swait()
839
						LIGHTNINGPART.Transparency = LIGHTNINGPART.Transparency + (0.1 / LASTINGTIME)
840
					end
841
				end
842
			end))
843
		Swait(LIGHTNINGDELAY / Animation_Speed)
844
		end
845
	end))
846
end
847
848
function MagicBlock(BRICKCOLOR, MATERIAL, CFRAME, ROTATION, OFFSET, X1, Y1, Z1, X2, Y2, Z2, delay)
849
	local EFFECTPART = CreatePart(3, Effects, MATERIAL, 0, 0, BRICKCOLOR, "Effect", VT())
850
	EFFECTPART.Anchored = true
851
	EFFECTPART.CFrame = CFRAME
852
	local EFFECTMESH = CreateMesh("BlockMesh", EFFECTPART, "", "", "", VT(X1 * Player_Size, Y1 * Player_Size, Z1 * Player_Size), OFFSET * Player_Size)
853
	game:GetService("Debris"):AddItem(EFFECTPART, 50)
854
	coroutine.resume(coroutine.create(function(PART, MESH)
855
		for i = 0, 1, delay do
856
			Swait()
857
			PART.CFrame = PART.CFrame * ROTATION
858
			PART.Transparency = i
859
			MESH.Scale = MESH.Scale + VT(X2 * Player_Size, Y2 * Player_Size, Z2 * Player_Size)
860
		end
861
		PART.Parent = nil
862
	end), EFFECTPART, EFFECTMESH)
863
end
864
865
function MagicSphere(BRICKCOLOR, MATERIAL, CFRAME, ROTATION, OFFSET, X1, Y1, Z1, X2, Y2, Z2, delay)
866
	local EFFECTPART = CreatePart(3, Effects, MATERIAL, 0, 0, BRICKCOLOR, "Effect", VT())
867
	EFFECTPART.Anchored = true
868
	EFFECTPART.CFrame = CFRAME
869
	local EFFECTMESH = CreateMesh("SpecialMesh", EFFECTPART, "Sphere", "", "", VT(X1 * Player_Size, Y1 * Player_Size, Z1 * Player_Size), OFFSET * Player_Size)
870
	game:GetService("Debris"):AddItem(EFFECTPART, 10)
871
	coroutine.resume(coroutine.create(function(PART, MESH)
872
		for i = 0, 1, delay do
873
			Swait()
874
			PART.CFrame = PART.CFrame * ROTATION
875
			PART.Transparency = i
876
			MESH.Scale = MESH.Scale + VT(X2 * Player_Size, Y2 * Player_Size, Z2 * Player_Size)
877
		end
878
		PART.Parent = nil
879
	end), EFFECTPART, EFFECTMESH)
880
end
881
882
function MagicCylinder(BRICKCOLOR, MATERIAL, CFRAME, ROTATION, OFFSET, X1, Y1, Z1, X2, Y2, Z2, delay)
883
	local EFFECTPART = CreatePart(3, Effects, MATERIAL, 0, 0, BRICKCOLOR, "Effect", VT())
884
	EFFECTPART.Anchored = true
885
	EFFECTPART.CFrame = CFRAME
886
	local EFFECTMESH = CreateMesh("CylinderMesh", EFFECTPART, "", "", "", VT(X1 * Player_Size, Y1 * Player_Size, Z1 * Player_Size), OFFSET * Player_Size)
887
	game:GetService("Debris"):AddItem(EFFECTPART, 10)
888
	coroutine.resume(coroutine.create(function(PART, MESH)
889
		for i = 0, 1, delay do
890
			Swait()
891
			PART.CFrame = PART.CFrame * ROTATION
892
			PART.Transparency = i
893
			MESH.Scale = MESH.Scale + VT(X2 * Player_Size, Y2 * Player_Size, Z2 * Player_Size)
894
		end
895
		PART.Parent = nil
896
	end), EFFECTPART, EFFECTMESH)
897
end
898
899
function MagicHead(BRICKCOLOR, MATERIAL, CFRAME, ROTATION, OFFSET, X1, Y1, Z1, X2, Y2, Z2, delay)
900
	local EFFECTPART = CreatePart(3, Effects, MATERIAL, 0, 0, BRICKCOLOR, "Effect", VT())
901
	EFFECTPART.Anchored = true
902
	EFFECTPART.CFrame = CFRAME
903
	local EFFECTMESH = CreateMesh("SpecialMesh", EFFECTPART, "Head", "", "", VT(X1 * Player_Size, Y1 * Player_Size, Z1 * Player_Size), OFFSET * Player_Size)
904
	game:GetService("Debris"):AddItem(EFFECTPART, 10)
905
	coroutine.resume(coroutine.create(function(PART, MESH)
906
		for i = 0, 1, delay do
907
			Swait()
908
			PART.CFrame = PART.CFrame * ROTATION
909
			PART.Transparency = i
910
			MESH.Scale = MESH.Scale + VT(X2 * Player_Size, Y2 * Player_Size, Z2 * Player_Size)
911
		end
912
		PART.Parent = nil
913
	end), EFFECTPART, EFFECTMESH)
914
end
915
916
function MagicRing(BRICKCOLOR, MATERIAL, CFRAME, ROTATION, OFFSET, X1, Y1, Z1, X2, Y2, Z2, delay)
917
	local EFFECTPART = CreatePart(3, Effects, MATERIAL, 0, 0, BRICKCOLOR, "Effect", VT())
918
	EFFECTPART.Anchored = true
919
	EFFECTPART.CFrame = CFRAME
920
	local EFFECTMESH = CreateMesh("SpecialMesh", EFFECTPART, "FileMesh", "3270017", "", VT(X1 * Player_Size, Y1 * Player_Size, Z1 * Player_Size), OFFSET * Player_Size)
921
	game:GetService("Debris"):AddItem(EFFECTPART, 10)
922
	coroutine.resume(coroutine.create(function(PART, MESH)
923
		for i = 0, 1, delay do
924
			Swait()
925
			PART.CFrame = PART.CFrame * ROTATION
926
			PART.Transparency = i
927
			MESH.Scale = MESH.Scale + VT(X2 * Player_Size, Y2 * Player_Size, Z2 * Player_Size)
928
		end
929
		PART.Parent = nil
930
	end), EFFECTPART, EFFECTMESH)
931
end
932
933
function MagicWave(BRICKCOLOR, MATERIAL, CFRAME, ROTATION, OFFSET, X1, Y1, Z1, X2, Y2, Z2, delay)
934
	local EFFECTPART = CreatePart(3, Effects, MATERIAL, 0, 0, BRICKCOLOR, "Effect", VT())
935
	EFFECTPART.Anchored = true
936
	EFFECTPART.CFrame = CFRAME
937
	local EFFECTMESH = CreateMesh("SpecialMesh", EFFECTPART, "FileMesh", "20329976", "", VT(X1 * Player_Size, Y1 * Player_Size, Z1 * Player_Size), VT(0, 0, (-0.1 * Z1)) + (OFFSET * Player_Size))
938
	game:GetService("Debris"):AddItem(EFFECTPART, 10)
939
	coroutine.resume(coroutine.create(function(PART, MESH)
940
		for i = 0, 1, delay do
941
			Swait()
942
			PART.CFrame = PART.CFrame * ROTATION
943
			PART.Transparency = i
944
			MESH.Offset = VT(0, 0, (-0.1 * MESH.Scale.Z))
945
			MESH.Scale = MESH.Scale + VT(X2 * Player_Size, Y2 * Player_Size, Z2 * Player_Size)
946
		end
947
		PART.Parent = nil
948
	end), EFFECTPART, EFFECTMESH)
949
end
950
951
function MagicCrystal(BRICKCOLOR, MATERIAL, CFRAME, ROTATION, OFFSET, X1, Y1, Z1, X2, Y2, Z2, delay)
952
	local EFFECTPART = CreatePart(3, Effects, MATERIAL, 0, 0, BRICKCOLOR, "Effect", VT())
953
	EFFECTPART.Anchored = true
954
	EFFECTPART.CFrame = CFRAME
955
	local EFFECTMESH = CreateMesh("SpecialMesh", EFFECTPART, "FileMesh", "9756362", "", VT(X1 * Player_Size, Y1 * Player_Size, Z1 * Player_Size), OFFSET * Player_Size)
956
	game:GetService("Debris"):AddItem(EFFECTPART, 10)
957
	coroutine.resume(coroutine.create(function(PART, MESH)
958
		for i = 0, 1, delay do
959
			Swait()
960
			PART.CFrame = PART.CFrame * ROTATION
961
			PART.Transparency = i
962
			MESH.Scale = MESH.Scale + VT(X2 * Player_Size, Y2 * Player_Size, Z2 * Player_Size)
963
		end
964
		PART.Parent = nil
965
	end), EFFECTPART, EFFECTMESH)
966
end
967
968
function MagicSwirl(BRICKCOLOR, MATERIAL, CFRAME, ROTATION, OFFSET, X1, Y1, Z1, X2, Y2, Z2, delay)
969
	local EFFECTPART = CreatePart(3, Effects, MATERIAL, 0, 0, BRICKCOLOR, "Effect", VT())
970
	EFFECTPART.Anchored = true
971
	EFFECTPART.CFrame = CFRAME
972
	local EFFECTMESH = CreateMesh("SpecialMesh", EFFECTPART, "FileMesh", "1051557", "", VT(X1 * Player_Size, Y1 * Player_Size, Z1 * Player_Size), OFFSET * Player_Size)
973
	game:GetService("Debris"):AddItem(EFFECTPART, 10)
974
	coroutine.resume(coroutine.create(function(PART, MESH)
975
		for i = 0, 10, delay do
976
			Swait()
977
			PART.CFrame = PART.CFrame * Head.CFrame
978
			PART.Transparency = 0
979
			MESH.Scale = MESH.Scale + VT(X2 * Player_Size, Y2 * Player_Size, Z2 * Player_Size)
980
		end
981
		--PART.Parent = nil
982
	end), EFFECTPART, EFFECTMESH)
983
end
984
985
function MagicSharpCone(BRICKCOLOR, MATERIAL, CFRAME, ROTATION, OFFSET, X1, Y1, Z1, X2, Y2, Z2, delay)
986
	local EFFECTPART = CreatePart(3, Effects, MATERIAL, 0, 0, BRICKCOLOR, "Effect", VT())
987
	EFFECTPART.Anchored = true
988
	EFFECTPART.CFrame = CFRAME
989
	local EFFECTMESH = CreateMesh("SpecialMesh", EFFECTPART, "FileMesh", "1778999", "", VT(X1 * Player_Size, Y1 * Player_Size, Z1 * Player_Size), OFFSET * Player_Size)
990
	game:GetService("Debris"):AddItem(EFFECTPART, 10)
991
	coroutine.resume(coroutine.create(function(PART, MESH)
992
		for i = 0, 1, delay do
993
			Swait()
994
			PART.CFrame = PART.CFrame * ROTATION
995
			PART.Transparency = i
996
			MESH.Scale = MESH.Scale + VT(X2 * Player_Size, Y2 * Player_Size, Z2 * Player_Size)
997
		end
998
		PART.Parent = nil
999
	end), EFFECTPART, EFFECTMESH)
1000
end
1001
1002
function MagicFlatCone(BRICKCOLOR, MATERIAL, CFRAME, ROTATION, OFFSET, X1, Y1, Z1, X2, Y2, Z2, delay)
1003
	local EFFECTPART = CreatePart(3, Effects, MATERIAL, 0, 0, BRICKCOLOR, "Effect", VT())
1004
	EFFECTPART.Anchored = true
1005
	EFFECTPART.CFrame = CFRAME
1006
	local EFFECTMESH = CreateMesh("SpecialMesh", EFFECTPART, "FileMesh", "1033714", "", VT(X1 * Player_Size, Y1 * Player_Size, Z1 * Player_Size), OFFSET * Player_Size)
1007
	game:GetService("Debris"):AddItem(EFFECTPART, 10)
1008
	coroutine.resume(coroutine.create(function(PART, MESH)
1009
		for i = 0, 1, delay do
1010
			Swait()
1011
			PART.CFrame = PART.CFrame * Vector3.new(0,0,0)
1012
			PART.Transparency = i
1013
			MESH.Scale = MESH.Scale + VT(X2 * Player_Size, Y2 * Player_Size, Z2 * Player_Size)
1014
		end
1015
		PART.Parent = nil
1016
	end), EFFECTPART, EFFECTMESH)
1017
end
1018
1019
function MagicSpikedCrown(BRICKCOLOR, MATERIAL, CFRAME, ROTATION, OFFSET, X1, Y1, Z1, X2, Y2, Z2, delay)
1020
	local EFFECTPART = CreatePart(3, Effects, MATERIAL, 0, 0, BRICKCOLOR, "Effect", VT())
1021
	EFFECTPART.Anchored = true
1022
	EFFECTPART.CFrame = CFRAME
1023
	local EFFECTMESH = CreateMesh("SpecialMesh", EFFECTPART, "FileMesh", "1323306", "", VT(X1 * Player_Size, Y1 * Player_Size, Z1 * Player_Size), OFFSET * Player_Size)
1024
	game:GetService("Debris"):AddItem(EFFECTPART, 10)
1025
	coroutine.resume(coroutine.create(function(PART, MESH)
1026
		for i = 0, 1, delay do
1027
			Swait()
1028
			PART.CFrame = PART.CFrame * Head.CFrame
1029
			PART.Transparency = i
1030
			MESH.Scale = MESH.Scale + VT(X2 * Player_Size, Y2 * Player_Size, Z2 * Player_Size)
1031
		end
1032
		PART.Parent = nil
1033
	end), EFFECTPART, EFFECTMESH)
1034
end
1035
1036
function MagicFlatCrown(BRICKCOLOR, MATERIAL, CFRAME, ROTATION, OFFSET, X1, Y1, Z1, X2, Y2, Z2, delay)
1037
	local EFFECTPART = CreatePart(3, Effects, MATERIAL, 0, 0, BRICKCOLOR, "Effect", VT())
1038
	EFFECTPART.Anchored = true
1039
	EFFECTPART.CFrame = CFRAME
1040
	local EFFECTMESH = CreateMesh("SpecialMesh", EFFECTPART, "FileMesh", "1078075", "", VT(X1 * Player_Size, Y1 * Player_Size, Z1 * Player_Size), OFFSET * Player_Size)
1041
	game:GetService("Debris"):AddItem(EFFECTPART, 10)
1042
	coroutine.resume(coroutine.create(function(PART, MESH)
1043
		for i = 0, 1, delay do
1044
			Swait()
1045
			PART.CFrame = PART.CFrame * ROTATION
1046
			PART.Transparency = i
1047
			MESH.Scale = MESH.Scale + VT(X2 * Player_Size, Y2 * Player_Size, Z2 * Player_Size)
1048
		end
1049
		PART.Parent = nil
1050
	end), EFFECTPART, EFFECTMESH)
1051
end
1052
1053
function MagicSkull(BRICKCOLOR, MATERIAL, CFRAME, ROTATION, OFFSET, X1, Y1, Z1, X2, Y2, Z2, delay)
1054
	local EFFECTPART = CreatePart(3, Effects, MATERIAL, 0, 0, BRICKCOLOR, "Effect", VT())
1055
	EFFECTPART.Anchored = true
1056
	EFFECTPART.CFrame = CFRAME
1057
	local EFFECTMESH = CreateMesh("SpecialMesh", EFFECTPART, "FileMesh", "4770583", "", VT(X1 * Player_Size, Y1 * Player_Size, Z1 * Player_Size), OFFSET * Player_Size)
1058
	game:GetService("Debris"):AddItem(EFFECTPART, 10)
1059
	coroutine.resume(coroutine.create(function(PART, MESH)
1060
		for i = 0, 1, delay do
1061
			Swait()
1062
			PART.CFrame = PART.CFrame * ROTATION
1063
			PART.Transparency = i
1064
			MESH.Scale = MESH.Scale + VT(X2 * Player_Size, Y2 * Player_Size, Z2 * Player_Size)
1065
		end
1066
		PART.Parent = nil
1067
	end), EFFECTPART, EFFECTMESH)
1068
end
1069
1070
function ElectricEffect(BRICKCOLOR, MATERIAL, CFRAME, ROTATION, OFFSET, X, Y, Z, delay)
1071
	local EFFECTPART = CreatePart(3, Effects, MATERIAL, 0, 0, BRICKCOLOR, "Effect", VT())
1072
	EFFECTPART.Anchored = true
1073
	EFFECTPART.CFrame = CFRAME
1074
	local EFFECTMESH = CreateMesh("SpecialMesh", EFFECTPART, "FileMesh", "4770583", "", VT(X * Player_Size, Y * Player_Size, Z * Player_Size), OFFSET * Player_Size)
1075
	game:GetService("Debris"):AddItem(EFFECTPART, 10)
1076
	local XVALUE = MRANDOM()
1077
	local YVALUE = MRANDOM()
1078
	local ZVALUE = MRANDOM()
1079
	coroutine.resume(coroutine.create(function(PART, MESH, THEXVALUE, THEYVALUE, THEZVALUE)
1080
		for i = 0, 1, delay do
1081
			Swait()
1082
			PART.CFrame = PART.CFrame * ROTATION
1083
			PART.Transparency = i
1084
			THEXVALUE = THEXVALUE - 0.1 * (delay * 10)
1085
			THEYVALUE = THEYVALUE - 0.1 * (delay * 10)
1086
			THEZVALUE = THEZVALUE - 0.1 * (delay * 10)
1087
			MESH.Scale = MESH.Scale + VT(THEXVALUE * Player_Size, THEYVALUE * Player_Size, THEZVALUE * Player_Size)
1088
		end
1089
		PART.Parent = nil
1090
	end), EFFECTPART, EFFECTMESH, XVALUE, YVALUE, ZVALUE)
1091
end
1092
1093
function TrailEffect(BRICKCOLOR, MATERIAL, CURRENTCFRAME, OLDCFRAME, MESHTYPE, REFLECTANCE, SIZE, ROTATION, X, Y, Z, delay)
1094
	local MAGNITUDECFRAME = (CURRENTCFRAME.p - OLDCFRAME.p).magnitude
1095
	if MAGNITUDECFRAME > (1 / 100) then
1096
		local EFFECTPART = CreatePart(3, Effects, MATERIAL, 0, 0, BRICKCOLOR, "Effect", VT(1, MAGNITUDECFRAME, 1))
1097
		EFFECTPART.Anchored = true
1098
		EFFECTPART.CFrame = CF((CURRENTCFRAME.p + OLDCFRAME.p) / 2, OLDCFRAME.p) * ANGLES(RAD(90), 0, 0)
1099
		local THEMESHTYPE = "BlockMesh"
1100
		if MESHTYPE == "Cylinder" then
1101
			THEMESHTYPE = "CylinderMesh"
1102
		end
1103
		local EFFECTMESH = CreateMesh(THEMESHTYPE, EFFECTPART, "", "", "", VT(0 + SIZE * Player_Size, 1, 0 + SIZE * Player_Size), VT(0, 0, 0))
1104
		game:GetService("Debris"):AddItem(EFFECTPART, 10)
1105
		coroutine.resume(coroutine.create(function(PART, MESH)
1106
			for i = 0, 1, delay do
1107
				Swait()
1108
				PART.CFrame = PART.CFrame * ROTATION
1109
				PART.Transparency = i
1110
				MESH.Scale = MESH.Scale + VT(X * Player_Size, Y * Player_Size, Z * Player_Size)
1111
			end
1112
			PART.Parent = nil
1113
		end), EFFECTPART, EFFECTMESH)
1114
	end
1115
end
1116
1117
function ClangEffect(BRICKCOLOR, MATERIAL, CFRAME, ANGLE, DURATION, SIZE, POWER, REFLECTANCE, X, Y, Z, delay)
1118
	local EFFECTPART = CreatePart(3, Effects, MATERIAL, 0, 1, BRICKCOLOR, "Effect", VT())
1119
	EFFECTPART.Anchored = true
1120
	EFFECTPART.CFrame = CFRAME
1121
	local EFFECTMESH = CreateMesh("BlockMesh", EFFECTPART, "", "", "", VT(0, 0, 0), VT(0, 0, 0))
1122
	game:GetService("Debris"):AddItem(EFFECTPART, 10)
1123
	local THELASTPOINT = CFRAME
1124
	coroutine.resume(coroutine.create(function(PART)
1125
		for i = 1, DURATION do
1126
			Swait()
1127
			PART.CFrame = PART.CFrame * ANGLES(RAD(ANGLE), 0, 0) * CF(0, POWER * Player_Size, 0)
1128
			TrailEffect(BRICKCOLOR, MATERIAL, PART.CFrame, THELASTPOINT, "Cylinder", REFLECTANCE, SIZE * Player_Size, ANGLES(0, 0, 0), X * Player_Size, Y * Player_Size, Z * Player_Size, delay)
1129
			THELASTPOINT = PART.CFrame
1130
		end
1131
		PART.Parent = nil
1132
	end), EFFECTPART)
1133
end
1134
1135
--local list={}
1136
function Triangle(Color, Material, a, b, c, delay)
1137
	local edge1 = (c - a):Dot((b - a).unit)
1138
	local edge2 = (a - b):Dot((c - b).unit)
1139
	local edge3 = (b - c):Dot((a - c).unit)
1140
	if edge1 <= (b - a).magnitude and edge1 >= 0 then
1141
		a, b, c=a, b, c
1142
	elseif edge2 <= (c - b).magnitude and edge2 >= 0 then
1143
		a, b, c=b, c, a
1144
	elseif edge3 <= (a - c).magnitude and edge3 >= 0 then
1145
		a, b, c=c, a, b
1146
	else
1147
		assert(false, "unreachable")
1148
	end
1149
	local len1 = (c - a):Dot((b - a).unit)
1150
	local len2 = (b - a).magnitude - len1
1151
	local width = (a + (b - a).unit * len1 - c).magnitude
1152
	local maincf = CFrameFromTopBack(a, (b - a):Cross(c - b).unit, - (b - a).unit)
1153
	if len1 > 1 / 100 then
1154
		local sz = VT(0.2, width, len1)
1155
		local w1 = CreatePart(3, Effects, Material, 0, 0.5, Color, "Trail", sz)
1156
		local sp = CreateMesh("SpecialMesh", w1, "Wedge", "", "", VT(0, 1, 1) * sz / w1.Size, VT(0, 0, 0))
1157
		w1.Anchored = true
1158
		w1.CFrame = maincf * ANGLES(math.pi, 0, math.pi / 2) * CF(0, width / 2, len1 / 2)
1159
		coroutine.resume(coroutine.create(function()
1160
			for i = 0.5, 1, delay * (2 / Animation_Speed) do
1161
				Swait()
1162
				w1.Transparency = i
1163
			end
1164
			w1.Parent = nil
1165
		end))
1166
		game:GetService("Debris"):AddItem(w1, 10)
1167
		--table.insert(list, w1)
1168
	end
1169
	if len2 > 1 / 100 then
1170
		local sz = VT(0.2, width, len2)
1171
		local w2 = CreatePart(3, Effects, Material, 0, 0.5, Color, "Trail", sz)
1172
		local sp = CreateMesh("SpecialMesh", w2, "Wedge", "", "", VT(0, 1, 1) * sz / w2.Size, VT(0, 0, 0))
1173
		w2.Anchored = true
1174
		w2.CFrame = maincf * ANGLES(math.pi, math.pi, -math.pi / 2) * CF(0, width / 2, -len1 - len2 / 2)
1175
		coroutine.resume(coroutine.create(function()
1176
			for i = 0.5, 1, delay * (2 / Animation_Speed) do
1177
				Swait()
1178
				w2.Transparency = i
1179
			end
1180
			w2.Parent = nil
1181
		end))
1182
		game:GetService("Debris"):AddItem(w2, 10)
1183
		--table.insert(list, w2)
1184
	end
1185
	--return unpack(list)
1186
end
1187
1188
--[[Usage:
1189
	local Pos = Part
1190
	local Offset = Part.CFrame * CF(0, 0, 0)
1191
	local Color = "Institutional white"
1192
	local Material = "Neon"
1193
	local TheDelay = 0.01
1194
	local Height = 4
1195
	BLCF = Offset
1196
	if SCFR and (Pos.Position - SCFR.p).magnitude > 0.1 then
1197
		local a, b = Triangle(Color, Material, (SCFR * CF(0, Height / 2,0)).p, (SCFR * CF(0, -Height / 2, 0)).p, (BLCF * CF(0, Height / 2,0)).p, TheDelay)
1198
		if a then game:GetService("Debris"):AddItem(a, 1) end
1199
		if b then game:GetService("Debris"):AddItem(b, 1) end
1200
		local a, b = Triangle(Color, Material, (BLCF * CF(0, Height / 2, 0)).p, (BLCF * CF(0, -Height / 2, 0)).p, (SCFR * CF(0, -Height / 2, 0)).p, TheDelay)
1201
		if a then game:GetService("Debris"):AddItem(a, 1) end
1202
		if b then game:GetService("Debris"):AddItem(b, 1) end
1203
		SCFR = BLCF
1204
	elseif not SCFR then
1205
		SCFR = BLCF
1206
	end
1207
--
1208
BLCF = nil
1209
SCFR = nil
1210
--]]
1211
1212
--//=================================\\
1213
--\\=================================//
1214
1215
1216
1217
	local function weldBetween(a, b)
1218
	    local weldd = Instance.new("ManualWeld")
1219
	    weldd.Part0 = a
1220
	    weldd.Part1 = b
1221
	    weldd.C0 = CFrame.new()
1222
	    weldd.C1 = b.CFrame:inverse() * a.CFrame
1223
	    weldd.Parent = a
1224
	    return weldd
1225
	end
1226
1227
1228
--//=================================\\
1229
--||	      RESIZE PLAYER
1230
--\\=================================//
1231
1232
if Player_Size ~= 1 then
1233
RootPart.Size = RootPart.Size * Player_Size
1234
Torso.Size = Torso.Size * Player_Size
1235
Head.Size = Head.Size * Player_Size
1236
RightArm.Size = RightArm.Size * Player_Size
1237
LeftArm.Size = LeftArm.Size * Player_Size
1238
RightLeg.Size = RightLeg.Size * Player_Size
1239
LeftLeg.Size = LeftLeg.Size * Player_Size
1240
RootJoint.Parent = RootPart
1241
Neck.Parent = Torso
1242
RightShoulder.Parent = Torso
1243
LeftShoulder.Parent = Torso
1244
RightHip.Parent = Torso
1245
LeftHip.Parent = Torso
1246
	
1247
RootJoint.C0 = ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(0))
1248
	RootJoint.C1 = ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(0))
1249
	Neck.C0 = NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(0), RAD(0), RAD(0))
1250
	Neck.C1 = CF(0 * Player_Size, -0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-90), RAD(0), RAD(180))
1251
	RightShoulder.C0 = CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(0)) * RIGHTSHOULDERC0
1252
	LeftShoulder.C0 = CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(0)) * LEFTSHOULDERC0
1253
	if Disable_Moving_Arms == false then
1254
		RightShoulder.C1 = ANGLES(0, RAD(90), 0) * CF(0 * Player_Size, 0.5 * Player_Size, -0.5)
1255
		LeftShoulder.C1 = ANGLES(0, RAD(-90), 0) * CF(0 * Player_Size, 0.5 * Player_Size, -0.5)
1256
	else
1257
		RightShoulder.C1 = CF(0 * Player_Size, 0.5 * Player_Size, 0 * Player_Size)
1258
		LeftShoulder.C1 = CF(0 * Player_Size, 0.5 * Player_Size, 0 * Player_Size)
1259
	end
1260
	RightHip.C0 = CF(1 * Player_Size, -1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0))
1261
	LeftHip.C0 = CF(-1 * Player_Size, -1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0))
1262
	RightHip.C1 = CF(0.5 * Player_Size, 1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0))
1263
	LeftHip.C1 = CF(-0.5 * Player_Size, 1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0))
1264
end
1265
1266
1267
--//=================================\\
1268
--\\=================================//
1269
1270
1271
1272
1273
1274
--//=================================\\
1275
--||	     WEAPON CREATION
1276
--\\=================================//
1277
1278
local HandlePart = CreatePart(3, Weapon, "SmoothPlastic", 0, 0, "Carnation pink", "Handle", VT(0, 0, 0))
1279
local HandleMesh = CreateMesh("SpecialMesh", HandlePart, "FileMesh", "93180631", "93180676", VT(1, 1, 1), VT(0, 3.1 * Player_Size, 0))
1280
local HandleWeld = CreateWeldOrSnapOrMotor("Weld", HandlePart, Torso, HandlePart, CF(2 * Player_Size, 2 * Player_Size, 0.6 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(135)), CF(0, 0, 0))
1281
1282
local HitboxPart = CreatePart(3, Weapon, "SmoothPlastic", 0, 1, "Carnation pink", "Hitbox", VT(0, 0, 0))
1283
local HitboxWeld = CreateWeldOrSnapOrMotor("Weld", HitboxPart, HandlePart, HitboxPart, CF(0 * Player_Size, 4 * Player_Size, 0 * Player_Size), CF(0, 0, 0))
1284
1285
local EffectPart = CreatePart(3, Weapon, "SmoothPlastic", 0, 1, "Carnation pink", "Effect Part", VT(0, 0, 0))
1286
local EffectWeld = CreateWeldOrSnapOrMotor("Weld", EffectPart, HandlePart, EffectPart, CF(0 * Player_Size, 7 * Player_Size, 0 * Player_Size), CF(0, 0, 0))
1287
1288
if Player_Size ~= 1 then
1289
	for _, v in pairs (Weapon:GetChildren()) do
1290
		if v.ClassName == "Motor" or v.ClassName == "Weld" or v.ClassName == "Snap" then
1291
			local p1 = v.Part1
1292
			v.Part1 = nil
1293
			local cf1, cf2, cf3, cf4, cf5, cf6, cf7, cf8, cf9, cf10, cf11, cf12 = v.C1:components()
1294
			v.C1 = CF(cf1 * Player_Size, cf2 * Player_Size, cf3 * Player_Size, cf4, cf5, cf6, cf7, cf8, cf9, cf10, cf11, cf12)
1295
			v.Part1 = p1
1296
		elseif v.ClassName == "Part" then
1297
			for _, b in pairs (v:GetChildren()) do
1298
				if b.ClassName == "SpecialMesh" or b.ClassName == "BlockMesh" then
1299
					b.Scale = VT(b.Scale.x * Player_Size, b.Scale.y * Player_Size, b.Scale.z * Player_Size)
1300
				end
1301
			end
1302
		end
1303
	end
1304
end
1305
1306
for _, c in pairs(Weapon:GetChildren()) do
1307
	if c.ClassName == "Part" then
1308
		c.CustomPhysicalProperties = PhysicalProperties.new(0, 0, 0, 0, 0)
1309
	end
1310
end
1311
1312
if Start_Equipped == true and Start_Equipped_With_Equipped_Animation == false then
1313
	HandleWeld.Part0 = RightArm
1314
	HandleWeld.C0 = CF(0 * Player_Size, -1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(0))
1315
end
1316
1317
Weapon.Parent = Character
1318
1319
Humanoid.Died:connect(function()
1320
	ATTACK = true
1321
end)
1322
1323
print(Class_Name.." loaded.")
1324
1325
--//=================================\\
1326
--\\=================================//
1327
1328
1329
1330
1331
1332
--//=================================\\
1333
--||	     DAMAGE FUNCTIONS
1334
--\\=================================//
1335
1336
function StatLabel(LABELTYPE, CFRAME, TEXT, COLOR)
1337
	local STATPART = CreatePart(3, Effects, "SmoothPlastic", 0, 1, "Carnation pink", "Effect", VT())
1338
	STATPART.CFrame = CF(CFRAME.p + VT(0, 1.5, 0))
1339
	local BODYGYRO = IT("BodyGyro", STATPART)
1340
	local BODYPOSITION = IT("BodyPosition", STATPART)
1341
	BODYPOSITION.P = 2000
1342
	BODYPOSITION.D = 100
1343
	BODYPOSITION.maxForce = VT(math.huge, math.huge, math.huge)
1344
	if LABELTYPE == "Normal" then
1345
		BODYPOSITION.position = STATPART.Position + VT(MRANDOM(-2, 2), 6, MRANDOM(-2, 2))
1346
	elseif LABELTYPE == "Debuff" then
1347
		BODYPOSITION.position = STATPART.Position + VT(MRANDOM(-2, 2), 8, MRANDOM(-2, 2))
1348
	elseif LABELTYPE == "Interruption" then
1349
		BODYPOSITION.position = STATPART.Position + VT(MRANDOM(-2,2), 8, MRANDOM(-2, 2))
1350
	end
1351
	game:GetService("Debris"):AddItem(STATPART ,5)
1352
	local BILLBOARDGUI = Instance.new("BillboardGui", STATPART)
1353
	BILLBOARDGUI.Adornee = STATPART
1354
	BILLBOARDGUI.Size = UD2(2.5, 0, 2.5 ,0)
1355
	BILLBOARDGUI.StudsOffset = VT(-2, 2, 0)
1356
	BILLBOARDGUI.AlwaysOnTop = false
1357
	local TEXTLABEL = Instance.new("TextLabel", BILLBOARDGUI)
1358
	TEXTLABEL.BackgroundTransparency = 1
1359
	TEXTLABEL.Size = UD2(2.5, 0, 2.5, 0)
1360
	TEXTLABEL.Text = TEXT
1361
	TEXTLABEL.Font = "SourceSans"
1362
	TEXTLABEL.FontSize="Size42"
1363
	TEXTLABEL.TextColor3 = COLOR
1364
	TEXTLABEL.TextStrokeTransparency = 0
1365
	TEXTLABEL.TextScaled = true
1366
	TEXTLABEL.TextWrapped = true
1367
	coroutine.resume(coroutine.create(function(THEPART, THEBODYPOSITION, THETEXTLABEL)
1368
		wait(0.2)
1369
		for i=1, 5 do
1370
			wait()
1371
			THEBODYPOSITION.Position = THEPART.Position - VT(0, 0.5 ,0)
1372
		end
1373
		wait(1.2)
1374
		for i=1, 5 do
1375
			wait()
1376
			THETEXTLABEL.TextTransparency = THETEXTLABEL.TextTransparency + 0.2
1377
			THETEXTLABEL.TextStrokeTransparency = THETEXTLABEL.TextStrokeTransparency + 0.2
1378
			THEBODYPOSITION.position = THEPART.Position + VT(0, 0.5, 0)
1379
		end
1380
		THEPART.Parent = nil
1381
	end),STATPART, BODYPOSITION, TEXTLABEL)
1382
end
1383
1384
function IncreaseOrDecreaseStat(LOCATION, STAT, AMOUNT, DURATION, SHOWTHESTAT)
1385
	if LOCATION:FindFirstChild("Stats") ~= nil then
1386
		if LOCATION.Stats:FindFirstChild("Block") ~= nil then
1387
			if LOCATION.Stats:FindFirstChild("Block").Value == true then
1388
				return
1389
			end
1390
		end
1391
		if LOCATION.Stats:FindFirstChild("ChangeStat") ~= nil and LOCATION.Stats:FindFirstChild("Block").Value == false then
1392
			local NewStatChange = IT("NumberValue")
1393
			NewStatChange.Value = AMOUNT
1394
			if STAT == "Defense" then
1395
				NewStatChange.Name = "ChangeDefense"
1396
			elseif STAT == "Damage" then
1397
				NewStatChange.Name = "ChangeDamage"
1398
			elseif STAT == "Movement" then
1399
				NewStatChange.Name = "ChangeMovement"
1400
			end
1401
			if SHOWTHESTAT == true then
1402
				if AMOUNT < 0 then
1403
					StatLabel("Debuff", LOCATION.Head.CFrame * CF(0, 0 + (LOCATION.Head.Size.z - 1), 0), "-"..STAT, C3(1, 1, 1))
1404
				elseif AMOUNT > 0 then
1405
					StatLabel("Debuff", LOCATION.Head.CFrame * CF(0, 0 + (LOCATION.Head.Size.z - 1), 0), "+"..STAT, C3(1, 1, 1))
1406
				end
1407
			end
1408
			if DURATION ~= nil and DURATION ~= 0 then
1409
				local StatDuration = IT("NumberValue")
1410
				StatDuration.Name = "Duration"
1411
				StatDuration.Value = DURATION
1412
				StatDuration.Parent = NewStatChange
1413
			end
1414
			NewStatChange.Parent = LOCATION.Stats:FindFirstChild("ChangeStat")
1415
		end
1416
	end
1417
end
1418
1419
--Usage: DamageFunction(HITWEAPONSOUNDS[MRANDOM(1, #HITWEAPONSOUNDS)], HITARMORSOUNDS[MRANDOM(1, #HITARMORSOUNDS)], HITBLOCKSOUNDS[MRANDOM(1, #HITBLOCKSOUNDS)], HITPLAYERSOUNDS[MRANDOM(1, #HITPLAYERSOUNDS)], 1, 1, 1, 1, hit, false, 5, 10, MRANDOM(5, 10), "Normal", Part, 0.5, false, true, 1, MRANDOM(5, 10), nil, true, false, nil, 0, 0, false)
1420
function DamageFunction(HITWEAPONSOUND, HITARMORSOUND, HITBLOCKSOUND, HITPLAYERSOUND, HITWEAPONSOUNDPITCH, HITARMORSOUNDPITCH, HITBLOCKSOUNDPITCH, HITPLAYERSOUNDPITCH, HIT, HITEVENWHENDEAD, MINIMUMDAMAGE, MAXIMUMDAMAGE, KNOCKBACK, TYPE, PROPERTY, DELAY, KNOCKBACKTYPE, INCREASESTUN, STAGGER, STAGGERHIT, RANGED, DECREASETHESTAT, DECREASEAMOUNT, DECREASEDURATION, SHOWDECREASEDSTAT)
1421
	if HIT.Parent == nil then
1422
		return
1423
	end
1424
	local HITHUMANOID = HIT.Parent:FindFirstChild("Humanoid")
1425
	for _, v in pairs(HIT.Parent:GetChildren()) do
1426
		if v:IsA("Humanoid") then
1427
			HITHUMANOID = v
1428
		end
1429
	end
1430
	if HIT.Name == "Hitbox" and RANGED ~= true and HIT.Parent ~= Weapon and Enable_Stagger_Hit == true then
1431
		StaggerHit.Value = true
1432
		if Play_Hitbox_Hit_Sound == true then
1433
			if HITWEAPONSOUND ~= "" and HITWEAPONSOUND ~= "nil" then
1434
				CreateSound(HITWEAPONSOUND, HIT, 1, HITWEAPONSOUNDPITCH)
1435
			end
1436
		end
1437
		return
1438
	end
1439
	if HIT.Parent.Parent:FindFirstChild("Torso") ~= nil or HIT.Parent.Parent:FindFirstChild("UpperTorso") ~= nil then
1440
		HITHUMANOID = HIT.Parent.Parent:FindFirstChild("Humanoid")
1441
	end
1442
	if HIT.Parent.ClassName == "Hat" or HIT.ClassName == "Accessory" then
1443
		HIT = HIT.Parent.Parent:FindFirstChild("Head")
1444
	end
1445
	if HITHUMANOID ~= nil and HIT.Parent.Name ~= Character.Name and (HIT.Parent:FindFirstChild("Torso") ~= nil or HIT.Parent:FindFirstChild("UpperTorso") ~= nil) then
1446
		if HIT.Parent:FindFirstChild("DebounceHit") ~= nil then
1447
			if HIT.Parent.DebounceHit.Value == true then
1448
				return
1449
			end
1450
		end
1451
		if AntiTeamKill.Value == true then
1452
			if Player.Neutral == false and game.Players:GetPlayerFromCharacter(HIT.Parent) ~= nil then
1453
				if game.Players:GetPlayerFromCharacter(HIT.Parent).TeamColor == Player.TeamColor then
1454
					return
1455
				end
1456
			end
1457
		end
1458
		if HITEVENWHENDEAD == false then
1459
			if HIT.Parent:FindFirstChild("Humanoid") ~= nil then
1460
				if HIT.Parent:FindFirstChild("Humanoid").Health <= 0 then
1461
					return
1462
				end
1463
			end
1464
		end
1465
		if HIT.Parent:FindFirstChild("Stats") ~= nil then
1466
			if HIT.Parent.Stats:FindFirstChild("StunValue") ~= nil then
1467
				HIT.Parent.Stats:FindFirstChild("StunValue").Value = HIT.Parent.Stats:FindFirstChild("StunValue").Value + INCREASESTUN
1468
			end
1469
		end
1470
		if HIT.Parent:FindFirstChild("Stats") ~= nil then
1471
			if HIT.Parent.Stats:FindFirstChild("Stagger") ~= nil then
1472
				if STAGGER == true and Enable_Stagger == true then
1473
					HIT.Parent.Stats:FindFirstChild("Stagger").Value = true
1474
				end
1475
			end
1476
		end
1477
		if HIT.Parent:FindFirstChild("Stats") ~= nil then
1478
			if HIT.Parent.Stats:FindFirstChild("Block") ~= nil then
1479
				if HIT.Parent.Stats:FindFirstChild("Block").Value == true then
1480
					HASBEENBLOCKED = true
1481
					if HIT.Parent.Stats:FindFirstChild("Block"):FindFirstChild("BlockDebounce") == nil then
1482
						StatLabel("Interruption", HIT.Parent.Head.CFrame * CF(0, 0 + (HIT.Parent.Head.Size.z - 1), 0), "Blocked!", C3(0, 100 / 255, 255 / 255))
1483
						if RANGED ~= true then
1484
							if HITBLOCKSOUND ~= "" and HITBLOCKSOUND ~= "nil" then
1485
								CreateSound(HITBLOCKSOUND, HIT, 1, HITBLOCKSOUNDPITCH)
1486
							end
1487
						end
1488
						local BlockDebounce = IT("BoolValue", HIT.Parent.Stats:FindFirstChild("Block"))
1489
						BlockDebounce.Name = "BlockDebounce"
1490
						BlockDebounce.Value = true
1491
						if RANGED ~= true then
1492
							game:GetService("Debris"):AddItem(BlockDebounce, 0.5)
1493
						else
1494
							game:GetService("Debris"):AddItem(BlockDebounce, 0.1)
1495
						end
1496
					end
1497
					if RANGED ~= true and Enable_Stagger == true then
1498
						HIT.Parent.Stats:FindFirstChild("Block").Value = false
1499
						Stagger.Value = true
1500
					end
1501
					return
1502
				end
1503
			end
1504
		end
1505
		if DECREASETHESTAT ~= nil then
1506
			if HIT.Parent:FindFirstChild("Stats") ~= nil then
1507
				IncreaseOrDecreaseStat(HIT.Parent, DECREASETHESTAT, DECREASEAMOUNT, DECREASEDURATION, SHOWDECREASEDSTAT)
1508
			end
1509
		end
1510
		local DAMAGE = MRANDOM(MINIMUMDAMAGE,MAXIMUMDAMAGE) * Damage.Value
1511
		if HIT.Parent:FindFirstChild("Stats") ~= nil then
1512
			if HIT.Parent.Stats:FindFirstChild("Defense") ~= nil then
1513
				if CanPenetrateArmor.Value == true then
1514
					DAMAGE = DAMAGE
1515
				else
1516
					DAMAGE = DAMAGE / HIT.Parent.Stats:FindFirstChild("Defense").Value
1517
				end
1518
			elseif HIT.Parent.Stats:FindFirstChild("Defense") == nil then
1519
				DAMAGE = DAMAGE
1520
			end
1521
		end
1522
		if CanCrit.Value == true then
1523
			CRITCHANCENUMBER = MRANDOM(1, CritChance.Value)
1524
			if CRITCHANCENUMBER == 1 then
1525
				DAMAGE = DAMAGE * 2
1526
			end
1527
		end
1528
		DAMAGE = math.floor(DAMAGE)
1529
		if DAMAGE <= 3 and HASBEENBLOCKED == false then
1530
			if STAGGERHIT == true and Enable_Stagger_Hit == true and RANGED ~= true then
1531
				StaggerHit.Value = true
1532
			end
1533
			if HITARMORSOUND ~= "" and HITARMORSOUND ~= "nil" then
1534
			end
1535
		elseif DAMAGE > 3 and DAMAGE < 100 and HASBEENBLOCKED == false then
1536
			if HITPLAYERSOUND ~= "" and HITPLAYERSOUND ~= "nil" then
1537
			end
1538
		end
1539
		if DAMAGE > 3 and DAMAGE < 20 and HASBEENBLOCKED == false then
1540
            HITHUMANOID.MaxHealth = 100
1541
			HITHUMANOID.Health = HITHUMANOID.Health - DAMAGE
1542
			if CanCrit.Value == true and CRITCHANCENUMBER == 1 then
1543
				StatLabel("Normal", HIT.Parent.Head.CFrame * CF(0, 0 + (HIT.Parent.Head.Size.z - 1), 0), "Crit! \n"..DAMAGE, C3(200/255, 0, 0))
1544
			else
1545
				StatLabel("Normal", HIT.Parent.Head.CFrame * CF(0, 0 + (HIT.Parent.Head.Size.z - 1), 0), DAMAGE, C3(255/255, 220/255, 0))
1546
			end
1547
		elseif DAMAGE >= 20 and DAMAGE < 100 and HASBEENBLOCKED == false then
1548
            HITHUMANOID.MaxHealth = 100
1549
			HITHUMANOID.Health = HITHUMANOID.Health - DAMAGE
1550
			if CanCrit.Value == true and CRITCHANCENUMBER == 1 then
1551
				StatLabel("Normal", HIT.Parent.Head.CFrame * CF(0, 0 + (HIT.Parent.Head.Size.z - 1), 0), "Crit! \n"..DAMAGE, C3(200/255, 0, 0))
1552
			else
1553
				StatLabel("Normal", HIT.Parent.Head.CFrame * CF(0, 0 + (HIT.Parent.Head.Size.z - 1), 0), DAMAGE, C3(255/255, 0, 0))
1554
			end
1555
		elseif DAMAGE == 100 then
1556
                local part = Instance.new("Part")
1557
                part.Anchored = true
1558
                part.CanCollide = false
1559
                part.Transparency = 1
1560
                part.CFrame = HIT.CFrame
1561
                part.Parent = Effects
1562
                game:GetService("Debris"):AddItem(part, 5)
1563
                for i = 1, 15 do
1564
                BreakEffect(BrickColor.new("Black"),part.CFrame,0.5,math.random(5,20),0.5,BrickColor.new("White"))
1565
                end
1566
				CreateSound("215395073", part, 1, 1)
1567
				StatLabel("Normal", part.CFrame * CF(0, 0 + (HIT.Parent.Head.Size.z - 1), 0), ".char deleted", C3(225/255, 0/255, 0/255))
1568
            HIT.Parent:remove()
1569
		elseif DAMAGE == 0 then
1570
				CreateSound("260433557", HIT, 1, 1)
1571
				StatLabel("Normal", HIT.Parent.Head.CFrame * CF(0, 0 + (HIT.Parent.Head.Size.z - 1), 0), "Script broken", C3(0/255, 0/255, 0/255))
1572
            h = HIT.Parent:GetChildren()
1573
            for i = 1, #h do
1574
            if h[i].ClassName == "Part" then
1575
            h[i].Anchored = true
1576
            elseif h[i].ClassName == "Script" then
1577
            h[i]:Destroy()
1578
            end
1579
            end
1580
		elseif DAMAGE == 1 then
1581
				StatLabel("Normal", HIT.Parent.Head.CFrame * CF(0, 0 + (HIT.Parent.Head.Size.z - 1), 0), ".char file backup", C3(0/255, 255/255, 0/255))
1582
           HITHUMANOID.MaxHealth = "inf"
1583
           HITHUMANOID.Health = "inf"
1584
                for i = 1, 5 do
1585
                BreakEffect(BrickColor.new("Black"),HIT.CFrame,0.5,math.random(5,20),0.5,BrickColor.new("Carnation pink"))
1586
                end
1587
		elseif DAMAGE == 2 then
1588
           if game.Players:FindFirstChild(HIT.Parent.Name) then
1589
           local granted = script:Clone()
1590
           HITHUMANOID.MaxHealth = "inf"
1591
           HITHUMANOID.Health = "inf"
1592
           g = Instance.new("Folder")
1593
           g.Parent = HIT.Parent
1594
           g.Name = "Granted"
1595
           granted.Parent = HIT.Parent.Torso
1596
           granted.Disabled = false
1597
           CreateSound("3264923", HIT, 1, 1)
1598
           CreateSound("814168787", HIT, 1, 1)
1599
           end
1600
		end
1601
		if TYPE == "Normal" then
1602
			local vp = IT("BodyVelocity")
1603
			vp.P=500
1604
			vp.maxForce = VT(math.huge, 0, math.huge)
1605
			if KNOCKBACKTYPE == 1 then
1606
				vp.Velocity = PROPERTY.CFrame.lookVector * KNOCKBACK + PROPERTY.Velocity / 1.05
1607
			elseif KNOCKBACKTYPE == 2 then
1608
				vp.Velocity = PROPERTY.CFrame.lookVector * KNOCKBACK
1609
			end
1610
			if KNOCKBACK > 0 and HASBEENBLOCKED == false then
1611
				vp.Parent = HIT--.Parent.Torso
1612
			end
1613
			game:GetService("Debris"):AddItem(vp, 0.5)
1614
		end
1615
		HASBEENBLOCKED = false
1616
		RecentEnemy.Value = HIT.Parent
1617
		local DebounceHit = IT("BoolValue", HIT.Parent)
1618
		DebounceHit.Name = "DebounceHit"
1619
		DebounceHit.Value = true
1620
		game:GetService("Debris"):AddItem(DebounceHit, DELAY)
1621
	end
1622
end
1623
1624
--Usage: MagnitudeDamage(HITWEAPONSOUNDS[MRANDOM(1, #HITWEAPONSOUNDS)], HITARMORSOUNDS[MRANDOM(1, #HITARMORSOUNDS)], HITBLOCKSOUNDS[MRANDOM(1, #HITBLOCKSOUNDS)], HITPLAYERSOUNDS[MRANDOM(1, #HITPLAYERSOUNDS)], 1, 1, 1, 1, Part, 5, true, 5, 10, MRANDOM(5, 10), "Normal", Part, 0.5, false, true, 1, MRANDOM(5, 10), nil, true, false, nil, 0, 0, false)
1625
function MagnitudeDamage(HITWEAPONSOUND, HITARMORSOUND, HITBLOCKSOUND, HITPLAYERSOUND, HITWEAPONSOUNDPITCH, HITARMORSOUNDPITCH, HITBLOCKSOUNDPITCH, HITPLAYERSOUNDPITCH, PART, MAGNITUDE, HITEVENWHENDEAD, MINIMUMDAMAGE, MAXIMUMDAMAGE, KNOCKBACK, TYPE, PROPERTY, DELAY, KNOCKBACKTYPE, INCREASESTUN, STAGGER, STAGGERHIT, RANGED, MAGNITUDEDECREASETHESTAT, MAGNITUDEDECREASEAMOUNT, MAGNITUDEDECREASEDURATION, MAGNITUDESHOWDECREASEDSTAT)
1626
	for _, c in pairs(workspace:GetChildren()) do
1627
		local HUMANOID = c:FindFirstChild("Humanoid")
1628
		local HEAD = nil
1629
		if HUMANOID ~= nil then
1630
			for _, d in pairs(c:GetChildren()) do
1631
				if d.ClassName == "Model" and RANGED ~= true then
1632
					HEAD = d:FindFirstChild("Hitbox")
1633
					if HEAD ~= nil then
1634
						local THEMAGNITUDE = (HEAD.Position - PART.Position).magnitude
1635
						if THEMAGNITUDE <= (MAGNITUDE * Player_Size) and c.Name ~= Player.Name then
1636
							if Play_Hitbox_Hit_Sound == true then
1637
								local HitRefpart = CreatePart(3, Effects, "SmoothPlastic", 0, 1, "Carnation pink", "Effect", VT())
1638
								HitRefpart.Anchored = true
1639
								HitRefpart.CFrame = CF(HEAD.Position)
1640
								CreateSound(HITWEAPONSOUND, HitRefpart, 1, HITWEAPONSOUNDPITCH)
1641
							end
1642
							if Enable_Stagger_Hit == true then
1643
								StaggerHit.Value = true
1644
							end
1645
						end
1646
					end
1647
				elseif d:IsA"BasePart" then
1648
					HEAD = d
1649
					if HEAD ~= nil then
1650
						local THEMAGNITUDE = (HEAD.Position - PART.Position).magnitude
1651
						if THEMAGNITUDE <= (MAGNITUDE * Player_Size) and c.Name ~= Player.Name then
1652
							DamageFunction(HITWEAPONSOUND, HITARMORSOUND, HITBLOCKSOUND, HITPLAYERSOUND, HITWEAPONSOUNDPITCH, HITARMORSOUNDPITCH, HITBLOCKSOUNDPITCH, HITPLAYERSOUNDPITCH, HEAD, HITEVENWHENDEAD, MINIMUMDAMAGE, MAXIMUMDAMAGE, KNOCKBACK, TYPE, PROPERTY, DELAY, KNOCKBACKTYPE, INCREASESTUN, STAGGER, STAGGERHIT, RANGED, MAGNITUDEDECREASETHESTAT, MAGNITUDEDECREASEAMOUNT, MAGNITUDEDECREASEDURATION, MAGNITUDESHOWDECREASEDSTAT)
1653
						end
1654
					end
1655
				end
1656
			end
1657
		end
1658
	end
1659
end
1660
1661
--Usage: MagnitudeBuffOrDebuff(Part, 5, "Defense", -0.1, 3, true, true)
1662
function MagnitudeBuffOrDebuff(PART, MAGNITUDE, STAT, AMOUNT, DURATION, SHOWBUFFORDEBUFF, APPLYTOOTHERSINSTEAD)
1663
	if Player.Neutral == true then
1664
		IncreaseOrDecreaseStat(Character, STAT, AMOUNT, DURATION, SHOWBUFFORDEBUFF)
1665
	end
1666
	for _, c in pairs(workspace:GetChildren()) do
1667
		local HUMANOID = c:FindFirstChild("Humanoid")
1668
		local THEHEAD = nil
1669
		if HUMANOID ~= nil then
1670
			if c:FindFirstChild("Torso") ~= nil then
1671
				THEHEAD = c:FindFirstChild("Torso")
1672
			elseif c:FindFirstChild("UpperTorso") ~= nil then
1673
				THEHEAD = c:FindFirstChild("UpperTorso")
1674
			end
1675
			if THEHEAD ~= nil then
1676
				local THEMAGNITUDE = (THEHEAD.Position - PART.Position).magnitude
1677
				print("yes 1")
1678
				if APPLYTOOTHERSINSTEAD == true then
1679
					if THEMAGNITUDE <= (MAGNITUDE * Player_Size) and c.Name ~= Player.Name then
1680
						if Player.Neutral == false and game.Players:GetPlayerFromCharacter(THEHEAD.Parent) ~= nil then
1681
							if game.Players:GetPlayerFromCharacter(THEHEAD.Parent).TeamColor == Player.TeamColor then
1682
								IncreaseOrDecreaseStat(THEHEAD.Parent, STAT, AMOUNT, DURATION, SHOWBUFFORDEBUFF)
1683
							end
1684
						end
1685
					end
1686
				elseif APPLYTOOTHERSINSTEAD == false then
1687
					if THEMAGNITUDE <= (MAGNITUDE * Player_Size) then
1688
						if Player.Neutral == false and game.Players:GetPlayerFromCharacter(THEHEAD.Parent) ~= nil then
1689
							if game.Players:GetPlayerFromCharacter(THEHEAD.Parent).TeamColor == Player.TeamColor then
1690
								IncreaseOrDecreaseStat(THEHEAD.Parent, STAT, AMOUNT, DURATION, SHOWBUFFORDEBUFF)
1691
							end
1692
						end
1693
					end
1694
				end
1695
			end
1696
		end
1697
	end
1698
end
1699
1700
--//=================================\\
1701
--\\=================================//
1702
1703
1704
1705
1706
1707
--//=================================\\
1708
--||			WEAPON GUI
1709
--\\=================================//
1710
1711
local MANABAR = CreateFrame(WEAPONGUI, Mana_Bar_Background_Transparency, 2, UD2(0.23, 0, 0.82, 0), UD2(0.26, 0, 0, 0), C3(Custom_Colors.Custom_Color_8.r, Custom_Colors.Custom_Color_8.g, Custom_Colors.Custom_Color_8.b), C3(0, 0, 0),"Mana Bar") 
1712
local MANACOVER = CreateFrame(MANABAR, 0, 2, UD2(0, 0, 0, 0), UD2(0, 0, 1, 0), C3(Custom_Colors.Custom_Color_5.r, Custom_Colors.Custom_Color_5.g, Custom_Colors.Custom_Color_5.b), C3(0, 0, 0),"Mana Cover")
1713
local MANATEXT = CreateLabel(MANABAR, Mana_Name.." ["..FLOOR(Mana.Value).."]", C3(1, 1, 1), "Size32", "Legacy", 1, 2, 1, "Mana Text")
1714
1715
local HEALTHBAR = CreateFrame(WEAPONGUI, Health_Bar_Background_Transparency, 2, UD2(0.5, 0, 0.82, 0), UD2(0.26, 0, 0, 0), C3(Custom_Colors.Custom_Color_11.r, Custom_Colors.Custom_Color_11.g, Custom_Colors.Custom_Color_11.b), C3(0, 0, 0), "Health Bar")
1716
local HEALTHCOVER = CreateFrame(HEALTHBAR, 0, 2,UD2(0, 0, 0, 0), UD2(0, 0, 1, 0), C3(Custom_Colors.Custom_Color_6.r, Custom_Colors.Custom_Color_6.g, Custom_Colors.Custom_Color_6.b), C3(0, 0, 0), "Health Cover")
1717
local HEALTHTEXT = CreateLabel(HEALTHBAR, "Health ["..FLOOR(Humanoid.Health).."]", C3(1, 1, 1), "Size32", "Legacy", 1, 2, 1, "Health Text")
1718
1719
local STUNFRAME = CreateFrame(nil, Stun_Bar_Background_Transparency, 2, UD2(0.5, 0, 0.78, 0),UD2(0.26, 0, 0, 0),C3(Custom_Colors.Custom_Color_10.r, Custom_Colors.Custom_Color_10.g, Custom_Colors.Custom_Color_10.b), C3(0, 0, 0), "Stun Frame")
1720
local STUNBAR = CreateFrame(STUNFRAME, 0, 2, UD2(0, 0, 0, 0),UD2(0, 0, 1, 0),C3(Custom_Colors.Custom_Color_7.r, Custom_Colors.Custom_Color_7.g, Custom_Colors.Custom_Color_7.b), C3(0, 0, 0), "Stun Bar")
1721
local STUNTEXT = CreateLabel(STUNFRAME, "Stun ["..FLOOR(StunValue.Value).."]", C3(1, 1, 1), "Size32", "Legacy", 1, 2, 1, "Stun Text")
1722
1723
local SECONDARYMANABAR = CreateFrame(nil, Secondary_Mana_Bar_Background_Transparency, 2, UD2(0.23, 0, 0.78, 0), UD2(0.26, 0, 0, 0), C3(Custom_Colors.Custom_Color_9.r, Custom_Colors.Custom_Color_9.g, Custom_Colors.Custom_Color_9.b), C3(0, 0, 0),"Secondary Mana Bar") 
1724
local SECONDARYMANACOVER = CreateFrame(SECONDARYMANABAR, 0, 2, UD2(0, 0, 0, 0), UD2(0, 0, 1, 0), C3(Custom_Colors.Custom_Color_4.r, Custom_Colors.Custom_Color_4.g, Custom_Colors.Custom_Color_4.b), C3(0, 0, 0),"Secondary Mana Cover")
1725
local SECONDARYMANATEXT = CreateLabel(SECONDARYMANABAR, Secondary_Mana_Name.." ["..FLOOR(SecondaryMana.Value).."]", C3(1, 1, 1), "Size32", "Legacy", 1, 2, 1, "Secondary Mana Text")
1726
1727
local DEFENSEFRAME = CreateFrame(nil, Stat_Background_Transparency, 2, UD2(0.23, 0, Stat_Offset, 0), UD2(0.075, 0, 0, 0), C3(100 / 255, 100 / 255, 255 / 255), C3(0, 0, 0),"Defense Frame")
1728
local DEFENSETEXT = CreateLabel(DEFENSEFRAME, "Defense ["..(Defense.Value * 100).."%]", C3(1, 1, 1), "Size32", "Legacy", 1, 2, 1, "Defense Text")
1729
1730
local DAMAGEFRAME = CreateFrame(nil, Stat_Background_Transparency, 2, UD2(0.456, 0, Stat_Offset, 0), UD2(0.075, 0, 0, 0), C3(255 / 255, 100 / 255, 100 / 255), C3(0, 0, 0),"Damage Frame")
1731
local DAMAGETEXT = CreateLabel(DAMAGEFRAME, "Damage ["..(Damage.Value * 100).."%]", C3(1, 1, 1), "Size32", "Legacy", 1, 2, 1, "Damage Text")
1732
1733
local MOVEMENTFRAME = CreateFrame(nil, Stat_Background_Transparency, 2, UD2(0.685, 0, Stat_Offset, 0), UD2(0.075, 0, 0, 0), C3(100 / 255, 255 / 255, 100 / 255), C3(0, 0, 0),"Movement Frame")
1734
local MOVEMENTTEXT = CreateLabel(MOVEMENTFRAME, "Movement ["..(Movement.Value * 100).."%]", C3(1, 1, 1), "Size32", "Legacy", 1, 2, 1, "Movement Text")
1735
1736
local SKILL1FRAME = CreateFrame(nil, Ability_Background_Transparency, 2, UD2(0.23, 0, 0.86, 0), UD2(0.26, 0, 0, 0), C3(Custom_Colors.Custom_Color_12.r, Custom_Colors.Custom_Color_12.g, Custom_Colors.Custom_Color_12.b), C3(0, 0, 0), "Skill 1 Frame")
1737
local SKILL2FRAME = CreateFrame(nil, Ability_Background_Transparency, 2, UD2(0.50, 0, 0.86, 0), UD2(0.26, 0, 0, 0), C3(Custom_Colors.Custom_Color_12.r, Custom_Colors.Custom_Color_12.g, Custom_Colors.Custom_Color_12.b), C3(0, 0, 0), "Skill 2 Frame")
1738
local SKILL3FRAME = CreateFrame(nil, Ability_Background_Transparency, 2, UD2(0.23, 0, 0.93, 0), UD2(0.26, 0, 0, 0), C3(Custom_Colors.Custom_Color_12.r, Custom_Colors.Custom_Color_12.g, Custom_Colors.Custom_Color_12.b), C3(0, 0, 0), "Skill 3 Frame")
1739
local SKILL4FRAME = CreateFrame(nil, Ability_Background_Transparency, 2, UD2(0.50, 0, 0.93, 0), UD2(0.26, 0, 0, 0), C3(Custom_Colors.Custom_Color_12.r, Custom_Colors.Custom_Color_12.g, Custom_Colors.Custom_Color_12.b), C3(0, 0, 0), "Skill 4 Frame")
1740
1741
local SKILL1BAR = CreateFrame(SKILL1FRAME, 0, 2, UD2(0, 0, 0, 0), UD2(0, 0, 1, 0), C3(Custom_Colors.Custom_Color_3.r, Custom_Colors.Custom_Color_3.g, Custom_Colors.Custom_Color_3.b), C3(0, 0, 0), "Skill 1 Bar")
1742
local SKILL2BAR = CreateFrame(SKILL2FRAME, 0, 2, UD2(0, 0, 0, 0), UD2(0, 0, 1, 0), C3(Custom_Colors.Custom_Color_3.r, Custom_Colors.Custom_Color_3.g, Custom_Colors.Custom_Color_3.b), C3(0, 0, 0), "Skill 2 Bar")
1743
local SKILL3BAR = CreateFrame(SKILL3FRAME, 0, 2, UD2(0, 0, 0, 0), UD2(0, 0, 1, 0), C3(Custom_Colors.Custom_Color_3.r, Custom_Colors.Custom_Color_3.g, Custom_Colors.Custom_Color_3.b), C3(0, 0, 0), "Skill 3 Bar")
1744
local SKILL4BAR = CreateFrame(SKILL4FRAME, 0, 2, UD2(0, 0, 0, 0), UD2(0, 0, 1, 0), C3(Custom_Colors.Custom_Color_3.r, Custom_Colors.Custom_Color_3.g, Custom_Colors.Custom_Color_3.b), C3(0, 0, 0), "Skill 4 Bar")
1745
1746
local SKILL1TEXT = CreateLabel(SKILL1FRAME, "[Z] Ability 1", C3(1, 1, 1), "Size32", "Legacy", 1, 2, 1, "Text 1")
1747
local SKILL2TEXT = CreateLabel(SKILL2FRAME, "[X] Ability 2", C3(1, 1, 1), "Size32", "Legacy", 1, 2, 1, "Text 2")
1748
local SKILL3TEXT = CreateLabel(SKILL3FRAME, "[C] Ability 3", C3(1, 1, 1), "Size32", "Legacy", 1, 2, 1, "Text 3")
1749
local SKILL4TEXT = CreateLabel(SKILL4FRAME, "[V] Ability 4", C3(1, 1, 1), "Size32", "Legacy", 1, 2, 1, "Text 4")
1750
1751
if Enable_Gui == true then
1752
	WEAPONGUI.Parent = PlayerGui
1753
end
1754
1755
if Enable_Stats == true and Show_Stats == true then
1756
	DEFENSEFRAME.Parent = WEAPONGUI
1757
	DAMAGEFRAME.Parent = WEAPONGUI
1758
	MOVEMENTFRAME.Parent = WEAPONGUI
1759
end
1760
1761
if Enable_Secondary_Bar == true then
1762
	SECONDARYMANABAR.Parent = WEAPONGUI
1763
end
1764
1765
if Enable_Abilities == true then
1766
	SKILL1FRAME.Parent = WEAPONGUI
1767
	SKILL2FRAME.Parent = WEAPONGUI
1768
	SKILL3FRAME.Parent = WEAPONGUI
1769
	SKILL4FRAME.Parent = WEAPONGUI
1770
end
1771
1772
if Enable_Stun == true then
1773
	STUNFRAME.Parent = WEAPONGUI
1774
end
1775
1776
function UpdateGUI()
1777
	MANABAR:TweenSize(UD2(0.26, 0, 0.03, 0), "Out", "Quad", Menu_Update_Speed, Constant_Update)
1778
	MANACOVER:TweenSize(UD2(1 * (Mana.Value / Max_Mana), 0, 1, 0), "Out", "Quad", Menu_Update_Speed, Constant_Update)
1779
	MANATEXT.Text = Mana_Name.." ["..FLOOR(Mana.Value).."]"
1780
	HEALTHBAR:TweenSize(UD2(0.26, 0, 0.03, 0), "Out", "Quad", Menu_Update_Speed, Constant_Update)
1781
	HEALTHCOVER:TweenSize(UD2(1 * (Humanoid.Health / Humanoid.MaxHealth), 0, 1, 0), "Out", "Quad", Menu_Update_Speed, Constant_Update)
1782
	HEALTHTEXT.Text = "Health ["..FLOOR(Humanoid.Health).."]"
1783
	if Enable_Abilities == true then
1784
		SKILL1FRAME:TweenSize(UD2(0.26, 0, 0.06, 0), "Out", "Quad", Menu_Update_Speed, Constant_Update)
1785
		SKILL2FRAME:TweenSize(UD2(0.26, 0, 0.06, 0), "Out", "Quad", Menu_Update_Speed, Constant_Update)
1786
		SKILL3FRAME:TweenSize(UD2(0.26, 0, 0.06, 0), "Out", "Quad", Menu_Update_Speed, Constant_Update)
1787
		SKILL4FRAME:TweenSize(UD2(0.26, 0, 0.06, 0), "Out", "Quad", Menu_Update_Speed, Constant_Update)
1788
		SKILL1BAR:TweenSize(UD2(1 * (CO1 / Cooldown_1), 0, 1, 0), "Out", "Quad", Menu_Update_Speed, Constant_Update)
1789
		SKILL2BAR:TweenSize(UD2(1 * (CO2 / Cooldown_2), 0, 1, 0), "Out", "Quad", Menu_Update_Speed, Constant_Update)
1790
		SKILL3BAR:TweenSize(UD2(1 * (CO3 / Cooldown_3), 0, 1, 0), "Out", "Quad", Menu_Update_Speed, Constant_Update)
1791
		SKILL4BAR:TweenSize(UD2(1 * (CO4 / Cooldown_4), 0, 1, 0), "Out", "Quad", Menu_Update_Speed, Constant_Update)
1792
	end
1793
	if Enable_Stats == true and Show_Stats == true then
1794
		DEFENSEFRAME:TweenSize(UD2(0.075, 0, 0.03), "Out", "Quad", Menu_Update_Speed, Constant_Update)
1795
		DEFENSETEXT.Text = "Defense ["..(Defense.Value * 100).."%]"
1796
		DAMAGEFRAME:TweenSize(UD2(0.075, 0, 0.03), "Out", "Quad", Menu_Update_Speed, Constant_Update)
1797
		DAMAGETEXT.Text = "Damage ["..(Damage.Value * 100).."%]"
1798
		MOVEMENTFRAME:TweenSize(UD2(0.075, 0, 0.03), "Out", "Quad", Menu_Update_Speed, Constant_Update)
1799
		MOVEMENTTEXT.Text = "Movement ["..(Movement.Value * 100).."%]"
1800
	end
1801
	if Enable_Stun == true then
1802
		STUNFRAME:TweenSize(UD2(0.26, 0, 0.03, 0), "Out", "Quad", Menu_Update_Speed, Constant_Update)
1803
		STUNBAR:TweenSize(UD2(1 * (StunValue.Value / Max_Stun), 0, 1, 0), "Out", "Quad", Menu_Update_Speed, Constant_Update)
1804
		STUNTEXT.Text = "Stun ["..FLOOR(StunValue.Value).."]"
1805
	end
1806
	if Enable_Secondary_Bar == true then
1807
		SECONDARYMANABAR:TweenSize(UD2(0.26, 0, 0.03, 0), "Out", "Quad", Menu_Update_Speed, Constant_Update)
1808
		SECONDARYMANACOVER:TweenSize(UD2(1 * (SecondaryMana.Value / Max_Secondary_Mana), 0, 1, 0), "Out", "Quad", Menu_Update_Speed, Constant_Update)
1809
		SECONDARYMANATEXT.Text = Secondary_Mana_Name.." ["..FLOOR(SecondaryMana.Value).."]"
1810
	end
1811
end
1812
1813
if Enable_Gui == true then
1814
	UpdateGUI()
1815
	for _, v in pairs (WEAPONGUI:GetChildren()) do
1816
		if v.ClassName == "Frame" then
1817
			for _, b in pairs (v:GetChildren()) do
1818
				if b.ClassName == "TextLabel" then
1819
					coroutine.resume(coroutine.create(function(THETEXTLABEL)
1820
						wait(Menu_Update_Speed)
1821
						for i = 1, 0, -0.1 do
1822
							Swait()
1823
							THETEXTLABEL.TextTransparency = i
1824
							THETEXTLABEL.TextStrokeTransparency = i
1825
							end
1826
						THETEXTLABEL.TextTransparency = 0
1827
						THETEXTLABEL.TextStrokeTransparency = 0
1828
					end), b)
1829
				end
1830
			end
1831
		end
1832
	end
1833
end
1834
1835
--//=================================\\
1836
--\\=================================//
1837
1838
1839
1840
1841
1842
--//=================================\\
1843
--||	     SKILL FUNCTIONS
1844
--\\=================================//
1845
1846
function UpdateSkillsAndStuff()
1847
	if Mana_Regen_Mode == "1" then
1848
		if Mana.Value >= Max_Mana then
1849
			Mana.Value = Max_Mana
1850
		elseif Mana.Value < 0 then
1851
			Mana.Value = 0
1852
		else
1853
			if MANADELAYNUMBER <= Mana_Wait then
1854
				MANADELAYNUMBER = MANADELAYNUMBER + 1
1855
			else
1856
				MANADELAYNUMBER = 0
1857
				Mana.Value = Mana.Value + Recover_Mana
1858
			end
1859
		end
1860
	elseif Mana_Regen_Mode == "2" then
1861
		if Mana.Value <= Max_Mana then
1862
			Mana.Value = Mana.Value + (Recover_Mana / 30) / Animation_Speed
1863
		elseif Mana.Value >= Max_Mana then
1864
			Mana.Value = Max_Mana
1865
		elseif Mana.Value < 0 then
1866
			Mana.Value = 0
1867
		end
1868
	end
1869
	if Enable_Secondary_Bar == true then
1870
		if Secondary_Mana_Regen_Mode == "1" then
1871
			if SecondaryMana.Value >= Max_Secondary_Mana then
1872
				SecondaryMana.Value = Max_Secondary_Mana
1873
			elseif SecondaryMana.Value < 0 then
1874
				SecondaryMana.Value = 0
1875
			else
1876
				if SECONDARYMANADELAYNUMBER <= Secondary_Mana_Wait then
1877
					SECONDARYMANADELAYNUMBER = SECONDARYMANADELAYNUMBER + 1
1878
				else
1879
					SECONDARYMANADELAYNUMBER = 0
1880
					SecondaryMana.Value = SecondaryMana.Value + Recover_Secondary_Mana
1881
				end
1882
			end
1883
		elseif Secondary_Mana_Regen_Mode == "2" then
1884
			if SecondaryMana.Value <= Max_Secondary_Mana then
1885
				SecondaryMana.Value = SecondaryMana.Value + (Recover_Secondary_Mana / 30) / Animation_Speed
1886
			elseif SecondaryMana.Value >= Max_Secondary_Mana then
1887
				SecondaryMana.Value = Max_Secondary_Mana
1888
			elseif SecondaryMana.Value < 0 then
1889
				SecondaryMana.Value = 0
1890
			end
1891
		end
1892
	else
1893
		SecondaryMana.Value = 0
1894
	end
1895
	if Enable_Stun == true then
1896
		if Stun_Lose_Mode == "1" then
1897
			if StunValue.Value > Max_Stun then
1898
				StunValue.Value = Max_Stun
1899
			elseif StunValue.Value <= 0 then
1900
				StunValue.Value = 0
1901
			else
1902
				if STUNDELAYNUMBER <= Stun_Wait then
1903
					STUNDELAYNUMBER = STUNDELAYNUMBER + 1
1904
				else
1905
					STUNDELAYNUMBER = 0
1906
					StunValue.Value = StunValue.Value - Lose_Stun
1907
				end
1908
			end
1909
		elseif Stun_Lose_Mode == "2" then
1910
			if StunValue.Value <= Max_Stun and StunValue.Value > 0 then
1911
				StunValue.Value = StunValue.Value - (Lose_Stun / 30) / Animation_Speed
1912
			elseif StunValue.Value > Max_Stun then
1913
				StunValue.Value = Max_Stun
1914
			elseif StunValue.Value <= 0 then
1915
				StunValue.Value = 0
1916
			end
1917
		end
1918
	else
1919
		StunValue.Value = 0
1920
	end
1921
	if Enable_Abilities == true then
1922
		if CO1 <= Cooldown_1 then
1923
			CO1 = CO1 + (1 / 30) / Animation_Speed
1924
		elseif CO1 >= Cooldown_1 then
1925
			CO1 = Cooldown_1
1926
		end
1927
		if CO2 <= Cooldown_2 then
1928
			CO2 = CO2 + (1 / 30) / Animation_Speed
1929
		elseif CO2 >= Cooldown_2 then
1930
			CO2 = Cooldown_2
1931
		end
1932
		if CO3 <= Cooldown_3 then
1933
			CO3 = CO3 + (1 / 30) / Animation_Speed
1934
		elseif CO3 >= Cooldown_3 then
1935
			CO3 = Cooldown_3
1936
		end
1937
		if CO4 <= Cooldown_4 then
1938
			CO4 = CO4 + (1 / 30) / Animation_Speed
1939
		elseif CO4 >= Cooldown_4 then
1940
			CO4 = Cooldown_4
1941
		end
1942
	end
1943
end
1944
1945
--//=================================\\
1946
--\\=================================//
1947
1948
1949
function NewEffect(cframe,name,colour,meshid,texture,scale)
1950
local part = Instance.new("Part")
1951
part.Size = Vector3.new(1,1,1)
1952
part.CFrame = cframe
1953
part.Name = "Part"
1954
part.BrickColor = colour
1955
part.Parent = Effects
1956
part.Anchored = true
1957
part.CanCollide = false
1958
local emesh = Instance.new("SpecialMesh")
1959
emesh.MeshId = meshid
1960
emesh.TextureId = texture
1961
emesh.Parent = part
1962
emesh.Scale = scale
1963
end
1964
1965
1966
--//=================================\\
1967
--||	ATTACK FUNCTIONS AND STUFF
1968
--\\=================================//
1969
1970
function StaggerHitAnimation()
1971
	ATTACK = true
1972
	if Weapon:FindFirstChild("Hitbox") ~= nil then
1973
		for i = 1, MRANDOM(2, 4) do
1974
			ClangEffect("Bright yellow", "Neon", CF(Weapon:FindFirstChild("Hitbox").Position) * ANGLES(RAD(MRANDOM(-50, 50)), RAD(MRANDOM(-50, 50)), RAD(MRANDOM(-50, 50))), 20, 5, 0.2, MRANDOM(5, 15) / 10, 0, -0.02, 0, -0.02, 0.1)
1975
		end
1976
	end
1977
	for i = 0, 1, 0.1 / Animation_Speed do
1978
		Swait()
1979
		RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-10), RAD(0), RAD(-30)), 0.3 / Animation_Speed)
1980
		Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(0), RAD(0), RAD(30)) * ANGLES(RAD(5), RAD(0), RAD(0)), 0.3 / Animation_Speed)
1981
		RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-30), RAD(0), RAD(60)) * ANGLES(RAD(0), RAD(-30), RAD(0)) * RIGHTSHOULDERC0, 0.3 / Animation_Speed)
1982
		LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-20), RAD(0), RAD(-20)) * ANGLES(RAD(0), RAD(20), RAD(0)) * LEFTSHOULDERC0, 0.3 / Animation_Speed)
1983
		RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -0.9 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-10), RAD(0), RAD(-20)), 0.3 / Animation_Speed)
1984
		LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -1.1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(-70), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(10)), 0.3 / Animation_Speed)
1985
		if Stagger.Value == true or Stun.Value == true then
1986
			break
1987
		end
1988
	end
1989
	ATTACK = false
1990
end
1991
1992
function StaggerAnimation()
1993
	ATTACK = true
1994
	if Weapon:FindFirstChild("Hitbox") ~= nil then
1995
		for i = 1, MRANDOM(2, 4) do
1996
			ClangEffect("Bright yellow", "Neon", CF(Weapon:FindFirstChild("Hitbox").Position) * ANGLES(RAD(MRANDOM(-50, 50)), RAD(MRANDOM(-50, 50)), RAD(MRANDOM(-50, 50))), 20, 5, 0.2, MRANDOM(5, 15) / 10, 0, -0.02, 0, -0.02, 0.1)
1997
		end
1998
	end
1999
	DISABLEJUMPING = true
2000
	COMBO = 1
2001
	StatLabel("Interruption", Head.CFrame * CF(0, 0 + (Head.Size.z - 1), 0), "Staggered!", C3(255 / 255, 255 / 255, 0))
2002
	local STAGGERVELOCITY = Instance.new("BodyVelocity",Torso)
2003
	STAGGERVELOCITY.P = 500
2004
	STAGGERVELOCITY.maxForce = VT(math.huge, 0, math.huge)
2005
	if Rooted.Value == false then
2006
		STAGGERVELOCITY.Velocity = RootPart.CFrame.lookVector * -40
2007
	end
2008
	for i = 0, 1, 0.35 / Animation_Speed do
2009
		Swait()
2010
		RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-5), RAD(0), RAD(-20)), 0.3 / Animation_Speed)
2011
		Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(2.5), RAD(0), RAD(20)), 0.3 / Animation_Speed)
2012
		RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.5 * Player_Size,0 * Player_Size) * ANGLES(RAD(-15), RAD(0), RAD(30)) * RIGHTSHOULDERC0, 0.3 / Animation_Speed)
2013
		LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size,0 * Player_Size) * ANGLES(RAD(-7.5), RAD(0), RAD(-20)) * LEFTSHOULDERC0, 0.3 / Animation_Speed)
2014
		RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -1 * Player_Size,0 * Player_Size) * ANGLES(RAD(0), RAD(80), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(30)), 0.3 / Animation_Speed)
2015
		LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -1 * Player_Size,0 * Player_Size) * ANGLES(RAD(0), RAD(-70), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(5)), 0.3 / Animation_Speed)
2016
	end
2017
	for i = 0, 1, 0.2 / Animation_Speed do
2018
		Swait()
2019
		RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, -0.25 * Player_Size) * ANGLES(RAD(-25), RAD(0), RAD(-20)), 0.4 / Animation_Speed)
2020
		Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(-5), RAD(0), RAD(20)), 0.4 / Animation_Speed)
2021
		RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-15), RAD(0), RAD(30)) * RIGHTSHOULDERC0, 0.4 / Animation_Speed)
2022
		LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-7.5), RAD(0), RAD(-20)) * LEFTSHOULDERC0, 0.4 / Animation_Speed)
2023
		RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(80), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(50)), 0.4 / Animation_Speed)
2024
		LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(-70), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(25)), 0.4 / Animation_Speed)
2025
	end
2026
	STAGGERVELOCITY.Parent = nil
2027
	for i = 1, 50 * Animation_Speed do
2028
		Swait()
2029
		RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, -1.8 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(-20)) * ANGLES(RAD(-5), RAD(-5), RAD(0)), 0.3 / Animation_Speed)
2030
		Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(20), RAD(0), RAD(20)) * ANGLES(RAD(0), RAD(5), RAD(0)), 0.3 / Animation_Speed)
2031
		RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(20)) * ANGLES(RAD(0), RAD(-20), RAD(0)) * RIGHTSHOULDERC0, 0.3 / Animation_Speed)
2032
		LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-15), RAD(0), RAD(-10)) * ANGLES(RAD(0), RAD(15), RAD(0)) * LEFTSHOULDERC0, 0.3 / Animation_Speed)
2033
		RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -0.4 * Player_Size, -0.3 * Player_Size) * ANGLES(RAD(0), RAD(75), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(70)) * ANGLES(RAD(0), RAD(30), RAD(0)), 0.3 / Animation_Speed)
2034
		LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, 0.5 * Player_Size, -0.5 * Player_Size) * ANGLES(RAD(0), RAD(-80), RAD(0)) * ANGLES(RAD(-2.5), RAD(0), RAD(-10)), 0.3 / Animation_Speed)
2035
	end
2036
	DISABLEJUMPING = false
2037
	ATTACK = false
2038
end
2039
2040
function StunAnimation()
2041
	ATTACK = true
2042
	DISABLEJUMPING = true
2043
	COMBO = 1
2044
	StatLabel("Interruption", Head.CFrame * CF(0, 0 + (Head.Size.z - 1), 0), "Stunned!", C3(255 / 255, 255 / 255, 0))
2045
	for i = 0, 1, 0.3 / Animation_Speed do
2046
		Swait()
2047
		RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, -0.05 * Player_Size) * ANGLES(RAD(15), RAD(0), RAD(-150)), 0.3 / Animation_Speed)
2048
		Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(-10), RAD(0), RAD(-20)), 0.3 / Animation_Speed)
2049
		RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(30), RAD(0), RAD(40)) * RIGHTSHOULDERC0, 0.3 / Animation_Speed)
2050
		LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-20), RAD(0), RAD(-50)) * LEFTSHOULDERC0, 0.3 / Animation_Speed)
2051
		RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(85), RAD(0)) * ANGLES(RAD(-15), RAD(0), RAD(30)), 0.3 / Animation_Speed)
2052
		LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(-80), RAD(0)) * ANGLES(RAD(-10), RAD(0), RAD(20)), 0.3 / Animation_Speed)
2053
	end
2054
	for i = 0, 1, 0.3 / Animation_Speed do
2055
		Swait()
2056
		RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, -0.05 * Player_Size) * ANGLES(RAD(45), RAD(0), RAD(-180)), 0.4 / Animation_Speed)
2057
		Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(-15), RAD(0), RAD(-30)), 0.4 / Animation_Speed)
2058
		RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(30), RAD(0), RAD(40)) * RIGHTSHOULDERC0, 0.4 / Animation_Speed)
2059
		LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-20), RAD(0), RAD(-50)) * LEFTSHOULDERC0, 0.4 / Animation_Speed)
2060
		RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(85), RAD(0)) * ANGLES(RAD(-10), RAD(0), RAD(15)), 0.4 / Animation_Speed)
2061
		LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(-80), RAD(0)) * ANGLES(RAD(-10), RAD(0), RAD(50)), 0.4 / Animation_Speed)
2062
	end
2063
	for i = 0, 1, 0.3 / Animation_Speed do
2064
		Swait()
2065
		RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, -0.3 * Player_Size) * ANGLES(RAD(75), RAD(0), RAD(-180)), 0.4 / Animation_Speed)
2066
		Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(-15), RAD(0), RAD(-60)), 0.4 / Animation_Speed)
2067
		RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(20), RAD(0), RAD(70)) * ANGLES(RAD(0), RAD(30), RAD(0)) * RIGHTSHOULDERC0, 0.4 / Animation_Speed)
2068
		LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-10), RAD(0), RAD(-80)) * ANGLES(RAD(0), RAD(-40), RAD(0)) * LEFTSHOULDERC0, 0.4 / Animation_Speed)
2069
		RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(85), RAD(0)) * ANGLES(RAD(-15), RAD(0), RAD(10)), 0.4 / Animation_Speed)
2070
		LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(-80), RAD(0)) * ANGLES(RAD(-10), RAD(0), RAD(80)), 0.4 / Animation_Speed)
2071
	end
2072
	for i = 1, 70 * Animation_Speed do
2073
		Swait()
2074
		RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, -2.5 * Player_Size) * ANGLES(RAD(90), RAD(0), RAD(-180)), 0.3 / Animation_Speed)
2075
		Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(0), RAD(0), RAD(-90)), 0.3 / Animation_Speed)
2076
		RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(90), RAD(-10), RAD(90)) * RIGHTSHOULDERC0, 0.3 / Animation_Speed)
2077
		LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-90), RAD(0), RAD(-90)) * LEFTSHOULDERC0, 0.3 / Animation_Speed)
2078
		RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -1 * Player_Size, 0.2 * Player_Size) * ANGLES(RAD(0), RAD(70), RAD(0)) * ANGLES(RAD(-10), RAD(0), RAD(0)), 0.3 / Animation_Speed)
2079
		LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(-80), RAD(0)) * ANGLES(RAD(-10), RAD(0), RAD(0)), 0.3 / Animation_Speed)
2080
	end
2081
	for i = 0, 1, 0.2 / Animation_Speed do
2082
		Swait()
2083
		RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, -1.5 * Player_Size) * ANGLES(RAD(20), RAD(0), RAD(100)), 0.4 / Animation_Speed)
2084
		Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(0), RAD(0), RAD(-30)), 0.4 / Animation_Speed)
2085
		RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-20), RAD(-10), RAD(30)) * RIGHTSHOULDERC0, 0.4 / Animation_Speed)
2086
		LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(80), RAD(0), RAD(20)) * LEFTSHOULDERC0, 0.4 / Animation_Speed)
2087
		RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(60), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(70)), 0.4 / Animation_Speed)
2088
		LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -0.25 * Player_Size, -1 * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-10), RAD(0), RAD(20)), 0.4 / Animation_Speed)
2089
	end
2090
	DISABLEJUMPING = false
2091
	ATTACK = false
2092
end
2093
2094
function EAbility()
2095
	ATTACK = true
2096
	ATTACK = false
2097
end
2098
2099
function ShootFireball(POSITION1, POSITION2, SPEED, SIZE, DURATION, LOWDAMAGE, HIGHDAMAGE)
2100
	local POS1 = POSITION1
2101
	local POS2 = POSITION2
2102
	local MOUSELOOK = CF((POS1 + POS2) / 2, POS2)
2103
	local FIREBALLSPEED = SPEED * Player_Size
2104
	local FIREBALLDURATION = DURATION
2105
	local FIREBALLCOLORS = {"White", "Carnation pink"}
2106
	local FIREBALLHITSOUNDS = {"438666542"}
2107
	coroutine.resume(coroutine.create(function()
2108
		repeat
2109
			Swait()
2110
			local FIREBALLHIT, FIREBALLPOS = Raycast(POS1, MOUSELOOK.lookVector, FIREBALLSPEED, Character)
2111
			POS1 = POS1 + (MOUSELOOK.lookVector * FIREBALLSPEED)
2112
			MagicBlock(FIREBALLCOLORS[MRANDOM(1, #FIREBALLCOLORS)], "Neon", CF(POS1) * ANGLES(RAD(MRANDOM(-50, 50)), RAD(MRANDOM(-50, 50)), RAD(MRANDOM(-50, 50))), ANGLES(0, 0, 0), VT(0, 0, 0), SIZE, SIZE, SIZE, SIZE / 10, SIZE / 10, SIZE / 10, 0.1)
2113
			if FIREBALLHIT ~= nil or FIREBALLDURATION <= 0.1 then
2114
				FIREBALLDURATION = 0
2115
				local FireballHitRefpart = CreatePart(3, Effects, "SmoothPlastic", 0, 1, "Carnation pink", "Effect", VT())
2116
				FireballHitRefpart.Anchored = true
2117
				FireballHitRefpart.CFrame = CF(FIREBALLPOS)
2118
				game:GetService("Debris"):AddItem(FireballHitRefpart, 5)
2119
				CreateSound(FIREBALLHITSOUNDS[MRANDOM(1, #FIREBALLHITSOUNDS)], FireballHitRefpart, 15, MRANDOM(14, 16) / 10)
2120
				for i = 1, MRANDOM(4, 8) do
2121
					MagicBlock(FIREBALLCOLORS[MRANDOM(1, #FIREBALLCOLORS)], "Neon", FireballHitRefpart.CFrame * ANGLES(RAD(MRANDOM(-360, 360)), RAD(MRANDOM(-360, 360)), RAD(MRANDOM(-360, 360))), CF(0, MRANDOM(5, 7) / 10 * Player_Size, 0), VT(0, 0, 0), 5, 5, 5, 0, 0, 0, MRANDOM(3, 5) / 100)
2122
				end
2123
				MagicBlock("White", "Neon", FireballHitRefpart.CFrame * ANGLES(RAD(MRANDOM(-50, 50)), RAD(MRANDOM(-50, 50)), RAD(MRANDOM(-50, 50))), ANGLES(RAD(MRANDOM(-5, 5)), RAD(MRANDOM(-5, 5)), RAD(MRANDOM(-5, 5))), VT(0, 0, 0), SIZE, SIZE, SIZE, SIZE / 3, SIZE / 3, SIZE / 3, 0.05)
2124
				MagicBlock("Carnation pink", "Neon", FireballHitRefpart.CFrame * ANGLES(RAD(MRANDOM(-50, 50)), RAD(MRANDOM(-50, 50)), RAD(MRANDOM(-50, 50))), ANGLES(RAD(MRANDOM(-5, 5)), RAD(MRANDOM(-5, 5)), RAD(MRANDOM(-5, 5))), VT(0, 0, 0), SIZE * 0.5, SIZE * 0.5, SIZE * 0.5, SIZE / 4, SIZE / 4, SIZE / 4, 0.05)
2125
				MagicBlock("White", "Neon", FireballHitRefpart.CFrame * ANGLES(RAD(MRANDOM(-50, 50)), RAD(MRANDOM(-50, 50)), RAD(MRANDOM(-50, 50))), ANGLES(RAD(MRANDOM(-5, 5)), RAD(MRANDOM(-5, 5)), RAD(MRANDOM(-5, 5))), VT(0, 0, 0), SIZE * 0.25, SIZE * 0.25, SIZE * 0.25, SIZE / 5, SIZE / 5, SIZE / 5, 0.05)
2126
				MagnitudeDamage("", "", "", "", 1, 1, 1, 1, FireballHitRefpart, SIZE / 2, false, 45, 70, 0, "Normal", RootPart, 0, 1, MRANDOM(10, 15), nil, false, true, nil, 0, 0, false)
2127
			else
2128
				FIREBALLDURATION = FIREBALLDURATION - (1 / 30) / Animation_Speed
2129
			end
2130
		until FIREBALLHIT ~= nil or FIREBALLDURATION <= 0
2131
	end))
2132
end
2133
2134
function project()
2135
	ATTACK = true
2136
	for i=0, 1, 0.1 / Animation_Speed do
2137
		Swait()
2138
			RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0.05 * Player_Size, 0 * Player_Size, -0.1 * Player_Size) * ANGLES(RAD(10), RAD(0), RAD(-40)), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
2139
			Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(0), RAD(0), RAD(40)) * ANGLES(RAD(-5), RAD(0), RAD(0)), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
2140
		    RightShoulder.C0 = Clerp(RightShoulder.C0, CF(0.25 * Player_Size, 0.5 * Player_Size, -1 * Player_Size) * ANGLES(RAD(70), RAD(-55), RAD(-100)) * ANGLES(RAD(20), RAD(25), RAD(-15)) * RIGHTSHOULDERC0, 0.4 / Animation_Speed)
2141
			LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(-60)) * LEFTSHOULDERC0, 0.2 / Animation_Speed)
2142
			RightHip.C0 = Clerp(RightHip.C0, CF(0.95 * Player_Size, -1 * Player_Size, -0.5 * Player_Size) * ANGLES(RAD(0), RAD(130), RAD(0)) * ANGLES(RAD(-1.25 - 2.5), RAD(0), RAD(0)), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
2143
			LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -0.9 * Player_Size, 0.25 * Player_Size) * ANGLES(RAD(0), RAD(-50), RAD(0)) * ANGLES(RAD(-2.5 + 2.5), RAD(0), RAD(0)), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
2144
			HandleWeld.C0 = Clerp(HandleWeld.C0, CF(0 * Player_Size, -1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-90), RAD(90), RAD(0)), 0.15 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
2145
		if StaggerHit.Value == true or Stagger.Value == true or Stun.Value == true then
2146
			break
2147
		end
2148
	end
2149
	CreateSound("971125740",Head, 1.2, MRANDOM(7, 9) / 10)
2150
	ShootFireball((CFrame.new(Head.Position.X + math.random(-12,12),Head.Position.Y + 12,Head.Position.Z + math.random(-12,12)) * CF(0 * Player_Size, -1 * Player_Size, 0 * Player_Size)).p, Mouse.hit.p, 3, 70, 2.1, 5, 10)
2151
	for i=0, 1, 0.1 / Animation_Speed*5 do
2152
		Swait()
2153
		local Pos = HitboxPart
2154
		local Offset = HitboxPart.CFrame * CF(0, 0.1 * Player_Size, 0)
2155
		local Color = "Cyan"
2156
		local Material = "Neon"
2157
		local TheDelay = 0.01
2158
		local Height = 6.2 * Player_Size
2159
		BLCF = Offset
2160
			RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0.05 * Player_Size, 0 * Player_Size, -0.1 * Player_Size) * ANGLES(RAD(10), RAD(0), RAD(-40)), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
2161
			Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(0), RAD(0), RAD(40)) * ANGLES(RAD(-5), RAD(0), RAD(0)), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
2162
		    RightShoulder.C0 = Clerp(RightShoulder.C0, CF(0.25 * Player_Size, 0.5 * Player_Size, -1 * Player_Size) * ANGLES(RAD(0), RAD(-55), RAD(-100)) * ANGLES(RAD(20), RAD(25), RAD(-15)) * RIGHTSHOULDERC0, 0.4 / Animation_Speed)
2163
			LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(-60)) * LEFTSHOULDERC0, 0.2 / Animation_Speed)
2164
			RightHip.C0 = Clerp(RightHip.C0, CF(0.95 * Player_Size, -1 * Player_Size, -0.5 * Player_Size) * ANGLES(RAD(0), RAD(130), RAD(0)) * ANGLES(RAD(-1.25 - 2.5), RAD(0), RAD(0)), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
2165
			LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -0.9 * Player_Size, 0.25 * Player_Size) * ANGLES(RAD(0), RAD(-50), RAD(0)) * ANGLES(RAD(-2.5 + 2.5), RAD(0), RAD(0)), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
2166
			HandleWeld.C0 = Clerp(HandleWeld.C0, CF(0 * Player_Size, -1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-90), RAD(90), RAD(0)), 0.15 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
2167
		if StaggerHit.Value == true or Stagger.Value == true or Stun.Value == true then
2168
			break
2169
		end
2170
	    local FIREEFFECTCOLORS = {"White", "White"}
2171
		MagicBlock(FIREEFFECTCOLORS[MRANDOM(1, #FIREEFFECTCOLORS)], "Neon", RightArm.CFrame * CF(0 * Player_Size, MRANDOM(-15, -10) / 10 * Player_Size, 0 * Player_Size) * ANGLES(RAD(90), 0, RAD(MRANDOM(-360, 360))), CF(0, 0, -0.1) * ANGLES(0, 0, RAD(MRANDOM(-20, 20))), VT(0, 1, 0), 50000, 50000, 50000, -1, -1, -1, 0.065)
2172
		MagicBlock(FIREEFFECTCOLORS[MRANDOM(1, #FIREEFFECTCOLORS)], "Neon", RightArm.CFrame * CF(0 * Player_Size, MRANDOM(-15, -10) / 10 * Player_Size, 0 * Player_Size) * ANGLES(RAD(90), 0, RAD(MRANDOM(-360, 360))), CF(0, 0, -0.1) * ANGLES(0, 0, RAD(MRANDOM(-20, 20))), VT(0, 1, 0), 50000, 50000, 50000, -1, -1, -1, 0.065)
2173
		--MagicBlock("White", "Neon", Head.CFrame * ANGLES(RAD(MRANDOM(-50, 50)), RAD(MRANDOM(-50, 50)), RAD(MRANDOM(-50, 50))), ANGLES(RAD(MRANDOM(-5, 5)), RAD(MRANDOM(-5, 5)), RAD(MRANDOM(-5, 5))), VT(0, 0, 0), 1500, 1500, 1500, 30, 30, 30, 0.1)
2174
	end
2175
	BLCF = nil
2176
	SCFR = nil
2177
	ATTACK = false
2178
end
2179
2180
function serverbless()
2181
    Humanoid.WalkSpeed = 0
2182
	ATTACK = true
2183
    kkk:Pause()
2184
	for i=0, 1, 0.1 / Animation_Speed do
2185
		Swait()
2186
			RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, 60 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
2187
			Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(-20), RAD(0), RAD(0)), 0.2 / Animation_Speed)
2188
			RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-40), RAD(0), RAD(20)) * RIGHTSHOULDERC0, 0.2 / Animation_Speed)
2189
			LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-40), RAD(0), RAD(-20)) * LEFTSHOULDERC0, 0.2 / Animation_Speed)
2190
			RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -1 * Player_Size, -0.3 * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(-20)), 0.2 / Animation_Speed)
2191
			LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -1 * Player_Size, -0.3 * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(20)), 0.2 / Animation_Speed)
2192
			HandleWeld.C0 = Clerp(HandleWeld.C0, CF(0 * Player_Size, -1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-90), RAD(90), RAD(0)), 0.2 / Animation_Speed)
2193
		if StaggerHit.Value == true or Stagger.Value == true or Stun.Value == true then
2194
			break
2195
		end
2196
	end
2197
	CreateSound("146224091", Character, 10, 1)
2198
    wait(25)
2199
    SIZE = 25
2200
	MagicBlock("Sea green", "Neon", Head.CFrame * ANGLES(RAD(MRANDOM(-50, 50)), RAD(MRANDOM(-50, 50)), RAD(MRANDOM(-50, 50))), ANGLES(RAD(MRANDOM(-5, 5)), RAD(MRANDOM(-5, 5)), RAD(MRANDOM(-5, 5))), VT(0, 0, 0), SIZE, SIZE, SIZE, SIZE / 3, SIZE / 3, SIZE / 3, 0.05)
2201
	MagicBlock("White", "Neon", Head.CFrame * ANGLES(RAD(MRANDOM(-50, 50)), RAD(MRANDOM(-50, 50)), RAD(MRANDOM(-50, 50))), ANGLES(RAD(MRANDOM(-5, 5)), RAD(MRANDOM(-5, 5)), RAD(MRANDOM(-5, 5))), VT(0, 0, 0), SIZE * 0.75, SIZE * 0.75, SIZE * 0.75, 50, 50, 50, 0.05)
2202
MagnitudeDamage(HITWEAPONSOUNDS[MRANDOM(1, #HITWEAPONSOUNDS)], HITARMORSOUNDS[MRANDOM(1, #HITARMORSOUNDS)], HITBLOCKSOUNDS[MRANDOM(1, #HITBLOCKSOUNDS)], HITPLAYERSOUNDS[MRANDOM(1, #HITPLAYERSOUNDS)], 1, 1, 1, 1, Head, 3000000000000000, false, 1, 1, 0, "Normal", RootPart, 0.5, 1, MRANDOM(50, 70), nil, true, false, nil, 0, 0, false)
2203
	CreateSound("971126018",workspace, 1.2, MRANDOM(7, 9) / 10)
2204
	for i=0, 1, 0.1 / Animation_Speed*5 do
2205
		Swait()
2206
		local Pos = HitboxPart
2207
		local Offset = HitboxPart.CFrame * CF(0, 0.1 * Player_Size, 0)
2208
		local Color = "Cyan"
2209
		local Material = "Neon"
2210
		local TheDelay = 0.01
2211
		local Height = 6.2 * Player_Size
2212
		BLCF = Offset
2213
			RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
2214
			Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(20), RAD(0), RAD(0)), 0.2 / Animation_Speed)
2215
			RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(60)) * RIGHTSHOULDERC0, 0.2 / Animation_Speed)
2216
			LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(-60)) * LEFTSHOULDERC0, 0.2 / Animation_Speed)
2217
			RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(20)), 0.2 / Animation_Speed)
2218
			LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(10)), 0.2 / Animation_Speed)
2219
			HandleWeld.C0 = Clerp(HandleWeld.C0, CF(0 * Player_Size, -1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-90), RAD(90), RAD(0)), 0.2 / Animation_Speed)
2220
		if StaggerHit.Value == true or Stagger.Value == true or Stun.Value == true then
2221
			break
2222
		end
2223
	end
2224
	BLCF = nil
2225
	SCFR = nil
2226
	ATTACK = false
2227
    kkk:Play()
2228
    Humanoid.WalkSpeed = 20
2229
end
2230
2231
function Attack1()
2232
	ATTACK = true
2233
	for i=0, 1, 0.1 / Animation_Speed do
2234
		Swait()
2235
			RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0.05 * Player_Size, 0 * Player_Size, -0.1 * Player_Size) * ANGLES(RAD(10), RAD(0), RAD(-40)), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
2236
			Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(0), RAD(0), RAD(40)) * ANGLES(RAD(-5), RAD(0), RAD(0)), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
2237
		    RightShoulder.C0 = Clerp(RightShoulder.C0, CF(0.25 * Player_Size, 0.5 * Player_Size, -1 * Player_Size) * ANGLES(RAD(70), RAD(-55), RAD(-100)) * ANGLES(RAD(20), RAD(25), RAD(-15)) * RIGHTSHOULDERC0, 0.4 / Animation_Speed)
2238
			LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(-60)) * LEFTSHOULDERC0, 0.2 / Animation_Speed)
2239
			RightHip.C0 = Clerp(RightHip.C0, CF(0.95 * Player_Size, -1 * Player_Size, -0.5 * Player_Size) * ANGLES(RAD(0), RAD(130), RAD(0)) * ANGLES(RAD(-1.25 - 2.5), RAD(0), RAD(0)), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
2240
			LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -0.9 * Player_Size, 0.25 * Player_Size) * ANGLES(RAD(0), RAD(-50), RAD(0)) * ANGLES(RAD(-2.5 + 2.5), RAD(0), RAD(0)), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
2241
			HandleWeld.C0 = Clerp(HandleWeld.C0, CF(0 * Player_Size, -1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-90), RAD(90), RAD(0)), 0.15 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
2242
		if StaggerHit.Value == true or Stagger.Value == true or Stun.Value == true then
2243
			break
2244
		end
2245
	end
2246
	CreateSound("971125740",Head, 1.2, MRANDOM(7, 9) / 10)
2247
	for i=0, 1, 0.1 / Animation_Speed*5 do
2248
		Swait()
2249
		local Pos = HitboxPart
2250
		local Offset = HitboxPart.CFrame * CF(0, 0.1 * Player_Size, 0)
2251
		local Color = "Cyan"
2252
		local Material = "Neon"
2253
		local TheDelay = 0.01
2254
		local Height = 6.2 * Player_Size
2255
		BLCF = Offset
2256
			RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0.05 * Player_Size, 0 * Player_Size, -0.1 * Player_Size) * ANGLES(RAD(10), RAD(0), RAD(-40)), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
2257
			Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(0), RAD(0), RAD(40)) * ANGLES(RAD(-5), RAD(0), RAD(0)), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
2258
		    RightShoulder.C0 = Clerp(RightShoulder.C0, CF(0.25 * Player_Size, 0.5 * Player_Size, -1 * Player_Size) * ANGLES(RAD(0), RAD(-55), RAD(-100)) * ANGLES(RAD(20), RAD(25), RAD(-15)) * RIGHTSHOULDERC0, 0.4 / Animation_Speed)
2259
			LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(-60)) * LEFTSHOULDERC0, 0.2 / Animation_Speed)
2260
			RightHip.C0 = Clerp(RightHip.C0, CF(0.95 * Player_Size, -1 * Player_Size, -0.5 * Player_Size) * ANGLES(RAD(0), RAD(130), RAD(0)) * ANGLES(RAD(-1.25 - 2.5), RAD(0), RAD(0)), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
2261
			LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -0.9 * Player_Size, 0.25 * Player_Size) * ANGLES(RAD(0), RAD(-50), RAD(0)) * ANGLES(RAD(-2.5 + 2.5), RAD(0), RAD(0)), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
2262
			HandleWeld.C0 = Clerp(HandleWeld.C0, CF(0 * Player_Size, -1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-90), RAD(90), RAD(0)), 0.15 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
2263
		if StaggerHit.Value == true or Stagger.Value == true or Stun.Value == true then
2264
			break
2265
		end
2266
	    local FIREEFFECTCOLORS = {"White", "Carnation pink"}
2267
MagnitudeDamage(HITWEAPONSOUNDS[MRANDOM(1, #HITWEAPONSOUNDS)], HITARMORSOUNDS[MRANDOM(1, #HITARMORSOUNDS)], HITBLOCKSOUNDS[MRANDOM(1, #HITBLOCKSOUNDS)], HITPLAYERSOUNDS[MRANDOM(1, #HITPLAYERSOUNDS)], 1, 1, 1, 1, Head, 30, false, 50, 70, 500, "Normal", RootPart, 0.5, 1, MRANDOM(50, 70), nil, true, false, nil, 0, 0, false)
2268
		MagicBlock(FIREEFFECTCOLORS[MRANDOM(1, #FIREEFFECTCOLORS)], "Neon", RightArm.CFrame * CF(0 * Player_Size, MRANDOM(-15, -10) / 10 * Player_Size, 0 * Player_Size) * ANGLES(RAD(90), 0, RAD(MRANDOM(-360, 360))), CF(0, 0, -0.1) * ANGLES(0, 0, RAD(MRANDOM(-20, 20))), VT(0, 1, 0), 50000, 50000, 50000, -1, -1, -1, 0.065)
2269
		MagicBlock(FIREEFFECTCOLORS[MRANDOM(1, #FIREEFFECTCOLORS)], "Neon", RightArm.CFrame * CF(0 * Player_Size, MRANDOM(-15, -10) / 10 * Player_Size, 0 * Player_Size) * ANGLES(RAD(90), 0, RAD(MRANDOM(-360, 360))), CF(0, 0, -0.1) * ANGLES(0, 0, RAD(MRANDOM(-20, 20))), VT(0, 1, 0), 50000, 50000, 50000, -1, -1, -1, 0.065)
2270
		--MagicBlock("White", "Neon", Head.CFrame * ANGLES(RAD(MRANDOM(-50, 50)), RAD(MRANDOM(-50, 50)), RAD(MRANDOM(-50, 50))), ANGLES(RAD(MRANDOM(-5, 5)), RAD(MRANDOM(-5, 5)), RAD(MRANDOM(-5, 5))), VT(0, 0, 0), 1500, 1500, 1500, 30, 30, 30, 0.1)
2271
	end
2272
	BLCF = nil
2273
	SCFR = nil
2274
	ATTACK = false
2275
end
2276
2277
function Attack2()
2278
	ATTACK = true
2279
	for i=0, 1, 0.1 / Animation_Speed do
2280
		Swait()
2281
			RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0.05 * Player_Size, 0 * Player_Size, -0.1 * Player_Size) * ANGLES(RAD(10), RAD(0), RAD(-40)), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
2282
			Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(0), RAD(0), RAD(40)) * ANGLES(RAD(-5), RAD(0), RAD(0)), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
2283
		    RightShoulder.C0 = Clerp(RightShoulder.C0, CF(0.25 * Player_Size, 0.5 * Player_Size, -1 * Player_Size) * ANGLES(RAD(70), RAD(-55), RAD(-100)) * ANGLES(RAD(20), RAD(25), RAD(-15)) * RIGHTSHOULDERC0, 0.4 / Animation_Speed)
2284
			LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(-60)) * LEFTSHOULDERC0, 0.2 / Animation_Speed)
2285
			RightHip.C0 = Clerp(RightHip.C0, CF(0.95 * Player_Size, -1 * Player_Size, -0.5 * Player_Size) * ANGLES(RAD(0), RAD(130), RAD(0)) * ANGLES(RAD(-1.25 - 2.5), RAD(0), RAD(0)), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
2286
			LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -0.9 * Player_Size, 0.25 * Player_Size) * ANGLES(RAD(0), RAD(-50), RAD(0)) * ANGLES(RAD(-2.5 + 2.5), RAD(0), RAD(0)), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
2287
			HandleWeld.C0 = Clerp(HandleWeld.C0, CF(0 * Player_Size, -1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-90), RAD(90), RAD(0)), 0.15 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
2288
		if StaggerHit.Value == true or Stagger.Value == true or Stun.Value == true then
2289
			break
2290
		end
2291
	end
2292
	CreateSound("971126018",Head, 1.2, MRANDOM(7, 9) / 10)
2293
	for i=0, 1, 0.1 / Animation_Speed*5 do
2294
		Swait()
2295
		local Pos = HitboxPart
2296
		local Offset = HitboxPart.CFrame * CF(0, 0.1 * Player_Size, 0)
2297
		local Color = "Cyan"
2298
		local Material = "Neon"
2299
		local TheDelay = 0.01
2300
		local Height = 6.2 * Player_Size
2301
		BLCF = Offset
2302
			RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0.05 * Player_Size, 0 * Player_Size, -0.1 * Player_Size) * ANGLES(RAD(10), RAD(0), RAD(-40)), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
2303
			Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(0), RAD(0), RAD(40)) * ANGLES(RAD(-5), RAD(0), RAD(0)), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
2304
		    RightShoulder.C0 = Clerp(RightShoulder.C0, CF(0.25 * Player_Size, 0.5 * Player_Size, -1 * Player_Size) * ANGLES(RAD(0), RAD(-55), RAD(-100)) * ANGLES(RAD(20), RAD(25), RAD(-15)) * RIGHTSHOULDERC0, 0.4 / Animation_Speed)
2305
			LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(-60)) * LEFTSHOULDERC0, 0.2 / Animation_Speed)
2306
			RightHip.C0 = Clerp(RightHip.C0, CF(0.95 * Player_Size, -1 * Player_Size, -0.5 * Player_Size) * ANGLES(RAD(0), RAD(130), RAD(0)) * ANGLES(RAD(-1.25 - 2.5), RAD(0), RAD(0)), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
2307
			LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -0.9 * Player_Size, 0.25 * Player_Size) * ANGLES(RAD(0), RAD(-50), RAD(0)) * ANGLES(RAD(-2.5 + 2.5), RAD(0), RAD(0)), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
2308
			HandleWeld.C0 = Clerp(HandleWeld.C0, CF(0 * Player_Size, -1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-90), RAD(90), RAD(0)), 0.15 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
2309
		if StaggerHit.Value == true or Stagger.Value == true or Stun.Value == true then
2310
			break
2311
		end
2312
	    local FIREEFFECTCOLORS = {"White", "Carnation pink"}
2313
MagnitudeDamage(HITWEAPONSOUNDS[MRANDOM(1, #HITWEAPONSOUNDS)], HITARMORSOUNDS[MRANDOM(1, #HITARMORSOUNDS)], HITBLOCKSOUNDS[MRANDOM(1, #HITBLOCKSOUNDS)], HITPLAYERSOUNDS[MRANDOM(1, #HITPLAYERSOUNDS)], 1, 1, 1, 1, Head, 30, false, 100, 100,-5, "Normal", RootPart, 0.5, 1, MRANDOM(50, 70), nil, true, false, nil, 0, 0, false)
2314
		MagicBlock(FIREEFFECTCOLORS[MRANDOM(1, #FIREEFFECTCOLORS)], "Neon", RightArm.CFrame * CF(0 * Player_Size, MRANDOM(-15, -10) / 10 * Player_Size, 0 * Player_Size) * ANGLES(RAD(90), 0, RAD(MRANDOM(-360, 360))), CF(0, 0, -0.1) * ANGLES(0, 0, RAD(MRANDOM(-20, 20))), VT(0, 1, 0), 50000, 50000, 50000, -1, -1, -1, 0.065)
2315
		MagicBlock(FIREEFFECTCOLORS[MRANDOM(1, #FIREEFFECTCOLORS)], "Neon", RightArm.CFrame * CF(0 * Player_Size, MRANDOM(-15, -10) / 10 * Player_Size, 0 * Player_Size) * ANGLES(RAD(90), 0, RAD(MRANDOM(-360, 360))), CF(0, 0, -0.1) * ANGLES(0, 0, RAD(MRANDOM(-20, 20))), VT(0, 1, 0), 50000, 50000, 50000, -1, -1, -1, 0.065)
2316
		--MagicBlock("White", "Neon", Head.CFrame * ANGLES(RAD(MRANDOM(-50, 50)), RAD(MRANDOM(-50, 50)), RAD(MRANDOM(-50, 50))), ANGLES(RAD(MRANDOM(-5, 5)), RAD(MRANDOM(-5, 5)), RAD(MRANDOM(-5, 5))), VT(0, 0, 0), 1500, 1500, 1500, 30, 30, 30, 0.1)
2317
	end
2318
	BLCF = nil
2319
	SCFR = nil
2320
	ATTACK = false
2321
end
2322
2323
function Attack3()
2324
	ATTACK = true
2325
	for i=0, 1, 0.1 / Animation_Speed do
2326
		Swait()
2327
			RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0.05 * Player_Size, 0 * Player_Size, -0.1 * Player_Size) * ANGLES(RAD(10), RAD(0), RAD(-40)), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
2328
			Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(0), RAD(0), RAD(40)) * ANGLES(RAD(-5), RAD(0), RAD(0)), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
2329
		    RightShoulder.C0 = Clerp(RightShoulder.C0, CF(0.25 * Player_Size, 0.5 * Player_Size, -1 * Player_Size) * ANGLES(RAD(70), RAD(-55), RAD(-100)) * ANGLES(RAD(20), RAD(25), RAD(-15)) * RIGHTSHOULDERC0, 0.4 / Animation_Speed)
2330
			LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(-60)) * LEFTSHOULDERC0, 0.2 / Animation_Speed)
2331
			RightHip.C0 = Clerp(RightHip.C0, CF(0.95 * Player_Size, -1 * Player_Size, -0.5 * Player_Size) * ANGLES(RAD(0), RAD(130), RAD(0)) * ANGLES(RAD(-1.25 - 2.5), RAD(0), RAD(0)), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
2332
			LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -0.9 * Player_Size, 0.25 * Player_Size) * ANGLES(RAD(0), RAD(-50), RAD(0)) * ANGLES(RAD(-2.5 + 2.5), RAD(0), RAD(0)), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
2333
			HandleWeld.C0 = Clerp(HandleWeld.C0, CF(0 * Player_Size, -1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-90), RAD(90), RAD(0)), 0.15 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
2334
		if StaggerHit.Value == true or Stagger.Value == true or Stun.Value == true then
2335
			break
2336
		end
2337
	end
2338
	CreateSound("260433487",Head, 1.2, MRANDOM(7, 9) / 10)
2339
	for i=0, 1, 0.1 / Animation_Speed*5 do
2340
		Swait()
2341
		local Pos = HitboxPart
2342
		local Offset = HitboxPart.CFrame * CF(0, 0.1 * Player_Size, 0)
2343
		local Color = "Cyan"
2344
		local Material = "Neon"
2345
		local TheDelay = 0.01
2346
		local Height = 6.2 * Player_Size
2347
		BLCF = Offset
2348
			RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0.05 * Player_Size, 0 * Player_Size, -0.1 * Player_Size) * ANGLES(RAD(10), RAD(0), RAD(-40)), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
2349
			Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(0), RAD(0), RAD(40)) * ANGLES(RAD(-5), RAD(0), RAD(0)), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
2350
		    RightShoulder.C0 = Clerp(RightShoulder.C0, CF(0.25 * Player_Size, 0.5 * Player_Size, -1 * Player_Size) * ANGLES(RAD(0), RAD(-55), RAD(-100)) * ANGLES(RAD(20), RAD(25), RAD(-15)) * RIGHTSHOULDERC0, 0.4 / Animation_Speed)
2351
			LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(-60)) * LEFTSHOULDERC0, 0.2 / Animation_Speed)
2352
			RightHip.C0 = Clerp(RightHip.C0, CF(0.95 * Player_Size, -1 * Player_Size, -0.5 * Player_Size) * ANGLES(RAD(0), RAD(130), RAD(0)) * ANGLES(RAD(-1.25 - 2.5), RAD(0), RAD(0)), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
2353
			LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -0.9 * Player_Size, 0.25 * Player_Size) * ANGLES(RAD(0), RAD(-50), RAD(0)) * ANGLES(RAD(-2.5 + 2.5), RAD(0), RAD(0)), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
2354
			HandleWeld.C0 = Clerp(HandleWeld.C0, CF(0 * Player_Size, -1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-90), RAD(90), RAD(0)), 0.15 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
2355
		if StaggerHit.Value == true or Stagger.Value == true or Stun.Value == true then
2356
			break
2357
		end
2358
	    local FIREEFFECTCOLORS = {"Steel blue", "Carnation pink"}
2359
MagnitudeDamage(HITWEAPONSOUNDS[MRANDOM(1, #HITWEAPONSOUNDS)], HITARMORSOUNDS[MRANDOM(1, #HITARMORSOUNDS)], HITBLOCKSOUNDS[MRANDOM(1, #HITBLOCKSOUNDS)], HITPLAYERSOUNDS[MRANDOM(1, #HITPLAYERSOUNDS)], 1, 1, 1, 1, Head, 30, false, 0, 0,-5, "Normal", RootPart, 0.5, 1, MRANDOM(50, 70), nil, true, false, nil, 0, 0, false)
2360
		MagicBlock(FIREEFFECTCOLORS[MRANDOM(1, #FIREEFFECTCOLORS)], "Neon", RightArm.CFrame * CF(0 * Player_Size, MRANDOM(-15, -10) / 10 * Player_Size, 0 * Player_Size) * ANGLES(RAD(90), 0, RAD(MRANDOM(-360, 360))), CF(0, 0, -0.1) * ANGLES(0, 0, RAD(MRANDOM(-20, 20))), VT(0, 1, 0), 50000, 50000, 50000, -1, -1, -1, 0.065)
2361
		MagicBlock(FIREEFFECTCOLORS[MRANDOM(1, #FIREEFFECTCOLORS)], "Neon", RightArm.CFrame * CF(0 * Player_Size, MRANDOM(-15, -10) / 10 * Player_Size, 0 * Player_Size) * ANGLES(RAD(90), 0, RAD(MRANDOM(-360, 360))), CF(0, 0, -0.1) * ANGLES(0, 0, RAD(MRANDOM(-20, 20))), VT(0, 1, 0), 50000, 50000, 50000, -1, -1, -1, 0.065)
2362
		--MagicBlock("White", "Neon", Head.CFrame * ANGLES(RAD(MRANDOM(-50, 50)), RAD(MRANDOM(-50, 50)), RAD(MRANDOM(-50, 50))), ANGLES(RAD(MRANDOM(-5, 5)), RAD(MRANDOM(-5, 5)), RAD(MRANDOM(-5, 5))), VT(0, 0, 0), 1500, 1500, 1500, 30, 30, 30, 0.1)
2363
	end
2364
	BLCF = nil
2365
	SCFR = nil
2366
	ATTACK = false
2367
end
2368
2369
function Attack4()
2370
	ATTACK = true
2371
	for i=0, 1, 0.1 / Animation_Speed do
2372
		Swait()
2373
			RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0.05 * Player_Size, 0 * Player_Size, -0.1 * Player_Size) * ANGLES(RAD(10), RAD(0), RAD(-40)), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
2374
			Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(0), RAD(0), RAD(40)) * ANGLES(RAD(-5), RAD(0), RAD(0)), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
2375
		    RightShoulder.C0 = Clerp(RightShoulder.C0, CF(0.25 * Player_Size, 0.5 * Player_Size, -1 * Player_Size) * ANGLES(RAD(70), RAD(-55), RAD(-100)) * ANGLES(RAD(20), RAD(25), RAD(-15)) * RIGHTSHOULDERC0, 0.4 / Animation_Speed)
2376
			LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(-60)) * LEFTSHOULDERC0, 0.2 / Animation_Speed)
2377
			RightHip.C0 = Clerp(RightHip.C0, CF(0.95 * Player_Size, -1 * Player_Size, -0.5 * Player_Size) * ANGLES(RAD(0), RAD(130), RAD(0)) * ANGLES(RAD(-1.25 - 2.5), RAD(0), RAD(0)), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
2378
			LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -0.9 * Player_Size, 0.25 * Player_Size) * ANGLES(RAD(0), RAD(-50), RAD(0)) * ANGLES(RAD(-2.5 + 2.5), RAD(0), RAD(0)), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
2379
			HandleWeld.C0 = Clerp(HandleWeld.C0, CF(0 * Player_Size, -1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-90), RAD(90), RAD(0)), 0.15 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
2380
		if StaggerHit.Value == true or Stagger.Value == true or Stun.Value == true then
2381
			break
2382
		end
2383
	end
2384
	CreateSound("319467359",Head, 1.2, MRANDOM(7, 9) / 10)
2385
	for i=0, 1, 0.1 / Animation_Speed*5 do
2386
		Swait()
2387
		local Pos = HitboxPart
2388
		local Offset = HitboxPart.CFrame * CF(0, 0.1 * Player_Size, 0)
2389
		local Color = "Cyan"
2390
		local Material = "Neon"
2391
		local TheDelay = 0.01
2392
		local Height = 6.2 * Player_Size
2393
		BLCF = Offset
2394
			RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0.05 * Player_Size, 0 * Player_Size, -0.1 * Player_Size) * ANGLES(RAD(10), RAD(0), RAD(-40)), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
2395
			Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(0), RAD(0), RAD(40)) * ANGLES(RAD(-5), RAD(0), RAD(0)), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
2396
		    RightShoulder.C0 = Clerp(RightShoulder.C0, CF(0.25 * Player_Size, 0.5 * Player_Size, -1 * Player_Size) * ANGLES(RAD(0), RAD(-55), RAD(-100)) * ANGLES(RAD(20), RAD(25), RAD(-15)) * RIGHTSHOULDERC0, 0.4 / Animation_Speed)
2397
			LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(-60)) * LEFTSHOULDERC0, 0.2 / Animation_Speed)
2398
			RightHip.C0 = Clerp(RightHip.C0, CF(0.95 * Player_Size, -1 * Player_Size, -0.5 * Player_Size) * ANGLES(RAD(0), RAD(130), RAD(0)) * ANGLES(RAD(-1.25 - 2.5), RAD(0), RAD(0)), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
2399
			LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -0.9 * Player_Size, 0.25 * Player_Size) * ANGLES(RAD(0), RAD(-50), RAD(0)) * ANGLES(RAD(-2.5 + 2.5), RAD(0), RAD(0)), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
2400
			HandleWeld.C0 = Clerp(HandleWeld.C0, CF(0 * Player_Size, -1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-90), RAD(90), RAD(0)), 0.15 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
2401
		if StaggerHit.Value == true or Stagger.Value == true or Stun.Value == true then
2402
			break
2403
		end
2404
	    local FIREEFFECTCOLORS = {"Sea green", "Carnation pink"}
2405
MagnitudeDamage(HITWEAPONSOUNDS[MRANDOM(1, #HITWEAPONSOUNDS)], HITARMORSOUNDS[MRANDOM(1, #HITARMORSOUNDS)], HITBLOCKSOUNDS[MRANDOM(1, #HITBLOCKSOUNDS)], HITPLAYERSOUNDS[MRANDOM(1, #HITPLAYERSOUNDS)], 1, 1, 1, 1, Head, 30, false, 1, 1, 0, "Normal", RootPart, 0.5, 1, MRANDOM(50, 70), nil, true, false, nil, 0, 0, false)
2406
		MagicBlock(FIREEFFECTCOLORS[MRANDOM(1, #FIREEFFECTCOLORS)], "Neon", RightArm.CFrame * CF(0 * Player_Size, MRANDOM(-15, -10) / 10 * Player_Size, 0 * Player_Size) * ANGLES(RAD(90), 0, RAD(MRANDOM(-360, 360))), CF(0, 0, -0.1) * ANGLES(0, 0, RAD(MRANDOM(-20, 20))), VT(0, 1, 0), 50000, 50000, 50000, -1, -1, -1, 0.065)
2407
		MagicBlock(FIREEFFECTCOLORS[MRANDOM(1, #FIREEFFECTCOLORS)], "Neon", RightArm.CFrame * CF(0 * Player_Size, MRANDOM(-15, -10) / 10 * Player_Size, 0 * Player_Size) * ANGLES(RAD(90), 0, RAD(MRANDOM(-360, 360))), CF(0, 0, -0.1) * ANGLES(0, 0, RAD(MRANDOM(-20, 20))), VT(0, 1, 0), 50000, 50000, 50000, -1, -1, -1, 0.065)
2408
		--MagicBlock("White", "Neon", Head.CFrame * ANGLES(RAD(MRANDOM(-50, 50)), RAD(MRANDOM(-50, 50)), RAD(MRANDOM(-50, 50))), ANGLES(RAD(MRANDOM(-5, 5)), RAD(MRANDOM(-5, 5)), RAD(MRANDOM(-5, 5))), VT(0, 0, 0), 1500, 1500, 1500, 30, 30, 30, 0.1)
2409
	end
2410
	BLCF = nil
2411
	SCFR = nil
2412
	ATTACK = false
2413
end
2414
2415
function grant()
2416
	ATTACK = true
2417
	for i=0, 1, 0.1 / Animation_Speed do
2418
		Swait()
2419
			RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0.05 * Player_Size, 0 * Player_Size, -0.1 * Player_Size) * ANGLES(RAD(10), RAD(0), RAD(-40)), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
2420
			Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(0), RAD(0), RAD(40)) * ANGLES(RAD(-5), RAD(0), RAD(0)), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
2421
		    RightShoulder.C0 = Clerp(RightShoulder.C0, CF(0.25 * Player_Size, 0.5 * Player_Size, -1 * Player_Size) * ANGLES(RAD(70), RAD(-55), RAD(-100)) * ANGLES(RAD(20), RAD(25), RAD(-15)) * RIGHTSHOULDERC0, 0.4 / Animation_Speed)
2422
			LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(-60)) * LEFTSHOULDERC0, 0.2 / Animation_Speed)
2423
			RightHip.C0 = Clerp(RightHip.C0, CF(0.95 * Player_Size, -1 * Player_Size, -0.5 * Player_Size) * ANGLES(RAD(0), RAD(130), RAD(0)) * ANGLES(RAD(-1.25 - 2.5), RAD(0), RAD(0)), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
2424
			LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -0.9 * Player_Size, 0.25 * Player_Size) * ANGLES(RAD(0), RAD(-50), RAD(0)) * ANGLES(RAD(-2.5 + 2.5), RAD(0), RAD(0)), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
2425
			HandleWeld.C0 = Clerp(HandleWeld.C0, CF(0 * Player_Size, -1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-90), RAD(90), RAD(0)), 0.15 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
2426
		if StaggerHit.Value == true or Stagger.Value == true or Stun.Value == true then
2427
			break
2428
		end
2429
	end
2430
	CreateSound("2800815",Head, 1.2, MRANDOM(7, 9) / 10)
2431
	for i=0, 1, 0.1 / Animation_Speed*5 do
2432
		Swait()
2433
		local Pos = HitboxPart
2434
		local Offset = HitboxPart.CFrame * CF(0, 0.1 * Player_Size, 0)
2435
		local Color = "Cyan"
2436
		local Material = "Neon"
2437
		local TheDelay = 0.01
2438
		local Height = 6.2 * Player_Size
2439
		BLCF = Offset
2440
			RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0.05 * Player_Size, 0 * Player_Size, -0.1 * Player_Size) * ANGLES(RAD(10), RAD(0), RAD(-40)), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
2441
			Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(0), RAD(0), RAD(40)) * ANGLES(RAD(-5), RAD(0), RAD(0)), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
2442
		    RightShoulder.C0 = Clerp(RightShoulder.C0, CF(0.25 * Player_Size, 0.5 * Player_Size, -1 * Player_Size) * ANGLES(RAD(0), RAD(-55), RAD(-100)) * ANGLES(RAD(20), RAD(25), RAD(-15)) * RIGHTSHOULDERC0, 0.4 / Animation_Speed)
2443
			LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(-60)) * LEFTSHOULDERC0, 0.2 / Animation_Speed)
2444
			RightHip.C0 = Clerp(RightHip.C0, CF(0.95 * Player_Size, -1 * Player_Size, -0.5 * Player_Size) * ANGLES(RAD(0), RAD(130), RAD(0)) * ANGLES(RAD(-1.25 - 2.5), RAD(0), RAD(0)), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
2445
			LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -0.9 * Player_Size, 0.25 * Player_Size) * ANGLES(RAD(0), RAD(-50), RAD(0)) * ANGLES(RAD(-2.5 + 2.5), RAD(0), RAD(0)), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
2446
			HandleWeld.C0 = Clerp(HandleWeld.C0, CF(0 * Player_Size, -1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-90), RAD(90), RAD(0)), 0.15 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
2447
		if StaggerHit.Value == true or Stagger.Value == true or Stun.Value == true then
2448
			break
2449
		end
2450
	    local FIREEFFECTCOLORS = {"White", "White"}
2451
MagnitudeDamage(HITWEAPONSOUNDS[MRANDOM(1, #HITWEAPONSOUNDS)], HITARMORSOUNDS[MRANDOM(1, #HITARMORSOUNDS)], HITBLOCKSOUNDS[MRANDOM(1, #HITBLOCKSOUNDS)], HITPLAYERSOUNDS[MRANDOM(1, #HITPLAYERSOUNDS)], 1, 1, 1, 1, Head, 10, false, 2, 2, 0, "Normal", RootPart, 0.5, 1, MRANDOM(50, 70), nil, true, false, nil, 0, 0, false)
2452
		MagicBlock(FIREEFFECTCOLORS[MRANDOM(1, #FIREEFFECTCOLORS)], "Neon", RightArm.CFrame * CF(0 * Player_Size, MRANDOM(-15, -10) / 10 * Player_Size, 0 * Player_Size) * ANGLES(RAD(90), 0, RAD(MRANDOM(-360, 360))), CF(0, 0, -0.1) * ANGLES(0, 0, RAD(MRANDOM(-20, 20))), VT(0, 1, 0), 50000, 50000, 50000, -1, -1, -1, 0.065)
2453
		MagicBlock(FIREEFFECTCOLORS[MRANDOM(1, #FIREEFFECTCOLORS)], "Neon", RightArm.CFrame * CF(0 * Player_Size, MRANDOM(-15, -10) / 10 * Player_Size, 0 * Player_Size) * ANGLES(RAD(90), 0, RAD(MRANDOM(-360, 360))), CF(0, 0, -0.1) * ANGLES(0, 0, RAD(MRANDOM(-20, 20))), VT(0, 1, 0), 50000, 50000, 50000, -1, -1, -1, 0.065)
2454
		--MagicBlock("White", "Neon", Head.CFrame * ANGLES(RAD(MRANDOM(-50, 50)), RAD(MRANDOM(-50, 50)), RAD(MRANDOM(-50, 50))), ANGLES(RAD(MRANDOM(-5, 5)), RAD(MRANDOM(-5, 5)), RAD(MRANDOM(-5, 5))), VT(0, 0, 0), 1500, 1500, 1500, 30, 30, 30, 0.1)
2455
	end
2456
	BLCF = nil
2457
	SCFR = nil
2458
	ATTACK = false
2459
end
2460
2461
function ray()
2462
	ATTACK = true
2463
	local FIREEFFECTCOLORS = {"Carnation pink", "White", "Maroon"}
2464
	for i=0, 1, 0.1 / Animation_Speed do
2465
		Swait()
2466
		MagicBlock(FIREEFFECTCOLORS[MRANDOM(1, #FIREEFFECTCOLORS)], "Neon", LeftArm.CFrame * CF(0 * Player_Size, MRANDOM(-15, -10) / 10 * Player_Size, 0 * Player_Size) * ANGLES(RAD(90), 0, RAD(MRANDOM(-360, 360))), CF(0, 0, -0.1) * ANGLES(0, 0, RAD(MRANDOM(-20, 20))), VT(0, 1, 0), 1, 1, 1, -0.05, -0.05, -0.05, 0.05)
2467
		--MagicBlock(FIREEFFECTCOLORS[MRANDOM(1, #FIREEFFECTCOLORS)], "Neon", RootPart.CFrame * CF(0 * Player_Size, MRANDOM(-2, 2) * Player_Size, 0 * Player_Size) * ANGLES(0, RAD(MRANDOM(-360, 360)), 0), CF(0, MRANDOM(5, 10) / 100, 0) * ANGLES(0, RAD(MRANDOM(-10, 10)), 0), VT(MRANDOM(20, 40) / 10, 0, 0), 1, 1, 1, -0.05, -0.05, -0.05, 0.05)
2468
		RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, -0.2 * Player_Size) * ANGLES(RAD(5), RAD(0), RAD(-40)), 0.4 / Animation_Speed)
2469
		Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(0), RAD(0), RAD(35)) * ANGLES(RAD(2.5), RAD(0), RAD(0)), 0.4 / Animation_Speed)
2470
		RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(70), RAD(0), RAD(45)) * RIGHTSHOULDERC0, 0.4 / Animation_Speed)
2471
		LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.75 * Player_Size, -0.5 * Player_Size) * ANGLES(RAD(90), RAD(0), RAD(50)) * ANGLES(RAD(80), RAD(-20), RAD(-30)) * LEFTSHOULDERC0, 0.4 / Animation_Speed)
2472
		RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -0.8 * Player_Size, -0.2 * Player_Size) * ANGLES(RAD(0), RAD(70), RAD(0)) * ANGLES(RAD(-7.5), RAD(0), RAD(-5)), 0.4 / Animation_Speed)
2473
		LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -0.8 * Player_Size, 0.05 * Player_Size) * ANGLES(RAD(0), RAD(-40), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(-10)), 0.4 / Animation_Speed)
2474
		HandleWeld.C0 = Clerp(HandleWeld.C0, CF(0 * Player_Size, -1 * Player_Size, -0.25 * Player_Size) * ANGLES(RAD(-20), RAD(90), RAD(0)), 0.4 / Animation_Speed)
2475
		if StaggerHit.Value == true or Stagger.Value == true or Stun.Value == true then
2476
			break
2477
		end
2478
	end
2479
    local framed = CFrame.new(Mouse.hit.p.X,Mouse.hit.p.Y+250,Mouse.hit.p.Z)
2480
    local cloud = NewEffect(framed,"Cloud",BrickColor.new("Dark stone grey"),"http://www.roblox.com/asset/?id=111820358","",Vector3.new(1000,150,1000))
2481
	CreateSound("199978087", workspace, 10, MRANDOM(9, 11) / 10)
2482
	MagicBlock("Carnation pink", "Neon", LeftArm.CFrame * CF(0 * Player_Size, -1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(MRANDOM(-50, 50)), RAD(MRANDOM(-50, 50)), RAD(MRANDOM(-50, 50))), ANGLES(0, 0, 0), VT(0, 0, 0), 5, 5, 5, 0.5, 0.5, 0.5, 0.05)
2483
	MagicBlock("White", "Neon", LeftArm.CFrame * CF(0 * Player_Size, -1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(MRANDOM(-50, 50)), RAD(MRANDOM(-50, 50)), RAD(MRANDOM(-50, 50))), ANGLES(0, 0, 0), VT(0, 0, 0), 0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.05)
2484
	MagicBlock("Maroon", "Neon", LeftArm.CFrame * CF(0 * Player_Size, -1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(MRANDOM(-50, 50)), RAD(MRANDOM(-50, 50)), RAD(MRANDOM(-50, 50))), ANGLES(0, 0, 0), VT(0, 0, 0), 0.05, 0.05, 0.05, 0.5, 0.5, 0.5, 0.05)
2485
	for i=0, 1, 0.1 / Animation_Speed do
2486
		Swait()
2487
		RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, -0.2 * Player_Size) * ANGLES(RAD(5), RAD(0), RAD(-30)), 0.4 / Animation_Speed)
2488
		Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(0), RAD(0), RAD(25)) * ANGLES(RAD(5), RAD(0), RAD(0)), 0.4 / Animation_Speed)
2489
		RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(70), RAD(0), RAD(45)) * RIGHTSHOULDERC0, 0.4 / Animation_Speed)
2490
		LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.25 * Player_Size, -0.25 * Player_Size) * ANGLES(RAD(90), RAD(0), RAD(-20 + MRANDOM(-2.5, 2.5))) * ANGLES(RAD(70 + MRANDOM(-2.5, 2.5)), RAD(40), RAD(0)) * LEFTSHOULDERC0, 0.4 / Animation_Speed)
2491
		RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -0.8 * Player_Size, -0.2 * Player_Size) * ANGLES(RAD(0), RAD(60), RAD(0)) * ANGLES(RAD(-10), RAD(0), RAD(-7.5)), 0.4 / Animation_Speed)
2492
		LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -0.8 * Player_Size, 0.05 * Player_Size) * ANGLES(RAD(0), RAD(-50), RAD(0)) * ANGLES(RAD(-2.5), RAD(0), RAD(-12.5)), 0.4 / Animation_Speed)
2493
		HandleWeld.C0 = Clerp(HandleWeld.C0, CF(0 * Player_Size, -1 * Player_Size, -0.25 * Player_Size) * ANGLES(RAD(-20), RAD(90), RAD(0)), 0.4 / Animation_Speed)
2494
		--[[RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, -0.2 * Player_Size) * ANGLES(RAD(5), RAD(0), RAD(40)), 0.4 / Animation_Speed)
2495
		Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(0), RAD(0), RAD(-30)) * ANGLES(RAD(5), RAD(0), RAD(0)), 0.4 / Animation_Speed)
2496
		RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(70), RAD(0), RAD(45)) * RIGHTSHOULDERC0, 0.4 / Animation_Speed)
2497
		LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0 * Player_Size, -0.25 * Player_Size) * ANGLES(RAD(90), RAD(0), RAD(-10 + MRANDOM(-2.5, 2.5))) * ANGLES(RAD(40 + MRANDOM(-2.5, 2.5)), RAD(70), RAD(20)) * LEFTSHOULDERC0, 0.4 / Animation_Speed)
2498
		RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -0.8 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(60), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(10)), 0.4 / Animation_Speed)
2499
		LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -0.8 * Player_Size, -0.2 * Player_Size) * ANGLES(RAD(0), RAD(-80), RAD(0)) * ANGLES(RAD(-7.5), RAD(0), RAD(5)), 0.4 / Animation_Speed)
2500
		HandleWeld.C0 = Clerp(HandleWeld.C0, CF(0 * Player_Size, -1 * Player_Size, -0.25 * Player_Size) * ANGLES(RAD(-20), RAD(90), RAD(0)), 0.4 / Animation_Speed)]]--
2501
		if StaggerHit.Value == true or Stagger.Value == true or Stun.Value == true then
2502
			break
2503
		end
2504
	end
2505
    wait(1)
2506
	CreateSound("438666077", workspace, 10, MRANDOM(8, 12) / 10)
2507
    wait(0.3)
2508
	--CreateSound("444667859", workspace, 10, MRANDOM(4, 6) / 10)
2509
    local cm = Instance.new("CylinderMesh")
2510
    local cm2 = cm:Clone()
2511
    local death = Instance.new("Part")
2512
    death.CFrame = CFrame.new(framed.X,framed.Y-250,framed.Z)
2513
    death.Material = "Neon"
2514
    death.BrickColor = BrickColor.new("Carnation pink")
2515
    death.Size = Vector3.new(25,600,25)
2516
    death.Transparency = 0.25
2517
    death.Parent = Effects
2518
    death.CanCollide = false
2519
    death.Anchored = true
2520
    cm.Parent = death
2521
    local death2 = Instance.new("Part")
2522
    death2.CFrame = CFrame.new(framed.X,framed.Y-250,framed.Z)
2523
    death2.Material = "Neon"
2524
    death2.BrickColor = BrickColor.new("White")
2525
    death2.Size = Vector3.new(27,600,27)
2526
    death2.Parent = Effects
2527
    death2.CanCollide = false
2528
    death2.Anchored = true
2529
    cm2.Parent = death2
2530
    local exp = Instance.new("Part")
2531
    exp.Parent = Effects
2532
    exp.Size = Vector3.new(1,1,1)
2533
    exp.Anchored = true
2534
    exp.Transparency = 0
2535
    exp.CanCollide = false
2536
    exp.CFrame = death.CFrame
2537
    exp.BrickColor = BrickColor.new("Carnation pink")
2538
    exp.Material = "Neon"
2539
    local meshe = Instance.new("SpecialMesh")
2540
    meshe.MeshType = "Sphere"
2541
    meshe.Parent = exp
2542
    meshe.Scale = Vector3.new(0.8,0.8,0.8)
2543
    local exp2 = Instance.new("Part")
2544
    exp2.Parent = Effects
2545
    exp2.Size = Vector3.new(1,1,1)
2546
    exp2.Anchored = true
2547
    exp2.Transparency = 0.25
2548
    exp2.CanCollide = false
2549
    exp2.CFrame = death.CFrame
2550
    exp2.BrickColor = BrickColor.new("White")
2551
    exp2.Material = "Neon"
2552
    local meshe2 = Instance.new("SpecialMesh")
2553
    meshe2.MeshType = "Sphere"
2554
    meshe2.Parent = exp2
2555
    meshe2.Scale = Vector3.new(1,1,1)
2556
    local shockwave = Instance.new("Part")
2557
    shockwave.CanCollide = false
2558
    shockwave.Anchored = true
2559
    shockwave.Parent = Effects
2560
    shockwave.BrickColor = BrickColor.new("Carnation pink")
2561
    local meshg = Instance.new("SpecialMesh")
2562
    meshg.MeshId = "http://www.roblox.com/asset/?id=20329976"
2563
    meshg.Parent = shockwave
2564
    meshg.Scale = Vector3.new(3, 12, 3)
2565
    meshg.Offset = Vector3.new(0,0,-3)
2566
    shockwave.CFrame = death.CFrame
2567
    SIZE = 25
2568
    for size = 1, 45 do
2569
    MagnitudeDamage(HITWEAPONSOUNDS[MRANDOM(1, #HITWEAPONSOUNDS)], HITARMORSOUNDS[MRANDOM(1, #HITARMORSOUNDS)], HITBLOCKSOUNDS[MRANDOM(1, #HITBLOCKSOUNDS)], HITPLAYERSOUNDS[MRANDOM(1, #HITPLAYERSOUNDS)], 1, 1, 1, 1, exp, 120, false, 100, 100, MRANDOM(35, 50), "Normal", RootPart, 0.5, 1, MRANDOM(5, 10), nil, true, false, nil, 0, 0, false)
2570
				MagicBlock("White", "Neon", death.CFrame * ANGLES(RAD(MRANDOM(-50, 50)), RAD(MRANDOM(-50, 50)), RAD(MRANDOM(-50, 50))), ANGLES(RAD(MRANDOM(-5, 5)), RAD(MRANDOM(-5, 5)), RAD(MRANDOM(-5, 5))), VT(0, 0, 0), SIZE, SIZE, SIZE, SIZE / 3, SIZE / 3, SIZE / 3, 0.05)
2571
				MagicBlock("Carnation pink", "Neon", death.CFrame * ANGLES(RAD(MRANDOM(-50, 50)), RAD(MRANDOM(-50, 50)), RAD(MRANDOM(-50, 50))), ANGLES(RAD(MRANDOM(-5, 5)), RAD(MRANDOM(-5, 5)), RAD(MRANDOM(-5, 5))), VT(0, 0, 0), SIZE * 0.75, SIZE * 0.75, SIZE * 0.75, 50, 50, 50, 0.05)
2572
        meshe.Scale = meshe.Scale + Vector3.new(6,6,6)
2573
        exp.Transparency = exp.Transparency + (1/45)
2574
        meshe2.Scale = meshe2.Scale + Vector3.new(6,6,6)
2575
        exp2.Transparency = exp2.Transparency + (1/45)
2576
        cm.Scale = cm.Scale - Vector3.new(1/45,0,1/45)
2577
        cm2.Scale = cm2.Scale - Vector3.new(1/45,0,1/45)
2578
        shockwave.Transparency = shockwave.Transparency + 1/45
2579
        meshg.Scale = meshg.Scale + Vector3.new(8,3,8)
2580
        wait(0.025)
2581
    end
2582
    exp:Destroy()
2583
    exp2:Destroy()
2584
    death:Destroy()
2585
    death2:Destroy()
2586
    wait(1.2)
2587
    Effects:ClearAllChildren()
2588
	ATTACK = false
2589
end
2590
2591
function Move1()
2592
	ATTACK = true
2593
	ATTACK = false
2594
end
2595
2596
function Move2()
2597
	ATTACK = true
2598
	ATTACK = false
2599
end
2600
2601
function Move3()
2602
	ATTACK = true
2603
	ATTACK = false
2604
end
2605
2606
function Move4()
2607
	ATTACK = true
2608
	ATTACK = false
2609
end
2610
2611
--//=================================\\
2612
--\\=================================//
2613
2614
2615
2616
2617
2618
--//=================================\\
2619
--||	      SET THINGS UP
2620
--\\=================================//
2621
2622
if Start_Equipped == true then
2623
	ATTACK = true
2624
	EQUIPPED = true
2625
	if Disable_Animate == true then
2626
		ANIMATE.Parent = nil
2627
		local IDLEANIMATION = Humanoid:LoadAnimation(ROBLOXIDLEANIMATION)
2628
		IDLEANIMATION:Play()
2629
	end
2630
	if Disable_Animator == true then
2631
		ANIMATOR.Parent = nil
2632
	end
2633
	if Disable_Moving_Arms == true then
2634
		RSH = Torso["Right Shoulder"]
2635
		LSH = Torso["Left Shoulder"]
2636
		RSH.Parent = nil
2637
		LSH.Parent = nil
2638
		if Use_Motors_Instead_Of_Welds == true then
2639
			RightShoulder = IT("Motor")
2640
			LeftShoulder = IT("Motor")
2641
		else
2642
			RightShoulder = IT("Weld")
2643
			LeftShoulder = IT("Weld")
2644
		end
2645
		RightShoulder.Name = "Right Shoulder"
2646
		RightShoulder.Part0 = Torso
2647
		RightShoulder.C0 = CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size)
2648
		RightShoulder.C1 = CF(0 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) 
2649
		RightShoulder.Part1 = Character["Right Arm"]
2650
		RightShoulder.Parent = Torso
2651
		LeftShoulder.Name = "Left Shoulder"
2652
		LeftShoulder.Part0 = Torso
2653
		LeftShoulder.C0=CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size)
2654
		LeftShoulder.C1=CF(0 * Player_Size, 0.5 * Player_Size, 0 * Player_Size)
2655
		LeftShoulder.Part1 = Character["Left Arm"]
2656
		LeftShoulder.Parent = Torso
2657
		RIGHTSHOULDERC0 = CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0))
2658
		LEFTSHOULDERC0 = CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0))
2659
	end
2660
	if Start_Equipped_With_Equipped_Animation == true then
2661
		Swait()
2662
	end
2663
	ATTACK = false
2664
end
2665
2666
--//=================================\\
2667
--\\=================================//
2668
2669
2670
2671
2672
2673
--//=================================\\
2674
--||	  ASSIGN THINGS TO KEYS
2675
--\\=================================//
2676
2677
Humanoid.Changed:connect(function(Jump)
2678
	if Jump == "Jump" and (Disable_Jump == true or DISABLEJUMPING == true) then
2679
		Humanoid.Jump = false
2680
	end
2681
end)
2682
2683
function MouseDown(Mouse)
2684
	if ATTACK == true or EQUIPPED == false then
2685
		return
2686
	end
2687
	HOLD = true
2688
		Attack1()
2689
	end
2690
	coroutine.resume(coroutine.create(function()
2691
		for i=1, 50 do
2692
			if ATTACK == false then
2693
				Swait()
2694
			end
2695
		end
2696
		if ATTACK == false then
2697
			COMBO = 1
2698
		end
2699
	end))
2700
2701
function unanchor()
2702
g = Character:GetChildren()
2703
for i = 1, #g do
2704
if g[i].ClassName == "Part" then
2705
g[i].Anchored = false
2706
end
2707
end
2708
end
2709
2710
function MouseUp(Mouse)
2711
HOLD = false
2712
end
2713
2714
function KeyDown(Key)
2715
	if Key == "f" and Can_Equip_Or_Unequip == true and ATTACK == false then
2716
		ATTACK = true
2717
		COMBO = 1
2718
		if EQUIPPED == false then
2719
			EQUIPPED = true
2720
			if Disable_Animate == true then
2721
				ANIMATE.Parent = nil
2722
				local IDLEANIMATION = Humanoid:LoadAnimation(ROBLOXIDLEANIMATION)
2723
				IDLEANIMATION:Play()
2724
			end
2725
			if Disable_Animator == true then
2726
				ANIMATOR.Parent = nil
2727
			end
2728
			Swait()
2729
		elseif EQUIPPED == true then
2730
		end
2731
		ATTACK = false
2732
	end
2733
	if Key == "e" and EQUIPPED == true and ATTACK == false then
2734
    Attack2()
2735
	end
2736
	if Key == "z" and EQUIPPED == true and ATTACK == false and CO1 >= Cooldown_1 and Mana.Value >= Skill_1_Mana_Cost and Character:FindFirstChild("Granted") == nil then
2737
       ray()
2738
	end
2739
	if Key == "x" and EQUIPPED == true and ATTACK == false and CO2 >= Cooldown_2 and Mana.Value >= Skill_2_Mana_Cost then
2740
	Attack3()
2741
	end
2742
	if Key == "c" and EQUIPPED == true and ATTACK == false and CO3 >= Cooldown_3 and Mana.Value >= Skill_3_Mana_Cost then
2743
    project()
2744
	end
2745
	if Key == "v" and EQUIPPED == true and ATTACK == false and CO4 >= Cooldown_4 and Mana.Value >= Skill_4_Mana_Cost then
2746
    Attack4()
2747
	end
2748
		if Key == "q" and Character:FindFirstChild("Granted") == nil then
2749
        --grant()
2750
		end
2751
		if Key == "" then
2752
			CreateSound("1285760020", Head, 5, 1)
2753
		end
2754
		if Key == "6" then
2755
		serverbless()
2756
		end
2757
		if Key == "5" then
2758
			CreateSound("165487479", Head, 5, 0.9)
2759
		end
2760
		if Key == "4" then
2761
			CreateSound("660244878", Head, 5, 0.9)
2762
		end
2763
		if Key == "3" then
2764
			CreateSound("1285760020", Head, 5, 1)
2765
		end
2766
		if Key == "" then
2767
			CreateSound("907329044", Head, 5, 0.9)
2768
		end
2769
		if Key == "2" then
2770
			CreateSound("1035350628", Head, 5, 0.9)
2771
		end
2772
		if Key == "m" then
2773
			Humanoid.MaxHealth = "inf"
2774
            Humanoid.Health = "inf"
2775
	        CreateSound("2800815",Head, 1.2, MRANDOM(7, 9) / 10)
2776
            unanchor()
2777
            MagicBlock(BrickColor.new("Lime green"), "Neon", Torso.CFrame * CF(0 * Player_Size, MRANDOM(-15, -10) / 10 * Player_Size, 0 * Player_Size) * ANGLES(RAD(90), 0, RAD(MRANDOM(-360, 360))), CF(0, 0, -0.1) * ANGLES(0, 0, RAD(MRANDOM(-20, 20))), VT(0, 1, 0), 50000, 50000, 50000, -1, -1, -1, 0.075)
2778
            MagicBlock(BrickColor.new("Lime green"), "Neon", Torso.CFrame * CF(0 * Player_Size, MRANDOM(-15, -10) / 10 * Player_Size, 0 * Player_Size) * ANGLES(RAD(90), 0, RAD(MRANDOM(-360, 360))), CF(0, 0, -0.1) * ANGLES(0, 0, RAD(MRANDOM(-20, 20))), VT(0, 1, 0), 50000, 50000, 50000, -1, -1, -1, 0.075)
2779
            MagicBlock(BrickColor.new("Lime green"), "Neon", Torso.CFrame * CF(0 * Player_Size, MRANDOM(-15, -10) / 10 * Player_Size, 0 * Player_Size) * ANGLES(RAD(90), 0, RAD(MRANDOM(-360, 360))), CF(0, 0, -0.1) * ANGLES(0, 0, RAD(MRANDOM(-20, 20))), VT(0, 1, 0), 50000, 50000, 50000, -1, -1, -1, 0.075)
2780
		end
2781
	end
2782
2783
2784
function KeyUp(Key)
2785
end
2786
2787
if Use_HopperBin == false then
2788
2789
	Mouse.Button1Down:connect(function(NEWKEY)
2790
		MouseDown(NEWKEY)
2791
	end)
2792
	Mouse.Button1Up:connect(function(NEWKEY)
2793
		MouseUp(NEWKEY)
2794
	end)
2795
	Mouse.KeyDown:connect(function(NEWKEY)
2796
		KeyDown(NEWKEY)
2797
	end)
2798
	Mouse.KeyUp:connect(function(NEWKEY)
2799
		KeyUp(NEWKEY)
2800
	end)
2801
2802
elseif Use_HopperBin == true then
2803
	WEAPONTOOL.Parent = Backpack
2804
	script.Parent = WEAPONTOOL
2805
	function SelectTool(Mouse)
2806
		Mouse.Button1Down:connect(function()
2807
			MouseDown(Mouse)
2808
		end)
2809
		Mouse.Button1Up:connect(function()
2810
			MouseUp(Mouse)
2811
		end)
2812
		Mouse.KeyDown:connect(KeyDown)
2813
		Mouse.KeyUp:connect(KeyUp)
2814
	end
2815
	function DeselectTool(Mouse)
2816
	end
2817
	WEAPONTOOL.Selected:connect(SelectTool)
2818
	WEAPONTOOL.Deselected:connect(DeselectTool)
2819
end
2820
2821
--//=================================\\
2822
--\\=================================//
2823
2824
2825
2826
local RHCF = CFrame.fromEulerAnglesXYZ(0, 1.6, 0)
2827
local LHCF = CFrame.fromEulerAnglesXYZ(0, -1.6, 0)
2828
2829
while true do
2830
	Swait()
2831
	if HitboxPart ~= nil and ATTACK == false and StaggerHit.Value == false and Stagger.Value == false and Stun.Value == false then
2832
		HitboxPart.Name = "NilHitbox"
2833
	else
2834
		HitboxPart.Name = "Hitbox"
2835
	end
2836
	if Enable_Gui == true then
2837
		UpdateGUI()
2838
	end
2839
	UpdateSkillsAndStuff()
2840
	if Walkspeed_Depends_On_Movement_Value == true then
2841
		if Movement.Value < 0 or StaggerHit.Value == true or Stagger.Value == true or Stun.Value == true or Rooted.Value == true then
2842
			Humanoid.WalkSpeed = 0
2843
		else
2844
			Humanoid.WalkSpeed = 16 * Movement.Value * Player_Size
2845
		end
2846
	end
2847
	if Enable_Stun == true and StunValue.Value >= Max_Stun then
2848
		StunValue.Value = 0
2849
		Stun.Value = true
2850
	end
2851
	if Enable_Stagger_Hit == true then
2852
		if StaggerHit.Value == true and STAGGERHITANIM == false then
2853
			coroutine.resume(coroutine.create(function()
2854
				STAGGERHITANIM = true
2855
				while ATTACK == true do
2856
					Swait()
2857
				end
2858
				StaggerHitAnimation()
2859
				StaggerHit.Value = false
2860
				STAGGERHITANIM = false
2861
			end))
2862
		end
2863
	else
2864
		StaggerHit.Value = false
2865
	end
2866
	if Enable_Stagger == true then
2867
		if Stagger.Value == true and STAGGERANIM == false then
2868
			coroutine.resume(coroutine.create(function()
2869
				STAGGERANIM = true
2870
				while ATTACK == true do
2871
					Swait()
2872
				end
2873
				StaggerAnimation()
2874
				Stagger.Value = false
2875
				STAGGERANIM = false
2876
			end))
2877
		end
2878
	else
2879
		Stagger.Value = false
2880
	end
2881
	if Enable_Stun == true then
2882
		if Stun.Value == true and STUNANIM == false then
2883
			coroutine.resume(coroutine.create(function()
2884
				StunValue.Value = 0
2885
				STUNANIM = true
2886
				while ATTACK == true do
2887
					Swait()
2888
				end
2889
				StunAnimation()
2890
				Stun.Value = false
2891
				STUNANIM = false
2892
			end))
2893
		end
2894
	else
2895
		StunValue.Value = 0
2896
		Stun.Value = false
2897
	end
2898
	if DONUMBER >= .5 then
2899
		HANDIDLE = true
2900
	elseif DONUMBER <= 0 then
2901
		HANDIDLE = false
2902
	end
2903
	if HANDIDLE == false then
2904
		DONUMBER = DONUMBER + 0.003 / Animation_Speed
2905
	else
2906
		DONUMBER = DONUMBER - 0.003 / Animation_Speed
2907
	end
2908
	if ATTACK == false then
2909
		IDLENUMBER = IDLENUMBER + 1
2910
	else
2911
		IDLENUMBER = 0
2912
	end
2913
	if Enable_Stats == true then
2914
		for _, v in pairs (ChangeStat:GetChildren()) do
2915
			if v:FindFirstChild("Duration") ~= nil then
2916
				v:FindFirstChild("Duration").Value = v:FindFirstChild("Duration").Value - (1 / 30) / Animation_Speed
2917
				if v:FindFirstChild("Duration").Value <= 0 then
2918
					v.Parent = nil
2919
				end
2920
			end
2921
			if v.Name == "ChangeDefense" then
2922
				CHANGEDEFENSE = CHANGEDEFENSE + v.Value
2923
			elseif v.Name == "ChangeDamage" then
2924
				CHANGEDAMAGE = CHANGEDAMAGE + v.Value
2925
			elseif v.Name == "ChangeMovement" then
2926
				CHANGEMOVEMENT = CHANGEMOVEMENT + v.Value
2927
			end
2928
		end
2929
		Defense.Value = 1 + (CHANGEDEFENSE)
2930
		if Defense.Value <= 0.01 then
2931
			Defense.Value = 0.01
2932
		end
2933
		Damage.Value = 1 + (CHANGEDAMAGE)
2934
		if Damage.Value <= 0 then
2935
			Damage.Value = 0
2936
		end
2937
		Movement.Value = 1 + (CHANGEMOVEMENT)
2938
		if Movement.Value <= 0 then
2939
			Movement.Value = 0
2940
		end
2941
	CHANGEDEFENSE = 0
2942
	CHANGEDAMAGE = 0
2943
	CHANGEMOVEMENT = 0
2944
	end
2945
	SINE = SINE + CHANGE
2946
	local TORSOVELOCITY = (RootPart.Velocity * VT(1, 0, 1)).magnitude
2947
	local TORSOVERTICALVELOCITY = RootPart.Velocity.y
2948
	local LV = Torso.CFrame:pointToObjectSpace(Torso.Velocity - Torso.Position)
2949
	local HITFLOOR = Raycast(RootPart.Position, (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 4 * Player_Size, Character)
2950
	local WALKSPEEDVALUE = 6 / (Humanoid.WalkSpeed / 16)
2951
	if ANIM == "Walk" and EQUIPPED == true and TORSOVELOCITY > 1 then
2952
		RootJoint.C1 = Clerp(RootJoint.C1, ROOTC0 * CF(0, 0, -0.1 * COS(SINE / (WALKSPEEDVALUE / 2)) * Player_Size) * ANGLES(RAD(0), RAD(0) - RootPart.RotVelocity.Y / 75, RAD(0)), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
2953
		Neck.C1 = Clerp(Neck.C1, CF(0 * Player_Size, -0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-90), RAD(0), RAD(180)) * ANGLES(RAD(2.5 * SIN(SINE / (WALKSPEEDVALUE / 2))), RAD(0), RAD(0) - Head.RotVelocity.Y / 30), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
2954
		RightHip.C1 = Clerp(RightHip.C1, CF(0.5 * Player_Size, 0.875 * Player_Size - 0.125 * SIN(SINE / WALKSPEEDVALUE) * Player_Size, -0.125 * COS(SINE / WALKSPEEDVALUE) * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0) - RightLeg.RotVelocity.Y / 75, RAD(0), RAD(60 * COS(SINE / WALKSPEEDVALUE))), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
2955
		LeftHip.C1 = Clerp(LeftHip.C1, CF(-0.5 * Player_Size, 0.875 * Player_Size + 0.125 * SIN(SINE / WALKSPEEDVALUE) * Player_Size, 0.125 * COS(SINE / WALKSPEEDVALUE) * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0) + LeftLeg.RotVelocity.Y / 75, RAD(0), RAD(60 * COS(SINE / WALKSPEEDVALUE))), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
2956
	elseif (ANIM ~= "Walk" and EQUIPPED == true) or (TORSOVELOCITY < 1) then
2957
		RootJoint.C1 = Clerp(RootJoint.C1, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
2958
		Neck.C1 = Clerp(Neck.C1, CF(0 * Player_Size, -0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-90), RAD(0), RAD(180)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
2959
		RightHip.C1 = Clerp(RightHip.C1, CF(0.5 * Player_Size, 1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
2960
		LeftHip.C1 = Clerp(LeftHip.C1, CF(-0.5 * Player_Size, 1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
2961
	end
2962
	if TORSOVERTICALVELOCITY > 1 and HITFLOOR == nil then
2963
		ANIM = "Jump"
2964
		if EQUIPPED == true and ATTACK == false then
2965
            Humanoid.WalkSpeed = 150
2966
			RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
2967
			Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(-20), RAD(0), RAD(0)), 0.2 / Animation_Speed)
2968
			RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-40), RAD(0), RAD(20)) * RIGHTSHOULDERC0, 0.2 / Animation_Speed)
2969
			LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-40), RAD(0), RAD(-20)) * LEFTSHOULDERC0, 0.2 / Animation_Speed)
2970
			RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -1 * Player_Size, -0.3 * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(-20)), 0.2 / Animation_Speed)
2971
			LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -1 * Player_Size, -0.3 * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(20)), 0.2 / Animation_Speed)
2972
			HandleWeld.C0 = Clerp(HandleWeld.C0, CF(0 * Player_Size, -1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-90), RAD(90), RAD(0)), 0.2 / Animation_Speed)
2973
		end
2974
	elseif TORSOVERTICALVELOCITY < -1 and HITFLOOR == nil then
2975
		ANIM = "Fall"
2976
		if EQUIPPED == true and ATTACK == false then
2977
			RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
2978
			Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(20), RAD(0), RAD(0)), 0.2 / Animation_Speed)
2979
			RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(60)) * RIGHTSHOULDERC0, 0.2 / Animation_Speed)
2980
			LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(-60)) * LEFTSHOULDERC0, 0.2 / Animation_Speed)
2981
			RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(20)), 0.2 / Animation_Speed)
2982
			LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(10)), 0.2 / Animation_Speed)
2983
			HandleWeld.C0 = Clerp(HandleWeld.C0, CF(0 * Player_Size, -1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-90), RAD(90), RAD(0)), 0.2 / Animation_Speed)
2984
		end
2985
	elseif TORSOVELOCITY < 1 and HITFLOOR ~= nil then
2986
		ANIM = "Idle"
2987
		if EQUIPPED == true and ATTACK == false then
2988
			RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, -0.1 + 0.02 * math.cos(SINE / 8)) * angles(math.rad(0), math.rad(1), math.rad(15)), 0.1)
2989
			RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
2990
			Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(5 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(25)), 0.15 / Animation_Speed)
2991
		    RightShoulder.C0 = Clerp(RightShoulder.C0, CFrame.new(.9, 0.7, -0.7) * angles(math.rad(90 - 1 * math.cos(SINE / 8)), math.rad(0), math.rad(-50)), 0.1)
2992
            LeftShoulder.C0 = Clerp(LeftShoulder.C0, CFrame.new(-.9, 0.7, -0.5) * angles(math.rad(70 - 1 * math.cos(SINE / 8)), math.rad(-7), math.rad(70)), 0.1)
2993
			RightHip.C0  = Clerp(RightHip.C0, CF(1, -1 - 0.02 * math.cos(SINE / 8), 0) * RHCF * angles(math.rad(-4), math.rad(0), math.rad(0 + 0.05 * math.cos(SINE / 25))), 0.1)
2994
            LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.02 * math.cos(SINE / 8), 0) * LHCF * angles(math.rad(-4), math.rad(0), math.rad(0 + 0.05 * math.cos(SINE / 25))), 0.1)
2995
			HandleWeld.C0 = Clerp(HandleWeld.C0, CF(0 * Player_Size, -1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-100), RAD(90), RAD(0)), 0.15 / Animation_Speed)
2996
		end
2997
	elseif TORSOVELOCITY > 1 and HITFLOOR ~= nil then
2998
		ANIM = "Walk"
2999
		WALK = WALK + 1 / Animation_Speed
3000
		if WALK >= 15 - (5 * (Humanoid.WalkSpeed / 16 / Player_Size)) then
3001
			WALK = 0
3002
			if WALKINGANIM == true then
3003
				WALKINGANIM = false
3004
			elseif WALKINGANIM == false then
3005
				WALKINGANIM = true
3006
			end
3007
		end
3008
		if EQUIPPED == true and ATTACK == false then
3009
            Humanoid.WalkSpeed = 20
3010
			RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0.05 * COS(SINE / WALKSPEEDVALUE) * Player_Size, 0 * Player_Size, -0.1 * Player_Size) * ANGLES(RAD(10), RAD(0), RAD(-40)), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
3011
			Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(0), RAD(0), RAD(40)) * ANGLES(RAD(-5), RAD(0), RAD(0)), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
3012
		    RightShoulder.C0 = Clerp(RightShoulder.C0, CF(0.25 * Player_Size, 0.5 * Player_Size, -1 * Player_Size) * ANGLES(RAD(70), RAD(0), RAD(-70)) * ANGLES(RAD(20), RAD(25), RAD(-15)) * RIGHTSHOULDERC0, 0.4 / Animation_Speed)
3013
		    LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1 * Player_Size, 0.2 * Player_Size, -0.5 * Player_Size) * ANGLES(RAD(25), RAD(0), RAD(55)) * LEFTSHOULDERC0, 0.4 / Animation_Speed)
3014
			RightHip.C0 = Clerp(RightHip.C0, CF(0.95 * Player_Size, -1 * Player_Size, -0.5 * Player_Size) * ANGLES(RAD(0), RAD(130), RAD(0)) * ANGLES(RAD(-1.25 - 2.5 * COS(SINE / WALKSPEEDVALUE)), RAD(0), RAD(0)), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
3015
			LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -0.9 * Player_Size, 0.25 * Player_Size) * ANGLES(RAD(0), RAD(-50), RAD(0)) * ANGLES(RAD(-2.5 + 2.5 * COS(SINE / WALKSPEEDVALUE)), RAD(0), RAD(0)), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
3016
			HandleWeld.C0 = Clerp(HandleWeld.C0, CF(0 * Player_Size, -1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-90), RAD(90), RAD(0)), 0.15 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
3017
		end
3018
	end
3019
3020
end
3021
3022
player = game:GetService("Players").LocalPlayer
3023
moni = player.Character
3024
3025
mo = moni:GetChildren()
3026
for i = 1, #mo do
3027
if mo[i].Name == "Torso" then
3028
mo[i].roblox.Transparency = 0
3029
elseif mo[i].Name == "Head" then
3030
mo[i].face.Transparency = 0
3031
mo[i].Transparency = 0
3032
elseif mo[i].ClassName == "Accessory" or mo[i].ClassName == "Shirt" or mo[i].ClassName == "Pants" or mo[i].ClassName == "ShirtGraphic" then
3033
mo[i]:Destroy()
3034
end
3035
end
3036
moni.Humanoid.Died:connect(function()
3037
local sky = Instance.new('Sky', game:GetService'Lighting')
3038
	sky.SkyboxBk = "rbxassetid://166574023"
3039
    sky.SkyboxDn = "rbxassetid://166574122"
3040
    sky.SkyboxFt = "rbxassetid://1340693961"
3041
    sky.SkyboxLf = "rbxassetid://166574084"
3042
    sky.SkyboxRt = "rbxassetid://166574092"
3043
    sky.SkyboxUp = "rbxassetid://166574066"
3044
game.Lighting.OutdoorAmbient = Color3.new(0,0,0)
3045
game.Lighting.TimeOfDay = "08:00:00"
3046
game.Lighting.FogColor = Color3.new(0,0,0)
3047
game.Lighting.FogEnd = 800
3048
local ex = Instance.new("Explosion",game.Workspace)
3049
ex.Position = moni.Torso.Position
3050
ex.Visible = false
3051
ex.BlastRadius = 999999999999999999999999
3052
ex.BlastPressure = 9999999999999999999999999
3053
end)