View difference between Paste ID: AKEPet6Y and ka96xm4a
SHOW: | | - or go back to the newest paste.
1-
script.Name = "Banisher Gun V3 / 1"
1+
2
--              EDITED BY VOYQGO
3
--\\====================================================//--
4
5
--//====================================================\\--
6
--||			   CREATED BY SHACKLUSTER
7
--\\====================================================//--
8
9
script:ClearAllChildren()
10
wait(0.2)
11
12
Player = game:GetService("Players").LocalPlayer
13
PlayerGui = Player.PlayerGui
14
Cam = workspace.CurrentCamera
15
Backpack = Player.Backpack
16
Character = Player.Character
17
Humanoid = Character.Humanoid
18
Mouse = Player:GetMouse()
19
RootPart = Character["HumanoidRootPart"]
20
Torso = Character["Torso"]
21
Head = Character["Head"]
22
RightArm = Character["Right Arm"]
23
LeftArm = Character["Left Arm"]
24
RightLeg = Character["Right Leg"]
25
LeftLeg = Character["Left Leg"]
26
RootJoint = RootPart["RootJoint"]
27
Neck = Torso["Neck"]
28
RightShoulder = Torso["Right Shoulder"]
29
LeftShoulder = Torso["Left Shoulder"]
30-
local sick = Instance.new("Sound",Torso)
30+
31
LeftHip = Torso["Left Hip"]
32
local TIME = 0
33
Character.Head.face.Texture = "rbxassetid://120463437"
34
35
IT = Instance.new
36
CF = CFrame.new
37
VT = Vector3.new
38
RAD = math.rad
39
C3 = Color3.new
40
UD2 = UDim2.new
41
BRICKC = BrickColor.new
42
ANGLES = CFrame.Angles
43
EULER = CFrame.fromEulerAnglesXYZ
44
COS = math.cos
45
ACOS = math.acos
46
SIN = math.sin
47
ASIN = math.asin
48
ABS = math.abs
49
MRANDOM = math.random
50
FLOOR = math.floor
51
52
--//=================================\\
53
--|| 	      USEFUL VALUES
54
--\\=================================//
55
56
Animation_Speed = 3
57
local FORCERESET = false
58
Frame_Speed = 1 / 60 -- (1 / 30) OR (1 / 60)
59
local Speed = 16
60
local ROOTC0 = CF(0, 0, 0) * ANGLES(RAD(-90), RAD(0), RAD(180))
61
local NECKC0 = CF(0, 1, 0) * ANGLES(RAD(-90), RAD(0), RAD(180))
62
local RIGHTSHOULDERC0 = CF(-0.5, 0, 0) * ANGLES(RAD(0), RAD(90), RAD(0))
63
local LEFTSHOULDERC0 = CF(0.5, 0, 0) * ANGLES(RAD(0), RAD(-90), RAD(0))
64
local DAMAGEMULTIPLIER = 1
65
local ANIM = "Idle"
66
local ATTACK = false
67
local EQUIPPED = false
68
local HOLD = false
69
local COMBO = 1
70
local Rooted = false
71
local SINE = 0
72
local KEYHOLD = false
73
local CHANGE = 2 / Animation_Speed
74
local WALKINGANIM = false
75
local VALUE1 = false
76
local VALUE2 = false
77
local ROBLOXIDLEANIMATION = IT("Animation")
78
ROBLOXIDLEANIMATION.Name = "Roblox Idle Animation"
79
ROBLOXIDLEANIMATION.AnimationId = "http://www.roblox.com/asset/?id=180435571"
80
--ROBLOXIDLEANIMATION.Parent = Humanoid
81
local WEAPONGUI = IT("ScreenGui", PlayerGui)
82
WEAPONGUI.Name = "BanishV3Gui"
83
local Weapon = IT("Model")
84
Weapon.Name = "Adds"
85
local Effects = IT("Folder", Weapon)
86
Effects.Name = "Effects"
87
local ANIMATOR = Humanoid.Animator
88
local ANIMATE = Character:FindFirstChild("Animate")
89
local UNANCHOR = true
90
local TOBANISH = {}
91
script.Parent = PlayerGui
92
93
--//=================================\\
94
--\\=================================//
95
96
97
--//=================================\\
98
--|| SAZERENOS' ARTIFICIAL HEARTBEAT
99
--\\=================================//
100
101
ArtificialHB = Instance.new("BindableEvent", script)
102
ArtificialHB.Name = "ArtificialHB"
103
104
script:WaitForChild("ArtificialHB")
105
106
frame = Frame_Speed
107
tf = 0
108
allowframeloss = false
109
tossremainder = false
110
lastframe = tick()
111
script.ArtificialHB:Fire()
112
113
game:GetService("RunService").Heartbeat:connect(function(s, p)
114
	tf = tf + s
115
	if tf >= frame then
116
		if allowframeloss then
117
			script.ArtificialHB:Fire()
118
			lastframe = tick()
119
		else
120
			for i = 1, math.floor(tf / frame) do
121
				script.ArtificialHB:Fire()
122
			end
123
		lastframe = tick()
124
		end
125
		if tossremainder then
126
			tf = 0
127
		else
128
			tf = tf - frame * math.floor(tf / frame)
129
		end
130
	end
131
end)
132
133
--//=================================\\
134
--\\=================================//
135
136
--//=================================\\
137
--|| 	      SOME FUNCTIONS
138
--\\=================================//
139
140
function Raycast(POSITION, DIRECTION, RANGE, IGNOREDECENDANTS)
141
	return workspace:FindPartOnRay(Ray.new(POSITION, DIRECTION.unit * RANGE), IGNOREDECENDANTS)
