View difference between Paste ID: p1H8aLZ1 and xwyanXrY
SHOW: | | - or go back to the newest paste.
1
--https://github.com/Mokiros/roblox-FE-compatibility
2
if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
3
local Player,Mouse,mouse,UserInputService,ContextActionService = owner
4
local RealPlayer = Player
5
do print("FE Compatibility code by Mokiros")local a=RealPlayer;script.Parent=a.Character;local b=Instance.new("RemoteEvent")b.Name="UserInput_Event"local function c()local d={_fakeEvent=true,Functions={},Connect=function(self,e)table.insert(self.Functions,e)end}d.connect=d.Connect;return d end;local f={Target=nil,Hit=CFrame.new(),KeyUp=c(),KeyDown=c(),Button1Up=c(),Button1Down=c(),Button2Up=c(),Button2Down=c()}local g={InputBegan=c(),InputEnded=c()}local CAS={Actions={},BindAction=function(self,h,i,j,...)CAS.Actions[h]=i and{Name=h,Function=i,Keys={...}}or nil end}CAS.UnbindAction=CAS.BindAction;local function k(self,l,...)local d=f[l]if d and d._fakeEvent then for m,e in pairs(d.Functions)do e(...)end end end;f.TrigEvent=k;g.TrigEvent=k;b.OnServerEvent:Connect(function(n,o)if n~=a then return end;f.Target=o.Target;f.Hit=o.Hit;if not o.isMouse then local p=o.UserInputState==Enum.UserInputState.Begin;if o.UserInputType==Enum.UserInputType.MouseButton1 then return f:TrigEvent(p and"Button1Down"or"Button1Up")end;if o.UserInputType==Enum.UserInputType.MouseButton2 then return f:TrigEvent(p and"Button2Down"or"Button2Up")end;for m,d in pairs(CAS.Actions)do for m,q in pairs(d.Keys)do if q==o.KeyCode then d.Function(d.Name,o.UserInputState,o)end end end;f:TrigEvent(p and"KeyDown"or"KeyUp",o.KeyCode.Name:lower())g:TrigEvent(p and"InputBegan"or"InputEnded",o,false)end end)b.Parent=NLS([==[local a=game:GetService("Players").LocalPlayer;local b=script:WaitForChild("UserInput_Event")local c=a:GetMouse()local d=game:GetService("UserInputService")local e=function(f,g)if g then return end;b:FireServer({KeyCode=f.KeyCode,UserInputType=f.UserInputType,UserInputState=f.UserInputState,Hit=c.Hit,Target=c.Target})end;d.InputBegan:Connect(e)d.InputEnded:Connect(e)local h,i;while wait(1/30)do if h~=c.Hit or i~=c.Target then h,i=c.Hit,c.Target;b:FireServer({isMouse=true,Target=i,Hit=h})end end]==],Player.Character)local r=game;local s={__index=function(self,q)local t=rawget(self,"_RealService")if t then return typeof(t[q])=="function"and function(m,...)return t[q](t,...)end or t[q]end end,__newindex=function(self,q,u)local t=rawget(self,"_RealService")if t then t[q]=u end end}local function v(d,w)d._RealService=typeof(w)=="string"and r:GetService(w)or w;return setmetatable(d,s)end;local x={GetService=function(self,t)return rawget(self,t)or r:GetService(t)end,Players=v({LocalPlayer=v({GetMouse=function(self)return f end},Player)},"Players"),UserInputService=v(g,"UserInputService"),ContextActionService=v(CAS,"ContextActionService"),RunService=v({_btrs={},RenderStepped=r:GetService("RunService").Heartbeat,BindToRenderStep=function(self,h,m,i)self._btrs[h]=self.Heartbeat:Connect(i)end,UnbindFromRenderStep=function(self,h)self._btrs[h]:Disconnect()end},"RunService")}rawset(x.Players,"localPlayer",x.Players.LocalPlayer)x.service=x.GetService;v(x,game)game,owner=x,x.Players.LocalPlayer end
6
7
8
Player = game.Players.LocalPlayer
9
	Character = Player.Character
10
	local txt = Instance.new("BillboardGui", Character)
11
	txt.Adornee = Character.Head
12
	txt.Name = "_status"
13
	txt.Size = UDim2.new(2, 0, 1.2, 0)
14
	txt.StudsOffset = Vector3.new(-9, 8, 0)
15
	local text = Instance.new("TextLabel", txt)
16
	text.Size = UDim2.new(10, 0, 7, 0)
17
	text.FontSize = "Size24"
18
	text.TextScaled = true
19
	text.TextTransparency = 0
20
	text.BackgroundTransparency = 1 
21
	text.TextTransparency = 0
22
	text.TextStrokeTransparency = 0
23
	text.Font = "Antique"
24
	text.TextStrokeColor3 = Color3.new(20,50,80)
25
        text.Text = "LOL"
26
        print("Edited by Penien23")
27
--//====================================================\\--
28
--||			   CREATED BY SHACKLUSTER EDIT BY NAMECLAN
29
--\\====================================================//--
30
31
script:ClearAllChildren()
32
wait(0.2)
33
34
Player = game:GetService("Players").LocalPlayer
35
PlayerGui = Player.PlayerGui
36
Cam = workspace.CurrentCamera
37
Backpack = Player.Backpack
38
Character = Player.Character
39
Humanoid = Character.Humanoid
40
Mouse = Player:GetMouse()
41
RootPart = Character["HumanoidRootPart"]
42
Torso = Character["Torso"]
43
Head = Character["Head"]
44
RightArm = Character["Right Arm"]
45
LeftArm = Character["Left Arm"]
46
RightLeg = Character["Right Leg"]
47
LeftLeg = Character["Left Leg"]
48
RootJoint = RootPart["RootJoint"]
49
Neck = Torso["Neck"]
50
RightShoulder = Torso["Right Shoulder"]
51
LeftShoulder = Torso["Left Shoulder"]
52
RightHip = Torso["Right Hip"]
53
LeftHip = Torso["Left Hip"]
54
local TIME = 0
55
local sick = Instance.new("Sound",Torso)
56
57
IT = Instance.new
58
CF = CFrame.new
59
VT = Vector3.new
60
RAD = math.rad
61
C3 = Color3.new
62
UD2 = UDim2.new
63
BRICKC = BrickColor.new
64
ANGLES = CFrame.Angles
65
EULER = CFrame.fromEulerAnglesXYZ
66
COS = math.cos
67
ACOS = math.acos
68
SIN = math.sin
69
ASIN = math.asin
70
ABS = math.abs
71
MRANDOM = math.random
72
FLOOR = math.floor
73
74
--//=================================\\
75
--|| 	      USEFUL VALUES
76
--\\=================================//
77
78
Animation_Speed = 5
79
local FORCERESET = false
80
Frame_Speed = 1 / 60 -- (1 / 30) OR (1 / 60)
81
local Speed = 40
82
local ROOTC0 = CF(0, 0, 0) * ANGLES(RAD(-90), RAD(0), RAD(180))
83
local NECKC0 = CF(0, 1, 0) * ANGLES(RAD(-90), RAD(0), RAD(180))
84
local RIGHTSHOULDERC0 = CF(-0.5, 0, 0) * ANGLES(RAD(0), RAD(90), RAD(0))
85
local LEFTSHOULDERC0 = CF(0.5, 0, 0) * ANGLES(RAD(0), RAD(-90), RAD(0))
86
local DAMAGEMULTIPLIER = 1
87
local ANIM = "Idle"
88
local ATTACK = false
89
local EQUIPPED = false
90
local HOLD = false
91
local COMBO = 1
92
local Rooted = false
93
local SINE = 0
94
local KEYHOLD = false
95
local CHANGE = 2 / Animation_Speed
96
local WALKINGANIM = false
97
local VALUE1 = false
98
local VALUE2 = false
99
local ROBLOXIDLEANIMATION = IT("Animation")
100
ROBLOXIDLEANIMATION.Name = "Roblox Idle Animation"
101
ROBLOXIDLEANIMATION.AnimationId = "http://www.roblox.com/asset/?id=180435571"
102
--ROBLOXIDLEANIMATION.Parent = Humanoid
103
local WEAPONGUI = IT("ScreenGui", PlayerGui)
104
WEAPONGUI.Name = "BanishV3Gui"
105
local Weapon = IT("Model")
106
Weapon.Name = "Adds"
107
local Effects = IT("Folder", Weapon)
108
Effects.Name = "Effects"
109
local ANIMATOR = Humanoid.Animator
110
local ANIMATE = Character:FindFirstChild("Animate")
111
local UNANCHOR = true
112
local TOBANISH = {}
113
script.Parent = PlayerGui
114
115
--//=================================\\
116
--\\=================================//
117
118
119
--//=================================\\
120
--|| SAZERENOS' ARTIFICIAL HEARTBEAT
121
--\\=================================//
122
123
ArtificialHB = Instance.new("BindableEvent", script)
124
ArtificialHB.Name = "ArtificialHB"
125
126
script:WaitForChild("ArtificialHB")
127
128
frame = Frame_Speed
129
tf = 0
130
allowframeloss = false
131
tossremainder = false
132
lastframe = tick()
133
script.ArtificialHB:Fire()
134
135
game:GetService("RunService").Heartbeat:connect(function(s, p)
136
	tf = tf + s
137
	if tf >= frame then
138
		if allowframeloss then
139
			script.ArtificialHB:Fire()
140
			lastframe = tick()
141
		else
142
			for i = 1, math.floor(tf / frame) do
143
				script.ArtificialHB:Fire()
144
			end
145
		lastframe = tick()
146
		end
147
		if tossremainder then
148
			tf = 0
149
		else
150
			tf = tf - frame * math.floor(tf / frame)
151
		end
152
	end
153
end)
154
155
--//=================================\\
156
--\\=================================//
157
158
--//=================================\\
159
--|| 	      SOME FUNCTIONS
160
--\\=================================//
161
162
function Raycast(POSITION, DIRECTION, RANGE, IGNOREDECENDANTS)
163
	return workspace:FindPartOnRay(Ray.new(POSITION, DIRECTION.unit * RANGE), IGNOREDECENDANTS)
164
end
165
166
function PositiveAngle(NUMBER)
167
	if NUMBER >= 0 then
168
		NUMBER = 0
169
	end
170
	return NUMBER
171
end
172
173
function NegativeAngle(NUMBER)
174
	if NUMBER <= 0 then
175
		NUMBER = 0
176
	end
177
	return NUMBER
178
end
179
180
function Swait(NUMBER)
181
	if NUMBER == 0 or NUMBER == nil then
182
		ArtificialHB.Event:wait()
183
	else
184
		for i = 1, NUMBER do
185
			ArtificialHB.Event:wait()
186
		end
187
	end
188
end
189
190
function CreateMesh(MESH, PARENT, MESHTYPE, MESHID, TEXTUREID, SCALE, OFFSET)
191
	local NEWMESH = IT(MESH)
192
	if MESH == "SpecialMesh" then
193
		NEWMESH.MeshType = MESHTYPE
194
		if MESHID ~= "nil" and MESHID ~= "" then
195
			NEWMESH.MeshId = "http://www.roblox.com/asset/?id="..MESHID
196
		end
197
		if TEXTUREID ~= "nil" and TEXTUREID ~= "" then
198
			NEWMESH.TextureId = "http://www.roblox.com/asset/?id="..TEXTUREID
199
		end
200
	end
201
	NEWMESH.Offset = OFFSET or VT(0, 0, 0)
202
	NEWMESH.Scale = SCALE
203
	NEWMESH.Parent = PARENT
204
	return NEWMESH
205
end
206
207
function CreatePart(FORMFACTOR, PARENT, MATERIAL, REFLECTANCE, TRANSPARENCY, BRICKCOLOR, NAME, SIZE, ANCHOR)
208
	local NEWPART = IT("Part")
209
	NEWPART.formFactor = FORMFACTOR
210
	NEWPART.Reflectance = REFLECTANCE
211
	NEWPART.Transparency = TRANSPARENCY
212
	NEWPART.CanCollide = false
213
	NEWPART.Locked = true
214
	NEWPART.Anchored = true
215
	if ANCHOR == false then
216
		NEWPART.Anchored = false
217
	end
218
	NEWPART.BrickColor = BRICKC(tostring(BRICKCOLOR))
219
	NEWPART.Name = NAME
220
	NEWPART.Size = SIZE
221
	NEWPART.Position = Torso.Position
222
	NEWPART.Material = MATERIAL
223
	NEWPART:BreakJoints()
224
	NEWPART.Parent = PARENT
225
	return NEWPART
226
end
227
228
	local function weldBetween(a, b)
229
	    local weldd = Instance.new("ManualWeld")
230
	    weldd.Part0 = a
231
	    weldd.Part1 = b
232
	    weldd.C0 = CFrame.new()
233
	    weldd.C1 = b.CFrame:inverse() * a.CFrame
234
	    weldd.Parent = a
235
	    return weldd
236
	end
237
238
239
function QuaternionFromCFrame(cf)
240
	local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
241
	local trace = m00 + m11 + m22
242
	if trace > 0 then 
243
		local s = math.sqrt(1 + trace)
244
		local recip = 0.5 / s
245
		return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5
246
	else
247
		local i = 0
248
		if m11 > m00 then
249
			i = 1
250
		end
251
		if m22 > (i == 0 and m00 or m11) then
252
			i = 2
253
		end
254
		if i == 0 then
255
			local s = math.sqrt(m00 - m11 - m22 + 1)
256
			local recip = 0.5 / s
257
			return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip
258
		elseif i == 1 then
259
			local s = math.sqrt(m11 - m22 - m00 + 1)
260
			local recip = 0.5 / s
261
			return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip
262
		elseif i == 2 then
263
			local s = math.sqrt(m22 - m00 - m11 + 1)
264
			local recip = 0.5 / s return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip
265
		end
266
	end
267
end
268
 
269
function QuaternionToCFrame(px, py, pz, x, y, z, w)
270
	local xs, ys, zs = x + x, y + y, z + z
271
	local wx, wy, wz = w * xs, w * ys, w * zs
272
	local xx = x * xs
273
	local xy = x * ys
274
	local xz = x * zs
275
	local yy = y * ys
276
	local yz = y * zs
277
	local zz = z * zs
278
	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))
279
end
280
 
281
function QuaternionSlerp(a, b, t)
282
	local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4]
283
	local startInterp, finishInterp;
284
	if cosTheta >= 0.0001 then
285
		if (1 - cosTheta) > 0.0001 then
286
			local theta = ACOS(cosTheta)
287
			local invSinTheta = 1 / SIN(theta)
288
			startInterp = SIN((1 - t) * theta) * invSinTheta
289
			finishInterp = SIN(t * theta) * invSinTheta
290
		else
291
			startInterp = 1 - t
292
			finishInterp = t
293
		end
294
	else
