View difference between Paste ID: NdFBjyBz and ReXzeFqR
SHOW: | | - or go back to the newest paste.
1
 if game:GetService("RunService"):IsClient() then error("Please run as a server script. Use h/ instead of hl/.") end
2-
--||			   CREATED BY SHACKLUSTER
2+
print("FE Compatibility: by WaverlyCole & Mokiros")
3-
--\\====================================================//--
3+
InternalData = {}
4
do
5
	script.Parent = owner.Character
6
	local Event = Instance.new("RemoteEvent")
7
	Event.Name = "UserInput"
8
	local function NewFakeEvent()
9
		local Fake = {fakeEvent=true,Connect=function(self,Func)self.Function=Func end}Fake.connect = Fake.Connect
10
		return Fake
11
	end
12
	local Mouse = {Target=nil,Hit=CFrame.new(),KeyUp=NewFakeEvent(),KeyDown=NewFakeEvent(),Button1Up=NewFakeEvent(),Button1Down=NewFakeEvent()}
13
	local UserInputService = {InputBegan=NewFakeEvent(),InputEnded=NewFakeEvent()}
14
	local ContextActionService = {Actions={},BindAction = function(self,actionName,Func,touch,...)
15
		self.Actions[actionName] = Func and {Name=actionName,Function=Func,Keys={...}} or nil
16
	end};ContextActionService.UnBindAction = ContextActionService.BindAction
17
	local function TriggerEvent(self,Event,...)
18
		local Trigger = Mouse[Event]
19
		if Trigger and Trigger.fakeEvent and Trigger.Function then
20
			Trigger.Function(...)
21
		end
22
	end
23
	Mouse.TrigEvent = TriggerEvent
24
	UserInputService.TrigEvent = TriggerEvent
25
	Event.OnServerEvent:Connect(function(FiredBy,Input)
26
		if FiredBy.Name ~= owner.Name then end
27
		if Input.MouseEvent then
28
			Mouse.Target = Input.Target
29
			Mouse.Hit = Input.Hit
30
		else
31
			local Begin = Input.UserInputState == Enum.UserInputState.Begin
32
			if Input.UserInputType == Enum.UserInputType.MouseButton1 then
33
				return Mouse:TrigEvent(Begin and "Button1Down" or "Button1Up")
34
			end
35
			for _,Action in pairs(ContextActionService.Actions) do
36
				for _,Key in pairs(Action.Keys) do
37
					if Key==Input.KeyCode then
38
						Action.Function(Action.Name,Input.UserInputState,Input)
39
					end
40
				end
41
			end
42
			Mouse:TrigEvent(Begin and "KeyDown" or "KeyUp",Input.KeyCode.Name:lower())
43
			UserInputService:TrigEvent(Begin and "InputBegan" or "InputEnded",Input,false)
44
		end
45
	end)
46
	InternalData["Mouse"] = Mouse
47
	InternalData["ContextActionService"] = ContextActionService
48
	InternalData["UserInputService"] = UserInputService
49
	Event.Parent = NLS([[
50
		local Player = owner
51
		local Event = script:WaitForChild("UserInput")
52
		local UserInputService = game:GetService("UserInputService")
53
		local Mouse = Player:GetMouse()
54
		local Input = function(Input,gameProcessedEvent)
55
			if gameProcessedEvent then return end
56
			Event:FireServer({KeyCode=Input.KeyCode,UserInputType=Input.UserInputType,UserInputState=Input.UserInputState})
57
		end
58
		UserInputService.InputBegan:Connect(Input)
59
		UserInputService.InputEnded:Connect(Input)
60
		local Hit,Target
61
		while wait(1/30) do
62
			if Hit ~= Mouse.Hit or Target ~= Mouse.Target then
63
				Hit,Target = Mouse.Hit,Mouse.Target
64
				Event:FireServer({["MouseEvent"]=true,["Target"]=Target,["Hit"]=Hit})
65
			end
66
		end
67
	]],owner.Character)
68
end
69
RealGame = game;game = setmetatable({},{
70
	__index = function (self,Index)
71
		local Sandbox = function (Thing)
72
			if Thing:IsA("Player") then
73
				local RealPlayer = Thing
74
				return setmetatable({},{
75
					__index = function (self,Index)
76
						local Type = type(RealPlayer[Index])
77
						if Type == "function" then
78
							if Index:lower() == "getmouse" or Index:lower() == "mouse" then
79
								return function (self)
80
									return InternalData["Mouse"]
81
								end
82
							end
83
							return function (self,...)
84
								return RealPlayer[Index](RealPlayer,...)
85
							end
86
						else
87
							if Index == "PlrObj" then
88
								return RealPlayer
89
							end
90
							return RealPlayer[Index]
91
						end
92
					end;
93
					__tostring = function(self)
94
						return RealPlayer.Name
95
					end
96
				})
97
			end
98
		end
99
		if RealGame[Index] then
100
			local Type = type(RealGame[Index])
101
			if Type == "function" then
102
				if Index:lower() == "getservice" or Index:lower() == "service" then
103
					return function (self,Service)
104
						if Service:lower() == "players" then
105
							return setmetatable({},{
106
								__index = function (self2,Index2)
107
									local RealService = RealGame:GetService(Service)
108
									local Type2 = type(Index2)
109
									if Type2 == "function" then
110
										return function (self,...)
111
											return RealService[Index2](RealService,...)
112
										end
113
									else
114
										if Index2:lower() == "localplayer" then
115
											return Sandbox(owner)
116
										end
117
										return RealService[Index2]
118
									end
119
								end;
120
								__tostring = function(self)
121
									return RealGame:GetService(Service).Name
122
								end
123
							})
124
						elseif Service:lower() == "contextactionservice" then
125
							return InternalData["ContextActionService"]
126
						elseif Service:lower() == "contextactionservice" then
127
							return InternalData["UserInputService"]
128
						elseif Service:lower() == "runservice" then
129
							return setmetatable({},{
130
								__index = function(self2,Index2)
131
									local RealService = RealGame:GetService(Service)
132
									local Type2 = type(Index2)
133
									if Type2 == "function" then
134
										return function (self,...)
135
											return RealService[Index2](RealService,...)
136
										end
137
									else
138
										if Index2:lower() == "bindtorenderstep" then
139
											return function (self,Name,Priority,Function)
140
												return RealGame:GetService("RunService").Stepped:Connect(Function)
141
											end
142
										end
143
										if Index2:lower() == "renderstepped" then
144
											return RealService["Stepped"]
145
										end
146
										return RealService[Index2]
147
									end
148
								end
149
							})
150
						else
151
							return RealGame:GetService(Service)
152
						end
153
					end
154
				end
155
				return function (self,...)
156
					return RealGame[Index](RealGame,...)
157
				end
158
			else
159
				if game:GetService(Index) then
160
					return game:GetService(Index)
161
				end
162
				return RealGame[Index]
163
			end
164
		else
165
			return nil
166
		end
167
	end
168
});Game = game;owner = game:GetService("Players").LocalPlayer;script = {}
169
print("Complete! Running...")
170
171
wait(0.2)
172
173
174
175
Player = game:GetService("Players").LocalPlayer
176
PlayerGui = Player.PlayerGui
177
Cam = workspace.CurrentCamera
178
Backpack = Player.Backpack
179
Character = Player.Character
180
Humanoid = Character.Humanoid
181
Mouse = Player:GetMouse()
182
RootPart = Character["HumanoidRootPart"]
183
Torso = Character["Torso"]
184
Head = Character["Head"]
185
RightArm = Character["Right Arm"]
186
LeftArm = Character["Left Arm"]
187
RightLeg = Character["Right Leg"]
188
LeftLeg = Character["Left Leg"]
189
RootJoint = RootPart["RootJoint"]
190
Neck = Torso["Neck"]
191
RightShoulder = Torso["Right Shoulder"]
192
LeftShoulder = Torso["Left Shoulder"]
193
RightHip = Torso["Right Hip"]
194
LeftHip = Torso["Left Hip"]
195
local sick = Instance.new("Sound",Character)
196
sick.SoundId = "rbxassetid://321467240"
197
sick.Looped = true
198
sick.Pitch = 1
199
sick.Volume = 1
200
sick:Play()
201
202
IT = Instance.new
203
CF = CFrame.new
204
VT = Vector3.new
205
RAD = math.rad
206
C3 = Color3.new
207
UD2 = UDim2.new
208
BRICKC = BrickColor.new
209
ANGLES = CFrame.Angles
210
EULER = CFrame.fromEulerAnglesXYZ
211
COS = math.cos
212
ACOS = math.acos
213
SIN = math.sin
214
ASIN = math.asin
215
ABS = math.abs
216
MRANDOM = math.random
217
FLOOR = math.floor
218
219
function CreateMesh(MESH, PARENT, MESHTYPE, MESHID, TEXTUREID, SCALE, OFFSET)
220
	local NEWMESH = IT(MESH)
221
	if MESH == "SpecialMesh" then
222
		NEWMESH.MeshType = MESHTYPE
223
		if MESHID ~= "nil" and MESHID ~= "" then
224
			NEWMESH.MeshId = "http://www.roblox.com/asset/?id="..MESHID
225
		end
226
		if TEXTUREID ~= "nil" and TEXTUREID ~= "" then
227
			NEWMESH.TextureId = "http://www.roblox.com/asset/?id="..TEXTUREID
228
		end
229
	end
230
	NEWMESH.Offset = OFFSET or VT(0, 0, 0)
231
	NEWMESH.Scale = SCALE
232
	NEWMESH.Parent = PARENT
233
	return NEWMESH
234
end
235
236
function CreatePart(FORMFACTOR, PARENT, MATERIAL, REFLECTANCE, TRANSPARENCY, BRICKCOLOR, NAME, SIZE, ANCHR)
237
	local NEWPART = IT("Part")
238
	NEWPART.formFactor = FORMFACTOR
239
	NEWPART.Reflectance = REFLECTANCE
240
	NEWPART.Transparency = TRANSPARENCY
241
	NEWPART.CanCollide = false
242
	NEWPART.Locked = true
243
	NEWPART.Anchored = true
244
	if ANCHR == false then
245
		NEWPART.Anchored = false
246
	end
247
	NEWPART.BrickColor = BRICKC(tostring(BRICKCOLOR))
248
	NEWPART.Name = NAME
249
	NEWPART.Size = SIZE
250
	NEWPART.Position = Torso.Position
251
	NEWPART.Material = MATERIAL
252
	NEWPART:BreakJoints()
253
	NEWPART.Parent = PARENT
254
	return NEWPART
255
end
256
257
258
--//=================================\\
259
--||		  CUSTOMIZATION
260
--\\=================================//
261
262
Class_Name = "Moxie Lance"
263
Weapon_Name = "Add-ons"
264
265
Custom_Colors = {
266
	Custom_Color_1 = BRICKC("Institutional white"); --1st color for the weapon.
267
	Custom_Color_2 = BRICKC("Institutional white"); --2nd color for the weapon.
268
269
	Custom_Color_3 = BRICKC("Institutional white"); --Color for the abilities.
270
	Custom_Color_4 = BRICKC("Institutional white"); --Color for the secondary bar.
271
	Custom_Color_5 = BRICKC("Institutional white"); --Color for the mana bar.
272
	Custom_Color_6 = BRICKC("Institutional white"); --Color for the health bar.
273
	Custom_Color_7 = BRICKC("Institutional white"); --Color for the stun bar.
274
275
	Custom_Color_8 = BRICKC("Institutional white"); --Background for the mana bar.
276
	Custom_Color_9 = BRICKC("Institutional white"); --Background for the secondary mana bar.
277
	Custom_Color_10 = BRICKC("Institutional white"); --Background for the stun bar.
278
	Custom_Color_11 = BRICKC("Institutional white"); --Background for the health bar.
279
	Custom_Color_12 = BRICKC("Institutional white"); --Background for the abilities.
280
}
281
282
283
Player_Size = 1 --Size of the player.
284
Animation_Speed = 3
285
Animation_Speed2 = 0.5
286
Animation_Speed3 = 0.25
287
Frame_Speed = 1 / 60 -- (1 / 30) OR (1 / 60)
288
289
local Speed = 16
290
local Effects2 = {}
291
292
--//=================================\\
293
--|| 	  END OF CUSTOMIZATION
294
--\\=================================//
295
296
	local function weldBetween(a, b)