142
end
143
function MagicSphere(SIZE,WAIT,CFRAME,COLOR,GROW)
144
    local wave = CreatePart(3, Effects, "Neon", 0, 0, BRICKC(COLOR), "Effect", VT(1,1,1), true)
145
    wave.Color = COLOR
146
    local mesh = CreateMesh("SpecialMesh", wave, "Sphere", "", "", SIZE, VT(0,0,0))
147
    wave.CFrame = CFRAME
148
    coroutine.resume(coroutine.create(function(PART)
149
        for i = 1, WAIT do
150
            Swait()
151
            mesh.Scale = mesh.Scale + GROW
152
            wave.Transparency = wave.Transparency + (1/WAIT)
153
            if wave.Transparency > 0.99 then
154
                wave:remove()
155
            end
156
        end
157
    end))
158
end
159
160
function PositiveAngle(NUMBER)
161
	if NUMBER >= 0 then
162
		NUMBER = 0
163
	end
164
	return NUMBER
165
end
166
167
function NegativeAngle(NUMBER)
168
	if NUMBER <= 0 then
169
		NUMBER = 0
170
	end
171
	return NUMBER
172
end
173
174
function Swait(NUMBER)
175
	if NUMBER == 0 or NUMBER == nil then
176
		ArtificialHB.Event:wait()
177
	else
178
		for i = 1, NUMBER do
179
			ArtificialHB.Event:wait()
180
		end
181
	end
182
end
183
184
function CreateMesh(MESH, PARENT, MESHTYPE, MESHID, TEXTUREID, SCALE, OFFSET)
185
	local NEWMESH = IT(MESH)
186
	if MESH == "SpecialMesh" then
187
		NEWMESH.MeshType = MESHTYPE
188
		if MESHID ~= "nil" and MESHID ~= "" then
189
			NEWMESH.MeshId = "http://www.roblox.com/asset/?id="..MESHID
190
		end
191
		if TEXTUREID ~= "nil" and TEXTUREID ~= "" then
192
			NEWMESH.TextureId = "http://www.roblox.com/asset/?id="..TEXTUREID
193
		end
194
	end
195
	NEWMESH.Offset = OFFSET or VT(0, 0, 0)
196
	NEWMESH.Scale = SCALE
197
	NEWMESH.Parent = PARENT
198
	return NEWMESH
199
end
200
201
function CreatePart(FORMFACTOR, PARENT, MATERIAL, REFLECTANCE, TRANSPARENCY, BRICKCOLOR, NAME, SIZE, ANCHOR)
202
	local NEWPART = IT("Part")
203
	NEWPART.formFactor = FORMFACTOR
204
	NEWPART.Reflectance = REFLECTANCE
205
	NEWPART.Transparency = TRANSPARENCY
206
	NEWPART.CanCollide = false
207
	NEWPART.Locked = true
208
	NEWPART.Anchored = true
209
	if ANCHOR == false then
210
		NEWPART.Anchored = false
211
	end
212
	NEWPART.BrickColor = BRICKC(tostring(BRICKCOLOR))
213
	NEWPART.Name = NAME
214
	NEWPART.Size = SIZE
215
	NEWPART.Position = Torso.Position
216
	NEWPART.Material = MATERIAL
217
	NEWPART:BreakJoints()
218
	NEWPART.Parent = PARENT
219
	return NEWPART
220
end
221
222
	local function weldBetween(a, b)
223
	    local weldd = Instance.new("ManualWeld")
224
	    weldd.Part0 = a
225
	    weldd.Part1 = b
226
	    weldd.C0 = CFrame.new()
227
	    weldd.C1 = b.CFrame:inverse() * a.CFrame
228
	    weldd.Parent = a
229
	    return weldd
230
	end
231
232
233
function QuaternionFromCFrame(cf)
234
	local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
235
	local trace = m00 + m11 + m22
236
	if trace > 0 then 
237
		local s = math.sqrt(1 + trace)
238
		local recip = 0.5 / s
239
		return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5
240
	else
241
		local i = 0
242
		if m11 > m00 then
243
			i = 1
244
		end
245
		if m22 > (i == 0 and m00 or m11) then
246
			i = 2
247
		end
248
		if i == 0 then
249
			local s = math.sqrt(m00 - m11 - m22 + 1)
250
			local recip = 0.5 / s
251
			return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip
252
		elseif i == 1 then
253
			local s = math.sqrt(m11 - m22 - m00 + 1)
254
			local recip = 0.5 / s