295
		if (1 + cosTheta) > 0.0001 then
296
			local theta = ACOS(-cosTheta)
297
			local invSinTheta = 1 / SIN(theta)
298
			startInterp = SIN((t - 1) * theta) * invSinTheta
299
			finishInterp = SIN(t * theta) * invSinTheta
300
		else
301
			startInterp = t - 1
302
			finishInterp = t
303
		end
304
	end
305
	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
306
end
307
308
function Clerp(a, b, t)
309
	local qa = {QuaternionFromCFrame(a)}
310
	local qb = {QuaternionFromCFrame(b)}
311
	local ax, ay, az = a.x, a.y, a.z
312
	local bx, by, bz = b.x, b.y, b.z
313
	local _t = 1 - t
314
	return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t))
315
end
316
317
function CreateFrame(PARENT, TRANSPARENCY, BORDERSIZEPIXEL, POSITION, SIZE, COLOR, BORDERCOLOR, NAME)
318
	local frame = IT("Frame")
319
	frame.BackgroundTransparency = TRANSPARENCY
320
	frame.BorderSizePixel = BORDERSIZEPIXEL
321
	frame.Position = POSITION
322
	frame.Size = SIZE
323
	frame.BackgroundColor3 = COLOR
324
	frame.BorderColor3 = BORDERCOLOR
325
	frame.Name = NAME
326
	frame.Parent = PARENT
327
	return frame
328
end
329
330
function CreateLabel(PARENT, TEXT, TEXTCOLOR, TEXTFONTSIZE, TEXTFONT, TRANSPARENCY, BORDERSIZEPIXEL, STROKETRANSPARENCY, NAME)
331
	local label = IT("TextLabel")
332
	label.BackgroundTransparency = 1
333
	label.Size = UD2(1, 0, 1, 0)
334
	label.Position = UD2(0, 0, 0, 0)
335
	label.TextColor3 = TEXTCOLOR
336
	label.TextStrokeTransparency = STROKETRANSPARENCY
337
	label.TextTransparency = TRANSPARENCY
338
	label.FontSize = TEXTFONTSIZE
339
	label.Font = TEXTFONT
340
	label.BorderSizePixel = BORDERSIZEPIXEL
341
	label.TextScaled = false
342
	label.Text = TEXT
343
	label.Name = NAME
344
	label.Parent = PARENT
345
	return label
346
end
347
348
function NoOutlines(PART)
349
	PART.TopSurface, PART.BottomSurface, PART.LeftSurface, PART.RightSurface, PART.FrontSurface, PART.BackSurface = 10, 10, 10, 10, 10, 10
350
end
351
352
function CreateWeldOrSnapOrMotor(TYPE, PARENT, PART0, PART1, C0, C1)
353
	local NEWWELD = IT(TYPE)
354
	NEWWELD.Part0 = PART0
355
	NEWWELD.Part1 = PART1
356
	NEWWELD.C0 = C0
357
	NEWWELD.C1 = C1
358
	NEWWELD.Parent = PARENT
359
	return NEWWELD
360
end
361
362
local S = IT("Sound")
363
function CreateSound(ID, PARENT, VOLUME, PITCH, DOESLOOP)
364
	local NEWSOUND = nil
365
	coroutine.resume(coroutine.create(function()
366
		NEWSOUND = S:Clone()
367
		NEWSOUND.Parent = PARENT
368
		NEWSOUND.Volume = VOLUME
369
		NEWSOUND.Pitch = PITCH
370
		NEWSOUND.SoundId = "http://www.roblox.com/asset/?id="..ID
371
		NEWSOUND:play()
372
		if DOESLOOP == true then
373
			NEWSOUND.Looped = true
374
		else
375
			repeat wait(1) until NEWSOUND.Playing == false or NEWSOUND.Parent ~= PARENT
376
			NEWSOUND:remove()
377
		end
378
	end))
379
	return NEWSOUND
380
end
381
382
function CFrameFromTopBack(at, top, back)
383
	local right = top:Cross(back)
384
	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)
385
end
386
387
--WACKYEFFECT({EffectType = "", Size = VT(1,1,1), Size2 = VT(0,0,0), Transparency = 0, Transparency2 = 1, CFrame = CF(), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
388
function WACKYEFFECT(Table)
389
	local TYPE = (Table.EffectType or "Sphere")
390
	local SIZE = (Table.Size or VT(1,1,1))
391
	local ENDSIZE = (Table.Size2 or VT(0,0,0))
392
	local TRANSPARENCY = (Table.Transparency or 0)
393
	local ENDTRANSPARENCY = (Table.Transparency2 or 1)
394
	local CFRAME = (Table.CFrame or Torso.CFrame)
395
	local MOVEDIRECTION = (Table.MoveToPos or nil)
396
	local ROTATION1 = (Table.RotationX or 0)
397
	local ROTATION2 = (Table.RotationY or 0)
398
	local ROTATION3 = (Table.RotationZ or 0)
399
	local MATERIAL = (Table.Material or "Neon")
400
	local COLOR = (Table.Color or C3(1,1,1))
401
	local TIME = (Table.Time or 45)
402
	local SOUNDID = (Table.SoundID or nil)
403
	local SOUNDPITCH = (Table.SoundPitch or nil)
404
	local SOUNDVOLUME = (Table.SoundVolume or nil)
405
	coroutine.resume(coroutine.create(function()
406
		local PLAYSSOUND = false
407
		local SOUND = nil
408
		local EFFECT = CreatePart(3, Effects, MATERIAL, 0, TRANSPARENCY, BRICKC("Pearl"), "Effect", VT(1,1,1), true)
409
		if SOUNDID ~= nil and SOUNDPITCH ~= nil and SOUNDVOLUME ~= nil then
410
			PLAYSSOUND = true
411
			SOUND = CreateSound(SOUNDID, EFFECT, SOUNDVOLUME, SOUNDPITCH, false)
412
		end
413
		EFFECT.Color = COLOR
414
		local MSH = nil
415
		if TYPE == "Sphere" then
416
			MSH = CreateMesh("SpecialMesh", EFFECT, "Sphere", "", "", SIZE, VT(0,0,0))
417
		elseif TYPE == "Block" then
418
			MSH = IT("BlockMesh",EFFECT)
419
			MSH.Scale = VT(SIZE.X,SIZE.X,SIZE.X)
420
		elseif TYPE == "Wave" then
421
			MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "20329976", "", SIZE, VT(0,0,-SIZE.X/8))
422
		elseif TYPE == "Ring" then
423
			MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "559831844", "", VT(SIZE.X,SIZE.X,0.1), VT(0,0,0))
424
		elseif TYPE == "Slash" then
425
			MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662586858", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0))
426
		elseif TYPE == "Round Slash" then
427
			MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662585058", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0))
428
		elseif TYPE == "Swirl" then
429
			MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "1051557", "", SIZE, VT(0,0,0))
430
		elseif TYPE == "Skull" then
431
			MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "4770583", "", SIZE, VT(0,0,0))
432
		elseif TYPE == "Crystal" then
433
			MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "9756362", "", SIZE, VT(0,0,0))
434
		end
435
		if MSH ~= nil then
436
			local MOVESPEED = nil
437
			if MOVEDIRECTION ~= nil then
438
				MOVESPEED = (CFRAME.p - MOVEDIRECTION).Magnitude/TIME
439
			end
440
			local GROWTH = SIZE - ENDSIZE
441
			local TRANS = TRANSPARENCY - ENDTRANSPARENCY
442
			if TYPE == "Block" then
443
				EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))
444
			else
445
				EFFECT.CFrame = CFRAME
446
			end
447
			for LOOP = 1, TIME+1 do
448
				Swait()
449
				MSH.Scale = MSH.Scale - GROWTH/TIME
450
				if TYPE == "Wave" then
451
					MSH.Offset = VT(0,0,-MSH.Scale.X/8)
452
				end
453
				EFFECT.Transparency = EFFECT.Transparency - TRANS/TIME
454
				if TYPE == "Block" then
455
					EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))
456
				else
457
					EFFECT.CFrame = EFFECT.CFrame*ANGLES(RAD(ROTATION1),RAD(ROTATION2),RAD(ROTATION3))
458
				end
459
				if MOVEDIRECTION ~= nil then
460
					local ORI = EFFECT.Orientation
461
					EFFECT.CFrame = CF(EFFECT.Position,MOVEDIRECTION)*CF(0,0,-MOVESPEED)
462
					EFFECT.Orientation = ORI
463
				end
464
			end
465
			if PLAYSSOUND == false then
466
				EFFECT:remove()
467
			else
468
				SOUND.Stopped:Connect(function()
469
					EFFECT:remove()
470
				end)
471
			end
472
		else
473
			if PLAYSSOUND == false then
474
				EFFECT:remove()
475
			else
476
				repeat Swait() until SOUND.Playing == false
477
				EFFECT:remove()
478
			end
479
		end
480
	end))
481
end
482
483
function MakeForm(PART,TYPE)
484
	if TYPE == "Cyl" then
485
		local MSH = IT("CylinderMesh",PART)
486
	elseif TYPE == "Ball" then
487
		local MSH = IT("SpecialMesh",PART)
488
		MSH.MeshType = "Sphere"
489
	elseif TYPE == "Wedge" then
490
		local MSH = IT("SpecialMesh",PART)
491
		MSH.MeshType = "Wedge"
492
	end
493
end
494
495
function SpawnTrail(FROM,TO,BIG)
496
	local TRAIL = CreatePart(3, Effects, "Neon", 0, 0.5, "Really red", "Trail", VT(0,0,0))
497
	MakeForm(TRAIL,"Cyl")
498
	local DIST = (FROM - TO).Magnitude
499
	if BIG == true then
500
		TRAIL.Size = VT(5,DIST,5)
501
	else
502
		TRAIL.Size = VT(5,DIST,5)
503
	end
504
	TRAIL.CFrame = CF(FROM, TO) * CF(0, 0, -DIST/2) * ANGLES(RAD(90),RAD(0),RAD(0))
505
	coroutine.resume(coroutine.create(function()
506
		for i = 1, 5 do
507
			Swait()
508
			TRAIL.Transparency = TRAIL.Transparency + 0.1
509
		end
510
		TRAIL:remove()
511
	end))
512
end
513
514
Debris = game:GetService("Debris")
515
516
function CastProperRay(StartPos, EndPos, Distance, Ignore)
517
	local DIRECTION = CF(StartPos,EndPos).lookVector
518
	return Raycast(StartPos, DIRECTION, Distance, Ignore)
519
end
520
521
function turnto(position)
522
	RootPart.CFrame=CFrame.new(RootPart.CFrame.p,VT(position.X,RootPart.Position.Y,position.Z)) * CFrame.new(0, 0, 0)
523
end
524
local asd = Instance.new("ParticleEmitter")
525
asd.Color = ColorSequence.new(Color3.new(0.5, 0, 0), Color3.new(.3, 0, 0))
526
asd.LightEmission = .1
527
asd.Texture = "http://www.roblox.com/asset/?ID=291880914"
528
aaa = NumberSequence.new({NumberSequenceKeypoint.new(0, 0.6),NumberSequenceKeypoint.new(1, 2)})
529
bbb = NumberSequence.new({NumberSequenceKeypoint.new(0, 1),NumberSequenceKeypoint.new(0.0636, 0), NumberSequenceKeypoint.new(1, 1)})
530
asd.Transparency = bbb
531
asd.Size = aaa
532
asd.ZOffset = .9
533
asd.Acceleration = Vector3.new(0, -15, 0)
534
asd.LockedToPart = false
535
asd.EmissionDirection = "Back"
536
asd.Lifetime = NumberRange.new(1, 2)
537
asd.Rotation = NumberRange.new(-100, 100)
538
asd.RotSpeed = NumberRange.new(-100, 100)
539
asd.Speed = NumberRange.new(10)
540
asd.Enabled = false
541
asd.VelocitySpread = 999
542
543
function getbloody(victim,amount)
544
	local PART = CreatePart(3, Effects, "Metal", 0, 1, "Mid gray", "Blood", victim.Size)
545
	PART.CFrame = victim.CFrame
546
	local HITPLAYERSOUNDS = {"356551938","264486467"}
547
	Debris:AddItem(PART,5)