297
	    local weldd = Instance.new("ManualWeld")
298
	    weldd.Part0 = a
299
	    weldd.Part1 = b
300
	    weldd.C0 = CFrame.new()
301
	    weldd.C1 = b.CFrame:inverse() * a.CFrame
302
	    weldd.Parent = a
303
	    return weldd
304
	end
305
306
function createaccessory(attachmentpart,mesh,texture,scale,offset,color)
307
local acs = Instance.new("Part")
308
acs.CanCollide = false
309
acs.Anchored = false
310
acs.Size = Vector3.new(0,0,0)
311
acs.CFrame = attachmentpart.CFrame
312
acs.Parent = Character
313
acs.BrickColor = color
314
    local meshs = Instance.new("SpecialMesh")
315
    meshs.MeshId = mesh
316
    meshs.TextureId = texture
317
    meshs.Parent = acs
318
    meshs.Scale = scale
319
    meshs.Offset = offset
320
weldBetween(attachmentpart,acs)
321
end
322
323
function createbodypart(TYPE,COLOR,PART,OFFSET,SIZE)
324
if TYPE == "Gem" then
325
	local acs = CreatePart(3, Character, "Plastic", 0, 0, COLOR, "Part", VT(0,0,0))
326
	acs.Anchored = false
327
    acs.CanCollide = false
328
	acs.CFrame = PART.CFrame
329
	local acs2 = CreateMesh("SpecialMesh", acs, "FileMesh", "9756362", "", SIZE, OFFSET)
330
weldBetween(PART,acs)
331
elseif TYPE == "Skull" then
332
	local acs = CreatePart(3, Character, "Plastic", 0, 0, COLOR, "Part", VT(0,0,0))
333
	acs.Anchored = false
334
    acs.CanCollide = false
335
	acs.CFrame = PART.CFrame
336
	local acs2 = CreateMesh("SpecialMesh", acs, "FileMesh", "4770583", "", SIZE, OFFSET)
337
weldBetween(PART,acs)
338
elseif TYPE == "Eye" then
339
	local acs = CreatePart(3, Character, "Neon", 0, 0, COLOR, "Part", VT(0,0,0))
340
	acs.Anchored = false
341
    acs.CanCollide = false
342
	acs.CFrame = PART.CFrame
343
	local acs2 = CreateMesh("SpecialMesh", acs, "Sphere", "", "", SIZE, OFFSET)
344
weldBetween(PART,acs)
345
end
346
end
347
348
--//=================================\\
349
--|| 	      USEFUL VALUES
350
--\\=================================//
351
352
local ROOTC0 = CF(0, 0, 0) * ANGLES(RAD(-90), RAD(0), RAD(180))
353
local NECKC0 = CF(0, 1, 0) * ANGLES(RAD(-90), RAD(0), RAD(180))
354
local RIGHTSHOULDERC0 = CF(-0.5, 0, 0) * ANGLES(RAD(0), RAD(90), RAD(0))
355
local LEFTSHOULDERC0 = CF(0.5, 0, 0) * ANGLES(RAD(0), RAD(-90), RAD(0))
356
local CO1 = 0
357
local CO2 = 0
358
local CO3 = 0
359
local CO4 = 0
360
local CHANGEDEFENSE = 0
361
local CHANGEDAMAGE = 0
362
local CHANGEMOVEMENT = 0
363
local ANIM = "Idle"
364
local ATTACK = false
365
local EQUIPPED = false
366
local HOLD = false
367
local COMBO = 1
368
local LASTPOINT = nil
369
local BLCF = nil
370
local SCFR = nil
371
local STAGGERHITANIM = false
372
local STAGGERANIM = false
373
local STUNANIM = false
374
local CRITCHANCENUMBER = 0
375
local IDLENUMBER = 0
376
local DONUMBER = 0
377
local HANDIDLE = false
378
local Rooted = false
379
local SINE = 0
380
local MOXIE = 0
381
local CHANGE = 2 / Animation_Speed
382
local WALKINGANIM = false
383
local WALK = 0
384
local DISABLEJUMPING = false
385
local ROBLOXIDLEANIMATION = IT("Animation")
386
ROBLOXIDLEANIMATION.Name = "Roblox Idle Animation"
387
ROBLOXIDLEANIMATION.AnimationId = "http://www.roblox.com/asset/?id=180435571"
388
--ROBLOXIDLEANIMATION.Parent = Humanoid
389
local WEAPONGUI = IT("ScreenGui", PlayerGui)
390
WEAPONGUI.Name = "Weapon GUI"
391
local Weapon = IT("Model")
392
Weapon.Name = Weapon_Name
393
local Effects = IT("Folder", Weapon)
394
Effects.Name = "Effects"
395
local ANIMATOR = Humanoid.Animator
396
local ANIMATE = Character.Animate
397
local HITPLAYERSOUNDS = {--[["199149137", "199149186", "199149221", "199149235", "199149269", "199149297"--]]"263032172", "263032182", "263032200", "263032221", "263032252", "263033191"}
398
local HITARMORSOUNDS = {"199149321", "199149338", "199149367", "199149409", "199149452"}
399
local HITWEAPONSOUNDS = {"199148971", "199149025", "199149072", "199149109", "199149119"}
400
local HITBLOCKSOUNDS = {"199148933", "199148947"}
401
local UNANCHOR = true
402
local MAGICPARTICLE = "655109389"
403
404
local SKILLTEXTCOLOR = C3(239/255, 184/255, 56/255)
405
406
local ATTACK1COST = 75 
407
local ATTACK2COST = 200
408
local ATTACK3COST = 400
409
local ATTACK4COST = 1500
410
411
--//=================================\\
412
--\\=================================//
413
414
415
--//=================================\\
416
--|| SAZERENOS' ARTIFICIAL HEARTBEAT
417
--\\=================================//
418
419
ArtificialHB = Instance.new("BindableEvent", script)
420
ArtificialHB.Name = "ArtificialHB"
421
422
script:WaitForChild("ArtificialHB")
423
424
frame = Frame_Speed
425
tf = 0
426
allowframeloss = false
427
tossremainder = false
428
lastframe = tick()
429
script.ArtificialHB:Fire()
430
431
game:GetService("RunService").Heartbeat:connect(function(s, p)
432
	tf = tf + s
433
	if tf >= frame then
434
		if allowframeloss then
435
			script.ArtificialHB:Fire()
436
			lastframe = tick()
437
		else
438
			for i = 1, math.floor(tf / frame) do
439
				script.ArtificialHB:Fire()
440
			end
441
		lastframe = tick()
442
		end
443
		if tossremainder then
444
			tf = 0
445
		else
446
			tf = tf - frame * math.floor(tf / frame)
447
		end
448
	end
449
end)
450
451
--//=================================\\
452
--\\=================================//
453
454
455
456
457
458
--//=================================\\
459
--|| 	      SOME FUNCTIONS
460
--\\=================================//
461
462
function Raycast(POSITION, DIRECTION, RANGE, IGNOREDECENDANTS)
463
	return workspace:FindPartOnRay(Ray.new(POSITION, DIRECTION.unit * RANGE), IGNOREDECENDANTS)
464
end
465
466
function PositiveAngle(NUMBER)
467
	if NUMBER >= 0 then
468
		NUMBER = 0
469
	end
470
	return NUMBER
471
end
472
473
function NegativeAngle(NUMBER)
474
	if NUMBER <= 0 then
475
		NUMBER = 0
476
	end
477
	return NUMBER
478
end
479
480
function Swait(NUMBER)
481
	if NUMBER == 0 or NUMBER == nil then
482
		ArtificialHB.Event:wait()
483
	else
484
		for i = 1, NUMBER do
485
			ArtificialHB.Event:wait()
486
		end
487
	end
488
end
489
490
function QuaternionFromCFrame(cf)
491
	local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
492
	local trace = m00 + m11 + m22
493
	if trace > 0 then 
494
		local s = math.sqrt(1 + trace)
495
		local recip = 0.5 / s
496
		return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5
497
	else
498
		local i = 0
499
		if m11 > m00 then
500
			i = 1
501
		end
502
		if m22 > (i == 0 and m00 or m11) then
503
			i = 2
504
		end
505
		if i == 0 then
506
			local s = math.sqrt(m00 - m11 - m22 + 1)
507
			local recip = 0.5 / s
508
			return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip
509
		elseif i == 1 then
510
			local s = math.sqrt(m11 - m22 - m00 + 1)
511
			local recip = 0.5 / s
512
			return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip
513
		elseif i == 2 then
514
			local s = math.sqrt(m22 - m00 - m11 + 1)
515
			local recip = 0.5 / s return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip
516
		end
517
	end
518
end
519
520
function MakeForm(PART,TYPE)
521
	if TYPE == "Cyl" then
522
		local MSH = IT("CylinderMesh",PART)
523
	elseif TYPE == "Ball" then
524
		local MSH = IT("SpecialMesh",PART)
525
		MSH.MeshType = "Sphere"
526
	elseif TYPE == "Wedge" then
527
		local MSH = IT("SpecialMesh",PART)
528
		MSH.MeshType = "Wedge"
529
	end
530
end
531
532
function QuaternionToCFrame(px, py, pz, x, y, z, w)
533
	local xs, ys, zs = x + x, y + y, z + z
534
	local wx, wy, wz = w * xs, w * ys, w * zs
535
	local xx = x * xs
536
	local xy = x * ys
537
	local xz = x * zs
538
	local yy = y * ys
539
	local yz = y * zs
540
	local zz = z * zs
541
	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))
542
end
543
 
544
function QuaternionSlerp(a, b, t)
545
	local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4]
546
	local startInterp, finishInterp;
547
	if cosTheta >= 0.0001 then
548
		if (1 - cosTheta) > 0.0001 then
549
			local theta = ACOS(cosTheta)
550
			local invSinTheta = 1 / SIN(theta)
551
			startInterp = SIN((1 - t) * theta) * invSinTheta
552
			finishInterp = SIN(t * theta) * invSinTheta
553
		else
554
			startInterp = 1 - t
555
			finishInterp = t
556
		end
557
	else
558
		if (1 + cosTheta) > 0.0001 then
559
			local theta = ACOS(-cosTheta)
560
			local invSinTheta = 1 / SIN(theta)
561
			startInterp = SIN((t - 1) * theta) * invSinTheta
562
			finishInterp = SIN(t * theta) * invSinTheta
563
		else
564
			startInterp = t - 1
565
			finishInterp = t
566
		end
567
	end
568
	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
569
end
570
571
function Clerp(a, b, t)
572
	local qa = {QuaternionFromCFrame(a)}
573
	local qb = {QuaternionFromCFrame(b)}
574
	local ax, ay, az = a.x, a.y, a.z
575
	local bx, by, bz = b.x, b.y, b.z
576
	local _t = 1 - t
577
	return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t))
578
end
579
580
function CreateFrame(PARENT, TRANSPARENCY, BORDERSIZEPIXEL, POSITION, SIZE, COLOR, BORDERCOLOR, NAME)
581
	local frame = IT("Frame")
582
	frame.BackgroundTransparency = TRANSPARENCY
583
	frame.BorderSizePixel = BORDERSIZEPIXEL
584
	frame.Position = POSITION
585
	frame.Size = SIZE
586
	frame.BackgroundColor3 = COLOR
587
	frame.BorderColor3 = BORDERCOLOR
588
	frame.Name = NAME
589
	frame.Parent = PARENT