255
			return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip
256
		elseif i == 2 then
257
			local s = math.sqrt(m22 - m00 - m11 + 1)
258
			local recip = 0.5 / s return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip
259
		end
260
	end
261
end
262
 
263
function QuaternionToCFrame(px, py, pz, x, y, z, w)
264
	local xs, ys, zs = x + x, y + y, z + z
265
	local wx, wy, wz = w * xs, w * ys, w * zs
266
	local xx = x * xs
267
	local xy = x * ys
268
	local xz = x * zs
269
	local yy = y * ys
270
	local yz = y * zs
271
	local zz = z * zs
272
	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))
273
end
274
 
275
function QuaternionSlerp(a, b, t)
276
	local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4]
277
	local startInterp, finishInterp;
278
	if cosTheta >= 0.0001 then
279
		if (1 - cosTheta) > 0.0001 then
280
			local theta = ACOS(cosTheta)
281
			local invSinTheta = 1 / SIN(theta)
282
			startInterp = SIN((1 - t) * theta) * invSinTheta
283
			finishInterp = SIN(t * theta) * invSinTheta
284
		else
285
			startInterp = 1 - t
286
			finishInterp = t
287
		end
288
	else
289
		if (1 + cosTheta) > 0.0001 then
290
			local theta = ACOS(-cosTheta)
291
			local invSinTheta = 1 / SIN(theta)
292
			startInterp = SIN((t - 1) * theta) * invSinTheta
293
			finishInterp = SIN(t * theta) * invSinTheta
294
		else
295
			startInterp = t - 1
296
			finishInterp = t
297
		end
298
	end
299
	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
300
end
301
302
function Clerp(a, b, t)
303
	local qa = {QuaternionFromCFrame(a)}
304
	local qb = {QuaternionFromCFrame(b)}
305
	local ax, ay, az = a.x, a.y, a.z
306
	local bx, by, bz = b.x, b.y, b.z
307
	local _t = 1 - t
308
	return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t))
309
end
310
311
function CreateFrame(PARENT, TRANSPARENCY, BORDERSIZEPIXEL, POSITION, SIZE, COLOR, BORDERCOLOR, NAME)
312
	local frame = IT("Frame")
313
	frame.BackgroundTransparency = TRANSPARENCY
314
	frame.BorderSizePixel = BORDERSIZEPIXEL
315
	frame.Position = POSITION
316
	frame.Size = SIZE
317
	frame.BackgroundColor3 = COLOR
318
	frame.BorderColor3 = BORDERCOLOR
319
	frame.Name = NAME
320
	frame.Parent = PARENT
321
	return frame
322
end
323
324
function CreateLabel(PARENT, TEXT, TEXTCOLOR, TEXTFONTSIZE, TEXTFONT, TRANSPARENCY, BORDERSIZEPIXEL, STROKETRANSPARENCY, NAME)
325
	local label = IT("TextLabel")
326
	label.BackgroundTransparency = 1
327
	label.Size = UD2(1, 0, 1, 0)
328
	label.Position = UD2(0, 0, 0, 0)
329
	label.TextColor3 = TEXTCOLOR
330
	label.TextStrokeTransparency = STROKETRANSPARENCY
331
	label.TextTransparency = TRANSPARENCY
332
	label.FontSize = TEXTFONTSIZE
333
	label.Font = TEXTFONT
334
	label.BorderSizePixel = BORDERSIZEPIXEL
335
	label.TextScaled = false
336
	label.Text = TEXT
337
	label.Name = NAME
338
	label.Parent = PARENT
339
	return label
340
end
341
342
function NoOutlines(PART)
343
	PART.TopSurface, PART.BottomSurface, PART.LeftSurface, PART.RightSurface, PART.FrontSurface, PART.BackSurface = 10, 10, 10, 10, 10, 10
344
end
345
346
function CreateWeldOrSnapOrMotor(TYPE, PARENT, PART0, PART1, C0, C1)
347
	local NEWWELD = IT(TYPE)
348
	NEWWELD.Part0 = PART0
349
	NEWWELD.Part1 = PART1
350
	NEWWELD.C0 = C0
351
	NEWWELD.C1 = C1
352
	NEWWELD.Parent = PARENT
353
	return NEWWELD
354
end
355
356
local S = IT("Sound")
357
function CreateSound(ID, PARENT, VOLUME, PITCH, DOESLOOP)
358
	local NEWSOUND = nil
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)
359+
360
		NEWSOUND = S:Clone()
361
		NEWSOUND.Parent = PARENT
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})
362+
363-
function WACKYEFFECT(Table)
363+
364-
	local TYPE = (Table.EffectType or "Sphere")
364+
365-
	local SIZE = (Table.Size or VT(1,1,1))
365+
366-
	local ENDSIZE = (Table.Size2 or VT(0,0,0))
366+
367-
	local TRANSPARENCY = (Table.Transparency or 0)
367+
368-
	local ENDTRANSPARENCY = (Table.Transparency2 or 1)
368+
369-
	local CFRAME = (Table.CFrame or Torso.CFrame)