548
	CreateSound(HITPLAYERSOUNDS[MRANDOM(1, #HITPLAYERSOUNDS)], PART, 1, (math.random(8,12)/10))
549
	CreateSound(HITPLAYERSOUNDS[MRANDOM(1, #HITPLAYERSOUNDS)], PART, 1, (math.random(8,12)/10))
550
	CreateSound(HITPLAYERSOUNDS[MRANDOM(1, #HITPLAYERSOUNDS)], PART, 1, (math.random(8,12)/10))
551
	local prtcl = asd:Clone()
552
	prtcl.Parent = PART
553
	prtcl:Emit(amount*10)
554
end
555
556
local Particle = IT("ParticleEmitter",nil)
557
Particle.Enabled = false
558
Particle.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,1),NumberSequenceKeypoint.new(0.3,0.95),NumberSequenceKeypoint.new(1,1)})
559
Particle.LightEmission = 0.5
560
Particle.Rate = 150
561
Particle.ZOffset = 1
562
Particle.Rotation = NumberRange.new(-180, 180)
563
Particle.RotSpeed = NumberRange.new(-180, 180)
564
Particle.Texture = "http://www.roblox.com/asset/?id=304437537"
565
Particle.Color = ColorSequence.new(C3(0,1,0),C3(0.4,0,0))
566
567
--ParticleEmitter({Speed = 5, Drag = 0, Size1 = 1, Size2 = 5, Lifetime1 = 1, Lifetime2 = 1.5, Parent = Torso, Emit = 100, Offset = 360, Enabled = false})
568
function ParticleEmitter(Table)
569
	local PRTCL = Particle:Clone()
570
	local Speed = Table.Speed or 5
571
	local Drag = Table.Drag or 0
572
	local Size1 = Table.Size1 or 1
573
	local Size2 = Table.Size2 or 5
574
	local Lifetime1 = Table.Lifetime1 or 1
575
	local Lifetime2 = Table.Lifetime2 or 1.5
576
	local Parent = Table.Parent or Torso
577
	local Emit = Table.Emit or 100
578
	local Offset = Table.Offset or 360
579
	local Acel = Table.Acel or VT(0,0,0)
580
	local Enabled = Table.Enabled or false
581
	PRTCL.Parent = Parent
582
	PRTCL.Size = NumberSequence.new(Size1,Size2)
583
	PRTCL.Lifetime = NumberRange.new(Lifetime1,Lifetime2)
584
	PRTCL.Speed = NumberRange.new(Speed)
585
	PRTCL.VelocitySpread = Offset
586
	PRTCL.Drag = Drag
587
	PRTCL.Acceleration = Acel
588
	if Enabled == false then
589
		PRTCL:Emit(Emit)
590
		Debris:AddItem(PRTCL,Lifetime2)
591
	else
592
		PRTCL.Enabled = true
593
	end
594
	return PRTCL
595
end
596
597
function R_RANDOM(CFRAME,DIST)
598
	return CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))*CF(0,0,-DIST)
599
end
600
601
function CharacterFade(COLOR,TIMER,MOVEDIRECTION,PARENT)
602
	coroutine.resume(coroutine.create(function()
603
		local FADE = IT("Model",Effects)
604
		if PARENT ~= nil then
605
			FADE.Parent = PARENT
606
		end
607
		FADE.Name = "FadingEffect"
608
		for _, c in pairs(Character:GetChildren()) do
609
			if c.ClassName == "Part" then
610
				c.CanCollide = false
611
				local FADER = CreatePart(3, FADE, "Neon", 0, 0.75, BRICKC("Really red"), c.Name, c.Size, true)
612
				FADER.CFrame = c.CFrame
613
				FADER.Color = COLOR
614
				if FADER.Name == "Head" then
615
					Head:FindFirstChildOfClass("SpecialMesh"):Clone().Parent = FADER
616
				elseif FADER.Name == "HumanoidRootPart" then
617
					FADE.PrimaryPart = FADER
618
					FADER.Transparency = 1
619
				end
620
			end
621
		end
622
		local TRANS = 0.25/TIMER
623
		local DIST = nil
624
		if MOVEDIRECTION ~= nil then
625
			DIST = (FADE.PrimaryPart.Position - MOVEDIRECTION).Magnitude
626
		end
627
		for i = 1, TIMER do
628
			Swait()
629
			for _, c in pairs(FADE:GetChildren()) do
630
				if c.ClassName == "Part" then
631
					c.Transparency = c.Transparency + TRANS
632
				end
633
			end
634
			if MOVEDIRECTION ~= nil then
635
				local ORI = FADE.PrimaryPart.Orientation
636
				FADE:SetPrimaryPartCFrame(CF(CF(FADE.PrimaryPart.Position,MOVEDIRECTION)*CF(0,0,-DIST/TIMER).p) * ANGLES(RAD(ORI.X), RAD(ORI.Y), RAD(ORI.Z)))
637
			end
638
		end
639
		FADE:remove()
640
	end))
641
end
642
643
644
--//=================================\\
645
--||	     WEAPON CREATION
646
--\\=================================//
647
648
local SIZE = 1.25
649
650
local Particle = IT("ParticleEmitter",nil)
651
Particle.Enabled = false
652
Particle.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0.3),NumberSequenceKeypoint.new(0.3,0),NumberSequenceKeypoint.new(1,1)})
653
Particle.LightEmission = 0.5
654
Particle.Rate = 150
655
Particle.ZOffset = 0.2
656
Particle.Rotation = NumberRange.new(-180, 180)
657
Particle.RotSpeed = NumberRange.new(-180, 180)
658
Particle.Texture = "http://www.roblox.com/asset/?id=304437537"
659
Particle.Color = ColorSequence.new(C3(0,1,0),C3(0.4,0,0))
660
661
--ParticleEmitter({Speed = 5, Drag = 0, Size1 = 1, Size2 = 5, Lifetime1 = 1, Lifetime2 = 1.5, Parent = Torso, Emit = 100, Offset = 360, Enabled = false})
662
function ParticleEmitter(Table)
663
	local PRTCL = Particle:Clone()
664
	local Speed = Table.Speed or 5
665
	local Drag = Table.Drag or 0
666
	local Size1 = Table.Size1 or 1
667
	local Size2 = Table.Size2 or 5
668
	local Lifetime1 = Table.Lifetime1 or 1
669
	local Lifetime2 = Table.Lifetime2 or 1.5
670
	local Parent = Table.Parent or Torso
671
	local Emit = Table.Emit or 100
672
	local Offset = Table.Offset or 360
673
	local Acel = Table.Acel or VT(0,0,0)
674
	local Enabled = Table.Enabled or false
675
	PRTCL.Parent = Parent
676
	PRTCL.Size = NumberSequence.new(Size1,Size2)
677
	PRTCL.Lifetime = NumberRange.new(Lifetime1,Lifetime2)
678
	PRTCL.Speed = NumberRange.new(Speed)
679
	PRTCL.VelocitySpread = Offset
680
	PRTCL.Drag = Drag
681
	PRTCL.Acceleration = Acel
682
	if Enabled == false then
683
		PRTCL:Emit(Emit)
684
		Debris:AddItem(PRTCL,Lifetime2)
685
	else
686
		PRTCL.Enabled = true
687
	end
688
	return PRTCL
689
end
690
691-
local PRT = CreatePart(3, Character, "Fabric", 0, 0, "Really black", "Detail", VT(1,1,1),false)
691+
local PRT = CreatePart(3, Character, "Fabric", 0, 0, "Really red", "Detail", VT(1,1,1),false)
692
PRT.Color = C3(1,1,1)
693
CreateWeldOrSnapOrMotor("Weld", Head, Head, PRT, CF(0,0,-.5*SIZE), CF(0, 0, 0))
694
CreateMesh("SpecialMesh", PRT, "FileMesh", "13520257", "15724132", VT(1,1,1)*SIZE, VT(0,0,0))
695-
local PRT = CreatePart(3, Character, "Neon", 0, 0, "Really black", "Detail", VT(1,1.2,0.2),false)
695+
local PRT = CreatePart(3, Character, "Neon", 0, 0, "Really red", "Detail", VT(1,1.2,0.2),false)
696
PRT.Color = C3(0, 111, 0)
697
MakeForm(PRT,"Ball")
698
CreateWeldOrSnapOrMotor("Weld", Head, Head, PRT, CF(0,0,-.5*SIZE), CF(0, 0, 0))
699-
local PRT = CreatePart(3, Character, "Neon", 0, 0, "Really black", "Detail", VT(0.5,0.4,0.5),false)
699+
local PRT = CreatePart(3, Character, "Neon", 0, 0, "Really red", "Detail", VT(0.5,0.4,0.5),false)
700
PRT.Color = C3(0, 111, 0)
701
MakeForm(PRT,"Ball")
702
CreateWeldOrSnapOrMotor("Weld", Head, Head, PRT, CF(0,-0.3,-.5*SIZE), CF(0, 0, 0))
703-
local PRT = CreatePart(3, Character, "Neon", 0, 0, "Really black", "Detail", VT(0.5,0.3,0.3),false)
703+
local PRT = CreatePart(3, Character, "Neon", 0, 0, "Really red", "Detail", VT(0.5,0.3,0.3),false)
704
PRT.Color = C3(0, 111, 0)
705
MakeForm(PRT,"Ball")
706
CreateWeldOrSnapOrMotor("Weld", Head, Head, PRT, CF(0.25,0.25,-.5*SIZE), CF(0, 0, 0))
707-
local PRT = CreatePart(3, Character, "Neon", 0, 0, "Really black", "Detail", VT(0.5,0.3,0.3),false)
707+
local PRT = CreatePart(3, Character, "Neon", 0, 0, "Really red", "Detail", VT(0.5,0.3,0.3),false)
708
PRT.Color = C3(0, 111, 0)
709
MakeForm(PRT,"Ball")
710
CreateWeldOrSnapOrMotor("Weld", Head, Head, PRT, CF(-0.25,0.25,-.5*SIZE), CF(0, 0, 0))
711-
local PRT = CreatePart(3, Character, "Neon", 0, 0, "Really black", "Detail", VT(0.4,0.4,0.3),false)
711+
local PRT = CreatePart(3, Character, "Neon", 0, 0, "Really red", "Detail", VT(0.4,0.4,0.3),false)
712
PRT.Color = C3(0, 111, 0)
713
MakeForm(PRT,"Ball")
714
CreateWeldOrSnapOrMotor("Weld", Head, Head, PRT, CF(-0.17,-0.25,-.5*SIZE) * ANGLES(RAD(-15), RAD(15), RAD(0)), CF(0, 0, 0))
715-
local PRT = CreatePart(3, Character, "Neon", 0, 0, "Really black", "Detail", VT(0.4,0.4,0.3),false)
715+
local PRT = CreatePart(3, Character, "Neon", 0, 0, "Really red", "Detail", VT(0.4,0.4,0.3),false)
716
PRT.Color = C3(0, 111, 0)
717
MakeForm(PRT,"Ball")
718
CreateWeldOrSnapOrMotor("Weld", Head, Head, PRT, CF(0.17,-0.25,-.5*SIZE) * ANGLES(RAD(-15), RAD(-15), RAD(0)), CF(0, 0, 0))
719
720
721
722
723
local LASTPART = Head
724
for i = 1, 20 do
725
	local MATH = (1-(i/25))
726
	if LASTPART == Head then
727-
		local Horn = CreatePart(3, Character, "Neon", 0, 0, "Dirt brown", "Horn", VT(0.25*MATH,0.25,0.25*MATH),false)
727+
		local Horn = CreatePart(3, Character, "Neon", 0, 0, "Really red", "Horn", VT(0.25*MATH,0.25,0.25*MATH),false)
728
		CreateWeldOrSnapOrMotor("Weld", LASTPART, LASTPART, Horn, CF(0.3, 0.7, -0.35) * ANGLES(RAD(-55), RAD(15), RAD(-15)), CF(0, 0, 0))
729
		LASTPART = Horn
730
		Horn.Color = C3((i*3-3)/0,0,0)
731
	else
732-
		local Horn = CreatePart(3, Character, "Neon", 0, 0, "Dirt brown", "Horn", VT(0.25*MATH,0.25,0.25*MATH),false)
732+
		local Horn = CreatePart(3, Character, "Neon", 0, 0, "Really red", "Horn", VT(0.25*MATH,0.25,0.25*MATH),false)
733
		CreateWeldOrSnapOrMotor("Weld", LASTPART, LASTPART, Horn, CF(0, Horn.Size.Y/1.8, 0) * ANGLES(RAD(6), RAD(-0.3), RAD(0)), CF(0, 0, 0))
734
		LASTPART = Horn
735
		Horn.Color = C3((i*3-3)/0,127,0)
736
	end
737
end
738
local LASTPART = Head
739
for i = 1, 20 do
740
	local MATH = (1-(i/25))
741
	if LASTPART == Head then
742-
		local Horn = CreatePart(3, Character, "Neon", 0, 0, "Dirt brown", "Horn", VT(0.25*MATH,0.25,0.25*MATH),false)
742+
		local Horn = CreatePart(3, Character, "Neon", 0, 0, "Really red", "Horn", VT(0.25*MATH,0.25,0.25*MATH),false)
743
		CreateWeldOrSnapOrMotor("Weld", LASTPART, LASTPART, Horn, CF(-0.3, 0.7, -0.35) * ANGLES(RAD(-55), RAD(-15), RAD(15)), CF(0, 0, 0))
744
		LASTPART = Horn
745
		Horn.Color = C3((i*3-3)/0,0,0)
746
	else
747-
		local Horn = CreatePart(3, Character, "Neon", 0, 0, "Dirt brown", "Horn", VT(0.25*MATH,0.25,0.25*MATH),false)
747+
		local Horn = CreatePart(3, Character, "Neon", 0, 0, "Really red", "Horn", VT(0.25*MATH,0.25,0.25*MATH),false)
748
		CreateWeldOrSnapOrMotor("Weld", LASTPART, LASTPART, Horn, CF(0, Horn.Size.Y/1.8, 0) * ANGLES(RAD(6), RAD(0.3), RAD(0)), CF(0, 0, 0))
749
		LASTPART = Horn
750
		Horn.Color = C3((i*3-3)/0,127,0)
751
	end
752
end
753
754
local Handle = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.2,0.6,0.2),false)
755
local RightArmGrasp = CreateWeldOrSnapOrMotor("Weld", Handle, RightArm, Handle, CF(0,-1, 0) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0.21, 0))
756
local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.2,0.5,0.2),false)
757
MakeForm(Part,"Wedge")
758
CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.3, 0.2) * ANGLES(RAD(0), RAD(180), RAD(0)), CF(0, 0, 0))
759
local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.2,0.3,0.2),false)
760
MakeForm(Part,"Wedge")
761
CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.4, 0) * ANGLES(RAD(0), RAD(0), RAD(180)), CF(0, 0, 0))
762
local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.3,0.3,0.3),false)
763
CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.5, 0.2) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
764
local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.3,0.5,0.5),false)
765
CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.5) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
766
local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.4,0.4,0.4),false)
767
MakeForm(Part,"Cyl")
768
CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.5) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
769
for i = 1, 8 do
770
	local Piece = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Eye", VT(0,0.35,0.41),false)
771
	CreateWeldOrSnapOrMotor("Weld", Handle, Part, Piece, CF(0, 0, 0) * ANGLES(RAD(0), RAD((360/8)*i), RAD(0)), CF(0, 0, 0))
772
end
773
local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Eye", VT(0.38,0.41,0.38),false)
774
MakeForm(Part,"Cyl")
775
CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.5) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
776
local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.37,0.5,0.37),false)
777
MakeForm(Part,"Ball")
778
CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.3) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
779
local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.2,0.7,0.4),false)
780
MakeForm(Part,"Wedge")
781
CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.7, 0.5) * ANGLES(RAD(90), RAD(180), RAD(180)), CF(0, 0, 0))
782
local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.3,0.4,0.2),false)
783
CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.7) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
784
local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.35,0.35,0.35),false)
785
MakeForm(Part,"Cyl")
786
CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.7) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
787
local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.5,0.1,0.5),false)
788
MakeForm(Part,"Cyl")
789
CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 1) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
790
local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.5,0.1,0.45),false)
791
MakeForm(Part,"Cyl")
792
CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 1.1) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
793
local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.2,0.5,0.2),false)
794
MakeForm(Part,"Wedge")
795
CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.55, 0.2) * ANGLES(RAD(-135), RAD(0), RAD(0)), CF(0, -0.3, 0))
796
local LASTPART = Handle
797
for i = 1, 10 do
798
	if LASTPART == Handle then
799
		local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.1,0.2,0),false)
800
		LASTPART = Part
801
		CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.1, 0.2) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
802
	else
803
		local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.1,0.05,0),false)
804
		CreateWeldOrSnapOrMotor("Weld", Handle, LASTPART, Part, CF(0, 0.025, 0) * ANGLES(RAD(8), RAD(0), RAD(0)), CF(0, -0.025, 0))
805
		LASTPART = Part
806
	end