590
	return frame
591
end
592
593
function CreateLabel(PARENT, TEXT, TEXTCOLOR, TEXTFONTSIZE, TEXTFONT, TRANSPARENCY, BORDERSIZEPIXEL, STROKETRANSPARENCY, NAME)
594
	local label = IT("TextLabel")
595
	label.BackgroundTransparency = 1
596
	label.Size = UD2(1, 0, 1, 0)
597
	label.Position = UD2(0, 0, 0, 0)
598
	label.TextColor3 = TEXTCOLOR
599
	label.TextStrokeTransparency = STROKETRANSPARENCY
600
	label.TextTransparency = TRANSPARENCY
601
	label.FontSize = TEXTFONTSIZE
602
	label.Font = TEXTFONT
603
	label.BorderSizePixel = BORDERSIZEPIXEL
604
	label.TextScaled = false
605
	label.Text = TEXT
606
	label.Name = NAME
607
	label.Parent = PARENT
608
	return label
609
end
610
611
function NoOutlines(PART)
612
	PART.TopSurface, PART.BottomSurface, PART.LeftSurface, PART.RightSurface, PART.FrontSurface, PART.BackSurface = 10, 10, 10, 10, 10, 10
613
end
614
615
616
function CreateWeldOrSnapOrMotor(TYPE, PARENT, PART0, PART1, C0, C1)
617
	local NEWWELD = IT(TYPE)
618
	NEWWELD.Part0 = PART0
619
	NEWWELD.Part1 = PART1
620
	NEWWELD.C0 = C0
621
	NEWWELD.C1 = C1
622
	NEWWELD.Parent = PARENT
623
	return NEWWELD
624
end
625
626
function CreateSound(ID, PARENT, VOLUME, PITCH)
627
	local NEWSOUND = nil
628
	coroutine.resume(coroutine.create(function()
629
		NEWSOUND = IT("Sound", PARENT)
630
		NEWSOUND.Volume = VOLUME
631
		NEWSOUND.Pitch = PITCH
632
		NEWSOUND.SoundId = "http://www.roblox.com/asset/?id="..ID
633
		Swait()
634
		NEWSOUND:play()
635
		game:GetService("Debris"):AddItem(NEWSOUND, 10)
636
	end))
637
	return NEWSOUND
638
end
639
640
function CFrameFromTopBack(at, top, back)
641
	local right = top:Cross(back)
642
	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)
643
end
644
645
function CreateWave(inair,size,doesrotate,rotatedirection,waitt,cframe,color)
646
	local wave = CreatePart(3, Effects, "Neon", 0, 0.5, BRICKC(color), "Effect", VT(0,0,0))
647
	local mesh = IT("SpecialMesh",wave)
648
	mesh.MeshType = "FileMesh"
649
	mesh.MeshId = "http://www.roblox.com/asset/?id=20329976"
650
	mesh.Scale = VT(size,size,size)
651
	mesh.Offset = VT(0,0,-size/8)
652
	wave.CFrame = cframe
653
	coroutine.resume(coroutine.create(function(PART)
654
		for i = 1, waitt do
655
			Swait()
656
			mesh.Scale = mesh.Scale + VT(size/5,0,size/5)
657
			mesh.Offset = VT(0,0,-(mesh.Scale.X/8))
658
			if doesrotate == true then
659
				wave.CFrame = wave.CFrame * CFrame.fromEulerAnglesXYZ(0, rotatedirection, 0)
660
			end
661
			wave.Transparency = wave.Transparency + (0.5/waitt)
662
			if wave.Transparency > 0.99 then
663
				wave:remove()
664
			end
665
		end
666
	end))
667
end
668
669
function CreateSwirl(inair,size,doesrotate,rotatedirection,waitt,part,offset,color)
670
	local wave = CreatePart(3, Effects, "Neon", 0, 0.5, BRICKC(color), "Effect", VT(0,0,0))
671
	local mesh = IT("SpecialMesh",wave)
672
	mesh.MeshType = "FileMesh"
673
	mesh.MeshId = "http://www.roblox.com/asset/?id=1051557"
674
	mesh.Scale = VT(size,size,size)
675
	wave.CFrame = CF(part.Position) * CF(0,offset,0) * ANGLES(RAD(inair),RAD(0),RAD(0))
676
	coroutine.resume(coroutine.create(function(PART)
677
		for i = 1, waitt do
678
			Swait()
679
			mesh.Scale = mesh.Scale + VT(size/5,0,size/5)
680
			if doesrotate == true then
681
				wave.CFrame = wave.CFrame * CFrame.fromEulerAnglesXYZ(0, rotatedirection, 0)
682
			end
683
			wave.Transparency = wave.Transparency + (0.5/waitt)
684
			if wave.Transparency > 0.99 then
685
				wave:remove()
686
			end
687
		end
688
	end))
689
end
690
691
function CreateTornado(inair,size,doesrotate,rotatedirection,waitt,part,offset,color)
692
	local wave = CreatePart(3, Effects, "Neon", 0, 0.5, BRICKC(color), "Effect", VT(0,0,0))
693
	local mesh = IT("SpecialMesh",wave)
694
	mesh.MeshType = "FileMesh"
695
	mesh.MeshId = "http://www.roblox.com/asset/?id=102638417"
696
	mesh.Scale = VT(size,size,size)
697
	wave.CFrame = CF(part.Position) * CF(0,offset,0) * ANGLES(RAD(inair),RAD(0),RAD(0))
698
	coroutine.resume(coroutine.create(function(PART)
699
		for i = 1, waitt do
700
			Swait()
701
			mesh.Scale = mesh.Scale + VT(size/5,0,size/5)
702
			if doesrotate == true then
703
				wave.CFrame = wave.CFrame * CFrame.fromEulerAnglesXYZ(0, rotatedirection, 0)
704
			end
705
			wave.Transparency = wave.Transparency + (0.5/waitt)
706
			if wave.Transparency > 0.99 then
707
				wave:remove()
708
			end
709
		end
710
	end))
711
end
712
713
function CreateRing(inair,size,doesrotate,rotatedirection,waitt,part,offset,spin1,spin2,color)
714
	local wave = CreatePart(3, Effects, "Neon", 0, 0.5, BRICKC(color), "Effect", VT(0,0,0))
715
	local mesh = IT("SpecialMesh",wave)
716
	mesh.MeshType = "FileMesh"
717
	mesh.MeshId = "http://www.roblox.com/asset/?id=3270017"
718
	mesh.Scale = VT(size,size,size)
719
	mesh.Offset = VT(0,0,0)
720
	wave.CFrame = CF(part.Position) * CF(0,offset,0) * ANGLES(RAD(inair),RAD(0),RAD(0))
721
	coroutine.resume(coroutine.create(function(PART)
722
		for i = 1, waitt do
723
			Swait()
724
			mesh.Scale = mesh.Scale + VT(size/5,size/5,size/5)
725
			if doesrotate == true then
726
				wave.CFrame = wave.CFrame * CFrame.fromEulerAnglesXYZ(spin2, rotatedirection, spin1)
727
			end
728
			wave.Transparency = wave.Transparency + (0.5/waitt)
729
			if wave.Transparency > 0.99 then
730
				wave:remove()
731
			end
732
		end
733
	end))
734
end
735
736
function MagicSphere(size,waitt,part,offset,color)
737
	local wave = CreatePart(3, Effects, "Neon", 0, 0, BRICKC(color), "Effect", VT(1,1,1))
738
	local mesh = IT("SpecialMesh",wave)
739
	mesh.MeshType = "Sphere"
740
	mesh.Scale = VT(size,size,size)
741
	mesh.Offset = VT(0,0,0)
742
	wave.CFrame = part
743
	coroutine.resume(coroutine.create(function(PART)
744
		for i = 1, waitt do
745
			Swait()
746
			mesh.Scale = mesh.Scale + VT(size/5,size/5,size/5)
747
			wave.Transparency = wave.Transparency + (1/waitt)
748
			if wave.Transparency > 0.99 then
749
				wave:remove()
750
			end
751
		end
752
	end))
753
end
754
755
local asd = Instance.new("ParticleEmitter")
756
asd.Color = ColorSequence.new(Color3.new(1, 0, 0), Color3.new(.5, 0, 0))
757
asd.LightEmission = .1
758
asd.Size = NumberSequence.new(0.2)
759
asd.Texture = "http://www.roblox.com/asset/?ID=291880914"
760
aaa = NumberSequence.new({NumberSequenceKeypoint.new(0, 0.2),NumberSequenceKeypoint.new(1, 5)})
761
bbb = NumberSequence.new({NumberSequenceKeypoint.new(0, 1),NumberSequenceKeypoint.new(0.0636, 0), NumberSequenceKeypoint.new(1, 1)})
762
asd.Transparency = bbb
763
asd.Size = aaa
764
asd.ZOffset = .9
765
asd.Acceleration = Vector3.new(0, -5, 0)
766
asd.LockedToPart = false
767
asd.EmissionDirection = "Back"
768
asd.Lifetime = NumberRange.new(1, 2)
769
asd.Rotation = NumberRange.new(-100, 100)
770
asd.RotSpeed = NumberRange.new(-100, 100)
771
asd.Speed = NumberRange.new(2)
772
asd.Enabled = false
773
asd.VelocitySpread = 10000
774
775
function getbloody(victim,amount)
776
local prtcl = asd:Clone()
777
prtcl.Parent = victim
778
prtcl:Emit(amount)
779
end
780
781
--//=================================\\
782
--\\=================================//
783
784
785
--//=================================\\
786
--||	     WEAPON CREATION
787
--\\=================================//
788
789
if Player_Size ~= 1 then
790
	for _, v in pairs (Weapon:GetChildren()) do
791
		if v.ClassName == "Motor" or v.ClassName == "Weld" or v.ClassName == "Snap" then
792
			local p1 = v.Part1
793
			v.Part1 = nil
794
			local cf1, cf2, cf3, cf4, cf5, cf6, cf7, cf8, cf9, cf10, cf11, cf12 = v.C1:components()
795
			v.C1 = CF(cf1 * Player_Size, cf2 * Player_Size, cf3 * Player_Size, cf4, cf5, cf6, cf7, cf8, cf9, cf10, cf11, cf12)
796
			v.Part1 = p1
797
		elseif v.ClassName == "Part" then
798
			for _, b in pairs (v:GetChildren()) do
799
				if b.ClassName == "SpecialMesh" or b.ClassName == "BlockMesh" then
800
					b.Scale = VT(b.Scale.x * Player_Size, b.Scale.y * Player_Size, b.Scale.z * Player_Size)
801
				end
802
			end
803
		end
804
	end