369+
370-
	local MOVEDIRECTION = (Table.MoveToPos or nil)
370+
371-
	local ROTATION1 = (Table.RotationX or 0)
371+
372-
	local ROTATION2 = (Table.RotationY or 0)
372+
373-
	local ROTATION3 = (Table.RotationZ or 0)
373+
374-
	local MATERIAL = (Table.Material or "Neon")
374+
375-
	local COLOR = (Table.Color or C3(1,1,1))
375+
376-
	local TIME = (Table.Time or 45)
376+
377-
	local SOUNDID = (Table.SoundID or nil)
377+
378-
	local SOUNDPITCH = (Table.SoundPitch or nil)
378+
	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
379-
	local SOUNDVOLUME = (Table.SoundVolume or nil)
379+
380
--//=================================\\
381-
		local PLAYSSOUND = false
381+
382-
		local SOUND = nil
382+
383-
		local EFFECT = CreatePart(3, Effects, MATERIAL, 0, TRANSPARENCY, BRICKC("Pearl"), "Effect", VT(1,1,1), true)
383+
384-
		if SOUNDID ~= nil and SOUNDPITCH ~= nil and SOUNDVOLUME ~= nil then
384+
385-
			PLAYSSOUND = true
385+
386-
			SOUND = CreateSound(SOUNDID, EFFECT, SOUNDVOLUME, SOUNDPITCH, false)
386+
387
Particle.LightEmission = 0.5
388-
		EFFECT.Color = COLOR
388+
389-
		local MSH = nil
389+
390-
		if TYPE == "Sphere" then
390+
391-
			MSH = CreateMesh("SpecialMesh", EFFECT, "Sphere", "", "", SIZE, VT(0,0,0))
391+
392-
		elseif TYPE == "Block" then
392+
393-
			MSH = IT("BlockMesh",EFFECT)
393+
394-
			MSH.Scale = VT(SIZE.X,SIZE.X,SIZE.X)
394+
395-
		elseif TYPE == "Wave" then
395+
396-
			MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "20329976", "", SIZE, VT(0,0,-SIZE.X/8))
396+
397-
		elseif TYPE == "Ring" then
397+
398-
			MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "559831844", "", VT(SIZE.X,SIZE.X,0.1), VT(0,0,0))
398+
399-
		elseif TYPE == "Slash" then
399+
400-
			MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662586858", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0))
400+
401-
		elseif TYPE == "Round Slash" then
401+
402-
			MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662585058", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0))
402+
403-
		elseif TYPE == "Swirl" then
403+
404-
			MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "1051557", "", SIZE, VT(0,0,0))
404+
405-
		elseif TYPE == "Skull" then
405+
406-
			MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "4770583", "", SIZE, VT(0,0,0))
406+
407-
		elseif TYPE == "Crystal" then
407+
408-
			MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "9756362", "", SIZE, VT(0,0,0))
408+
409
	PRTCL.Parent = Parent
410-
		if MSH ~= nil then
410+
411-
			local MOVESPEED = nil
411+
412-
			if MOVEDIRECTION ~= nil then
412+
413-
				MOVESPEED = (CFRAME.p - MOVEDIRECTION).Magnitude/TIME
413+
414
	PRTCL.Drag = Drag
415-
			local GROWTH = SIZE - ENDSIZE
415+
416-
			local TRANS = TRANSPARENCY - ENDTRANSPARENCY
416+
417-
			if TYPE == "Block" then
417+
418-
				EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))
418+
419-
			else
419+
420-
				EFFECT.CFrame = CFRAME
420+
421
	end
422-
			for LOOP = 1, TIME+1 do
422+
423
end
424-
				MSH.Scale = MSH.Scale - GROWTH/TIME
424+
425-
				if TYPE == "Wave" then
425+
426-
					MSH.Offset = VT(0,0,-MSH.Scale.X/8)
426+
427
local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.2,0.5,0.2),false)
428-
				EFFECT.Transparency = EFFECT.Transparency - TRANS/TIME
428+
429-
				if TYPE == "Block" then
429+
430-
					EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))
430+
431
MakeForm(Part,"Wedge")
432-
					EFFECT.CFrame = EFFECT.CFrame*ANGLES(RAD(ROTATION1),RAD(ROTATION2),RAD(ROTATION3))
432+
433
local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.3,0.3,0.3),false)
434-
				if MOVEDIRECTION ~= nil then
434+
435-
					local ORI = EFFECT.Orientation
435+
436-
					EFFECT.CFrame = CF(EFFECT.Position,MOVEDIRECTION)*CF(0,0,-MOVESPEED)
436+
437-
					EFFECT.Orientation = ORI
437+
438
MakeForm(Part,"Cyl")
439
CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.5) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
440-
			if PLAYSSOUND == false then
440+
441-
				EFFECT:remove()
441+
442-
			else
442+
443-
				SOUND.Stopped:Connect(function()
443+
444-
					EFFECT:remove()
444+
445-
				end)
445+
446
CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.5) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
447
local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.37,0.5,0.37),false)
448-
			if PLAYSSOUND == false then