807
end
808
809
local Barrel = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.15,2,0.15),false)
810
MakeForm(Barrel,"Cyl")
811
CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Barrel, CF(0, -0.6, 1.8) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
812
local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.25,1,0.25),false)
813
MakeForm(Part,"Cyl")
814
CreateWeldOrSnapOrMotor("Weld", Handle, Barrel, Part, CF(0, -0.6, 0), CF(0, 0, 0))
815
local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0,0.1,0.2),false)
816
MakeForm(Part,"Wedge")
817
CreateWeldOrSnapOrMotor("Weld", Handle, Barrel, Part, CF(0, 0.945, 0.1) * ANGLES(RAD(180), RAD(0), RAD(0)), CF(0, 0, 0))
818
local Hole2 = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Eye", VT(0.125,0,0.125),false)
819
MakeForm(Hole2,"Cyl")
820
CreateWeldOrSnapOrMotor("Weld", Handle, Barrel, Hole2, CF(0, 0.98, 0), CF(0, 0, 0))
821
local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0,0,0),false)
822
local GEARWELD = CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.7), CF(0, 0, 0))
823
CreateMesh("SpecialMesh", Part, "FileMesh", 156292343, "", VT(0.8,0.8,1.5), VT(0,0,0.2))
824
local Part = CreatePart(3, Weapon, "Metal", 0, 0.5, "Mid gray", "Eye", VT(0,0,0),false)
825
local GEARWELD2 = CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.7), CF(0, 0, 0))
826
CreateMesh("SpecialMesh", Part, "FileMesh", 156292343, "", VT(0.9,0.9,0.3), VT(0,0,0.2))
827
coroutine.resume(coroutine.create(function()
828
	while wait() do
829
		GEARWELD.C0 = GEARWELD.C0 * ANGLES(RAD(0), RAD(0), RAD(5))
830
		GEARWELD2.C0 = GEARWELD2.C0 * ANGLES(RAD(0), RAD(0), RAD(-5))
831
	end
832
end))
833
834
ParticleEmitter({Speed = 0.2, Drag = 0, Size1 = 0.1, Size2 = 0, Lifetime1 = 0.3, Lifetime2 = 0.5, Parent = Hole2, Emit = 100, Offset = 360, Enabled = true, Acel = VT(0,5,0)})
835
--ParticleEmitter({Speed = 0.5, Drag = 0, Size1 = 0.2, Size2 = 0, Lifetime1 = 0.3, Lifetime2 = 0.7, Parent = Dangle, Emit = 100, Offset = 360, Enabled = true, Acel = VT(0,5,0)})
836
837
for _, c in pairs(Weapon:GetDescendants()) do
838
	if c.ClassName == "Part" and c.Name ~= "Eye" and c.Parent ~= Effects and c.Parent.Parent ~= Effects then
839
		c.Material = "Glass"
840
		c.Color = C3(0,0,0)
841
	elseif c.ClassName == "Part" and c.Name == "Eye" then
842
		c.Color = C3(0,1,0)
843
		c.Material = "Neon"
844
	end
845
end
846
847
Weapon.Parent = Character
848
for _, c in pairs(Weapon:GetChildren()) do
849
	if c.ClassName == "Part" then
850
		c.CustomPhysicalProperties = PhysicalProperties.new(0, 0, 0, 0, 0)
851
	end
852
end
853
854
local PRT = CreatePart(3, Character, "Fabric", 0, 0, "Lime green", "Hood", VT(1,1,1),false)
855
PRT.Color = C3(0,0,0)
856
local HoodWeld = CreateWeldOrSnapOrMotor("Weld", Head, Head, PRT, CF(0,0.2,0), CF(0, 0, 0))
857
CreateMesh("SpecialMesh", PRT, "FileMesh", "76062497", "", VT(1,1,1)*1.05, VT(0,0,0))
858
859
function ParticleEmitter(Table)
860
	local PRTCL = Particle:Clone()
861
	local Speed = Table.Speed or 5
862
	local Drag = Table.Drag or 0
863
	local Size1 = Table.Size1 or 1
864
	local Size2 = Table.Size2 or 5
865
	local Lifetime1 = Table.Lifetime1 or 1
866
	local Lifetime2 = Table.Lifetime2 or 1.5
867
	local Parent = Table.Parent or Torso
868
	local Emit = Table.Emit or 100
869
	local Offset = Table.Offset or 360
870
	local Acel = Table.Acel or VT(0,0,0)
871
	local Enabled = Table.Enabled or false
872
	PRTCL.Parent = Parent
873
	PRTCL.Size = NumberSequence.new(Size1,Size2)
874
	PRTCL.Lifetime = NumberRange.new(Lifetime1,Lifetime2)
875
	PRTCL.Speed = NumberRange.new(Speed)
876
	PRTCL.VelocitySpread = Offset
877
	PRTCL.Drag = Drag
878
	PRTCL.Acceleration = Acel
879
	if Enabled == false then
880
		PRTCL:Emit(Emit)
881
		Debris:AddItem(PRTCL,Lifetime2)
882
	else
883
		PRTCL.Enabled = true
884
	end
885
	return PRTCL
886
end
887
888
local Handle = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.2,0.6,0.2),false)
889
local RightArmGrasp = CreateWeldOrSnapOrMotor("Weld", Handle, LeftArm, Handle, CF(0,-1, 0) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0.21, 0))
890
local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.2,0.5,0.2),false)
891
MakeForm(Part,"Wedge")
892
CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.3, 0.2) * ANGLES(RAD(0), RAD(180), RAD(0)), CF(0, 0, 0))
893
local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.2,0.3,0.2),false)
894
MakeForm(Part,"Wedge")
895
CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.4, 0) * ANGLES(RAD(0), RAD(0), RAD(180)), CF(0, 0, 0))
896
local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.3,0.3,0.3),false)
897
CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.5, 0.2) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
898
local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.3,0.5,0.5),false)
899
CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.5) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
900
local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.4,0.4,0.4),false)
901
MakeForm(Part,"Cyl")
902
CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.5) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
903
for i = 1, 8 do
904
	local Piece = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Eye", VT(0,0.35,0.41),false)
905
	CreateWeldOrSnapOrMotor("Weld", Handle, Part, Piece, CF(0, 0, 0) * ANGLES(RAD(0), RAD((360/8)*i), RAD(0)), CF(0, 0, 0))
906
end
907
local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Eye", VT(0.38,0.41,0.38),false)
908
MakeForm(Part,"Cyl")
909
CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.5) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
910
local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.37,0.5,0.37),false)
911
MakeForm(Part,"Ball")
912
CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.3) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
913
local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.2,0.7,0.4),false)
914
MakeForm(Part,"Wedge")
915
CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.7, 0.5) * ANGLES(RAD(90), RAD(180), RAD(180)), CF(0, 0, 0))
916
local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.3,0.4,0.2),false)
917
CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.7) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
918
local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.35,0.35,0.35),false)
919
MakeForm(Part,"Cyl")
920
CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.7) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
921
local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.5,0.1,0.5),false)
922
MakeForm(Part,"Cyl")
923
CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 1) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
924
local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.5,0.1,0.45),false)
925
MakeForm(Part,"Cyl")
926
CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 1.1) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
927
local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.2,0.5,0.2),false)
928
MakeForm(Part,"Wedge")
929
CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.55, 0.2) * ANGLES(RAD(-135), RAD(0), RAD(0)), CF(0, -0.3, 0))
930
local LASTPART = Handle
931
for i = 1, 10 do
932
	if LASTPART == Handle then
933
		local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.1,0.2,0),false)
934
		LASTPART = Part
935
		CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.1, 0.2) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
936
	else
937
		local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.1,0.05,0),false)
938
		CreateWeldOrSnapOrMotor("Weld", Handle, LASTPART, Part, CF(0, 0.025, 0) * ANGLES(RAD(8), RAD(0), RAD(0)), CF(0, -0.025, 0))
939
		LASTPART = Part
940
	end
941
end
942
943
local Barrel = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.15,2,0.15),false)
944
MakeForm(Barrel,"Cyl")
945
CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Barrel, CF(0, -0.6, 1.8) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
946
local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.25,1,0.25),false)
947
MakeForm(Part,"Cyl")
948
CreateWeldOrSnapOrMotor("Weld", Handle, Barrel, Part, CF(0, -0.6, 0), CF(0, 0, 0))
949
local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0,0.1,0.2),false)
950
MakeForm(Part,"Wedge")
951
CreateWeldOrSnapOrMotor("Weld", Handle, Barrel, Part, CF(0, 0.945, 0.1) * ANGLES(RAD(180), RAD(0), RAD(0)), CF(0, 0, 0))
952
local Hole = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Eye", VT(0.125,0,0.125),false)
953
MakeForm(Hole,"Cyl")
954
CreateWeldOrSnapOrMotor("Weld", Handle, Barrel, Hole, CF(0, 0.98, 0), CF(0, 0, 0))
955
local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0,0,0),false)
956
local GEARWELD = CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.7), CF(0, 0, 0))
957
CreateMesh("SpecialMesh", Part, "FileMesh", 156292343, "", VT(0.8,0.8,1.5), VT(0,0,0.2))
958
local Part = CreatePart(3, Weapon, "Metal", 0, 0.5, "Mid gray", "Eye", VT(0,0,0),false)
959
local GEARWELD2 = CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.7), CF(0, 0, 0))
960
CreateMesh("SpecialMesh", Part, "FileMesh", 156292343, "", VT(0.9,0.9,0.3), VT(0,0,0.2))
961
coroutine.resume(coroutine.create(function()
962
	while wait() do
963
		GEARWELD.C0 = GEARWELD.C0 * ANGLES(RAD(0), RAD(0), RAD(5))
964
		GEARWELD2.C0 = GEARWELD2.C0 * ANGLES(RAD(0), RAD(0), RAD(-5))
965
	end
966
end))
967
968
ParticleEmitter({Speed = 0.2, Drag = 0, Size1 = 0.1, Size2 = 0, Lifetime1 = 0.3, Lifetime2 = 0.5, Parent = Hole, Emit = 100, Offset = 360, Enabled = true, Acel = VT(0,5,0)})
969
--ParticleEmitter({Speed = 0.5, Drag = 0, Size1 = 0.2, Size2 = 0, Lifetime1 = 0.3, Lifetime2 = 0.7, Parent = Dangle, Emit = 100, Offset = 360, Enabled = true, Acel = VT(0,5,0)})
970
971
for _, c in pairs(Weapon:GetDescendants()) do
972
	if c.ClassName == "Part" and c.Name ~= "Eye" and c.Parent ~= Effects and c.Parent.Parent ~= Effects then
973
		c.Material = "Glass"
974
		c.Color = C3(0.05,0.05,0.05)
975
	elseif c.ClassName == "Part" and c.Name == "Eye" then
976
		c.Color = C3(0,1,0)
977
		c.Material = "Neon"
978
	end
979
end
980
981
Weapon.Parent = Character
982
for _, c in pairs(Weapon:GetChildren()) do
983
	if c.ClassName == "Part" then
984
		c.CustomPhysicalProperties = PhysicalProperties.new(0, 0, 0, 0, 0)
985
	end
986
end
987
988
local SKILLTEXTCOLOR = C3(0,1,0)
989
local SKILLFONT = "Antique"
990
local SKILLTEXTSIZE = 7
991
992
Humanoid.Died:connect(function()
993
	ATTACK = true
994
end)
995
996
997
local SKILL1FRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.0, 1, 0.90, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 1 Frame")
998
--[[local SKILL2FRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.63, 0, 0.90, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 2 Frame")
999
local SKILL3FRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.215, 0, 0.90, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 3 Frame")
1000
local SKILL4FRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.525, 0, 0.90, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 4 Frame")
1001
local SKILL5FRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.365, 0, 0.90, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 5 Frame")
1002
]]
1003
local SKILL1TEXT = CreateLabel(SKILL1FRAME, "[Z] Bullet", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0.7, "Text 1")
1004
--[[local SKILL2TEXT = CreateLabel(SKILL2FRAME, "[B] Ability 2", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0.7, "Text 2")
1005
local SKILL3TEXT = CreateLabel(SKILL3FRAME, "[C] Ability 3", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0.7, "Text 3")
1006
local SKILL4TEXT = CreateLabel(SKILL4FRAME, "[V] Ability 4", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0.7, "Text 4")
1007
local SKILL5TEXT = CreateLabel(SKILL5FRAME, "[X] Mercy", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0.7, "Text 5")
1008
]]
1009
function printbye(Name)
1010
	local MESSAGES = {"You cannot struggle, ","Your existance is an insult, ","Fade, ","Your existance is not desired, ","You are not permitted here, ","You are not to decide your fate, ","Be gone, ","You are already dead, ","Your live is an anomaly, ","Don't dare to return, ","Why are you resisting, ","You cannot exist here, ","Why are you struggling, ","Your fate was already decided, ","Goodbye, ","You cannot ignore my command, ","You cannot resist my command, ","You already died, "}
