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