448+
449-
				EFFECT:remove()
449+
450-
			else
450+
451-
				repeat Swait() until SOUND.Playing == false
451+
452-
				EFFECT:remove()
452+
453
local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.3,0.4,0.2),false)
454
CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.7) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
455
local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.35,0.35,0.35),false)
456
MakeForm(Part,"Cyl")
457
CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.7) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
458-
function MakeForm(PART,TYPE)
458+
459-
	if TYPE == "Cyl" then
459+
460-
		local MSH = IT("CylinderMesh",PART)
460+
461-
	elseif TYPE == "Ball" then
461+
462-
		local MSH = IT("SpecialMesh",PART)
462+
463-
		MSH.MeshType = "Sphere"
463+
464-
	elseif TYPE == "Wedge" then
464+
465-
		local MSH = IT("SpecialMesh",PART)
465+
466-
		MSH.MeshType = "Wedge"
466+
467
local LASTPART = Handle
468
for i = 1, 10 do
469
	if LASTPART == Handle then
470-
function SpawnTrail(FROM,TO,BIG)
470+
471-
	local TRAIL = CreatePart(3, Effects, "Neon", 0, 0.5, "Really red", "Trail", VT(0,0,0))
471+
472-
	MakeForm(TRAIL,"Cyl")
472+
473-
	local DIST = (FROM - TO).Magnitude
473+
474-
	if BIG == true then
474+
475-
		TRAIL.Size = VT(0.5,DIST,0.5)
475+
476
		LASTPART = Part
477-
		TRAIL.Size = VT(0.25,DIST,0.25)
477+
478
end
479-
	TRAIL.CFrame = CF(FROM, TO) * CF(0, 0, -DIST/2) * ANGLES(RAD(90),RAD(0),RAD(0))
479+
480
local Barrel = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.15,2,0.15),false)
481-
		for i = 1, 5 do
481+
482
CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Barrel, CF(0, -0.6, 1.8) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
483-
			TRAIL.Transparency = TRAIL.Transparency + 0.1
483+
484
MakeForm(Part,"Cyl")
485-
		TRAIL:remove()
485+
486
local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0,0.1,0.2),false)
487
MakeForm(Part,"Wedge")
488
CreateWeldOrSnapOrMotor("Weld", Handle, Barrel, Part, CF(0, 0.945, 0.1) * ANGLES(RAD(180), RAD(0), RAD(0)), CF(0, 0, 0))
489-
Debris = game:GetService("Debris")
489+
490
MakeForm(Hole,"Cyl")
491-
function CastProperRay(StartPos, EndPos, Distance, Ignore)
491+
492-
	local DIRECTION = CF(StartPos,EndPos).lookVector
492+
493-
	return Raycast(StartPos, DIRECTION, Distance, Ignore)
493+
494
CreateMesh("SpecialMesh", Part, "FileMesh", 156292343, "", VT(0.8,0.8,1.5), VT(0,0,0.2))
495
local Part = CreatePart(3, Weapon, "Metal", 0, 0.5, "Mid gray", "Eye", VT(0,0,0),false)
496-
function turnto(position)
496+
497-
	RootPart.CFrame=CFrame.new(RootPart.CFrame.p,VT(position.X,RootPart.Position.Y,position.Z)) * CFrame.new(0, 0, 0)
497+
498
coroutine.resume(coroutine.create(function()
499
	while wait() do
500
		GEARWELD.C0 = GEARWELD.C0 * ANGLES(RAD(0), RAD(0), RAD(5))
501
		GEARWELD2.C0 = GEARWELD2.C0 * ANGLES(RAD(0), RAD(0), RAD(-5))
502
	end
503
end))
504
505
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)})
506
--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)})
507
508
for _, c in pairs(Weapon:GetDescendants()) do
509
	if c.ClassName == "Part" and c.Name ~= "Eye" and c.Parent ~= Effects and c.Parent.Parent ~= Effects then
510
		c.Material = "Glass"
511
		c.Color = C3(0,0,0)
512
	elseif c.ClassName == "Part" and c.Name == "Eye" then
513
		c.Color = C3(1,0,0)
514
		c.Material = "Neon"
515
	end
516
end
517
518
Weapon.Parent = Character
519
for _, c in pairs(Weapon:GetChildren()) do
520
	if c.ClassName == "Part" then
521
		c.CustomPhysicalProperties = PhysicalProperties.new(0, 0, 0, 0, 0)
522
	end
523
end
524
525
local SKILLTEXTCOLOR = C3(1,0,0)
526
local SKILLFONT = "Antique"
527
local SKILLTEXTSIZE = 7
528
529
Humanoid.Died:connect(function()
530
	ATTACK = true
531
end)
532
533
local SKILL1FRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.1, 0, 0.90, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 1 Frame")
534
--[[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")
535
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")
536
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")
537
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")
538
]]
539
local SKILL1TEXT = CreateLabel(SKILL1FRAME, "[Z] Banisher Bullet", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0.7, "Text 1")
540
--[[local SKILL2TEXT = CreateLabel(SKILL2FRAME, "[B] Ability 2", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0.7, "Text 2")
541
local SKILL3TEXT = CreateLabel(SKILL3FRAME, "[C] Ability 3", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0.7, "Text 3")
542
local SKILL4TEXT = CreateLabel(SKILL4FRAME, "[V] Ability 4", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0.7, "Text 4")
543
local SKILL5TEXT = CreateLabel(SKILL5FRAME, "[X] Mercy", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0.7, "Text 5")
544
]]
545
function printbye(Name)
546
	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, "}