1011
	warn(MESSAGES[MRANDOM(1,#MESSAGES)]..Name..".")	
1012
end
1013
1014
workspace.ChildAdded:connect(function(instance)
1015
    for BANISH = 1, #TOBANISH do
1016
		if TOBANISH[BANISH] ~= nil then
1017
			if instance.Name == TOBANISH[BANISH] then
1018
				coroutine.resume(coroutine.create(function()
1019
					printbye(instance.Name)
1020
					instance:ClearAllChildren()
1021
					Debris:AddItem(instance,0.0005)
1022
				end))
1023
			end
1024
		end
1025
	end
1026
end)
1027
1028
--//=================================\\
1029
--||			DAMAGING
1030
--\\=================================//
1031
1032
function CreateWave(SIZE,WAIT,CFRAME,DOESROT,ROT,COLOR,GROW)
1033
	local wave = CreatePart(3, Effects, "Neon", 0, 0.5, BRICKC(COLOR), "Effect", VT(0,0,0))
1034
	local mesh = CreateMesh("SpecialMesh", wave, "FileMesh", "20329976", "", SIZE, VT(0,0,-SIZE.X/8))
1035
	wave.CFrame = CFRAME
1036
	coroutine.resume(coroutine.create(function(PART)
1037
		for i = 1, WAIT do
1038
			Swait()
1039
			mesh.Scale = mesh.Scale + GROW
1040
			mesh.Offset = VT(0,0,-(mesh.Scale.X/8))
1041
			if DOESROT == true then
1042
				wave.CFrame = wave.CFrame * CFrame.fromEulerAnglesXYZ(0,ROT,0)
1043
			end
1044
			wave.Transparency = wave.Transparency + (0.5/WAIT)
1045
			if wave.Transparency > 0.99 then
1046
				wave:remove()
1047
			end
1048
		end
1049
	end))
1050
end
1051
1052
function CreateRing(SIZE,DOESROT,ROT,WAIT,CFRAME,COLOR,GROW)
1053
	local wave = CreatePart(3, Effects, "Neon", 0, 0.5, BRICKC(COLOR), "Effect", VT(0,0,0))
1054
	local mesh = CreateMesh("SpecialMesh", wave, "FileMesh", "559831844", "", SIZE, VT(0,0,0))
1055
	wave.CFrame = CFRAME
1056
	coroutine.resume(coroutine.create(function(PART)
1057
		for i = 1, WAIT do
1058
			Swait()
1059
			mesh.Scale = mesh.Scale + GROW
1060
			if DOESROT == true then
1061
				wave.CFrame = wave.CFrame * CFrame.fromEulerAnglesXYZ(0,ROT,0)
1062
			end
1063
			wave.Transparency = wave.Transparency + (0.5/WAIT)
1064
			if wave.Transparency > 0.99 then
1065
				wave:remove()
1066
			end
1067
		end
1068
	end))
1069
end
1070
1071
function MagicSphere(SIZE,WAIT,CFRAME,COLOR,GROW)
1072
	local wave = CreatePart(3, Effects, "Neon", 0, 0, BRICKC(COLOR), "Effect", VT(1,1,1), true)
1073
	local mesh = CreateMesh("SpecialMesh", wave, "Sphere", "", "", SIZE, VT(0,0,0))
1074
	wave.CFrame = CFRAME
1075
	coroutine.resume(coroutine.create(function(PART)
1076
		for i = 1, WAIT do
1077
			Swait()
1078
			mesh.Scale = mesh.Scale + GROW
1079
			wave.Transparency = wave.Transparency + (1/WAIT)
1080
			if wave.Transparency > 0.99 then
1081
				wave:remove()
1082
			end
1083
		end
1084
	end))
1085
end
1086
1087
function Slice(KIND,SIZE,WAIT,CFRAME,COLOR,GROW)
1088
	local mesh = nil
1089
	if KIND == "Base" then
1090
 		mesh = CreateMesh("SpecialMesh", wave, "FileMesh", "448386996", "", VT(0,SIZE/10,SIZE/10), VT(0,0,0))
1091
	elseif KIND == "Thin" then
1092
 		mesh = CreateMesh("SpecialMesh", wave, "FileMesh", "662586858", "", VT(SIZE/10,0,SIZE/10), VT(0,0,0))
1093
	elseif KIND == "Round" then
1094
 		mesh = CreateMesh("SpecialMesh", wave, "FileMesh", "662585058", "", VT(SIZE/10,0,SIZE/10), VT(0,0,0))
1095
	end
1096
	wave.CFrame = CFRAME
1097
	coroutine.resume(coroutine.create(function(PART)
1098
		for i = 1, WAIT do
1099
			Swait()
1100
			mesh.Scale = mesh.Scale + GROW/10
1101
			wave.Transparency = wave.Transparency + (0.5/WAIT)
1102
			if wave.Transparency > 0.99 then
1103
				wave:remove()
1104
			end
1105
		end
1106
	end))
1107
end
1108
1109
function Ragdoll(Character2, CharTorso, Headless, Velocity)
1110
	local svch = Character2
1111
	Character2:BreakJoints()
1112
	local hum = Character2:findFirstChild("Humanoid")
1113
	local q = Character2:GetChildren()
1114
	local CLONE = IT("Model", Effects)
1115
	for i = 1, #q do
1116
		if q[i].ClassName == "Accessory" and Headless == true then
1117
			q[i]:remove()
1118
		elseif q[i].ClassName ~= "Humanoid" and q[i].ClassName ~= "LocalScript" and q[i].ClassName ~= "Script" and q[i].ClassName ~= "Gear" then
1119
			q[i].Parent = CLONE
1120
		elseif q[i].ClassName ~= "Humanoid" then
1121
			q[i]:remove()
1122
		end
1123
	end
1124
	local chrclone = CLONE
1125
	local ch = chrclone:GetChildren()
1126
	local i
1127
	for i = 1, #ch do
1128
		if ch[i].Name == "THandle1" or ch[i].Name == "THandle2" or ch[i].ClassName == "Script" then
1129
			ch[i]:remove()
1130
		end
1131
	end
1132
	local function Scan(ch)
1133
		local e
1134
		for e = 1, #ch do
1135
			Scan(ch[e]:GetChildren())
1136
			if ch[e].ClassName == "Weld" or ch[e].ClassName == "Motor6D" then
1137
				ch[e]:remove()
1138
			end
1139
		end
1140
	end
1141
	Character2:remove()
1142
	local NEWHUM = IT("Humanoid")
1143
	NEWHUM.Name = "Corpse"
1144
	NEWHUM.Health = 0
1145
	NEWHUM.MaxHealth = 0
1146
	NEWHUM.PlatformStand = true
1147
	NEWHUM.Parent = CLONE
1148
	NEWHUM.DisplayDistanceType = "None"
1149
	Scan(chrclone:GetChildren())
1150
	local ch = Character2:GetChildren()
1151
	local i
1152
	for i = 1, #ch do
1153
		if ch[i].Name == "THandle1" or ch[i].Name == "THandle2" then
1154
			ch[i]:remove()
1155
		end
1156
	end
1157
	local ch = Character2:GetChildren()
1158
	local i
1159
	for i = 1, #ch do
1160
		if ch[i].ClassName == "Part" or ch[i].ClassName == "Hat" or ch[i].Name == "THandle1" or ch[i].Name == "THandle2" then
1161
			ch[i]:remove()
1162
		end
1163
	end
1164
	Character2 = chrclone
1165
	local Torso2 = Character2.Torso
1166
	local movevector = Vector3.new()
1167
	if Torso2 then
1168
		movevector = CFrame.new(CharTorso.Position, Torso2.Position).lookVector
1169
		local Head = Character2:FindFirstChild("Head")
1170
		if Head then
1171
			local Neck = Instance.new("Weld")
1172
			Neck.Name = "Neck"
1173
			Neck.Part0 = Torso2
1174
			Neck.Part1 = Head
1175
			Neck.C0 = CFrame.new(0, 1.5, 0)
1176
			Neck.C1 = CFrame.new()
1177
			Neck.Parent = Torso2
1178
			if Headless == true then
1179
				Head.Transparency = 1
1180
				Head:ClearAllChildren()
1181
			end
1182
		end
1183
		local Limb = Character2:FindFirstChild("Right Arm")
1184
		if Limb then
1185
			Limb.CFrame = Torso2.CFrame * CFrame.new(1.5, 0, 0)
1186
			local Joint = Instance.new("Glue")
1187
			Joint.Name = "RightShoulder"
1188
			Joint.Part0 = Torso2
1189
			Joint.Part1 = Limb
1190
			Joint.C0 = CFrame.new(1.5, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
1191
			Joint.C1 = CFrame.new(0, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
1192
			Joint.Parent = Torso2
1193
			local B = Instance.new("Part")
1194
			B.TopSurface = 0
1195
			B.BottomSurface = 0
1196
			B.formFactor = "Symmetric"
1197
			B.Size = Vector3.new(1, 1, 1)
1198
			B.Transparency = 1
1199
			B.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0)
1200
			B.Parent = Character2
1201
			local W = Instance.new("Weld")
1202
			W.Part0 = Limb
1203
			W.Part1 = B
1204
			W.C0 = CFrame.new(0, -0.5, 0)
1205
			W.Parent = Limb
1206
		end
1207
		local Limb = Character2:FindFirstChild("Left Arm")
1208
		if Limb then
1209
			Limb.CFrame = Torso2.CFrame * CFrame.new(-1.5, 0, 0)
1210
			local Joint = Instance.new("Glue")
1211
			Joint.Name = "LeftShoulder"
1212
			Joint.Part0 = Torso2
1213
			Joint.Part1 = Limb
1214
			Joint.C0 = CFrame.new(-1.5, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
1215
			Joint.C1 = CFrame.new(0, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
1216
			Joint.Parent = Torso2
1217
			local B = Instance.new("Part")
1218
			B.TopSurface = 0
1219
			B.BottomSurface = 0
1220
			B.formFactor = "Symmetric"
1221
			B.Size = Vector3.new(1, 1, 1)
1222
			B.Transparency = 1
1223
			B.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0)
1224
			B.Parent = Character2
1225
			local W = Instance.new("Weld")
1226
			W.Part0 = Limb
1227
			W.Part1 = B
1228
			W.C0 = CFrame.new(0, -0.5, 0)
1229
			W.Parent = Limb
1230
		end
1231
		local Limb = Character2:FindFirstChild("Right Leg")
1232
		if Limb then
1233
			Limb.CFrame = Torso2.CFrame * CFrame.new(0.5, -2, 0)
1234
			local Joint = Instance.new("Glue")
1235
			Joint.Name = "RightHip"
1236
			Joint.Part0 = Torso2
1237
			Joint.Part1 = Limb
1238
			Joint.C0 = CFrame.new(0.5, -1, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
1239
			Joint.C1 = CFrame.new(0, 1, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
1240
			Joint.Parent = Torso2
1241
			local B = Instance.new("Part")
1242
			B.TopSurface = 0
1243
			B.BottomSurface = 0
1244
			B.formFactor = "Symmetric"
1245
			B.Size = Vector3.new(1, 1, 1)
1246
			B.Transparency = 1
1247
			B.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0)
1248
			B.Parent = Character2
1249
			local W = Instance.new("Weld")
1250
			W.Part0 = Limb
1251
			W.Part1 = B
1252
			W.C0 = CFrame.new(0, -0.5, 0)
1253
			W.Parent = Limb
1254
		end
1255
		local Limb = Character2:FindFirstChild("Left Leg")
1256
		if Limb then
1257
			Limb.CFrame = Torso2.CFrame * CFrame.new(-0.5, -2, 0)
1258
			local Joint = Instance.new("Glue")
1259
			Joint.Name = "LeftHip"
1260
			Joint.Part0 = Torso2
1261
			Joint.Part1 = Limb
1262
			Joint.C0 = CFrame.new(-0.5, -1, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
1263
			Joint.C1 = CFrame.new(0, 1, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
1264
			Joint.Parent = Torso2
1265
			local B = Instance.new("Part")
1266
			B.TopSurface = 0
1267
			B.BottomSurface = 0
1268
			B.formFactor = "Symmetric"
1269
			B.Size = Vector3.new(1, 1, 1)
1270
			B.Transparency = 1
1271
			B.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0)
1272
			B.Parent = Character2
1273
			local W = Instance.new("Weld")
1274
			W.Part0 = Limb
1275
			W.Part1 = B
1276
			W.C0 = CFrame.new(0, -0.5, 0)
1277
			W.Parent = Limb
1278
		end
1279
		local Bar = Instance.new("Part")
1280
		Bar.TopSurface = 0
1281
		Bar.BottomSurface = 0
1282
		Bar.formFactor = "Symmetric"
1283
		Bar.Size = Vector3.new(1, 1, 1)
1284
		Bar.Transparency = 1
1285
		Bar.CFrame = Torso2.CFrame * CFrame.new(0, 0.5, 0)
1286
		Bar.Parent = Character2
1287
		local Weld = Instance.new("Weld")
1288
		Weld.Part0 = Torso2
1289
		Weld.Part1 = Bar
1290
		Weld.C0 = CFrame.new(0, 0.5, 0)
1291
		Weld.Parent = Torso2
1292
	end
1293
	Character2.Parent = Weapon
1294
	if movevector ~= Vector3.new() then
1295
		for i = 1, 10 do
1296
			Torso2.Velocity = movevector * Velocity
1297
		end
1298
	end
1299
	Character2.Name = "Corpse"
1300
	return Character2, Torso2
1301
end
1302
1303
function Banish(Foe)
1304
	if Foe then
1305
		coroutine.resume(coroutine.create(function()
1306
			--if game.Players:FindFirstChild(Foe.Name) then
1307
				table.insert(TOBANISH,Foe.Name)
1308
				printbye(Foe.Name)
1309
			--end
1310
			Foe.Archivable = true
1311
			local CLONE = Foe:Clone()
1312
			Foe:Destroy()
1313
			CLONE.Parent = Effects
1314
			CLONE:BreakJoints()
1315
			local MATERIALS = {"Glass","Neon"}
1316
			for _, c in pairs(CLONE:GetDescendants()) do
1317
				if c:IsA("BasePart") then
1318
					if c.Name == "Torso" or c.Name == "UpperTorso" or c == CLONE.PrimaryPart then
1319
 						CreateSound(340722848, c, 10, 1, false)
1320
					end
1321
					c.Anchored = true
1322
					c.Transparency = c.Transparency + 0.2
1323
					c.Material = MATERIALS[MRANDOM(1,2)]
1324
					c.Color = C3(0,1,0)
1325
					if c.ClassName == "MeshPart" then
1326
						c.TextureID = ""
1327
					end
1328
					if c:FindFirstChildOfClass("SpecialMesh") then
1329
						c:FindFirstChildOfClass("SpecialMesh").TextureId = ""
1330
					end
1331
					if c:FindFirstChildOfClass("Decal") then
1332
						c:FindFirstChildOfClass("Decal"):remove()
1333
					end
1334
					c.Name = "Banished"
1335
					c.CanCollide = false
1336
				else
1337
					c:remove()
1338
				end
1339
			end
1340
			local A = false
1341
			for i = 1, 35 do
1342
				if A == false then
1343
					A = true
1344
				elseif A == true then
1345
					A = false
1346
				end
1347
				for _, c in pairs(CLONE:GetDescendants()) do
1348
					if c:IsA("BasePart") then
1349
						c.Anchored = true
1350
						c.Material = MATERIALS[MRANDOM(1,2)]
1351
						c.Transparency = c.Transparency + 0.8/35
1352
						if A == false then
1353
							c.CFrame = c.CFrame*CF(MRANDOM(-45,45)/45,MRANDOM(-45,45)/45,MRANDOM(-45,45)/45)
1354
						elseif A == true then
1355
							c.CFrame = c.CFrame*CF(MRANDOM(-45,45)/45,MRANDOM(-45,45)/45,MRANDOM(-45,45)/45)						
1356
						end
1357
					end
1358
				end
1359
				Swait()
1360
			end
1361
			CLONE:remove()
1362
		end))
1363
	end
1364
end
1365
1366
function PuddleOfBlood(Position, MaxDrop, Model, MaxSize)
1367
	local HITFLOOR, HITPOS, NORMAL = Raycast(Position, CF(Position, Position + VT(0, -1, 0)).lookVector, MaxDrop, Model)
1368
	if HITFLOOR ~= nil and HITFLOOR.Parent ~= Weapon and HITFLOOR.Parent ~= Character then
1369
		if HITFLOOR.Name == "BloodPuddle" then
1370
			local DIST = (Position - HITFLOOR.Position).Magnitude
1371
			if HITFLOOR.Size.Z <= 5 and MaxSize > HITFLOOR.Size.Z or HITFLOOR.Size.Z > 5 and MaxSize > HITFLOOR.Size.Z and DIST < HITFLOOR.Size.Z / 3 then
1372
				HITFLOOR.Size = HITFLOOR.Size + VT(0.1, 0, 0.1)
1373
			end
1374
		elseif HITFLOOR.Anchored == true then
1375
			do
1376
				local BLOOD = CreatePart(3, Effects, "Glass", 0, 0, "Really red", "BloodPuddle", VT(2, 0, 2))
1377
				BLOOD.CFrame = CF(HITPOS, HITPOS + NORMAL) * ANGLES(RAD(90), RAD(0), RAD(0))
1378
				MakeForm(BLOOD, "Cyl")
1379
				coroutine.resume(coroutine.create(function()
1380
					Swait(75)
1381
					while true do
1382
						Swait()
1383
						BLOOD.Size = BLOOD.Size - VT(0.02, 0, 0.02)
1384
						if BLOOD.Size.Z < 0.051 then
1385
							BLOOD:remove()
1386
							break
1387
						end
1388
					end
1389
				end))
1390
			end
1391
		end
1392
	end
1393
end
1394
1395
function SprayBlood(POSITION, DIRECTION, BloodSize)
1396
	local BLOOD = CreatePart(3, Effects, "Glass", 0, 0, "Really red", "BloodPuddle", VT(1, 1, 1), false)
1397
	BLOOD.CFrame = CF(POSITION)
1398
	MakeForm(BLOOD, "Ball")
1399
	local bv = Instance.new("BodyVelocity", BLOOD)
1400
	bv.maxForce = Vector3.new(1000000000, 1000000000, 1000000000)
1401
	bv.velocity = CF(POSITION, DIRECTION + VT(MRANDOM(-3, 3) / 30, MRANDOM(-3, 3) / 30, MRANDOM(-3, 3) / 30)).lookVector * 25
1402
	bv.Name = "MOVE"
1403
	Debris:AddItem(bv, 0.05)
1404
	coroutine.resume(coroutine.create(function()
1405
		local HASTOUCHEDGROUND = false
1406
		local HIT = BLOOD.Touched:Connect(function(hit)
1407
			if hit.Anchored == true then
1408
				HASTOUCHEDGROUND = true
1409
				PuddleOfBlood(BLOOD.Position + VT(0, 1, 0), 2, BLOOD, BloodSize)
1410
			end
1411
		end)
1412
		wait(5)
1413
		if HASTOUCHEDGROUND == false then
1414
			BLOOD:remove()
1415
		end
1416
	end))
1417
end
1418
function ApplyDamage(Humanoid, Damage, TorsoPart)
1419
	local defence = Instance.new("BoolValue", Humanoid.Parent)
1420
	defence.Name = "HitBy" .. Player.Name
1421
	game:GetService("Debris"):AddItem(defence, 0.001)
1422
	Damage = Damage * DAMAGEMULTIPLIER
1423
	if Humanoid.Health ~= 0 then
1424
		local CritChance = MRANDOM(1, 100)
1425
		if Damage > Humanoid.Health then
1426
			Damage = math.ceil(Humanoid.Health)
1427
			if Damage == 0 then
1428
				Damage = 0.1
1429
			end
1430
		end
1431
		Humanoid.Health = Humanoid.Health - Damage
1432
		StatLabel(TorsoPart.CFrame * CF(0, 0 + (TorsoPart.Size.z - 1), 0), Damage, C3(0, 0, 0))
1433
	end
1434
end
1435
1436
function ApplyAoE(POSITION,RANGE,ISBANISH)
1437
	local CHILDREN = workspace:GetDescendants()
1438
	for index, CHILD in pairs(CHILDREN) do
1439
		if CHILD.ClassName == "Model" and CHILD ~= Character then
1440
			local HUM = CHILD:FindFirstChildOfClass("Humanoid")
1441
			if HUM then
1442
				local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso")
1443
				if TORSO then
1444
					if (TORSO.Position - POSITION).Magnitude <= RANGE then
1445
						if ISBANISH == true then
1446
							Banish(CHILD)
1447
						else
1448
							if ISBANISH == "Gravity" then
1449
								HUM.PlatformStand = true
1450
								if TORSO:FindFirstChild("V3BanishForce"..Player.Name) then
1451
									local grav = Instance.new("BodyPosition",TORSO)
1452
									grav.D = 15
1453
									grav.P = 20000
1454
									grav.maxForce = Vector3.new(math.huge,math.huge,math.huge)
1455
									grav.position = TORSO.Position
1456
									grav.Name = "V3BanishForce"..Player.Name
1457
								else
1458
									TORSO:FindFirstChild("V3BanishForce"..Player.Name).position = TORSO.Position+VT(0,0.3,0)
1459
									TORSO.RotVelocity = VT(MRANDOM(-25,25),MRANDOM(-25,25),MRANDOM(-25,25))
1460
								end
1461
							else
1462
								HUM.PlatformStand = false
1463
							end
1464
						end
1465
					elseif ISBANISH == "Gravity" then
1466
						if TORSO:FindFirstChild("V3BanishForce"..Player.Name) then
1467
							TORSO:FindFirstChild("V3BanishForce"..Player.Name):remove()
1468
							HUM.PlatformStand = false
1469
						end
1470
					end
1471
				end
1472
			end
1473
		end
1474
	end
1475
end
1476
1477
function AoEDamage(position,radius,min,max,maxstrength,critrate,critmultiplier,CanBeDodgedByJumping)
1478
	local dmg = math.random(min,max)
1479
	for i,v in ipairs(workspace:GetChildren()) do
1480
	if v:FindFirstChild("HitBy"..Player.Name) == nil then
1481
		local body = v:GetChildren()
1482
			for part = 1, #body do
1483
				if(v:FindFirstChild("HitBy"..Player.Name) == nil and (body[part].ClassName == "Part" or body[part].ClassName == "MeshPart") and v ~= Character) then
1484
					if(body[part].Position - position).Magnitude < radius then
1485
						if v.ClassName == "Model" then
1486
							if v:FindFirstChildOfClass("Humanoid") then
1487
								if CanBeDodgedByJumping == true then
1488
									if body[part].Position.Y < position.Y+5 then
1489
										ApplyDamage(v:FindFirstChildOfClass("Humanoid"),dmg,critrate,critmultiplier)
1490
									end
1491
								else
1492
									ApplyDamage(v:FindFirstChildOfClass("Humanoid"),dmg,critrate,critmultiplier)
1493
								end
1494
								local bv = Instance.new("BodyVelocity") 
1495
								bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
1496
								bv.velocity = RootPart.CFrame.lookVector*maxstrength
1497
								bv.Parent = body[part]
1498
								Debris:AddItem(bv,0.2)
1499
							end
1500
						end
1501
					end
1502
				end
1503
			end
1504
		end
1505
		if v:FindFirstChild("HitBy"..Player.Name) then
1506
			v:FindFirstChild("HitBy"..Player.Name):remove()
1507
		end
1508
	end
1509
end
1510
1511
1512
--//=================================\\
1513
--||	ATTACK FUNCTIONS AND STUFF
1514
--\\=================================//
1515
1516
function ShadowCloak()
1517
	if ANIM ~= "Fall" and ANIM ~= "Jump" then
1518
		ATTACK = true
1519
		Rooted = false
1520
		UNANCHOR = false
1521
		FADERS = false
1522
		coroutine.resume(coroutine.create(function()
1523
			coroutine.resume(coroutine.create(function()
1524
				for i=1, 25 do
1525
					Swait()
1526
					RootPart.CFrame = RootPart.CFrame*CF(0,(25-i)/25,0)
1527
				end
1528
			end))
1529
			repeat
1530
				Swait()
1531
				BLADE.Transparency = Torso.Transparency
1532
				RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.1 * COS(SINE / 12)) * ANGLES(RAD(-5), RAD(0), RAD(0)), 1 / Animation_Speed)
1533
				Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-35), RAD(MRANDOM(-5,5)), RAD(MRANDOM(-5,5))), 1 / Animation_Speed)
1534
				RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(-25+MRANDOM(-5,5)), RAD(-15+MRANDOM(-5,5)), RAD(35)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
1535
				LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-25+MRANDOM(-5,5)), RAD(15+MRANDOM(-5,5)), RAD(-35)) * LEFTSHOULDERC0, 1 / Animation_Speed)
1536
				RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.1) * ANGLES(RAD(0), RAD(85), RAD(MRANDOM(-5,5))) * ANGLES(RAD(-1), RAD(0), RAD(-12)), 1 / Animation_Speed)