805
end
806
807
Weapon.Parent = Character
808
809
Humanoid.Died:connect(function()
810
	ATTACK = true
811
end)
812
813
print(Class_Name.." loaded.")
814
815
local SKILL1FRAME = CreateFrame(WEAPONGUI, 0.5, 2, UD2(0.23, 0, 0.80, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 1 Frame")
816
local SKILL2FRAME = CreateFrame(WEAPONGUI, 0.5, 2, UD2(0.50, 0, 0.80, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 2 Frame")
817
local SKILL3FRAME = CreateFrame(WEAPONGUI, 0.5, 2, UD2(0.23, 0, 0.93, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 3 Frame")
818
local SKILL4FRAME = CreateFrame(WEAPONGUI, 0.5, 2, UD2(0.50, 0, 0.93, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 4 Frame")
819
local SKILL5FRAME = CreateFrame(WEAPONGUI, 0.5, 2, UD2(0.365, 0, 0.7, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 5 Frame")
820
821
local SKILL1TEXT = CreateLabel(SKILL1FRAME, "[Z] Flying slash ["..ATTACK1COST.."]", SKILLTEXTCOLOR, 4, "Legacy", 0, 2, 1, "Text 1")
822
local SKILL2TEXT = CreateLabel(SKILL2FRAME, "[B] Moxie wheel ["..ATTACK2COST.."]", SKILLTEXTCOLOR, 4, "Legacy", 0, 2, 1, "Text 2")
823
local SKILL3TEXT = CreateLabel(SKILL3FRAME, "[C] Gigastun strobe ["..ATTACK3COST.."]", SKILLTEXTCOLOR, 4, "Legacy", 0, 2, 1, "Text 3")
824
local SKILL4TEXT = CreateLabel(SKILL4FRAME, "[V] Moxie impaler ["..ATTACK4COST.."]", SKILLTEXTCOLOR, 4, "Legacy", 0, 2, 1, "Text 4")
825
local SKILL5TEXT = CreateLabel(SKILL5FRAME, "MOXIE: "..MOXIE, SKILLTEXTCOLOR, 10, "Code", 0, 2, 1, "Text 5")
826
827
local HandlePart = CreatePart(3, Weapon, "Marble", 0, 0, "Pearl", "Handle", VT(0.25*Player_Size,3*Player_Size,0.25*Player_Size),false)
828
local HandleWeld = CreateWeldOrSnapOrMotor("Weld", HandlePart, RightArm, HandlePart, CF(0 * Player_Size, -1 * Player_Size, -0.5 * Player_Size) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
829
MakeForm(HandlePart,"Cyl")
830
local part = CreatePart(3, Weapon, "Marble", 0, 0, "Pearl", "Handle", VT(0.5*Player_Size,0.5*Player_Size,0.5*Player_Size),false)
831
local weld = CreateWeldOrSnapOrMotor("Weld", part, HandlePart, part, CF(0 * Player_Size, 1.4 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
832
MakeForm(part,"Ball")
833
local part = CreatePart(3, Weapon, "Neon", 0, 0, "Cyan", "Handle", VT(0.8*Player_Size,0.8*Player_Size,0.8*Player_Size),false)
834
local weld = CreateWeldOrSnapOrMotor("Weld", part, HandlePart, part, CF(0 * Player_Size, -1.8 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
835
MakeForm(part,"Ball")
836
local part = CreatePart(3, Weapon, "Glass", 0, 0.5, "Pearl", "Handle", VT(1*Player_Size,1*Player_Size,1*Player_Size),false)
837
local weld = CreateWeldOrSnapOrMotor("Weld", part, HandlePart, part, CF(0 * Player_Size, -1.8 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
838
MakeForm(part,"Ball")
839
local part = CreatePart(3, Weapon, "Granite", 0, 0, "Gold", "Handle", VT(0.05*Player_Size,1.3*Player_Size,1.3*Player_Size),false)
840
local weld = CreateWeldOrSnapOrMotor("Weld", part, HandlePart, part, CF(1.7 * Player_Size, -2.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-90), RAD(0), RAD(-90)), CF(0, 0, 0))
841
MakeForm(part,"Wedge")
842
local part = CreatePart(3, Weapon, "Granite", 0, 0, "Gold", "Handle", VT(0.05*Player_Size,1.3*Player_Size,1.3*Player_Size),false)
843
local weld = CreateWeldOrSnapOrMotor("Weld", part, HandlePart, part, CF(-1.7 * Player_Size, -2.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-90), RAD(0), RAD(90)), CF(0, 0, 0))
844
MakeForm(part,"Wedge")
845
local part = CreatePart(3, Weapon, "Granite", 0, 0, "Gold", "Handle", VT(0.05*Player_Size,1.3*Player_Size,1.3*Player_Size),false)
846
local weld = CreateWeldOrSnapOrMotor("Weld", part, HandlePart, part, CF(-0.4 * Player_Size, -2.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(90), RAD(0), RAD(-90)), CF(0, 0, 0))
847
MakeForm(part,"Wedge")
848
local part = CreatePart(3, Weapon, "Granite", 0, 0, "Gold", "Handle", VT(0.05*Player_Size,1.3*Player_Size,1.3*Player_Size),false)
849
local weld = CreateWeldOrSnapOrMotor("Weld", part, HandlePart, part, CF(0.4 * Player_Size, -2.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(90), RAD(0), RAD(90)), CF(0, 0, 0))
850
MakeForm(part,"Wedge")
851
local part = CreatePart(3, Weapon, "Granite", 0, 0, "Gold", "Handle", VT(0.05*Player_Size,1*Player_Size,3*Player_Size),false)
852
local weld = CreateWeldOrSnapOrMotor("Weld", part, HandlePart, part, CF(1.2 * Player_Size, -4 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-90), RAD(0), RAD(-90)), CF(0, 0, 0))
853
MakeForm(part,"Wedge")
854
local part = CreatePart(3, Weapon, "Granite", 0, 0, "Gold", "Handle", VT(0.05*Player_Size,1*Player_Size,3*Player_Size),false)
855
local weld = CreateWeldOrSnapOrMotor("Weld", part, HandlePart, part, CF(-1.2 * Player_Size, -4 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-90), RAD(0), RAD(90)), CF(0, 0, 0))
856
MakeForm(part,"Wedge")
857
local part = CreatePart(3, Weapon, "Granite", 0, 0, "Gold", "Handle", VT(0.05*Player_Size,1*Player_Size,10*Player_Size),false)
858
local weld = CreateWeldOrSnapOrMotor("Weld", part, HandlePart, part, CF(0.5 * Player_Size, -8 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-90), RAD(0), RAD(-90)), CF(0, 0, 0))
859
MakeForm(part,"Wedge")
860
local part = CreatePart(3, Weapon, "Granite", 0, 0, "Gold", "Handle", VT(0.05*Player_Size,1*Player_Size,10*Player_Size),false)
861
local weld = CreateWeldOrSnapOrMotor("Weld", part, HandlePart, part, CF(-0.5 * Player_Size, -8 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-90), RAD(0), RAD(90)), CF(0, 0, 0))
862
MakeForm(part,"Wedge")
863
864
local hitbox = CreatePart(3, Weapon, "Marble", 0, 1, "Pearl", "Hitbox", VT(3.5*Player_Size,10*Player_Size,0.15*Player_Size),false)
865
local weld = CreateWeldOrSnapOrMotor("Weld", hitbox, HandlePart, hitbox, CF(0 * Player_Size, -7 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
866
867
local tip = CreatePart(3, Weapon, "Marble", 0, 1, "Pearl", "Blade tip", VT(0.15*Player_Size,0.15*Player_Size,0.15*Player_Size),false)
868
local weld = CreateWeldOrSnapOrMotor("Weld", tip, HandlePart, tip, CF(0 * Player_Size, -13 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
869
870
local A = IT("Attachment",hitbox)
871
A.Position = VT(0.004, -5.8, -0.008)
872
local B = IT("Attachment",hitbox)
873
B.Position = VT(0.004, 5.8, -0.008)
874
local Trail = IT("Trail",hitbox)
875
Trail.Attachment0 = A
876
Trail.Attachment1 = B
877
Trail.Lifetime = 0.2
878
Trail.Transparency = NumberSequence.new(0, 1)
879
Trail.Enabled = false
880
881
for _, c in pairs(Weapon:GetChildren()) do
882
	if c.ClassName == "Part" then
883
		c.CustomPhysicalProperties = PhysicalProperties.new(0, 0, 0, 0, 0)
884
	end
885
end
886
887
--//=================================\\
888
--||	     DAMAGE FUNCTIONS
889
--\\=================================//
890
891
function StatLabel(LABELTYPE, CFRAME, TEXT, COLOR)
892
	local STATPART = CreatePart(3, Effects, "SmoothPlastic", 0, 1, "Really black", "Effect", VT())
893
	STATPART.CFrame = CF(CFRAME.p + VT(0, 1.5, 0))
894
	local BODYGYRO = IT("BodyGyro", STATPART)
895
	local BODYPOSITION = IT("BodyPosition", STATPART)
896
	BODYPOSITION.P = 2000
897
	BODYPOSITION.D = 100
898
	BODYPOSITION.maxForce = VT(math.huge, math.huge, math.huge)
899
	if LABELTYPE == "Normal" then
900
		BODYPOSITION.position = STATPART.Position + VT(MRANDOM(-2, 2), 6, MRANDOM(-2, 2))
901
	elseif LABELTYPE == "Debuff" then
902
		BODYPOSITION.position = STATPART.Position + VT(MRANDOM(-2, 2), 8, MRANDOM(-2, 2))
903
	elseif LABELTYPE == "Interruption" then
904
		BODYPOSITION.position = STATPART.Position + VT(MRANDOM(-2,2), 8, MRANDOM(-2, 2))
905
	end
906
	game:GetService("Debris"):AddItem(STATPART ,5)
907
	local BILLBOARDGUI = Instance.new("BillboardGui", STATPART)
908
	BILLBOARDGUI.Adornee = STATPART
909
	BILLBOARDGUI.Size = UD2(2.5, 0, 2.5 ,0)
910
	BILLBOARDGUI.StudsOffset = VT(-2, 2, 0)
911
	BILLBOARDGUI.AlwaysOnTop = false
912
	local TEXTLABEL = Instance.new("TextLabel", BILLBOARDGUI)
913
	TEXTLABEL.BackgroundTransparency = 1
914
	TEXTLABEL.Size = UD2(2.5, 0, 2.5, 0)
915
	TEXTLABEL.Text = TEXT
916
	TEXTLABEL.Font = "SciFi"
917
	TEXTLABEL.FontSize="Size42"
918
	TEXTLABEL.TextColor3 = COLOR
919
	TEXTLABEL.TextStrokeTransparency = 1
920
	TEXTLABEL.TextScaled = true
921
	TEXTLABEL.TextWrapped = true
922
	coroutine.resume(coroutine.create(function(THEPART, THEBODYPOSITION, THETEXTLABEL)
923
		wait(0.2)
924
		for i=1, 5 do
925
			wait()
926
			THEBODYPOSITION.Position = THEPART.Position - VT(0, 0.5 ,0)
927
		end
928
		wait(1.2)
929
		for i=1, 5 do
930
			wait()
931
			THETEXTLABEL.TextTransparency = THETEXTLABEL.TextTransparency + 0.2
932
			THETEXTLABEL.TextStrokeTransparency = THETEXTLABEL.TextStrokeTransparency + 0.2
933
			THEBODYPOSITION.position = THEPART.Position + VT(0, 0.5, 0)
934
		end
935
		THEPART.Parent = nil
936
	end),STATPART, BODYPOSITION, TEXTLABEL)
937
end
938
939
940
--//=================================\\
941
--||			DAMAGING
942
--\\=================================//
943
944
function dealdamage(hit,min,max,maxstrength,beserk,critrate,critmultiplier,frames)
945
	if hit.Parent ~= Character and hit.Parent:FindFirstChildOfClass("Humanoid") and hit.Parent:FindFirstChild("HitBy"..Player.Name) == nil then
946
		local humanoid = hit.Parent:FindFirstChildOfClass("Humanoid")
947
		local dmg = math.random(min,max)
948
		if humanoid.Health > 0 then
949
			if beserk == true then
950
				humanoid.Health = 0
951
			else
952
				CreateSound("201858024", hit, 1.2, MRANDOM(7, 12) / 10)
953
				hit.Velocity = CFrame.new(Torso.Position,hit.Position).lookVector*5*maxstrength
954
				if math.random(1,100) < critrate+1 then
955
					humanoid.Health = humanoid.Health - dmg*critmultiplier
956
					StatLabel("Normal", hit.CFrame * CF(0, 0 + (hit.Size.z - 1), 0), "CRIT/"..dmg*critmultiplier, C3(255/255, 0, 0))
957
					MOXIE = MOXIE + dmg*critmultiplier
958
				else
959
					humanoid.Health = humanoid.Health - dmg
960
					StatLabel("Normal", hit.CFrame * CF(0, 0 + (hit.Size.z - 1), 0), dmg, C3(0, 0, 0))
961
					MOXIE = MOXIE + dmg
962
				end
963
				local defence = Instance.new("BoolValue",hit.Parent)
964
				defence.Name = ("HitBy"..Player.Name)
965
				game:GetService("Debris"):AddItem(defence, frames)
966
			end
967
		end
968
	end
969
end
970
971
function AoEDamage(position,radius,min,max,maxstrength,beserk,critrate,critmultiplier,CanBeDodgedByJumping)
972
	local dmg = math.random(min,max)
973
	for i,v in ipairs(workspace:GetChildren()) do
974
	if v:FindFirstChild("HitBy"..Player.Name) == nil then
975
		local body = v:GetChildren()
976
			for part = 1, #body do
977
				if(v:FindFirstChild("HitBy"..Player.Name) == nil and (body[part].ClassName == "Part" or body[part].ClassName == "MeshPart") and v ~= Character) then
978
					if(body[part].Position - position).Magnitude < radius then
979
						if v.ClassName == "Model" then
980
							if v:FindFirstChild("Humanoid") then
981
								if v.Humanoid.Health ~= 0 then
982
									if CanBeDodgedByJumping == true then
983
										if body[part].Position.Y < position.Y+5 then
984
											if math.random(1,100) < critrate+1 then
985
												v.Humanoid.Health = v.Humanoid.Health - dmg*critmultiplier
986
												StatLabel("Normal", body[part].CFrame * CF(0, 0 + (body[part].Size.z - 1), 0), "CRIT/"..dmg*critmultiplier, C3(255/255, 0, 0))
987
												MOXIE = MOXIE + dmg*critmultiplier
988
											else
989
												v.Humanoid.Health = v.Humanoid.Health - dmg
990
												StatLabel("Normal", body[part].CFrame * CF(0, 0 + (body[part].Size.z - 1), 0), dmg, C3(0, 0, 0))
991
												MOXIE = MOXIE + dmg
992
											end
993
											local defence = Instance.new("BoolValue",v)
994
											defence.Name = ("HitBy"..Player.Name)
995
											game:GetService("Debris"):AddItem(defence, 0.5)
996
										end
997
									else
998
										if beserk == true then
999
											v.Humanoid.Health = 0
1000
										end
1001
										if math.random(1,100) < critrate+1 then
1002
											v.Humanoid.Health = v.Humanoid.Health - dmg*critmultiplier
1003
											StatLabel("Normal", body[part].CFrame * CF(0, 0 + (body[part].Size.z - 1), 0), "CRIT/"..dmg*critmultiplier, C3(255/255, 0, 0))
1004
											MOXIE = MOXIE + dmg*critmultiplier
1005
										else
1006
											v.Humanoid.Health = v.Humanoid.Health - dmg
1007
											StatLabel("Normal", body[part].CFrame * CF(0, 0 + (body[part].Size.z - 1), 0), dmg, C3(0, 0, 0))
1008
											MOXIE = MOXIE + dmg
1009
										end
1010
										local defence = Instance.new("BoolValue",v)
1011
										defence.Name = ("HitBy"..Player.Name)
1012
										game:GetService("Debris"):AddItem(defence, 0.5)
1013
									end
1014
								end
1015
							end
1016
						end
1017
						body[part].Velocity = CFrame.new(position,body[part].Position).lookVector*5*maxstrength
1018
					end
1019
				end
1020
			end
1021
			if v.ClassName == "Part" then
1022
				if v.Anchored == false and (v.Position - position).Magnitude < radius then
1023
					v.Velocity = CFrame.new(position,v.Position).lookVector*5*maxstrength
1024
				end
1025
			end
1026
		end
1027
	end
1028
end
1029
1030
function AoEStun(position,radius)
1031
	for i,v in ipairs(workspace:GetChildren()) do
1032
	if v:FindFirstChild("StunnedBy"..Player.Name) == nil then
1033
		local body = v:GetChildren()
1034
			for part = 1, #body do
1035
				if(v:FindFirstChild("StunnedBy"..Player.Name) == nil and (body[part].ClassName == "Part" or body[part].ClassName == "MeshPart") and v ~= Character) then
1036
					if(body[part].Position - position).Magnitude < radius then
1037
						if v.ClassName == "Model" then
1038
							if v:FindFirstChild("Humanoid") then
1039
								if v.Humanoid.Health ~= 0 then
1040
									Stun(v.Humanoid)
1041
									local defence = Instance.new("BoolValue",v)
1042
									defence.Name = ("StunnedBy"..Player.Name)
1043
									game:GetService("Debris"):AddItem(defence, 0.1)
1044
									StatLabel("Normal", body[part].CFrame * CF(0, 0 + (body[part].Size.z - 1), 0), "Stunned!", C3(0, 0, 0))
1045
								end
1046
							end
1047
						end
1048
					end
1049
				end
1050
			end
1051
		end
1052
	end
1053
end
1054
1055
function AoEImpale(position,radius)
1056
	for i,v in ipairs(workspace:GetChildren()) do
1057
	if v:FindFirstChild("StabbedBy"..Player.Name) == nil then
1058
		local body = v:GetChildren()
1059
			for part = 1, #body do
1060
				if(v:FindFirstChild("StabbedBy"..Player.Name) == nil and (body[part].ClassName == "Part" or body[part].ClassName == "MeshPart") and v ~= Character) then
1061
					if(body[part].Position - position).Magnitude < radius then
1062
						if v.ClassName == "Model" then
1063
							if v:FindFirstChild("Humanoid") then
1064
								if v.Humanoid.Health ~= 0 then
1065
									v.Torso.CFrame = CF(v.Torso.Position,tip.Position)
1066
									v.Torso.Anchored = true
1067
									local defence = Instance.new("BoolValue",v)
1068
									defence.Name = ("StabbedBy"..Player.Name)
1069
								end
1070
							end
1071
						end
1072
					end
1073
				end
1074
			end
1075
		end
1076
	end
1077
end
1078
1079
function ImpaleFinnish()
1080
	for i,v in ipairs(workspace:GetChildren()) do
1081
		if v:FindFirstChild("StabbedBy"..Player.Name) then
1082
			v:BreakJoints()
1083
			if v:FindFirstChild("Head") then
1084
				StatLabel("Normal", v.Head.CFrame * CF(0, 0 + (v.Head.Size.z - 1), 0), "Impaled!", C3(0, 0, 0))
1085
			end
1086
			local def = v:FindFirstChild("StabbedBy"..Player.Name)
1087
			def:remove()
1088
			local tors = v:FindFirstChild("Torso") or v:FindFirstChild("UpperTorso")
1089
			if tors then
1090
				local Heart = IT("Part",v)
1091
				MakeForm(Heart,"Ball")
1092
				Heart.Material = "Pebble"
1093
				Heart.Color = C3(1,0.5,0.5)
1094
				Heart.CanCollide = true
1095
				Heart.Size = VT(0.5,1,0.5)
1096
				Heart.CFrame = tors.CFrame * CF(-0.3,0.2,-1)
1097
				getbloody(Heart,35)
1098
				CreateSound("264486467", Heart, 5, MRANDOM(7, 12) / 10)
1099
			end
1100
		end
1101
	end
1102
end
1103
1104
function Stun(HUMANOID)
1105
	HUMANOID.PlatformStand = true
1106
	coroutine.resume(coroutine.create(function()
1107
		Swait(500)
1108
		HUMANOID.PlatformStand = false
1109
	end))
1110
end
1111
1112
function killnearest(position,range,maxstrength)
1113
	for i,v in ipairs(workspace:GetChildren()) do
1114
	local body = v:GetChildren()
1115
		for part = 1, #body do
1116
			if((body[part].ClassName == "Part" or body[part].ClassName == "MeshPart") and v ~= Character) then
1117
				if(body[part].Position - position).Magnitude < range then
1118
					if v.ClassName == "Model" then
1119
						v:BreakJoints()
1120
					end
1121
					--table.insert(Effects2,{body[part],"Disappear",0.02,2,2,2,2})
1122
					body[part].Velocity = CFrame.new(position,body[part].Position).lookVector*5*maxstrength
1123
				end
1124
			end
1125
		end
1126
		if v.ClassName == "Part" then
1127
			if v.Anchored == false and (v.Position - position).Magnitude < range then
1128
				--table.insert(Effects2,{v,"Disappear",0.02,2,2,2,2})
1129
				v.Velocity = CFrame.new(position,v.Position).lookVector*5*maxstrength
1130
			end
1131
		end
1132
	end
1133
end
1134
1135
--//=================================\\
1136
--||	ATTACK FUNCTIONS AND STUFF
1137
--\\=================================//
1138
1139
function AttackTemplate()
1140
	ATTACK = true
1141
	for i=0, 1.5, 0.1 / Animation_Speed do
1142
		Swait()
1143
		RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, -0.2 * Player_Size + 0.05 * COS(SINE / 12) * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(-60)), 0.15 / Animation_Speed)
1144
		Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(15 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(60)), 0.15 / Animation_Speed)
1145
		RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(90), RAD(0), RAD(30)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
1146
		LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(90), RAD(0), RAD(-2)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
1147
		RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -0.8 * Player_Size - 0.05 * COS(SINE / 12) * Player_Size, -0.2 * Player_Size) * ANGLES(RAD(0), RAD(85), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(-2.5)), 0.15 / Animation_Speed)
1148
		LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -0.8 * Player_Size - 0.05 * COS(SINE / 12) * Player_Size, -0.2 * Player_Size) * ANGLES(RAD(0), RAD(-65), RAD(0)) * ANGLES(RAD(-7.5), RAD(0), RAD(0)), 0.15 / Animation_Speed)
1149
		HandleWeld.C0 = Clerp(HandleWeld.C0, CF(-0.4 * Player_Size, -1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(-90)), 0.15 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
1150
	end
1151
	ATTACK = false
1152
end
1153
1154
function Attack1()
1155
	ATTACK = true
1156
	Trail.Enabled = true
1157
	local paw = hitbox.Touched:Connect(function(hit)
1158
		dealdamage(hit,20,25,5,false,7,2,0.5)
1159
	end) 
1160
	local bv = Instance.new("BodyVelocity") 
1161
	bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
1162
	bv.velocity = RootPart.CFrame.lookVector * 50
1163
	bv.Parent = Torso
1164
	bv.Name = "DASH"
1165
	ATTACK = false
1166
	Rooted = false
1167
	game:GetService("Debris"):AddItem(bv, 0.05)
1168
	CreateSound("1112042117", hitbox, 2, MRANDOM(7, 12) / 10)
1169
	for i=0, 6, 0.1 / Animation_Speed2 do
1170
		Swait()
1171
		RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, -0.2 * Player_Size + 0.05 * COS(SINE / 12) * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(80)), 0.15 / Animation_Speed2)
1172
		Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(15 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(-80)), 0.15 / Animation_Speed2)
1173
		RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(90), RAD(0), RAD(90)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed2)
1174
		LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(90), RAD(0), RAD(-2)) * LEFTSHOULDERC0, 0.15 / Animation_Speed2)
1175
		RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -0.8 * Player_Size - 0.05 * COS(SINE / 12) * Player_Size, -0.2 * Player_Size) * ANGLES(RAD(0), RAD(35), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(-2.5)), 0.15 / Animation_Speed2)
1176
		LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -0.8 * Player_Size - 0.05 * COS(SINE / 12) * Player_Size, -0.2 * Player_Size) * ANGLES(RAD(0), RAD(-95), RAD(0)) * ANGLES(RAD(-7.5), RAD(0), RAD(0)), 0.15 / Animation_Speed2)