547
	warn(MESSAGES[MRANDOM(1,#MESSAGES)]..Name..".")	
548
end
549
550
workspace.ChildAdded:connect(function(instance)
551
    for BANISH = 1, #TOBANISH do
552
		if TOBANISH[BANISH] ~= nil then
553
			if instance.Name == TOBANISH[BANISH] then
554
				coroutine.resume(coroutine.create(function()
555
					printbye(instance.Name)
556
					instance:ClearAllChildren()
557
					Debris:AddItem(instance,0.0005)
558
				end))
559
			end
560
		end
561
	end
562
end)
563
564
--//=================================\\
565
--||			DAMAGING
566
--\\=================================//
567
568
function Banish(Foe)
569
	if Foe then
570
		coroutine.resume(coroutine.create(function()
571
			--if game.Players:FindFirstChild(Foe.Name) then
572
				table.insert(TOBANISH,Foe.Name)
573
				printbye(Foe.Name)
574
			--end
575
			Foe.Archivable = true
576
			local CLONE = Foe:Clone()
577
			Foe:Destroy()
578
			CLONE.Parent = Effects
579
			CLONE:BreakJoints()
580
			local MATERIALS = {"Glass","Neon"}
581
			for _, c in pairs(CLONE:GetDescendants()) do
582
				if c:IsA("BasePart") then
583
					if c.Name == "Torso" or c.Name == "UpperTorso" or c == CLONE.PrimaryPart then
584
 						CreateSound(340722848, c, 10, 1, false)
585
					end
586
					c.Anchored = true
587
					c.Transparency = c.Transparency + 0.2
588
					c.Material = MATERIALS[MRANDOM(1,2)]
589
					c.Color = C3(1,0,0)
590
					if c.ClassName == "MeshPart" then
591
						c.TextureID = ""
592
					end
593
					if c:FindFirstChildOfClass("SpecialMesh") then
594
						c:FindFirstChildOfClass("SpecialMesh").TextureId = ""
595
					end
596
					if c:FindFirstChildOfClass("Decal") then
597
						c:FindFirstChildOfClass("Decal"):remove()
598
					end
599
					c.Name = "Banished"
600
					c.CanCollide = false
601
				else
602
					c:remove()
603
				end
604
			end
605
			local A = false
606
			for i = 1, 35 do
607
				if A == false then
608
					A = true
609
				elseif A == true then
610
					A = false
611
				end
612
				for _, c in pairs(CLONE:GetDescendants()) do
613
					if c:IsA("BasePart") then
614
						c.Anchored = true
615
						c.Material = MATERIALS[MRANDOM(1,2)]
616
						c.Transparency = c.Transparency + 0.8/35
617
						if A == false then
618
							c.CFrame = c.CFrame*CF(MRANDOM(-45,45)/45,MRANDOM(-45,45)/45,MRANDOM(-45,45)/45)
619
						elseif A == true then
620
							c.CFrame = c.CFrame*CF(MRANDOM(-45,45)/45,MRANDOM(-45,45)/45,MRANDOM(-45,45)/45)						
621
						end
622
					end
623
				end
624
				Swait()
625
			end
626
			CLONE:remove()
627
		end))
628
	end
629
end
630
631
function ApplyAoE(POSITION,RANGE,ISBANISH)
632
	local CHILDREN = workspace:GetDescendants()
633
	for index, CHILD in pairs(CHILDREN) do
634
		if CHILD.ClassName == "Model" and CHILD ~= Character then
635
			local HUM = CHILD:FindFirstChildOfClass("Humanoid")
636
			if HUM then
637
				local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso")
638
				if TORSO then
639
					if (TORSO.Position - POSITION).Magnitude <= RANGE then
640
						if ISBANISH == true then
641
							Banish(CHILD)
642
						else
643
							if ISBANISH == "Gravity" then
644
								HUM.PlatformStand = true
645
								if TORSO:FindFirstChild("V3BanishForce"..Player.Name) then
646
									local grav = Instance.new("BodyPosition",TORSO)
647
									grav.D = 15
648
									grav.P = 20000
649
									grav.maxForce = Vector3.new(math.huge,math.huge,math.huge)
650
									grav.position = TORSO.Position
651
									grav.Name = "V3BanishForce"..Player.Name
652
								else
653
									TORSO:FindFirstChild("V3BanishForce"..Player.Name).position = TORSO.Position+VT(0,0.3,0)
654
									TORSO.RotVelocity = VT(MRANDOM(-25,25),MRANDOM(-25,25),MRANDOM(-25,25))
655
								end
656
							else
657
								HUM.PlatformStand = false
658
							end
659
						end
660
					elseif ISBANISH == "Gravity" then
661
						if TORSO:FindFirstChild("V3BanishForce"..Player.Name) then
662
							TORSO:FindFirstChild("V3BanishForce"..Player.Name):remove()
663
							HUM.PlatformStand = false
664
						end
665
					end
666
				end
667
			end
668
		end
669
	end
670
end
671
672
--//=================================\\
673
--||	ATTACK FUNCTIONS AND STUFF
674
--\\=================================//
675
676
function Banisher_Bullet()
677
	ATTACK = true
678
	Rooted = false
679
	for i=0, 0.4, 0.1 / Animation_Speed do
680
		Swait()
681
		turnto(Mouse.Hit.p)
682
		RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(90)), 0.5 / Animation_Speed)
683
		Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(-90)), 0.5 / Animation_Speed)