1537
				LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.1) * ANGLES(RAD(0), RAD(-85), RAD(MRANDOM(-5,5))) * ANGLES(RAD(-1), RAD(0), RAD(12)), 1 / Animation_Speed)
1538
			until ATTACK == false
1539
		end))
1540
		WACKYEFFECT({Time = 65, EffectType = "Sphere", Size = VT(0,0,0), Size2 = VT(25,1,25), Transparency = 0, Transparency2 = 1, CFrame = CF(RootPart.Position-VT(0,3.5,0)), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(0,0,0), SoundID = 814168787, SoundPitch = 0.6, SoundVolume = 6, UseBoomerangMath = true, Boomerang = 0, SizeBoomerang = 12})
1541
		WACKYEFFECT({Time = 65, EffectType = "Sphere", Size = VT(0,0,0), Size2 = VT(25,1,25), Transparency = 0, Transparency2 = 1, CFrame = CF(RootPart.Position-VT(0,3.5,0)), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(0,0,0), SoundID = 814168787, SoundPitch = 1, SoundVolume = 6, UseBoomerangMath = true, Boomerang = 0, SizeBoomerang = 35})
1542
		for i = 1, 50 do
1543
			Swait()
1544
			CharacterFade(C3(0,1,0),12,R_RANDOM(Torso.CFrame,1.25).p)
1545
			for index, CHILD in pairs(Character:GetChildren()) do
1546
				if CHILD:IsA("BasePart") then
1547
					CHILD.Transparency = CHILD.Transparency + 1/50
1548
				elseif CHILD:IsA("Accessory") then
1549
					CHILD.Handle.Transparency = CHILD.Handle.Transparency + 1/50
1550
				end
1551
			end
1552
		end
1553
		for i = 1, 25 do
1554
			Swait()
1555
			CharacterFade(C3(0,1,0),12,R_RANDOM(Torso.CFrame,1.25).p)
1556
		end
1557
		RootPart.CFrame = CF(Mouse.Hit.p+VT(0,12,0)) * ANGLES(RAD(0), RAD(RootPart.Orientation.Y), RAD(0))
1558
		for i = 1, 5 do
1559
			WACKYEFFECT({Time = 50, EffectType = "Round Slash", Size = VT(0,0,0), Size2 = VT(0.3,0,0.3), Transparency = 0, Transparency2 = 1, CFrame = CF(RootPart.Position) * ANGLES(RAD(MRANDOM(0,360)), RAD(MRANDOM(0,360)), RAD(MRANDOM(0,360))), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(0,0,0), SoundID = nil, SoundPitch = nil, SoundVolume = nil, UseBoomerangMath = true, Boomerang = 0, SizeBoomerang = 10})
1560
		end
1561
		ApplyAoE(Torso.Position,15,12,22,150,false)
1562
		CreateSound(331666014,Torso,5,1,false)
1563
		for i = 1, 12 do
1564
			Swait()
1565
			CharacterFade(C3(0,1,0),12,R_RANDOM(Torso.CFrame,1.25).p)
1566
		end
1567
		for i = 1, 50 do
1568
			Swait()
1569
			CharacterFade(C3(0,1,0),12,R_RANDOM(Torso.CFrame,1.25).p)
1570
			for index, CHILD in pairs(Character:GetChildren()) do
1571
				if CHILD:IsA("BasePart") then
1572
					CHILD.Transparency = CHILD.Transparency - 1/50
1573
				elseif CHILD:IsA("Accessory") then
1574
					CHILD.Handle.Transparency = CHILD.Handle.Transparency - 1/50
1575
				end
1576
			end
1577
		end
1578
		UNANCHOR = true
1579
		ATTACK = false
1580
		Rooted = false
1581
		FADERS = true
1582
	end
1583
end
1584
1585
function Neck_Snap()
1586
	ATTACK = true
1587
	Rooted = false
1588
	local TARGET, HUM, WLD
1589
	local HIT = RightArm.Touched:Connect(function(hit)
1590
		if hit.Parent ~= nil and hit.Parent:FindFirstChildOfClass("Humanoid") then
1591
			local H = hit.Parent:FindFirstChildOfClass("Humanoid")
1592
			if H.Health > 0 then
1593
				local TORSO = hit.Parent:FindFirstChild("Torso") or hit.Parent:FindFirstChild("UpperTorso")
1594
				if TORSO then
1595
					HUM = H
1596
					TARGET = TORSO
1597
					H.PlatformStand = true
1598
					CreateSound("260411131", TORSO, 10, 1)
1599
					WLD = CreateWeldOrSnapOrMotor("Weld", RightArm, RightArm, TORSO, CF(0, -1, -0.25) * ANGLES(RAD(-90), RAD(0), RAD(0)), CF(0, 0, 0))
1600
				end
1601
			end
1602
		end
1603
	end)
1604
	for i = 0, 1, 0.1 / Animation_Speed do
1605
		Swait()
1606
		if TARGET ~= nil then
1607
			break
1608
		end
1609
		RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(25)), 0.5 / Animation_Speed)
1610
		Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(-25)), 0.5 / Animation_Speed)
1611
		RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.15, 0.45, -0.3) * ANGLES(RAD(90), RAD(0), RAD(-12)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed)
1612
		LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.5 / Animation_Speed)
1613
		if ANIM == "Idle" then
1614
			RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed)
1615
			LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed)
1616
		elseif ANIM == "Walk" then
1617
			RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(-25 - 2.5 * SIN(SINE / 22)), RAD(75), RAD(0)) * ANGLES(RAD(-8 - 5.5 * SIN(SINE / 22)), RAD(0), RAD(0)), 1 / Animation_Speed)
1618
			LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(-2.5 * SIN(SINE / 22)), RAD(-90), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 22)), RAD(0), RAD(0)), 1 / Animation_Speed)
1619
		elseif ANIM == "Jump" or ANIM == "Fall" then
1620
			RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(20)), 0.2 / Animation_Speed)
1621
			LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(10)), 0.2 / Animation_Speed)
1622
		end
1623
	end
1624
	HIT:disconnect()
1625
	if TARGET ~= nil then
1626
		if TARGET.Name == "Torso" then
1627
			for i = 0, 2, 0.1 / Animation_Speed do
1628
				Swait()
1629
				RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.5 / Animation_Speed)
1630
				Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.5 / Animation_Speed)
1631
				RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, -0.5) * ANGLES(RAD(65), RAD(25), RAD(-45)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed)
1632
				LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, -0.5) * ANGLES(RAD(120), RAD(0), RAD(45)) * LEFTSHOULDERC0, 0.5 / Animation_Speed)
1633
				if ANIM == "Idle" then
1634
					RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed)
1635
					LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed)
1636
				elseif ANIM == "Walk" then
1637
					RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(-25 - 2.5 * SIN(SINE / 22)), RAD(75), RAD(0)) * ANGLES(RAD(-8 - 5.5 * SIN(SINE / 22)), RAD(0), RAD(0)), 1 / Animation_Speed)