1177
		HandleWeld.C0 = Clerp(HandleWeld.C0, CF(0.3 * Player_Size, -1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(-10)), 0.15 * (Humanoid.WalkSpeed / 16) / Animation_Speed2)
1178
	end
1179
	Trail.Enabled = false
1180
	ATTACK = false
1181
	paw:disconnect()
1182
end
1183
1184
function Attack2()
1185
	ATTACK = true
1186
	Rooted = true
1187
	local bv = Instance.new("BodyVelocity") 
1188
	bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
1189
	bv.velocity = RootPart.CFrame.lookVector * 50
1190
	bv.Parent = Torso
1191
	bv.Name = "DASH"
1192
	ATTACK = false
1193
	Rooted = false
1194
	game:GetService("Debris"):AddItem(bv, 0.05)
1195
	local paw = hitbox.Touched:Connect(function(hit)
1196
		dealdamage(hit,25,35,5,false,7,2,0.5)
1197
	end) 
1198
	Trail.Enabled = true
1199
	CreateSound("134012322", hitbox, 2, MRANDOM(7, 12) / 10)
1200
	for i=0, 1.3, 0.1 / Animation_Speed3 do
1201
		Swait()
1202
		RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, -0.2 * Player_Size + 0.05 * COS(SINE / 12) * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(180)), 0.15 / Animation_Speed3)