684
		RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(90), RAD(0), RAD(90)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed)
685
		LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.6, 0) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, 0.5 / Animation_Speed)
686
		RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed)
687
		LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed)
688
	end
689
	repeat
690
		for i=0, 0.2, 0.1 / Animation_Speed do
691
			Swait()
692
			turnto(Mouse.Hit.p)
693
			RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(90)), 0.5 / Animation_Speed)
694
			Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(-90)), 0.5 / Animation_Speed)
695
			RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(90), RAD(0), RAD(90)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed)
696
			LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.6, 0) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, 0.5 / Animation_Speed)
697
			RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed)
698
			LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed)
699
		end
700
		local HIT,POS = CastProperRay(Hole.Position, Mouse.Hit.p, 1000, Character)
701
		SpawnTrail(Hole.Position,POS)
702
		if HIT ~= nil then
703
			if HIT.Parent ~= workspace and HIT.Parent.ClassName ~= "Folder" then
704
				Banish(HIT.Parent)
705
			end
706
		end
707
		WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(0.3,0,0.3), Size2 = VT(1,1.5,1), Transparency = 0, Transparency2 = 1, CFrame = Hole.CFrame, MoveToPos = Hole.CFrame*CF(0,0.5,0).p, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
708
		WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(0.3,0,0.3), Size2 = VT(2,0.5,2), Transparency = 0, Transparency2 = 1, CFrame = Hole.CFrame, MoveToPos = nil, RotationX = 0, RotationY = 5, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = 904440937, SoundPitch = MRANDOM(8,11)/10, SoundVolume = 8})
709
		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(1,0,0), SoundID = nil, SoundPitch = MRANDOM(8,11)/10, SoundVolume = 8})
710
		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(1,0,0), SoundID = nil, SoundPitch = MRANDOM(8,11)/10, SoundVolume = 8})
711
		for i=0, 0.3, 0.1 / Animation_Speed do
712
			Swait()
713
			RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(90)), 0.5 / Animation_Speed)
714
			Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(-90)), 0.25 / Animation_Speed)
715
			RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(90), RAD(15), RAD(90)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed)
716
			LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.6, 0) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, 0.5 / Animation_Speed)
717
			RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed)
718
			LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed)
719
		end
720
	until KEYHOLD == false
721
	ATTACK = false
722
	Rooted = false
723
end
724
725
function AttackTemplate()
726
	ATTACK = true
727
	Rooted = false
728
	for i=0, 1, 0.1 / Animation_Speed do
729
		Swait()
730
		RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
731
		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)
732
		RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(12)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
733
		LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
734
		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)
735
		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)
736
	end
737
	ATTACK = false
738
	Rooted = false
739
end
740
741
--//=================================\\
742
--||	  ASSIGN THINGS TO KEYS
743
--\\=================================//
744
745
function MouseDown(Mouse)
746
	if ATTACK == false then
747
	end
748
end
749
750
function MouseUp(Mouse)
751
HOLD = false
752
end
753
754
function KeyDown(Key)
755
	KEYHOLD = true
756
	if Key == "z" and ATTACK == false then
757
		Banisher_Bullet()
758
	end
759
760
	if Key == "b" and ATTACK == false then
761
	end
762
763
	if Key == "c" and ATTACK == false then
764
	end
765
766
	if Key == "v" and ATTACK == false then
767
	end
768
769
	if Key == "x" and ATTACK == false then
770
	end
771
end
772
773
function KeyUp(Key)
774
	KEYHOLD = false
775
end
776
777
	Mouse.Button1Down:connect(function(NEWKEY)
778
		MouseDown(NEWKEY)
779
	end)
780
	Mouse.Button1Up:connect(function(NEWKEY)
781
		MouseUp(NEWKEY)
782
	end)
783
	Mouse.KeyDown:connect(function(NEWKEY)
784
		KeyDown(NEWKEY)
785
	end)
786
	Mouse.KeyUp:connect(function(NEWKEY)
787
		KeyUp(NEWKEY)
788
	end)
789
790
--//=================================\\
791
--\\=================================//
792
793
794
function unanchor()
795
	if UNANCHOR == true then