1638
					LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(-2.5 * SIN(SINE / 22)), RAD(-90), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 22)), RAD(0), RAD(0)), 1 / Animation_Speed)
1639
				elseif ANIM == "Jump" or ANIM == "Fall" then
1640
					RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(20)), 0.2 / Animation_Speed)
1641
					LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(10)), 0.2 / Animation_Speed)
1642
				end
1643
			end
1644
			WLD:remove()
1645
			local HEAD = TARGET.Parent:FindFirstChild("Head")
1646
			if HEAD then
1647
				UNANCHOR = false
1648
				RootPart.Anchored = true
1649
				local HD = HEAD:Clone()
1650
				HD.Name = "FakeHead"
1651
				for i = 1, 7 do
1652
					SprayBlood(TARGET.CFrame * CF(0, TARGET.Size.Y / 2, 0).p, TARGET.CFrame * CF(MRANDOM(25, 55), MRANDOM(-25, 25), MRANDOM(25, 55)).p, 15)
1653
				end
1654
				local RAGDOLL, RAGTORSO = Ragdoll(TARGET.Parent, Torso, true, 0)
1655
				local RAGWELD = CreateWeldOrSnapOrMotor("Weld", RightArm, RightArm, RAGTORSO, CF(0, -1, -0.25) * ANGLES(RAD(-90), RAD(0), RAD(0)), CF(0, 0, 0))
1656
				HD.Parent = RAGDOLL
1657
				CreateSound("264486467", RAGTORSO, 10, 1)
1658
				local HEADWELD = CreateWeldOrSnapOrMotor("Weld", LeftArm, LeftArm, HD, CF(0, -1, -0.25) * ANGLES(RAD(-90), RAD(0), RAD(0)), CF(0, 0, 0))
1659
				for i = 0, 2, 0.1 / Animation_Speed do
1660
					Swait()
1661
					RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.5 / Animation_Speed)
1662
					Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.5 / Animation_Speed)
1663
					RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, -0.5) * ANGLES(RAD(90), RAD(0), RAD(15)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed)
1664
					LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, -0.5) * ANGLES(RAD(150), RAD(0), RAD(-15)) * LEFTSHOULDERC0, 0.5 / Animation_Speed)
1665
					if ANIM == "Idle" then
1666
						RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed)
1667
						LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed)
1668
					elseif ANIM == "Walk" then
1669
						RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(-25 - 2.5 * SIN(SINE / 22)), RAD(75), RAD(0)) * ANGLES(RAD(-8 - 5.5 * SIN(SINE / 22)), RAD(0), RAD(0)), 1 / Animation_Speed)
1670
						LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(-2.5 * SIN(SINE / 22)), RAD(-90), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 22)), RAD(0), RAD(0)), 1 / Animation_Speed)
1671
					elseif ANIM == "Jump" or ANIM == "Fall" then
1672
						RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(20)), 0.2 / Animation_Speed)
1673
						LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(10)), 0.2 / Animation_Speed)
1674
					end
1675
				end
1676
				HEADWELD:remove()
1677
				for i = 0, 0.5, 0.1 / Animation_Speed do
1678
					Swait()
1679
					RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.5 / Animation_Speed)
1680
					Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.5 / Animation_Speed)
1681
					RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, -0.5) * ANGLES(RAD(90), RAD(0), RAD(-65)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed)
1682
					LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, -0.5) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.5 / Animation_Speed)
1683
					if ANIM == "Idle" then
1684
						RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed)
1685
						LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed)
1686
					elseif ANIM == "Walk" then
1687
						RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(-25 - 2.5 * SIN(SINE / 22)), RAD(75), RAD(0)) * ANGLES(RAD(-8 - 5.5 * SIN(SINE / 22)), RAD(0), RAD(0)), 1 / Animation_Speed)
1688
						LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(-2.5 * SIN(SINE / 22)), RAD(-90), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 22)), RAD(0), RAD(0)), 1 / Animation_Speed)
1689
					elseif ANIM == "Jump" or ANIM == "Fall" then
1690
						RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(20)), 0.2 / Animation_Speed)
1691
						LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(10)), 0.2 / Animation_Speed)
1692
					end
1693
				end
1694
				CreateSound("907333406", Torso, 10, 1)
1695
				for i = 0, 0.25, 0.1 / Animation_Speed do
1696
					Swait()
1697
					RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.5 / Animation_Speed)
1698
					Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.5 / Animation_Speed)
1699
					RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, -0.5) * ANGLES(RAD(90), RAD(0), RAD(90)) * RIGHTSHOULDERC0, 2 / Animation_Speed)
1700
					LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, -0.5) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.5 / Animation_Speed)
1701
					if ANIM == "Idle" then
1702
						RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed)
1703
						LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed)
1704
					elseif ANIM == "Walk" then
1705
						RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(-25 - 2.5 * SIN(SINE / 22)), RAD(75), RAD(0)) * ANGLES(RAD(-8 - 5.5 * SIN(SINE / 22)), RAD(0), RAD(0)), 1 / Animation_Speed)
1706
						LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(-2.5 * SIN(SINE / 22)), RAD(-90), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 22)), RAD(0), RAD(0)), 1 / Animation_Speed)
1707
					elseif ANIM == "Jump" or ANIM == "Fall" then
1708
						RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(20)), 0.2 / Animation_Speed)
1709
						LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(10)), 0.2 / Animation_Speed)
1710
					end
1711
				end
1712
				RAGWELD:remove()
1713
				local bv = Instance.new("BodyVelocity")
1714
				bv.maxForce = Vector3.new(1000000000, 1000000000, 1000000000)
1715
				bv.velocity = CF(Torso.Position, RAGTORSO.Position).lookVector * 75
1716
				bv.Parent = RAGTORSO
1717
				Debris:AddItem(bv, 0.05)
1718
				Debris:AddItem(RAGDOLL, 5)
1719
				for i = 0, 0.15, 0.1 / Animation_Speed do
1720
					Swait()
1721
					RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.5 / Animation_Speed)
1722
					Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.5 / Animation_Speed)
1723
					RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, -0.5) * ANGLES(RAD(90), RAD(0), RAD(90)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed)
1724
					LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, -0.5) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.5 / Animation_Speed)
1725
					if ANIM == "Idle" then
1726
						RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed)
1727
						LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed)
1728
					elseif ANIM == "Walk" then
1729
						RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(-25 - 2.5 * SIN(SINE / 22)), RAD(75), RAD(0)) * ANGLES(RAD(-8 - 5.5 * SIN(SINE / 22)), RAD(0), RAD(0)), 1 / Animation_Speed)
1730
						LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(-2.5 * SIN(SINE / 22)), RAD(-90), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 22)), RAD(0), RAD(0)), 1 / Animation_Speed)
1731
					elseif ANIM == "Jump" or ANIM == "Fall" then
1732
						RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(20)), 0.2 / Animation_Speed)
1733
						LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(10)), 0.2 / Animation_Speed)
1734
					end
1735
				end
1736
				UNANCHOR = true
1737
				RootPart.Anchored = false
1738
			end
1739
		else
1740
			UNANCHOR = false
1741
			RootPart.Anchored = true
1742
			for i = 0, 0.5, 0.1 / Animation_Speed do
1743
				Swait()
1744
				RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.5 / Animation_Speed)
1745
				Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.5 / Animation_Speed)
1746
				RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, -0.5) * ANGLES(RAD(90), RAD(0), RAD(-65)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed)
1747
				LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, -0.5) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.5 / Animation_Speed)
1748
				if ANIM == "Idle" then
1749
					RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed)
1750
					LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed)
1751
				elseif ANIM == "Walk" then
1752
					RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(-25 - 2.5 * SIN(SINE / 22)), RAD(75), RAD(0)) * ANGLES(RAD(-8 - 5.5 * SIN(SINE / 22)), RAD(0), RAD(0)), 1 / Animation_Speed)
1753
					LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(-2.5 * SIN(SINE / 22)), RAD(-90), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 22)), RAD(0), RAD(0)), 1 / Animation_Speed)
1754
				elseif ANIM == "Jump" or ANIM == "Fall" then
1755
					RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(20)), 0.2 / Animation_Speed)
1756
					LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(10)), 0.2 / Animation_Speed)
1757
				end
1758
			end
1759
			for i = 0, 0.25, 0.1 / Animation_Speed do
1760
				Swait()
1761
				RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.5 / Animation_Speed)
1762
				Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.5 / Animation_Speed)
1763
				RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, -0.5) * ANGLES(RAD(90), RAD(0), RAD(90)) * RIGHTSHOULDERC0, 2 / Animation_Speed)
1764
				LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, -0.5) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.5 / Animation_Speed)
1765
				if ANIM == "Idle" then
1766
					RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed)
1767
					LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed)
1768
				elseif ANIM == "Walk" then
1769
					RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(-25 - 2.5 * SIN(SINE / 22)), RAD(75), RAD(0)) * ANGLES(RAD(-8 - 5.5 * SIN(SINE / 22)), RAD(0), RAD(0)), 1 / Animation_Speed)
1770
					LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(-2.5 * SIN(SINE / 22)), RAD(-90), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 22)), RAD(0), RAD(0)), 1 / Animation_Speed)
1771
				elseif ANIM == "Jump" or ANIM == "Fall" then
1772
					RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(20)), 0.2 / Animation_Speed)
1773
					LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(10)), 0.2 / Animation_Speed)
1774
				end
1775
			end
1776
			WLD:remove()
1777
			TARGET.Parent:BreakJoints()
1778
			for _, c in pairs(TARGET.Parent:GetChildren()) do
1779
				if c:IsA("BasePart") then
1780
					local bv = Instance.new("BodyVelocity")
1781
					bv.maxForce = Vector3.new(1000000000, 1000000000, 1000000000)
1782
					bv.velocity = CF(Torso.Position, c.Position).lookVector * 75
1783
					bv.Parent = c
1784
					Debris:AddItem(bv, 0.05)
1785
				end
1786
			end
1787
			for i = 0, 0.15, 0.1 / Animation_Speed do
1788
				Swait()
1789
				RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.5 / Animation_Speed)
1790
				Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.5 / Animation_Speed)
1791
				RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, -0.5) * ANGLES(RAD(90), RAD(0), RAD(90)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed)
1792
				LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, -0.5) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.5 / Animation_Speed)
1793
				if ANIM == "Idle" then
1794
					RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed)
1795
					LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed)
1796
				elseif ANIM == "Walk" then
1797
					RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(-25 - 2.5 * SIN(SINE / 22)), RAD(75), RAD(0)) * ANGLES(RAD(-8 - 5.5 * SIN(SINE / 22)), RAD(0), RAD(0)), 1 / Animation_Speed)
1798
					LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(-2.5 * SIN(SINE / 22)), RAD(-90), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 22)), RAD(0), RAD(0)), 1 / Animation_Speed)
1799
				elseif ANIM == "Jump" or ANIM == "Fall" then
1800
					RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(20)), 0.2 / Animation_Speed)
1801
					LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(10)), 0.2 / Animation_Speed)
1802
				end
1803
			end
1804
			UNANCHOR = true
1805
			RootPart.Anchored = false
1806
		end
1807
	end
1808
	ATTACK = false
1809
	Rooted = false
1810
end
1811
1812
function Banisher_Bullet()
1813
	ATTACK = true
1814
	Rooted = false
1815
	for i=0, 0.4, 0.1 / Animation_Speed do
1816
		Swait()
1817
		turnto(Mouse.Hit.p)
1818
            Torso.Neck.C0=Clerp(Torso.Neck.C0,NECKC0*ANGLES(0,math.rad(-25),0)*ANGLES(math.rad(0 - 25 * math.cos(SINE / 0.1164)),math.rad(0 - 30 * math.cos(SINE / 0.25)),math.rad(0 - 30 * math.cos(SINE / 0.465))),.1)
1819
		    RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0 - 0.05 * COS(SINE / 12), 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(-2 + 2 * COS(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed)
1820
			RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(90), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
1821
			LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.6, 0) * ANGLES(RAD(90), RAD(0), RAD(0)) * LEFTSHOULDERC0, 0.5 / Animation_Speed)
1822
			RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * SIN(SINE / 12), 0) * ANGLES(RAD(-10), RAD(80), RAD(0)) * ANGLES(RAD(-3), RAD(0), RAD(0)), 1 / Animation_Speed)
1823
			LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * SIN(SINE / 12), 0) * ANGLES(RAD(-10), RAD(-80), RAD(0)) * ANGLES(RAD(-3), RAD(0), RAD(0)), 1 / Animation_Speed)
1824
	end
1825
	repeat
1826
		for i=0, 0.2, 0.1 / Animation_Speed do
1827
			Swait()
1828
			turnto(Mouse.Hit.p)
1829
            Torso.Neck.C0=Clerp(Torso.Neck.C0,NECKC0*ANGLES(0,math.rad(-25),0)*ANGLES(math.rad(0 - 25 * math.cos(SINE / 0.1164)),math.rad(0 - 30 * math.cos(SINE / 0.25)),math.rad(0 - 30 * math.cos(SINE / 0.465))),.1)
1830
		    RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0 - 0.05 * COS(SINE / 12), 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(-2 + 2 * COS(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed)
1831
			RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(90), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
1832
			LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.6, 0) * ANGLES(RAD(90), RAD(0), RAD(0)) * LEFTSHOULDERC0, 0.5 / Animation_Speed)
1833
			RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * SIN(SINE / 12), 0) * ANGLES(RAD(-10), RAD(80), RAD(0)) * ANGLES(RAD(-3), RAD(0), RAD(0)), 1 / Animation_Speed)
1834
			LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * SIN(SINE / 12), 0) * ANGLES(RAD(-10), RAD(-80), RAD(0)) * ANGLES(RAD(-3), RAD(0), RAD(0)), 1 / Animation_Speed)
1835
		end
1836
		local HIT,POS = CastProperRay(Hole2.Position, Mouse.Hit.p, 1000, Character)
1837
		SpawnTrail(Hole2.Position,POS)
1838
		if HIT ~= nil then
1839
			if HIT.Parent ~= workspace and HIT.Parent.ClassName ~= "Folder" then
1840
				Banish(HIT.Parent)
1841
			end
1842
		end
1843
			local HIT,POS = CastProperRay(Hole.Position, Mouse.Hit.p, 1000, Character)
1844
		SpawnTrail(Hole.Position,POS)
1845
		if HIT ~= nil then
1846
			if HIT.Parent ~= workspace and HIT.Parent.ClassName ~= "Folder" then
1847
				Banish(HIT.Parent)
1848
			end
1849
		end
1850
		WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(5,5,5), Size2 = VT(5,5,5), Transparency = 0, Transparency2 = 1, CFrame = Hole2.CFrame, MoveToPos = Hole2.CFrame*CF(0,0.5,0).p, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(0,1,0), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