1203
		Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(15 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(-80)), 0.15 / Animation_Speed3)
1204
		RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(90), RAD(0), RAD(90)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed3)
1205
		LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(90), RAD(0), RAD(-2)) * LEFTSHOULDERC0, 0.15 / Animation_Speed3)
1206
		RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -0.8 * Player_Size - 0.05 * COS(SINE / 12) * Player_Size, -0.2 * Player_Size) * ANGLES(RAD(0), RAD(35), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(-2.5)), 0.15 / Animation_Speed3)
1207
		LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -0.8 * Player_Size - 0.05 * COS(SINE / 12) * Player_Size, -0.2 * Player_Size) * ANGLES(RAD(0), RAD(-95), RAD(0)) * ANGLES(RAD(-7.5), RAD(0), RAD(0)), 0.15 / Animation_Speed3)
1208
		HandleWeld.C0 = Clerp(HandleWeld.C0, CF(0.3 * Player_Size, -1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(-10)), 0.15 * (Humanoid.WalkSpeed / 16) / Animation_Speed3)
1209
	end
1210
	for i=0, 1.3, 0.1 / Animation_Speed3 do
1211
		Swait()
1212
		RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, -0.2 * Player_Size + 0.05 * COS(SINE / 12) * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(280)), 0.15 / Animation_Speed3)
1213
		Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(15 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(-80)), 0.15 / Animation_Speed3)
1214
		RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(90), RAD(0), RAD(90)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed3)
1215
		LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(90), RAD(0), RAD(-2)) * LEFTSHOULDERC0, 0.15 / Animation_Speed3)
1216
		RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -0.8 * Player_Size - 0.05 * COS(SINE / 12) * Player_Size, -0.2 * Player_Size) * ANGLES(RAD(0), RAD(35), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(-2.5)), 0.15 / Animation_Speed3)
1217
		LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -0.8 * Player_Size - 0.05 * COS(SINE / 12) * Player_Size, -0.2 * Player_Size) * ANGLES(RAD(0), RAD(-95), RAD(0)) * ANGLES(RAD(-7.5), RAD(0), RAD(0)), 0.15 / Animation_Speed3)
1218
		HandleWeld.C0 = Clerp(HandleWeld.C0, CF(0.3 * Player_Size, -1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(-10)), 0.15 * (Humanoid.WalkSpeed / 16) / Animation_Speed3)
1219
	end
1220
	for i=0, 1.3, 0.1 / Animation_Speed3 do
1221
		Swait()
1222
		RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, -0.2 * Player_Size + 0.05 * COS(SINE / 12) * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(40)), 0.15 / Animation_Speed3)
1223
		Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(15 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(-80)), 0.15 / Animation_Speed3)
1224
		RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(90), RAD(0), RAD(90)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed3)
1225
		LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(90), RAD(0), RAD(-2)) * LEFTSHOULDERC0, 0.15 / Animation_Speed3)
1226
		RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -0.8 * Player_Size - 0.05 * COS(SINE / 12) * Player_Size, -0.2 * Player_Size) * ANGLES(RAD(0), RAD(35), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(-2.5)), 0.15 / Animation_Speed3)
1227
		LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -0.8 * Player_Size - 0.05 * COS(SINE / 12) * Player_Size, -0.2 * Player_Size) * ANGLES(RAD(0), RAD(-95), RAD(0)) * ANGLES(RAD(-7.5), RAD(0), RAD(0)), 0.15 / Animation_Speed3)
1228
		HandleWeld.C0 = Clerp(HandleWeld.C0, CF(0.3 * Player_Size, -1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(-10)), 0.15 * (Humanoid.WalkSpeed / 16) / Animation_Speed3)
1229
	end
1230
	for i=0, 2, 0.1 / Animation_Speed3 do
1231
		Swait()
1232
		RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, -0.2 * Player_Size + 0.05 * COS(SINE / 12) * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(80)), 0.15 / Animation_Speed3)
1233
		Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(15 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(-80)), 0.15 / Animation_Speed3)
1234
		RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(90), RAD(0), RAD(90)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed3)
1235
		LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(90), RAD(0), RAD(-2)) * LEFTSHOULDERC0, 0.15 / Animation_Speed3)
1236
		RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -0.8 * Player_Size - 0.05 * COS(SINE / 12) * Player_Size, -0.2 * Player_Size) * ANGLES(RAD(0), RAD(35), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(-2.5)), 0.15 / Animation_Speed3)
1237
		LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -0.8 * Player_Size - 0.05 * COS(SINE / 12) * Player_Size, -0.2 * Player_Size) * ANGLES(RAD(0), RAD(-95), RAD(0)) * ANGLES(RAD(-7.5), RAD(0), RAD(0)), 0.15 / Animation_Speed3)
1238
		HandleWeld.C0 = Clerp(HandleWeld.C0, CF(0.3 * Player_Size, -1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(-10)), 0.15 * (Humanoid.WalkSpeed / 16) / Animation_Speed3)
1239
	end
1240
	Trail.Enabled = false
1241
	paw:disconnect()
1242
	for i=0, 1, 0.1 / Animation_Speed do
1243
		Swait()
1244
		RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, -0.2 * Player_Size + 0.05 * COS(SINE / 12) * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(-60)), 0.15 / Animation_Speed)
1245
		Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(15 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(60)), 0.15 / Animation_Speed)
1246
		RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(90), RAD(0), RAD(30)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
1247
		LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(90), RAD(0), RAD(-2)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
1248
		RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -0.8 * Player_Size - 0.05 * COS(SINE / 12) * Player_Size, -0.2 * Player_Size) * ANGLES(RAD(0), RAD(85), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(-2.5)), 0.15 / Animation_Speed)
1249
		LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -0.8 * Player_Size - 0.05 * COS(SINE / 12) * Player_Size, -0.2 * Player_Size) * ANGLES(RAD(0), RAD(-65), RAD(0)) * ANGLES(RAD(-7.5), RAD(0), RAD(0)), 0.15 / Animation_Speed)
1250
		HandleWeld.C0 = Clerp(HandleWeld.C0, CF(-0.4 * Player_Size, -1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(-90)), 0.15 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
1251
	end
1252
	Rooted = false
1253
	ATTACK = false
1254
end
1255
1256
function FlyingSlash()
1257
	ATTACK = true
1258
	for i=0, 8, 0.1 / Animation_Speed2 do
1259
		Swait()
1260
		RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, -0.2 * Player_Size + 0.05 * COS(SINE / 12) * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(30)), 0.15 / Animation_Speed2)
1261
		Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(15 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(-20)), 0.15 / Animation_Speed2)
1262
		RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(90), RAD(0), RAD(30)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed2)
1263
		LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(90), RAD(0), RAD(-2)) * LEFTSHOULDERC0, 0.15 / Animation_Speed2)
1264
		RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -0.8 * Player_Size - 0.05 * COS(SINE / 12) * Player_Size, -0.2 * Player_Size) * ANGLES(RAD(0), RAD(85), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(-2.5)), 0.15 / Animation_Speed2)
1265
		LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -0.8 * Player_Size - 0.05 * COS(SINE / 12) * Player_Size, -0.2 * Player_Size) * ANGLES(RAD(0), RAD(-65), RAD(0)) * ANGLES(RAD(-7.5), RAD(0), RAD(0)), 0.15 / Animation_Speed2)
1266
		HandleWeld.C0 = Clerp(HandleWeld.C0, CF(-0.4 * Player_Size, -1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(-90)), 0.15 * (Humanoid.WalkSpeed / 16) / Animation_Speed2)
1267
	end
1268
	Rooted = true
1269
	Trail.Enabled = true
1270
	local sphere = Instance.new("Part",Effects)
1271
	sphere.Size = Vector3.new(15,1,1)
1272
	sphere.Material = "Neon"
1273
	sphere.Name = "Energy swipe"
1274
	sphere.BrickColor = BrickColor.new("Gold")
1275
	sphere.CFrame = RootPart.CFrame * CF(0,0.6,0)
1276
	sphere.CanCollide = false
1277
	local mesh = Instance.new("SpecialMesh",sphere)
1278
	mesh.MeshType = "Sphere"
1279
	local bv = Instance.new("BodyVelocity") 
1280
	bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
1281
	bv.velocity = RootPart.CFrame.lookVector*150
1282
	bv.Parent = sphere
1283
	bv.Name = "DASH"
1284
	table.insert(Effects2,{sphere,"Disappear",0.02,2,2,2,2})
1285
	local paw = sphere.Touched:Connect(function(hit)
1286
		dealdamage(hit,15,25,5,false,7,2,0.5)
1287
	end) 
1288
	local bv = Instance.new("BodyVelocity") 
1289
	bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
1290
	bv.velocity = RootPart.CFrame.lookVector * -50
1291
	bv.Parent = Torso
1292
	bv.Name = "DASH"
1293
	ATTACK = false
1294
	Rooted = false
1295
	game:GetService("Debris"):AddItem(bv, 0.05)
1296
	CreateSound("615910787", sphere, 5, MRANDOM(7, 12) / 10)
1297
	for i=0, 4, 0.1 / Animation_Speed3 do
1298
		Swait()
1299
		RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, -0.2 * Player_Size + 0.05 * COS(SINE / 12) * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(-80)), 0.15 / Animation_Speed3)
1300
		Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(15 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(70)), 0.15 / Animation_Speed3)
1301
		RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(90), RAD(0), RAD(80)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed3)
1302
		LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(30), RAD(0), RAD(-2)) * LEFTSHOULDERC0, 0.15 / Animation_Speed3)
1303
		RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -0.8 * Player_Size - 0.05 * COS(SINE / 12) * Player_Size, -0.2 * Player_Size) * ANGLES(RAD(0), RAD(85), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(-2.5)), 0.15 / Animation_Speed3)
1304
		LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -0.8 * Player_Size - 0.05 * COS(SINE / 12) * Player_Size, -0.2 * Player_Size) * ANGLES(RAD(0), RAD(-65), RAD(0)) * ANGLES(RAD(-7.5), RAD(0), RAD(0)), 0.15 / Animation_Speed3)
1305
		HandleWeld.C0 = Clerp(HandleWeld.C0, CF(-0.4 * Player_Size, -1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(-90)), 0.15 * (Humanoid.WalkSpeed / 16) / Animation_Speed3)
1306
	end
1307
	Trail.Enabled = false
1308
	Swait(50)
1309
	Rooted = false
1310
	ATTACK = false
1311
end
1312
1313
function MoxieWheel()
1314
	ATTACK = true
1315
	for i=0, 1, 0.1 / Animation_Speed2 do
1316
		Swait()
1317
		RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, 10 * Player_Size + 0.05 * COS(SINE / 12) * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed2)
1318
		Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(-35 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed2)
1319
		RightShoulder.C0 = Clerp(RightShoulder.C0, CF(0.75 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(130), RAD(0), RAD(-35)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed2)
1320
		LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-0.75 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(130), RAD(0), RAD(35)) * LEFTSHOULDERC0, 0.15 / Animation_Speed2)