796
		g = Character:GetChildren()
797
		for i = 1, #g do
798
			if g[i].ClassName == "Part" then
799
				g[i].Anchored = false
800
			end
801
		end
802
	end
803
end
804
805
806
--//=================================\\
807
--||	WRAP THE WHOLE SCRIPT UP
808
--\\=================================//
809
810
Humanoid.Changed:connect(function(Jump)
811
	if Jump == "Jump" and (Disable_Jump == true) then
812
		Humanoid.Jump = false
813
	end
814
end)
815
816
local CONNECT = nil
817
818
while true do
819
	Swait()
820
	ANIMATE.Parent = nil
821
	if Character:FindFirstChildOfClass("Humanoid") == nil then
822
		Humanoid = IT("Humanoid",Character)
823
	end
824
	for _,v in next, Humanoid:GetPlayingAnimationTracks() do
825
	    v:Stop();
826
	end
827
	SINE = SINE + CHANGE
828
	local TORSOVELOCITY = (RootPart.Velocity * VT(1, 0, 1)).magnitude
829
	local TORSOVERTICALVELOCITY = RootPart.Velocity.y
830
	local HITFLOOR = Raycast(RootPart.Position, (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 4, Character)
831
	local WALKSPEEDVALUE = 6 / (Humanoid.WalkSpeed / 16)
832
	if ANIM == "Walk" and TORSOVELOCITY > 1 then
833
		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)
834
		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)
835
		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)
836
		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)
837
	elseif (ANIM ~= "Walk") or (TORSOVELOCITY < 1) then
838
		RootJoint.C1 = Clerp(RootJoint.C1, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
839
		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)
840
		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)
841
		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)
842
	end
843
	if TORSOVERTICALVELOCITY > 1 and HITFLOOR == nil then
844
		ANIM = "Jump"
845
		if ATTACK == false then
846
			RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
847
			Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-20), RAD(0), RAD(0)), 0.2 / Animation_Speed)
848
			RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(45), RAD(0), RAD(25))* RIGHTSHOULDERC0, 0.15 / Animation_Speed)
849
			LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-40), RAD(0), RAD(-20)) * LEFTSHOULDERC0, 0.2 / Animation_Speed)
850
			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)
851
			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)
852
	    end
853
	elseif TORSOVERTICALVELOCITY < -1 and HITFLOOR == nil then
854
		ANIM = "Fall"
855
		if ATTACK == false then
856
			RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 ) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
857
			Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0 , 0 + ((1) - 1)) * ANGLES(RAD(20), RAD(0), RAD(0)), 0.2 / Animation_Speed)
858
			RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(45), RAD(0), RAD(25))* RIGHTSHOULDERC0, 0.15 / Animation_Speed)
859
			LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-60)) * LEFTSHOULDERC0, 0.2 / Animation_Speed)
860
			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)
861
			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)
862
		end
863
	elseif TORSOVELOCITY < 1 and HITFLOOR ~= nil then
864
		ANIM = "Idle"
865
		if ATTACK == false then
866
			RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(-45)), 0.15 / Animation_Speed)
867
			Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(45)), 0.15 / Animation_Speed)
868
			RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.35, 0.5, -0.5) * ANGLES(RAD(75), RAD(45), RAD(-25))* RIGHTSHOULDERC0, 0.15 / Animation_Speed)
869
			LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25, 0.5, 0.5) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
870
			RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(75), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed)
871
			LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-50), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed)
872
		end
873
	elseif TORSOVELOCITY > 1 and HITFLOOR ~= nil then
874
		ANIM = "Walk"
875
		if ATTACK == false then
876
			RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -0.1) * ANGLES(RAD(5), RAD(0), RAD(0)), 0.15 / Animation_Speed)
877
			Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(5 - 8 * SIN(SINE / (WALKSPEEDVALUE / 2))), RAD(0), RAD(0)), 0.15 / Animation_Speed)
878
			RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.1, -0.4) * ANGLES(RAD(150), RAD(0), RAD(0))* RIGHTSHOULDERC0, 0.15 / Animation_Speed)
879
			LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-60 * COS(SINE / WALKSPEEDVALUE)), RAD(0), RAD(-5)) * LEFTSHOULDERC0, 0.35 / Animation_Speed)
880
			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)
881
			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)
882
		end
883
	end
884
	unanchor()
885
	Humanoid.MaxHealth = "inf"
886
	Humanoid.Health = "inf"
887
	if Rooted == false then
888
		Disable_Jump = false
889
		Humanoid.WalkSpeed = Speed
890
	elseif Rooted == true then
891
		Disable_Jump = true
892
		Humanoid.WalkSpeed = 0
893
	end
894
	sick.Parent = Torso
895
	sick:resume()
896
	sick.Volume = 5
897
	sick.Pitch = 1
898
	sick.SoundId = "rbxassetid://924339757"
899
	sick.Name = "BanishV3Music"
900
end
901
902
--//=================================\\
903
--\\=================================//
904
905
906
907
908
909
--//====================================================\\--
910
--||			  		 END OF SCRIPT
911
--\\====================================================//--