1851
		WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(5,5,5), Size2 = VT(5,5,5), Transparency = 0, Transparency2 = 1, CFrame = Hole2.CFrame, MoveToPos = nil, RotationX = 0, RotationY = 5, RotationZ = 0, Material = "Neon", Color = C3(0,1,0), SoundID = 904440937, SoundPitch = MRANDOM(8,11)/10, SoundVolume = 8})
1852
		WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(5,5,5), Size2 = VT(5,5,5), Transparency = 0, Transparency2 = 1, CFrame = CF(POS,Hole2.Position) * ANGLES(RAD(-90), RAD(0), RAD(0)), MoveToPos = nil, RotationX = 0, RotationY = -5, RotationZ = 0, Material = "Neon", Color = C3(0,1,0), SoundID = nil, SoundPitch = MRANDOM(8,11)/10, SoundVolume = 8})
1853
		WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(0.3,0,0.3), Size2 = VT(2,0.5,2), Transparency = 0, Transparency2 = 1, CFrame = CF(POS,Hole2.Position) * ANGLES(RAD(-90), RAD(0), RAD(0)), MoveToPos = nil, RotationX = 0, RotationY = 5, RotationZ = 0, Material = "Neon", Color = C3(0,1,0), SoundID = nil, SoundPitch = MRANDOM(8,11)/10, SoundVolume = 8})
1854
		for i=0, 0.3, 0.1 / Animation_Speed do
1855
			Swait()
1856
            Torso.Neck.C0=Clerp(Torso.Neck.C0,NECKC0*ANGLES(0,math.rad(-25),0)*ANGLES(math.rad(0 - 25 * math.cos(SINE / 0.1164)),math.rad(0 - 30 * math.cos(SINE / 0.25)),math.rad(0 - 30 * math.cos(SINE / 0.465))),.1)
1857
		    RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0 - 0.05 * COS(SINE / 12), 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(-2 + 2 * COS(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed)
1858
			RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(106), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
1859
			LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(106), RAD(0), RAD(0)) * LEFTSHOULDERC0, 0.5 / Animation_Speed)
1860
			RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * SIN(SINE / 12), 0) * ANGLES(RAD(-10), RAD(78), RAD(0)) * ANGLES(RAD(-3), RAD(0), RAD(0)), 1 / Animation_Speed)
1861
			LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * SIN(SINE / 12), 0) * ANGLES(RAD(-10), RAD(-78), RAD(0)) * ANGLES(RAD(-3), RAD(0), RAD(0)), 1 / Animation_Speed)
1862
		end
1863
				WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(5,5,5), Size2 = VT(5,5,5), Transparency = 0, Transparency2 = 1, CFrame = Hole.CFrame, MoveToPos = Hole.CFrame*CF(5,5,5).p, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(0,1,0), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
1864
		WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(5,5,5), Size2 = VT(5,5,5), Transparency = 0, Transparency2 = 1, CFrame = Hole.CFrame, MoveToPos = nil, RotationX = 0, RotationY = 5, RotationZ = 0, Material = "Neon", Color = C3(0,1,0), SoundID = 904440937, SoundPitch = MRANDOM(8,11)/10, SoundVolume = 8})
1865
		WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(5,5,5), Size2 = VT(5,5,5), Transparency = 0, Transparency2 = 1, CFrame = CF(POS,Hole.Position) * ANGLES(RAD(-90), RAD(0), RAD(0)), MoveToPos = nil, RotationX = 0, RotationY = -5, RotationZ = 0, Material = "Neon", Color = C3(0,1,0), SoundID = nil, SoundPitch = MRANDOM(8,11)/10, SoundVolume = 8})
1866
		WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(0.3,0,0.3), Size2 = VT(2,0.5,2), Transparency = 0, Transparency2 = 1, CFrame = CF(POS,Hole.Position) * ANGLES(RAD(-90), RAD(0), RAD(0)), MoveToPos = nil, RotationX = 0, RotationY = 5, RotationZ = 0, Material = "Neon", Color = C3(0,1,0), SoundID = nil, SoundPitch = MRANDOM(8,11)/10, SoundVolume = 8})
1867
	until KEYHOLD == false
1868
	ATTACK = false
1869
	Rooted = false
1870
end
1871
1872
function AttackTemplate()
1873
	ATTACK = true
1874
	Rooted = false
1875
	for i=0, 1, 0.1 / Animation_Speed do
1876
		Swait()
1877
		RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 1 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
1878
		Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed)
1879
		RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(100), RAD(12)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
1880
		LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
1881
		RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed)
1882
		LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed)
1883
	end
1884
	ATTACK = false
1885
	Rooted = false
1886
end
1887
1888
--//=================================\\
1889
--||	  ASSIGN THINGS TO KEYS
1890
--\\=================================//
1891
1892
function MouseDown(Mouse)
1893
	if ATTACK == false then
1894
	end
1895
end
1896
1897
function MouseUp(Mouse)
1898
HOLD = false
1899
end
1900
1901
function KeyDown(Key)
1902
	KEYHOLD = true
1903
	if Key == "z" and ATTACK == false then
1904
		Banisher_Bullet()
1905
	end
1906
1907
	if Key == "b" and ATTACK == false then
1908
                Neck_Snap()
1909
	end
1910
1911
	if Key == "c" and ATTACK == false then
1912
                ShadowCloak()
1913
	end
1914
1915
	if Key == "v" and ATTACK == false then
1916
	end
1917
1918
	if Key == "x" and ATTACK == false then
1919
	end
1920
end
1921
1922
function KeyUp(Key)
1923
	KEYHOLD = false
1924
end
1925
1926
	Mouse.Button1Down:connect(function(NEWKEY)
1927
		MouseDown(NEWKEY)
1928
	end)
1929
	Mouse.Button1Up:connect(function(NEWKEY)
1930
		MouseUp(NEWKEY)
1931
	end)
1932
	Mouse.KeyDown:connect(function(NEWKEY)
1933
		KeyDown(NEWKEY)
1934
	end)
1935
	Mouse.KeyUp:connect(function(NEWKEY)
1936
		KeyUp(NEWKEY)
1937
	end)
1938
1939
--//=================================\\
1940
--\\=================================//
1941
1942
1943
function unanchor()
1944
	if UNANCHOR == true then
1945
		g = Character:GetChildren()
1946
		for i = 1, #g do
1947
			if g[i].ClassName == "Part" then
1948
				g[i].Anchored = false
1949
			end
1950
		end
1951
	end
1952
end
1953
1954
1955
--//=================================\\
1956
--||	WRAP THE WHOLE SCRIPT UP
1957
--\\=================================//
1958
1959
Humanoid.Changed:connect(function(Jump)
1960
	if Jump == "Jump" and (Disable_Jump == true) then
1961
		Humanoid.Jump = false
1962
	end
1963
end)
1964
1965
local CONNECT = nil
1966
1967
while true do
1968
	Swait()
1969
	ANIMATE.Parent = nil
1970
	if Character:FindFirstChildOfClass("Humanoid") == nil then
1971
		Humanoid = IT("Humanoid",Character)
1972
	end
1973
	for _,v in next, Humanoid:GetPlayingAnimationTracks() do
1974
	    v:Stop();
1975
	end
1976
	SINE = SINE + CHANGE
1977
	local TORSOVELOCITY = (RootPart.Velocity * VT(1, 0, 1)).magnitude
1978
	local TORSOVERTICALVELOCITY = RootPart.Velocity.y
1979
	local HITFLOOR = Raycast(RootPart.Position, (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 4, Character)
1980
	local WALKSPEEDVALUE = 6 / (Humanoid.WalkSpeed / 16)
1981
	if ANIM == "Walk" and TORSOVELOCITY > 1 then
1982
		RootJoint.C1 = Clerp(RootJoint.C1, ROOTC0 * CF(0, 0, -0.15 * COS(SINE / (WALKSPEEDVALUE / 2))) * ANGLES(RAD(0), RAD(0) - RootPart.RotVelocity.Y / 75, RAD(0)), 2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
1983
		Neck.C1 = Clerp(Neck.C1, CF(0, -0.5, 0) * 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)
1984
		RightHip.C1 = Clerp(RightHip.C1, CF(0.5, 0.875 - 0.125 * SIN(SINE / WALKSPEEDVALUE) - 0.15 * COS(SINE / WALKSPEEDVALUE*2), -0.125 * COS(SINE / WALKSPEEDVALUE) +0.2+ 0.2 * COS(SINE / WALKSPEEDVALUE)) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0) - RightLeg.RotVelocity.Y / 75, RAD(0), RAD(76 * COS(SINE / WALKSPEEDVALUE))), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
1985
		LeftHip.C1 = Clerp(LeftHip.C1, CF(-0.5, 0.875 + 0.125 * SIN(SINE / WALKSPEEDVALUE) - 0.15 * COS(SINE / WALKSPEEDVALUE*2), 0.125 * COS(SINE / WALKSPEEDVALUE) +0.2+ -0.2 * COS(SINE / WALKSPEEDVALUE)) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0) + LeftLeg.RotVelocity.Y / 75, RAD(0), RAD(76 * COS(SINE / WALKSPEEDVALUE))), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
1986
	elseif (ANIM ~= "Walk") or (TORSOVELOCITY < 1) then
1987
		RootJoint.C1 = Clerp(RootJoint.C1, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
1988
		Neck.C1 = Clerp(Neck.C1, CF(0, -0.5, 0) * ANGLES(RAD(-90), RAD(0), RAD(180)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
1989
		RightHip.C1 = Clerp(RightHip.C1, CF(0.5, 1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
1990
		LeftHip.C1 = Clerp(LeftHip.C1, CF(-0.5, 1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
1991
	end
1992
	if TORSOVERTICALVELOCITY > 1 and HITFLOOR == nil then
1993
		ANIM = "Jump"
1994
		if ATTACK == false then
1995
            Torso.Neck.C0=Clerp(Torso.Neck.C0,NECKC0*ANGLES(0,math.rad(-25),0)*ANGLES(math.rad(0 - 25 * math.cos(SINE / 0.1164)),math.rad(0 - 30 * math.cos(SINE / 0.25)),math.rad(0 - 30 * math.cos(SINE / 0.465))),.1)
1996
		    RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0 - 0.05 * COS(SINE / 12), 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(-2 + 2 * COS(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed)
1997
			RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(45), RAD(0), RAD(25))* RIGHTSHOULDERC0, 0.15 / Animation_Speed)
1998
			LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-40), RAD(0), RAD(-20)) * LEFTSHOULDERC0, 0.2 / Animation_Speed)
1999
			RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.3) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(-20)), 0.2 / Animation_Speed)
2000
			LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.3) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(20)), 0.2 / Animation_Speed)
2001
	    end
2002
	elseif TORSOVERTICALVELOCITY < -1 and HITFLOOR == nil then
2003
		ANIM = "Fall"
2004
		if ATTACK == false then
2005
            Torso.Neck.C0=Clerp(Torso.Neck.C0,NECKC0*ANGLES(0,math.rad(-25),0)*ANGLES(math.rad(0 - 25 * math.cos(SINE / 0.1164)),math.rad(0 - 30 * math.cos(SINE / 0.25)),math.rad(0 - 30 * math.cos(SINE / 0.465))),.1)
2006
		    RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0 - 0.05 * COS(SINE / 12), 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(-2 + 2 * COS(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed)
2007
			RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(45), RAD(0), RAD(25))* RIGHTSHOULDERC0, 0.15 / Animation_Speed)
2008
			LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-60)) * LEFTSHOULDERC0, 0.2 / Animation_Speed)
2009
			RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(20)), 0.2 / Animation_Speed)
2010
			LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(10)), 0.2 / Animation_Speed)
2011
		end
2012
	elseif TORSOVELOCITY < 1 and HITFLOOR ~= nil then
2013
		ANIM = "Idle"
2014
		if ATTACK == false then
2015
            Torso.Neck.C0=Clerp(Torso.Neck.C0,NECKC0*ANGLES(0,math.rad(-25),0)*ANGLES(math.rad(0 - 25 * math.cos(SINE / 0.1164)),math.rad(0 - 30 * math.cos(SINE / 0.25)),math.rad(0 - 30 * math.cos(SINE / 0.465))),.1)
2016
		    RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0 - 0.05 * COS(SINE / 12), 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(-2 + 2 * COS(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed)
2017
			RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(90), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
2018
			LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(90), RAD(0), RAD(0)) * LEFTSHOULDERC0, 0.5 / Animation_Speed)
2019
			RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * SIN(SINE / 12), 0) * ANGLES(RAD(-10), RAD(80), RAD(0)) * ANGLES(RAD(-3), RAD(0), RAD(0)), 1 / Animation_Speed)
2020
			LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * SIN(SINE / 12), 0) * ANGLES(RAD(-10), RAD(-80), RAD(0)) * ANGLES(RAD(-3), RAD(0), RAD(0)), 1 / Animation_Speed)
2021
		end
2022
	elseif TORSOVELOCITY > 1 and HITFLOOR ~= nil then
2023
		ANIM = "Walk"
2024
		if ATTACK == false then
2025
            Torso.Neck.C0=Clerp(Torso.Neck.C0,NECKC0*ANGLES(0,math.rad(-25),0)*ANGLES(math.rad(0 - 25 * math.cos(SINE / 0.1164)),math.rad(0 - 30 * math.cos(SINE / 0.25)),math.rad(0 - 30 * math.cos(SINE / 0.465))),.1)
2026
		    RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0 - 0.05 * COS(SINE / 12), 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(-2 + 2 * COS(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed)
2027
			RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(90), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
2028
			LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(90), RAD(0), RAD(0)) * LEFTSHOULDERC0, 0.5 / Animation_Speed)
2029
			RightHip.C0 = Clerp(RightHip.C0, CF(1 , -1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(-15)), 2 / Animation_Speed)
2030
			LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(15)), 2 / Animation_Speed)
2031
		end
2032
	end
2033
	unanchor()
2034
	Humanoid.MaxHealth = "inf"
2035
	Humanoid.Health = "inf"
2036
	if Rooted == false then
2037
		Disable_Jump = false
2038
		Humanoid.WalkSpeed = Speed
2039
	elseif Rooted == true then
2040
		Disable_Jump = true
2041
		Humanoid.WalkSpeed = 0
2042
	end
2043
	sick.Parent = Torso
2044
	sick:resume()
2045
	sick.Volume = 5
2046
	sick.Pitch = 1
2047-
	sick.SoundId = "rbxassetid://933032912"
2047+
	sick.SoundId = "rbxassetid://185492305"
2048
	sick.Name = "BanishV3Music"
2049
end
2050
2051
--//=================================\\
2052
--\\=================================//
2053
2054
2055
2056
2057
2058
--//====================================================\\--
2059
--||			  		 END OF SCRIPT
2060
--\\====================================================//--