1321
		RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -0.8 * Player_Size - 0.05 * COS(SINE / 12) * Player_Size, -0.2 * Player_Size) * ANGLES(RAD(0), RAD(85), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(-2.5)), 0.15 / Animation_Speed2)
1322
		LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -0.8 * Player_Size - 0.05 * COS(SINE / 12) * Player_Size, -0.2 * Player_Size) * ANGLES(RAD(0), RAD(-65), RAD(0)) * ANGLES(RAD(-7.5), RAD(0), RAD(0)), 0.15 / Animation_Speed2)
1323
		HandleWeld.C0 = Clerp(HandleWeld.C0, CF(0 * Player_Size, -1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(100), RAD(120), RAD(-35)), 0.15 * (Humanoid.WalkSpeed / 16) / Animation_Speed2)
1324
	end
1325
	Speed = 75
1326
	local paw = hitbox.Touched:Connect(function(hit)
1327
		dealdamage(hit,25,35,5,false,7,2,0.05)
1328
	end) 
1329
	local loop = IT("Sound",hitbox)
1330
	loop.Looped = true
1331
	loop.SoundId = "http://www.roblox.com/asset/?id=120745021"
1332
	loop:Play()
1333
	loop.Volume = 6
1334
	Trail.Enabled = true
1335
	local TOR = 0
1336
	for i = 1, 55 do
1337
		TOR = TOR + 80
1338
			for i=0, 0.6, 0.1 / Animation_Speed3 do
1339
			Swait()
1340
			RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, 10 * Player_Size + 0.05 * COS(SINE / 12) * Player_Size) * ANGLES(RAD(TOR), RAD(0), RAD(0)), 0.15 / Animation_Speed3)
1341
			Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(-35 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed3)
1342
			RightShoulder.C0 = Clerp(RightShoulder.C0, CF(0.75 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(130), RAD(0), RAD(-35)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed3)
1343
			LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-0.75 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(130), RAD(0), RAD(35)) * LEFTSHOULDERC0, 0.15 / Animation_Speed3)
1344
			RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -0.8 * Player_Size - 0.05 * COS(SINE / 12) * Player_Size, -0.2 * Player_Size) * ANGLES(RAD(0), RAD(85), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(-2.5)), 0.15 / Animation_Speed3)
1345
			LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -0.8 * Player_Size - 0.05 * COS(SINE / 12) * Player_Size, -0.2 * Player_Size) * ANGLES(RAD(0), RAD(-65), RAD(0)) * ANGLES(RAD(-7.5), RAD(0), RAD(0)), 0.15 / Animation_Speed3)
1346
			HandleWeld.C0 = Clerp(HandleWeld.C0, CF(0 * Player_Size, -1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(100), RAD(120), RAD(-35)), 0.15 / Animation_Speed3)
1347
		end
1348
	end
1349
	loop:Stop()
1350
	loop:remove()
1351
	Rooted = true
1352
	paw:disconnect()
1353
	for i=0, 1.5, 0.1 / Animation_Speed3 do
1354
		Swait()
1355
		RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, -0.2 * Player_Size + 0.05 * COS(SINE / 12) * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(-60)), 0.15 / Animation_Speed3)
1356
		Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(15 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(60)), 0.15 / Animation_Speed3)
1357
		RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(90), RAD(0), RAD(30)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed3)
1358
		LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(90), RAD(0), RAD(-2)) * LEFTSHOULDERC0, 0.15 / Animation_Speed3)
1359
		RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -0.8 * Player_Size - 0.05 * COS(SINE / 12) * Player_Size, -0.2 * Player_Size) * ANGLES(RAD(0), RAD(85), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(-2.5)), 0.15 / Animation_Speed3)
1360
		LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -0.8 * Player_Size - 0.05 * COS(SINE / 12) * Player_Size, -0.2 * Player_Size) * ANGLES(RAD(0), RAD(-65), RAD(0)) * ANGLES(RAD(-7.5), RAD(0), RAD(0)), 0.15 / Animation_Speed3)
1361
		HandleWeld.C0 = Clerp(HandleWeld.C0, CF(-0.4 * Player_Size, -1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(-90)), 0.15 * (Humanoid.WalkSpeed / 16) / Animation_Speed3)
1362
	end
1363
	Speed = 16
1364
	Rooted = false
1365
	Trail.Enabled = false
1366
	ATTACK = false
1367
end
1368
1369
function GigastunStrobe()
1370
	ATTACK = true
1371
	for i=0, 1.5, 0.1 / Animation_Speed do
1372
		Swait()
1373
		RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, -0.2 * Player_Size + 0.05 * COS(SINE / 12) * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
1374
		Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(-45 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed)
1375
		RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(180), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
1376
		LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
1377
		RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -0.8 * Player_Size - 0.05 * COS(SINE / 12) * Player_Size, -0.2 * Player_Size) * ANGLES(RAD(0), RAD(85), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(-2.5)), 0.15 / Animation_Speed)
1378
		LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -0.8 * Player_Size - 0.05 * COS(SINE / 12) * Player_Size, -0.2 * Player_Size) * ANGLES(RAD(0), RAD(-65), RAD(0)) * ANGLES(RAD(-7.5), RAD(0), RAD(0)), 0.15 / Animation_Speed)
1379
		HandleWeld.C0 = Clerp(HandleWeld.C0, CF(-0.4 * Player_Size, -1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
1380
	end
1381
	for i = 1, 5 do
1382
		CreateSound("1225795161", tip, 5, MRANDOM(7, 12) / 10)
1383
		MagicSphere(10,15,tip.CFrame,0,"Cyan")
1384
		MagicSphere(5,20,tip.CFrame,0,"Gold")
1385
		Swait(25)
1386
	end
1387
	CreateSound("160740144", tip, 5, MRANDOM(7, 12) / 10)
1388
	MagicSphere(0.25,55,tip.CFrame,0,"Cyan")
1389
	MagicSphere(0.2,55,tip.CFrame,0,"Gold")
1390
	CreateRing(0,1.5,true,0.2,55,tip,0,-0.2,0.2,"Cyan")
1391
	CreateRing(0,3,true,-0.2,55,tip,0,0.2,-0.2,"Cyan")
1392
	CreateRing(0,1.5,true,-0.2,55,tip,0,0.2,-0.2,"Gold")
1393
	CreateRing(0,3,true,0.2,55,tip,0,-0.2,0.2,"Gold")
1394
	MagicSphere(5.5,55,tip.CFrame,0,"Cyan")
1395
	MagicSphere(5,55,tip.CFrame,0,"Gold")
1396
	AoEStun(RootPart.Position,35)
1397
	Swait(50)
1398
	ATTACK = false
1399
end
1400
1401
function MoxieImpaler()
1402
	ATTACK = true
1403
	for i=0, 4, 0.1 / Animation_Speed do
1404
		Swait()
1405
		RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, -0.2 * Player_Size + 0.05 * COS(SINE / 12) * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(-90)), 0.15 / Animation_Speed)
1406
		Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(15 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(90)), 0.15 / Animation_Speed)
1407
		RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(90), RAD(0), RAD(30)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
1408
		LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(90), RAD(0), RAD(-2)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
1409
		RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -0.8 * Player_Size - 0.05 * COS(SINE / 12) * Player_Size, -0.2 * Player_Size) * ANGLES(RAD(0), RAD(85), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(-2.5)), 0.15 / Animation_Speed)
1410
		LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -0.8 * Player_Size - 0.05 * COS(SINE / 12) * Player_Size, -0.2 * Player_Size) * ANGLES(RAD(0), RAD(-65), RAD(0)) * ANGLES(RAD(-7.5), RAD(0), RAD(0)), 0.15 / Animation_Speed)
1411
		HandleWeld.C0 = Clerp(HandleWeld.C0, CF(-0.4 * Player_Size, -1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(-90)), 0.15 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
1412
	end
1413
	Rooted = true
1414
	for i=0, 1, 0.1 / Animation_Speed2 do
1415
		Swait()
1416
		RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, -0.2 * Player_Size + 0.05 * COS(SINE / 12) * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(80)), 0.15 / Animation_Speed2)
1417
		Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(15 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(-80)), 0.15 / Animation_Speed2)
1418
		RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(90), RAD(0), RAD(160)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed2)
1419
		LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(90), RAD(0), RAD(-2)) * LEFTSHOULDERC0, 0.15 / Animation_Speed2)
1420
		RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -0.8 * Player_Size - 0.05 * COS(SINE / 12) * Player_Size, -0.2 * Player_Size) * ANGLES(RAD(0), RAD(35), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(-2.5)), 0.15 / Animation_Speed2)
1421
		LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -0.8 * Player_Size - 0.05 * COS(SINE / 12) * Player_Size, -0.2 * Player_Size) * ANGLES(RAD(0), RAD(-95), RAD(0)) * ANGLES(RAD(-7.5), RAD(0), RAD(0)), 0.15 / Animation_Speed2)
1422
		HandleWeld.C0 = Clerp(HandleWeld.C0, CF(0.3 * Player_Size, -1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(-10)), 0.15 * (Humanoid.WalkSpeed / 16) / Animation_Speed2)
1423
	end
1424
	CreateSound("444667859", tip, 10, MRANDOM(7, 12) / 10)
1425
	local offset = 0
1426
	local size = 5
1427
	for i = 1, 20 do
1428
		CreateWave(0,size,true,0.05,25,tip.CFrame * CF(0,-offset,0),"Cyan")
1429
		MagicSphere(size/2,25,tip.CFrame * CF(0,-offset,0),0,"Cyan")
1430
		size = size - 0.25
1431
		offset = offset + 5
1432
		AoEImpale(tip.CFrame * CF(0,-offset,0).p,size*3)
1433
	end
1434
	for i=0, 8, 0.1 / Animation_Speed2 do
1435
		Swait()
1436
		RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, -0.2 * Player_Size + 0.05 * COS(SINE / 12) * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(80)), 0.15 / Animation_Speed2)
1437
		Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(15 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(-80)), 0.15 / Animation_Speed2)
1438
		RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(90), RAD(0), RAD(160)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed2)
1439
		LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(90), RAD(0), RAD(-2)) * LEFTSHOULDERC0, 0.15 / Animation_Speed2)
1440
		RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -0.8 * Player_Size - 0.05 * COS(SINE / 12) * Player_Size, -0.2 * Player_Size) * ANGLES(RAD(0), RAD(35), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(-2.5)), 0.15 / Animation_Speed2)
1441
		LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -0.8 * Player_Size - 0.05 * COS(SINE / 12) * Player_Size, -0.2 * Player_Size) * ANGLES(RAD(0), RAD(-95), RAD(0)) * ANGLES(RAD(-7.5), RAD(0), RAD(0)), 0.15 / Animation_Speed2)
1442
		HandleWeld.C0 = Clerp(HandleWeld.C0, CF(0.3 * Player_Size, -1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(-10)), 0.15 * (Humanoid.WalkSpeed / 16) / Animation_Speed2)
1443
	end
1444
	ImpaleFinnish()
1445
	for i=0, 4, 0.1 / Animation_Speed3 do
1446
		Swait()
1447
		RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, -0.2 * Player_Size + 0.05 * COS(SINE / 12) * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(-90)), 0.15 / Animation_Speed3)
1448
		Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(15 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(90)), 0.15 / Animation_Speed3)
1449
		RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(90), RAD(0), RAD(30)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed3)
1450
		LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(90), RAD(0), RAD(-2)) * LEFTSHOULDERC0, 0.15 / Animation_Speed3)
1451
		RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -0.8 * Player_Size - 0.05 * COS(SINE / 12) * Player_Size, -0.2 * Player_Size) * ANGLES(RAD(0), RAD(85), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(-2.5)), 0.15 / Animation_Speed3)
1452
		LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -0.8 * Player_Size - 0.05 * COS(SINE / 12) * Player_Size, -0.2 * Player_Size) * ANGLES(RAD(0), RAD(-65), RAD(0)) * ANGLES(RAD(-7.5), RAD(0), RAD(0)), 0.15 / Animation_Speed3)
1453
		HandleWeld.C0 = Clerp(HandleWeld.C0, CF(-0.4 * Player_Size, -1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(-90)), 0.15 * (Humanoid.WalkSpeed / 16) / Animation_Speed3)
1454
	end
1455
	Rooted = false
1456
	ATTACK = false
1457
end
1458
1459
--//=================================\\
1460
--||	  ASSIGN THINGS TO KEYS
1461
--\\=================================//
1462
1463
Humanoid.Changed:connect(function(Jump)
1464
	if Jump == "Jump" and (Disable_Jump == true or DISABLEJUMPING == true) then
1465
		Humanoid.Jump = false
1466
	end
1467
end)
1468
1469
function MouseDown(Mouse)
1470
	if ATTACK == false then
1471
		if COMBO == 1 then
1472
			COMBO = nil
1473
			Attack1()
1474
			COMBO = 2
1475
		elseif COMBO == 2 then
1476
			COMBO = nil
1477
			Attack2()
1478
			COMBO = 1
1479
		end
1480
	end
1481
end
1482
1483
function MouseUp(Mouse)
1484
HOLD = false
1485
end
1486
1487
function KeyDown(Key)
1488
	if Key == "z" and MOXIE >= ATTACK1COST and ATTACK == false then
1489
		MOXIE = MOXIE - ATTACK1COST
1490
		FlyingSlash()
1491
	end
1492
1493
	if Key == "b" and MOXIE >= ATTACK2COST and ATTACK == false then
1494
		MOXIE = MOXIE - ATTACK2COST
1495
		MoxieWheel()
1496
	end
1497
1498
	if Key == "c" and MOXIE >= ATTACK3COST and ATTACK == false then
1499
		MOXIE = MOXIE - ATTACK3COST
1500
		GigastunStrobe()
1501
	end
1502
1503
	if Key == "v" and MOXIE >= ATTACK4COST and ATTACK == false then
1504
		MOXIE = MOXIE - ATTACK4COST
1505
		MoxieImpaler()
1506
	end
1507
end
1508
1509
function KeyUp(Key)
1510
end
1511
1512
	Mouse.Button1Down:connect(function(NEWKEY)
1513
		MouseDown(NEWKEY)
1514
	end)
1515
	Mouse.Button1Up:connect(function(NEWKEY)
1516
		MouseUp(NEWKEY)
1517
	end)
1518
	Mouse.KeyDown:connect(function(NEWKEY)
1519
		KeyDown(NEWKEY)
1520
	end)
1521
	Mouse.KeyUp:connect(function(NEWKEY)
1522
		KeyUp(NEWKEY)
1523
	end)
1524
1525
--//=================================\\
1526
--\\=================================//
1527
1528
1529
function unanchor()
1530
	if UNANCHOR == true then
1531
		g = Character:GetChildren()
1532
		for i = 1, #g do
1533
			if g[i].ClassName == "Part" then
1534
				g[i].Anchored = false
1535
			end
1536
		end
1537
	end
1538
end
1539
1540
1541
--//=================================\\
1542
--||	WRAP THE WHOLE SCRIPT UP
1543
--\\=================================//
1544
1545
Humanoid.Changed:connect(function(Jump)
1546
	if Jump == "Jump" and (Disable_Jump == true or DISABLEJUMPING == true) then
1547
		Humanoid.Jump = false
1548
	end
1549
end)
1550
1551
		ANIMATE.Parent = nil
1552
		local IDLEANIMATION = Humanoid:LoadAnimation(ROBLOXIDLEANIMATION)
1553
		IDLEANIMATION:Play()
1554
1555
while true do
1556
	Swait()
1557
	SINE = SINE + CHANGE
1558
	local TORSOVELOCITY = (RootPart.Velocity * VT(1, 0, 1)).magnitude
1559
	local TORSOVERTICALVELOCITY = RootPart.Velocity.y
1560
	local LV = Torso.CFrame:pointToObjectSpace(Torso.Velocity - Torso.Position)
1561
	local HITFLOOR = Raycast(RootPart.Position, (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 4 * Player_Size, Character)
1562
	local WALKSPEEDVALUE = 6 / (Humanoid.WalkSpeed / 16)
1563
		if ANIM == "Walk" and TORSOVELOCITY > 1 then
1564
			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)
1565
			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)
1566
			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)
1567
			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)
1568
		elseif (ANIM ~= "Walk") or (TORSOVELOCITY < 1) then
1569
			RootJoint.C1 = Clerp(RootJoint.C1, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
1570
			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)
1571
			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)
1572
			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)
1573
		end
1574
		if TORSOVERTICALVELOCITY > 1 and HITFLOOR == nil then
1575
			ANIM = "Jump"
1576
			if ATTACK == false then
1577
				RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, -0.2 * Player_Size + 0.05 * COS(SINE / 12) * Player_Size) * ANGLES(RAD(-5), RAD(0), RAD(-60)), 0.15 / Animation_Speed)
1578
				Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(15 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(60)), 0.15 / Animation_Speed)
1579
				RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(90), RAD(0), RAD(30)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
1580
				LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(90), RAD(0), RAD(-2)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
1581
				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)
1582
				LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -0.5 * Player_Size, -0.3 * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(20)), 0.2 / Animation_Speed)
1583
				HandleWeld.C0 = Clerp(HandleWeld.C0, CF(-0.4 * Player_Size, -1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(-90)), 0.15 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
1584
	        end
1585
		elseif TORSOVERTICALVELOCITY < -1 and HITFLOOR == nil then
1586
			ANIM = "Fall"
1587
			if ATTACK == false then
1588
				RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, -0.2 * Player_Size + 0.05 * COS(SINE / 12) * Player_Size) * ANGLES(RAD(15), RAD(0), RAD(-60)), 0.15 / Animation_Speed)
1589
				Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(15 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(60)), 0.15 / Animation_Speed)
1590
				RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(90), RAD(0), RAD(30)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
1591
				LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(90), RAD(0), RAD(-2)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
1592
				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)
1593
				LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-25), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(10)), 0.2 / Animation_Speed)
1594
				HandleWeld.C0 = Clerp(HandleWeld.C0, CF(-0.4 * Player_Size, -1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(-90)), 0.15 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
1595
			end
1596
		elseif TORSOVELOCITY < 1 and HITFLOOR ~= nil then
1597
			ANIM = "Idle"
1598
			if ATTACK == false then
1599
				RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, -0.2 * Player_Size + 0.05 * COS(SINE / 12) * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(-60)), 0.15 / Animation_Speed)
1600
				Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(15 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(60)), 0.15 / Animation_Speed)
1601
				RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(90), RAD(0), RAD(30)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
1602
				LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(90), RAD(0), RAD(-2)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
1603
				RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -0.8 * Player_Size - 0.05 * COS(SINE / 12) * Player_Size, -0.2 * Player_Size) * ANGLES(RAD(0), RAD(85), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(-2.5)), 0.15 / Animation_Speed)
1604
				LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -0.8 * Player_Size - 0.05 * COS(SINE / 12) * Player_Size, -0.2 * Player_Size) * ANGLES(RAD(0), RAD(-65), RAD(0)) * ANGLES(RAD(-7.5), RAD(0), RAD(0)), 0.15 / Animation_Speed)
1605
				HandleWeld.C0 = Clerp(HandleWeld.C0, CF(-0.4 * Player_Size, -1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(-90)), 0.15 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
1606
			end
1607
		elseif TORSOVELOCITY > 1 and HITFLOOR ~= nil then
1608
			ANIM = "Walk"
1609
			WALK = WALK + 1 / Animation_Speed
1610
			if WALK >= 15 - (5 * (Humanoid.WalkSpeed / 16 / Player_Size)) then
1611
				WALK = 0
1612
				if WALKINGANIM == true then
1613
					WALKINGANIM = false
1614
				elseif WALKINGANIM == false then
1615
					WALKINGANIM = true
1616
				end
1617
			end
1618
			--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)
1619
			--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)
1620
			if ATTACK == false then
1621
				RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, -0.2 * Player_Size + 0.05 * COS(SINE / 12) * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(-60)), 0.15 / Animation_Speed)
1622
				Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(15 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(60)), 0.15 / Animation_Speed)
1623
				RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(90), RAD(0), RAD(30)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
1624
				LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(90), RAD(0), RAD(-2)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
1625
				RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -0.8 * Player_Size - 0.05 * COS(SINE / 12) * Player_Size, -0.2 * Player_Size) * ANGLES(RAD(0), RAD(85), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(-2.5)), 0.15 / Animation_Speed)
1626
				LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -0.8 * Player_Size - 0.05 * COS(SINE / 12) * Player_Size, -0.2 * Player_Size) * ANGLES(RAD(0), RAD(-65), RAD(0)) * ANGLES(RAD(-7.5), RAD(0), RAD(0)), 0.15 / Animation_Speed)
1627
				HandleWeld.C0 = Clerp(HandleWeld.C0, CF(-0.4 * Player_Size, -1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(-90)), 0.15 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
1628
			end
1629
		end
1630
if #Effects2>0 then
1631
for e=1,#Effects2 do
1632
if Effects2[e]~=nil then
1633
local Thing=Effects2[e]
1634
if Thing~=nil then
1635
local Part=Thing[1]
1636
local Mode=Thing[2]
1637
local Delay=Thing[3]
1638
local IncX=Thing[4]
1639
local IncY=Thing[5]
1640
local IncZ=Thing[6]
1641
local Part2=Thing[8]
1642
if Thing[1].Transparency<=1 then
1643
if Thing[2]=="Block1" then
1644
Thing[1].CFrame=Thing[1].CFrame
1645
Mesh=Thing[1].Mesh
1646
Mesh.Scale=Mesh.Scale+VT(Thing[4],Thing[5],Thing[6])
1647
Thing[1].Transparency=Thing[1].Transparency+Thing[3]
1648
elseif Thing[2]=="Cylinder" then
1649
Mesh=Thing[1].Mesh
1650
Mesh.Scale=Mesh.Scale+VT(Thing[4],Thing[5],Thing[6])
1651
Thing[1].Transparency=Thing[1].Transparency+Thing[3]
1652
elseif Thing[2]=="Blood" then
1653
Mesh=Thing[7]
1654
Thing[1].CFrame=Thing[1].CFrame*CF(0,.5,0)
1655
Mesh.Scale=Mesh.Scale+VT(Thing[4],Thing[5],Thing[6])
1656
Thing[1].Transparency=Thing[1].Transparency+Thing[3]
1657
elseif Thing[2]=="Elec" then
1658
Mesh=Thing[1].Mesh
1659
Mesh.Scale=Mesh.Scale+VT(Thing[7],Thing[8],Thing[9])
1660
Thing[1].Transparency=Thing[1].Transparency+Thing[3]
1661
elseif Thing[2]=="Disappear" then
1662
Thing[1].Transparency=Thing[1].Transparency+Thing[3]
1663
end
1664
else
1665
Part.Parent=nil
1666
table.remove(Effects2,e)
1667
end
1668
end
1669
end
1670
end
1671
end
1672
unanchor()
1673
Humanoid.MaxHealth = "inf"
1674
Humanoid.Health = "inf"
1675
if Rooted == false then
1676
	Disable_Jump = false
1677
	Humanoid.WalkSpeed = Speed
1678
elseif Rooted == true then
1679
	Disable_Jump = true
1680
	Humanoid.WalkSpeed = 0
1681
end
1682
	SKILL5TEXT.Text = "MOXIE: "..MOXIE
1683
end
1684
1685
--//=================================\\
1686
--\\=================================//
1687
1688
1689
1690
1691
1692
--//====================================================\\--
1693
--||			  		 END OF SCRIPT
1694
--\\====================================================//--