View difference between Paste ID: kcpxRz1v and S5ncT8KD
SHOW: | | - or go back to the newest paste.
1
if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
2
local Player,Mouse,mouse,UserInputService,ContextActionService = owner
3-
do
3+
local RealPlayer = Player
4-
	print("FE Covered By Red_Jack142 | FE Made By Red_Jack142")
4+
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-
    print("Have Fun!")
5+
6-
	script.Parent = Player.Character
6+
7
	local Event = script:WaitForChild("UserInput_Event")
8-
	--RemoteEvent for communicating
8+
9-
	local Event = Instance.new("RemoteEvent")
9+
10-
	Event.Name = "UserInput_Event"
10+
11
		if a then return end
12-
	--Fake event to make stuff like Mouse.KeyDown work
12+
13-
	local function fakeEvent()
13+
14-
		local t = {_fakeEvent=true,Connect=function(self,f)self.Function=f end}
14+
15-
		t.connect = t.Connect
15+
16-
		return t
16+
17
18
	local Mouse = Player:GetMouse()
19-
	--Creating fake input objects with fake variables
19+
20-
    local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()}
20+
21-
	local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
21+
22-
	local CAS = {Actions={},BindAction=function(self,name,fun,touch,...)
22+
23-
		CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil
23+
24-
	end}
24+
25-
	--Merged 2 functions into one by checking amount of arguments
25+
26-
	CAS.UnbindAction = CAS.BindAction
26+
27
	end]==],Player.Character)
28-
	--This function will trigger the events that have been :Connect()'ed
28+
29-
	local function te(self,ev,...)
29+
30-
		local t = m[ev]
30+
31-
		if t and t._fakeEvent and t.Function then
31+
32-
			t.Function(...)
32+
33
script.Name = "Banisher Gun V3 / 1"
34
--//====================================================\\--
35-
	m.TrigEvent = te
35+
36-
	UIS.TrigEvent = te
36+
37
38-
	Event.OnServerEvent:Connect(function(plr,io)
38+
39-
	    if plr~=Player then return end
39+
40-
		if io.isMouse then
40+
41-
			m.Target = io.Target
41+
42-
			m.Hit = io.Hit
42+
43
Cam = workspace.CurrentCamera
44-
			local b = io.UserInputState == Enum.UserInputState.Begin
44+
45-
			if io.UserInputType == Enum.UserInputType.MouseButton1 then
45+
46-
				return m:TrigEvent(b and "Button1Down" or "Button1Up")
46+
47
RootPart = Character["HumanoidRootPart"]
48-
			for _,t in pairs(CAS.Actions) do
48+
49-
				for _,k in pairs(t.Keys) do
49+
50-
					if k==io.KeyCode then
50+
51-
						t.Function(t.Name,io.UserInputState,io)
51+
52
RightLeg = Character["Right Leg"]
53
LeftLeg = Character["Left Leg"]
54
RootJoint = RootPart["RootJoint"]
55-
			m:TrigEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower())
55+
56-
			UIS:TrigEvent(b and "InputBegan" or "InputEnded",io,false)
56+
57-
	    end
57+
58
RightHip = Torso["Right Hip"]
59-
	Event.Parent = NLS([==[
59+
60
local TIME = 0
61
local sick = Instance.new("Sound",Torso)
62
63
IT = Instance.new
64
CF = CFrame.new
65
VT = Vector3.new
66
RAD = math.rad
67
C3 = Color3.new
68
UD2 = UDim2.new
69
BRICKC = BrickColor.new
70
ANGLES = CFrame.Angles
71
EULER = CFrame.fromEulerAnglesXYZ
72
COS = math.cos
73
ACOS = math.acos
74
SIN = math.sin
75
ASIN = math.asin
76
ABS = math.abs
77
MRANDOM = math.random
78
FLOOR = math.floor
79
80
--//=================================\\
81
--|| 	      USEFUL VALUES
82
--\\=================================//
83
84
Animation_Speed = 3
85
local FORCERESET = false
86
Frame_Speed = 1 / 60 -- (1 / 30) OR (1 / 60)
87
local Speed = 16
88
local ROOTC0 = CF(0, 0, 0) * ANGLES(RAD(-90), RAD(0), RAD(180))
89
local NECKC0 = CF(0, 1, 0) * ANGLES(RAD(-90), RAD(0), RAD(180))
90
local RIGHTSHOULDERC0 = CF(-0.5, 0, 0) * ANGLES(RAD(0), RAD(90), RAD(0))
91
local LEFTSHOULDERC0 = CF(0.5, 0, 0) * ANGLES(RAD(0), RAD(-90), RAD(0))
92
local DAMAGEMULTIPLIER = 1
93
local ANIM = "Idle"
94
local ATTACK = false
95
local EQUIPPED = false
96
local HOLD = false
97
local COMBO = 1
98
local Rooted = false
99
local SINE = 0
100
local KEYHOLD = false
101
local CHANGE = 2 / Animation_Speed
102
local WALKINGANIM = false
103
local VALUE1 = false
104
local VALUE2 = false
105
local WALKINGANIM = false
106
local WALK = 0
107
local ROBLOXIDLEANIMATION = IT("Animation")
108
ROBLOXIDLEANIMATION.Name = "Roblox Idle Animation"
109
ROBLOXIDLEANIMATION.AnimationId = "http://www.roblox.com/asset/?id=180435571"
110
--ROBLOXIDLEANIMATION.Parent = Humanoid
111
local WEAPONGUI = IT("ScreenGui", PlayerGui)
112
WEAPONGUI.Name = "BanishV3Gui"
113
local Weapon = IT("Model")
114
Weapon.Name = "Adds"
115
local Effects = IT("Folder", Weapon)
116
Effects.Name = "Effects"
117
local ANIMATOR = Humanoid.Animator
118
local ANIMATE = Character:FindFirstChild("Animate")
119
local UNANCHOR = true
120
local TOBANISH = {}
121
script.Parent = PlayerGui
122
Player_Size = 1
123
local i = 1
124
local SOULWELL = 666
125
local SKILLTEXTCOLOR = C3(1, 0, 0)
126
local I = 1
127
128
129
--//=================================\\
130
--\\=================================//
131
132
133
--//=================================\\
134
--|| SAZERENOS' ARTIFICIAL HEARTBEAT
135
--\\=================================//
136
137
ArtificialHB = Instance.new("BindableEvent", script)
138
ArtificialHB.Name = "ArtificialHB"
139
140
script:WaitForChild("ArtificialHB")
141
142
frame = Frame_Speed
143
tf = 0
144
allowframeloss = false
145
tossremainder = false
146
lastframe = tick()
147
script.ArtificialHB:Fire()
148
149
game:GetService("RunService").Heartbeat:connect(function(s, p)
150
	tf = tf + s
151
	if tf >= frame then
152
		if allowframeloss then
153
			script.ArtificialHB:Fire()
154
			lastframe = tick()
155
		else
156
			for i = 1, math.floor(tf / frame) do
157
				script.ArtificialHB:Fire()
158
			end
159
		lastframe = tick()
160
		end
161
		if tossremainder then
162
			tf = 0
163
		else
164
			tf = tf - frame * math.floor(tf / frame)
165
		end
166
	end
167
end)
168
169
--//=================================\\
170
--\\=================================//
171
172
--//=================================\\
173
--|| 	      SOME FUNCTIONS
174
--\\=================================//
175
176
function Raycast(POSITION, DIRECTION, RANGE, IGNOREDECENDANTS)
177
	return workspace:FindPartOnRay(Ray.new(POSITION, DIRECTION.unit * RANGE), IGNOREDECENDANTS)
178
end
179
180
function PositiveAngle(NUMBER)
181
	if NUMBER >= 0 then
182
		NUMBER = 0
183
	end
184
	return NUMBER
185
end
186
187
function NegativeAngle(NUMBER)
188
	if NUMBER <= 0 then
189
		NUMBER = 0
190
	end
191
	return NUMBER
192
end
193
194
function Swait(NUMBER)
195
	if NUMBER == 0 or NUMBER == nil then
196
		ArtificialHB.Event:wait()
197
	else
198
		for i = 1, NUMBER do
199
			ArtificialHB.Event:wait()
200
		end
201
	end
202
end
203
204
function CreateMesh(MESH, PARENT, MESHTYPE, MESHID, TEXTUREID, SCALE, OFFSET)
205
	local NEWMESH = IT(MESH)
206
	if MESH == "SpecialMesh" then
207
		NEWMESH.MeshType = MESHTYPE
208
		if MESHID ~= "nil" and MESHID ~= "" then
209
			NEWMESH.MeshId = "http://www.roblox.com/asset/?id="..MESHID
210
		end
211
		if TEXTUREID ~= "nil" and TEXTUREID ~= "" then
212
			NEWMESH.TextureId = "http://www.roblox.com/asset/?id="..TEXTUREID
213
		end
214
	end
215
	NEWMESH.Offset = OFFSET or VT(0, 0, 0)
216
	NEWMESH.Scale = SCALE
217
	NEWMESH.Parent = PARENT
218
	return NEWMESH
219
end
220
221
function CreatePart(FORMFACTOR, PARENT, MATERIAL, REFLECTANCE, TRANSPARENCY, BRICKCOLOR, NAME, SIZE, ANCHOR)
222
	local NEWPART = IT("Part")
223
	NEWPART.formFactor = FORMFACTOR
224
	NEWPART.Reflectance = REFLECTANCE
225
	NEWPART.Transparency = TRANSPARENCY
226
	NEWPART.CanCollide = false
227
	NEWPART.Locked = true
228
	NEWPART.Anchored = true
229
	if ANCHOR == false then
230
		NEWPART.Anchored = false
231
	end
232
	NEWPART.BrickColor = BRICKC(tostring(BRICKCOLOR))
233
	NEWPART.Name = NAME
234
	NEWPART.Size = SIZE
235
	NEWPART.Position = Torso.Position
236
	NEWPART.Material = MATERIAL
237
	NEWPART:BreakJoints()
238
	NEWPART.Parent = PARENT
239
	return NEWPART
240
end
241
242
	local function weldBetween(a, b)
243
	    local weldd = Instance.new("ManualWeld")
244
	    weldd.Part0 = a
245
	    weldd.Part1 = b
246
	    weldd.C0 = CFrame.new()
247
	    weldd.C1 = b.CFrame:inverse() * a.CFrame
248
	    weldd.Parent = a
249
	    return weldd
250
	end
251
252
253
function QuaternionFromCFrame(cf)
254
	local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
255
	local trace = m00 + m11 + m22
256
	if trace > 0 then 
257
		local s = math.sqrt(1 + trace)
258
		local recip = 0.5 / s
259
		return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5
260
	else
261
		local i = 0
262
		if m11 > m00 then
263
			i = 1
264
		end
265
		if m22 > (i == 0 and m00 or m11) then
266
			i = 2
267
		end
268
		if i == 0 then
269
			local s = math.sqrt(m00 - m11 - m22 + 1)
270
			local recip = 0.5 / s
271
			return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip
272
		elseif i == 1 then
273
			local s = math.sqrt(m11 - m22 - m00 + 1)
274
			local recip = 0.5 / s
275
			return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip
276
		elseif i == 2 then
277
			local s = math.sqrt(m22 - m00 - m11 + 1)
278
			local recip = 0.5 / s return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip
279
		end
280
	end
281
end
282
 
283
function QuaternionToCFrame(px, py, pz, x, y, z, w)
284
	local xs, ys, zs = x + x, y + y, z + z
285
	local wx, wy, wz = w * xs, w * ys, w * zs
286
	local xx = x * xs
287
	local xy = x * ys
288
	local xz = x * zs
289
	local yy = y * ys
290
	local yz = y * zs
291
	local zz = z * zs
292
	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))
293
end
294
 
295
function QuaternionSlerp(a, b, t)
296
	local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4]
297
	local startInterp, finishInterp;
298
	if cosTheta >= 0.0001 then
299
		if (1 - cosTheta) > 0.0001 then
300
			local theta = ACOS(cosTheta)
301
			local invSinTheta = 1 / SIN(theta)
302
			startInterp = SIN((1 - t) * theta) * invSinTheta
303
			finishInterp = SIN(t * theta) * invSinTheta
304
		else
305
			startInterp = 1 - t
306
			finishInterp = t
307
		end
308
	else
309
		if (1 + cosTheta) > 0.0001 then
310
			local theta = ACOS(-cosTheta)
311
			local invSinTheta = 1 / SIN(theta)
312
			startInterp = SIN((t - 1) * theta) * invSinTheta
313
			finishInterp = SIN(t * theta) * invSinTheta
314
		else
315
			startInterp = t - 1
316
			finishInterp = t
317
		end
318
	end
319
	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
320
end
321
322
function Clerp(a, b, t)
323
	local qa = {QuaternionFromCFrame(a)}
324
	local qb = {QuaternionFromCFrame(b)}
325
	local ax, ay, az = a.x, a.y, a.z
326
	local bx, by, bz = b.x, b.y, b.z
327
	local _t = 1 - t
328
	return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t))
329
end
330
331
function CreateFrame(PARENT, TRANSPARENCY, BORDERSIZEPIXEL, POSITION, SIZE, COLOR, BORDERCOLOR, NAME)
332
	local frame = IT("Frame")
333
	frame.BackgroundTransparency = TRANSPARENCY
334
	frame.BorderSizePixel = BORDERSIZEPIXEL
335
	frame.Position = POSITION
336
	frame.Size = SIZE
337
	frame.BackgroundColor3 = COLOR
338
	frame.BorderColor3 = BORDERCOLOR
339
	frame.Name = NAME
340
	frame.Parent = PARENT
341
	return frame
342
end
343
344
function CreateLabel(PARENT, TEXT, TEXTCOLOR, TEXTFONTSIZE, TEXTFONT, TRANSPARENCY, BORDERSIZEPIXEL, STROKETRANSPARENCY, NAME)
345
	local label = IT("TextLabel")
346
	label.BackgroundTransparency = 1
347
	label.Size = UD2(1, 0, 1, 0)
348
	label.Position = UD2(0, 0, 0, 0)
349
	label.TextColor3 = TEXTCOLOR
350
	label.TextStrokeTransparency = STROKETRANSPARENCY
351
	label.TextTransparency = TRANSPARENCY
352
	label.FontSize = TEXTFONTSIZE
353
	label.Font = TEXTFONT
354
	label.BorderSizePixel = BORDERSIZEPIXEL
355
	label.TextScaled = false
356
	label.Text = TEXT
357
	label.Name = NAME
358
	label.Parent = PARENT
359
	return label
360
end
361
362
function NoOutlines(PART)
363
	PART.TopSurface, PART.BottomSurface, PART.LeftSurface, PART.RightSurface, PART.FrontSurface, PART.BackSurface = 10, 10, 10, 10, 10, 10
364
end
365
366
function CreateWeldOrSnapOrMotor(TYPE, PARENT, PART0, PART1, C0, C1)
367
	local NEWWELD = IT(TYPE)
368
	NEWWELD.Part0 = PART0
369
	NEWWELD.Part1 = PART1
370
	NEWWELD.C0 = C0
371
	NEWWELD.C1 = C1
372
	NEWWELD.Parent = PARENT
373
	return NEWWELD
374
end
375
376
local S = IT("Sound")
377
function CreateSound(ID, PARENT, VOLUME, PITCH, DOESLOOP)
378
	local NEWSOUND = nil
379
	coroutine.resume(coroutine.create(function()
380
		NEWSOUND = S:Clone()
381
		NEWSOUND.Parent = PARENT
382
		NEWSOUND.Volume = VOLUME
383
		NEWSOUND.Pitch = PITCH
384
		NEWSOUND.SoundId = "http://www.roblox.com/asset/?id="..ID
385
		NEWSOUND:play()
386
		if DOESLOOP == true then
387
			NEWSOUND.Looped = true
388
		else
389
			repeat wait(1) until NEWSOUND.Playing == false or NEWSOUND.Parent ~= PARENT
390
			NEWSOUND:remove()
391
		end
392
	end))
393
	return NEWSOUND
394
end
395
396
function CFrameFromTopBack(at, top, back)
397
	local right = top:Cross(back)
398
	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)
399
end
400
401
--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})
402
function WACKYEFFECT(Table)
403
	local TYPE = (Table.EffectType or "Sphere")
404
	local SIZE = (Table.Size or VT(1,1,1))
405
	local ENDSIZE = (Table.Size2 or VT(0,0,0))
406
	local TRANSPARENCY = (Table.Transparency or 0)
407
	local ENDTRANSPARENCY = (Table.Transparency2 or 1)
408
	local CFRAME = (Table.CFrame or Torso.CFrame)
409
	local MOVEDIRECTION = (Table.MoveToPos or nil)
410
	local ROTATION1 = (Table.RotationX or 0)
411
	local ROTATION2 = (Table.RotationY or 0)
412
	local ROTATION3 = (Table.RotationZ or 0)
413
	local MATERIAL = (Table.Material or "Neon")
414
	local COLOR = (Table.Color or C3(1,1,1))
415
	local TIME = (Table.Time or 45)
416
	local SOUNDID = (Table.SoundID or nil)
417
	local SOUNDPITCH = (Table.SoundPitch or nil)
418
	local SOUNDVOLUME = (Table.SoundVolume or nil)
419
	coroutine.resume(coroutine.create(function()
420
		local PLAYSSOUND = false
421
		local SOUND = nil
422
		local EFFECT = CreatePart(3, Effects, MATERIAL, 0, TRANSPARENCY, BRICKC("Pearl"), "Effect", VT(1,1,1), true)
423
		if SOUNDID ~= nil and SOUNDPITCH ~= nil and SOUNDVOLUME ~= nil then
424
			PLAYSSOUND = true
425
			SOUND = CreateSound(SOUNDID, EFFECT, SOUNDVOLUME, SOUNDPITCH, false)
426
		end
427
		EFFECT.Color = COLOR
428
		local MSH = nil
429
		if TYPE == "Sphere" then
430
			MSH = CreateMesh("SpecialMesh", EFFECT, "Sphere", "", "", SIZE, VT(0,0,0))
431
		elseif TYPE == "Block" then
432
			MSH = IT("BlockMesh",EFFECT)
433
			MSH.Scale = VT(SIZE.X,SIZE.X,SIZE.X)
434
		elseif TYPE == "Wave" then
435
			MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "20329976", "", SIZE, VT(0,0,-SIZE.X/8))
436
		elseif TYPE == "Ring" then
437
			MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "559831844", "", VT(SIZE.X,SIZE.X,0.1), VT(0,0,0))
438
		elseif TYPE == "Slash" then
439
			MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662586858", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0))
440
		elseif TYPE == "Round Slash" then
441
			MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662585058", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0))
442
		elseif TYPE == "Swirl" then
443
			MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "1051557", "", SIZE, VT(0,0,0))
444
		elseif TYPE == "Skull" then
445
			MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "4770583", "", SIZE, VT(0,0,0))
446
		elseif TYPE == "Crystal" then
447
			MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "9756362", "", SIZE, VT(0,0,0))
448
		end
449
		if MSH ~= nil then
450
			local MOVESPEED = nil
451
			if MOVEDIRECTION ~= nil then
452
				MOVESPEED = (CFRAME.p - MOVEDIRECTION).Magnitude/TIME
453
			end
454
			local GROWTH = SIZE - ENDSIZE
455
			local TRANS = TRANSPARENCY - ENDTRANSPARENCY
456
			if TYPE == "Block" then
457
				EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))
458
			else
459
				EFFECT.CFrame = CFRAME
460
			end
461
			for LOOP = 1, TIME+1 do
462
				Swait()
463
				MSH.Scale = MSH.Scale - GROWTH/TIME
464
				if TYPE == "Wave" then
465
					MSH.Offset = VT(0,0,-MSH.Scale.X/8)
466
				end
467
				EFFECT.Transparency = EFFECT.Transparency - TRANS/TIME
468
				if TYPE == "Block" then
469
					EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))
470
				else
471
					EFFECT.CFrame = EFFECT.CFrame*ANGLES(RAD(ROTATION1),RAD(ROTATION2),RAD(ROTATION3))
472
				end
473
				if MOVEDIRECTION ~= nil then
474
					local ORI = EFFECT.Orientation
475
					EFFECT.CFrame = CF(EFFECT.Position,MOVEDIRECTION)*CF(0,0,-MOVESPEED)
476
					EFFECT.Orientation = ORI
477
				end
478
			end
479
			if PLAYSSOUND == false then
480
				EFFECT:remove()
481
			else
482
				SOUND.Stopped:Connect(function()
483
					EFFECT:remove()
484
				end)
485
			end
486
		else
487
			if PLAYSSOUND == false then
488
				EFFECT:remove()
489
			else
490
				repeat Swait() until SOUND.Playing == false
491
				EFFECT:remove()
492
			end
493
		end
494
	end))
495
end
496
497
function MakeForm(PART,TYPE)
498
	if TYPE == "Cyl" then
499
		local MSH = IT("CylinderMesh",PART)
500
	elseif TYPE == "Ball" then
501
		local MSH = IT("SpecialMesh",PART)
502
		MSH.MeshType = "Sphere"
503
	elseif TYPE == "Wedge" then
504
		local MSH = IT("SpecialMesh",PART)
505
		MSH.MeshType = "Wedge"
506
	end
507
end
508
509
function SpawnTrail(FROM,TO,BIG)
510
	local TRAIL = CreatePart(3, Effects, "Neon", 0, 0.5, "Really red", "Trail", VT(0,0,0))
511
	MakeForm(TRAIL,"Cyl")
512
	local DIST = (FROM - TO).Magnitude
513
	if BIG == true then
514
		TRAIL.Size = VT(0.5,DIST,0.5)
515
	else
516
		TRAIL.Size = VT(0.25,DIST,0.25)
517
	end
518
	TRAIL.CFrame = CF(FROM, TO) * CF(0, 0, -DIST/2) * ANGLES(RAD(90),RAD(0),RAD(0))
519
	coroutine.resume(coroutine.create(function()
520
		for i = 1, 25 do
521
			Swait()
522
			TRAIL.Transparency = TRAIL.Transparency + 0.05
523
		end
524
		TRAIL:remove()
525
	end))
526
end
527
528
Debris = game:GetService("Debris")
529
530
function CastProperRay(StartPos, EndPos, Distance, Ignore)
531
	local DIRECTION = CF(StartPos,EndPos).lookVector
532
	return Raycast(StartPos, DIRECTION, Distance, Ignore)
533
end
534
535
function turnto(position)
536
	RootPart.CFrame=CFrame.new(RootPart.CFrame.p,VT(position.X,RootPart.Position.Y,position.Z)) * CFrame.new(0, 0, 0)
537
end
538
539
function SpawnSoul(Humanoid)
540
	coroutine.resume(coroutine.create(function()
541
		local TORSO = Humanoid.Parent:FindFirstChild("Torso") or Humanoid.Parent:FindFirstChild("UpperTorso")
542
		local SOULMODEL = IT("Model",Effects)
543
		SOULMODEL.Name = Humanoid.Parent.Name.."'s Spirit"
544
		local SOUL = CreatePart(3, SOULMODEL, "Neon", 0, 0, "Really red", "Head", VT(0.5,0.5,0.5))
545
		SOUL.CFrame = CF(TORSO.Position)
546
	 	local A1 = IT("Attachment",SOUL)
547
	 	A1.Position = Vector3.new(0, 0.25, 0)
548
	 	local A2 = IT("Attachment",SOUL)
549
	    A2.Position = Vector3.new(0, -0.25, 0)
550
	 	local Trail = IT("Trail",SOUL)
551
	    Trail.LightEmission = 0.3
552
	    Trail.FaceCamera = true
553
	    Trail.Texture = "rbxassetid://945758042"
554
	    Trail.Attachment0 = A1
555
	    Trail.Attachment1 = A2
556
	    Trail.Lifetime = 0.5
557
	    Trail.MinLength = 0
558
	    Trail.Transparency = NumberSequence.new(0)
559
	    Trail.Color = ColorSequence.new(SOUL.Color)
560
		MakeForm(SOUL,"Ball")
561
		local DISTANCE = nil
562
		local HUM = IT("Humanoid",SOULMODEL)
563
		repeat
564
			Swait()
565
			SOUL.CFrame = CF(SOUL.Position,Torso.Position)*CF(0,0,-0.2)
566
			DISTANCE = (SOUL.Position - Torso.Position).Magnitude
567
		until DISTANCE < 0.4
568
		WACKYEFFECT({EffectType = "Sphere", Size = VT(1,1,1), Size2 = VT(6,6,6), Transparency = 0, Transparency2 = 1, CFrame = Torso.CFrame, MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = "444667859", SoundPitch = 2, SoundVolume = 2})
569
                WACKYEFFECT({EffectType = "Sphere", Size = VT(1.5,1.5,1.5), Size2 = VT(6.5,6.5,6.5), Transparency = 0, Transparency2 = 1, CFrame = Torso.CFrame, MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = "444667859", SoundPitch = 2, SoundVolume = 2})
570
		SOUL.Transparency = 1
571
		A1.Parent = Torso
572
		A2.Parent = Torso
573
		Trail.Parent = Torso
574
		Debris:AddItem(SOULMODEL,10)
575
		SOULWELL = SOULWELL + 1
576
		for i = 1, 100 do
577
			Swait()
578
			Trail.Transparency = NumberSequence.new(i/100)
579
		end
580
		A1:remove()
581
		A2:remove()
582
		Trail:remove()
583
	end))
584
end
585
586
587
588
function CreateDebreeRing(FLOOR,POSITION,SIZE,BLOCKSIZE,SWAIT)
589
	if FLOOR ~= nil then
590
		coroutine.resume(coroutine.create(function()
591
			local PART = CreatePart(3, Effects, "Plastic", 0, 1, "Pearl", "DebreeCenter", VT(0,0,0))
592
			PART.CFrame = CF(POSITION)
593
			for i = 1, 45 do
594
				local RingPiece = CreatePart(3, Effects, "Plastic", 0, 0, "Pearl", "DebreePart", BLOCKSIZE)
595
				RingPiece.Material = FLOOR.Material
596
				RingPiece.Color = FLOOR.Color
597
				RingPiece.CFrame = PART.CFrame * ANGLES(RAD(0), RAD(i*8), RAD(0)) * CF(SIZE, 0, 0) * ANGLES(RAD(MRANDOM(-360,360)),RAD(MRANDOM(-360,360)),RAD(MRANDOM(-360,360)))
598
				Debris:AddItem(RingPiece,SWAIT)
599
			end
600
			PART:remove()
601
		end))
602
	end
603
end
604
605
function CreateFlyingDebree(FLOOR,POSITION,AMOUNT,BLOCKSIZE,SWAIT,STRENGTH)
606
	if FLOOR ~= nil then
607
		for i = 1, AMOUNT do
608
			local DEBREE = CreatePart(3, Effects, "Neon", FLOOR.Reflectance, FLOOR.Transparency, "Peal", "Debree", BLOCKSIZE, false)
609
			DEBREE.Material = FLOOR.Material
610
			DEBREE.Color = FLOOR.Color
611
			DEBREE.CFrame = POSITION * ANGLES(RAD(MRANDOM(-360,360)),RAD(MRANDOM(-360,360)),RAD(MRANDOM(-360,360)))
612
			DEBREE.Velocity = VT(MRANDOM(-STRENGTH,STRENGTH),MRANDOM(-STRENGTH,STRENGTH),MRANDOM(-STRENGTH,STRENGTH))
613
			coroutine.resume(coroutine.create(function()
614
				Swait(15)
615
				DEBREE.Parent = workspace
616
				DEBREE.CanCollide = true
617
				Debris:AddItem(DEBREE,SWAIT)
618
			end))
619
		end
620
	end
621
end
622
623
function chatfunc(text, waitt)
624
	local chat = coroutine.wrap(function()
625
		if Character:FindFirstChild("TalkingBillBoard") ~= nil then
626
			Character:FindFirstChild("TalkingBillBoard").Parent = nil
627
		end
628
		local naeeym2 = Instance.new("BillboardGui", Character)
629
		naeeym2.Size = UDim2.new(0, 100, 0, 40)
630
		naeeym2.StudsOffset = Vector3.new(0, 2, 0)
631
		naeeym2.Adornee = Character.Head
632
		naeeym2.Name = "TalkingBillBoard"
633
		naeeym2.AlwaysOnTop = true
634
		local tecks2 = Instance.new("TextLabel", naeeym2)
635
		tecks2.BackgroundTransparency = 1
636
		tecks2.BorderSizePixel = 0
637
		tecks2.Text = ""
638
		tecks2.Font = "Antique"
639
		tecks2.TextSize = 30
640
		tecks2.TextStrokeTransparency = 1
641
		tecks2.TextColor3 = SKILLTEXTCOLOR
642
		tecks2.TextStrokeColor3 = Color3.new(0, 0, 0)
643
		tecks2.Size = UDim2.new(1, 0, 0.5, 0)
644
		for i = 1, string.len(text) do
645
			if naeeym2.Parent ~= nil then
646
				CreateSound("418252437", Effects, 1, MRANDOM(9, 11) / 10)
647
			end
648
			tecks2.Text = string.sub(text, 1, i)
649
			Swait(3)
650
		end
651
		wait(waitt / 10)
652
		coroutine.resume(coroutine.create(function()
653
			for i = 1, 10 do
654
				tecks2.TextTransparency = tecks2.TextTransparency + 0.1
655
				Swait()
656
			end
657
			naeeym2:Destroy()
658
		end))
659
	end)
660
	chat()
661
end
662
663
function CreateWave(SIZE, WAIT, CFRAME, DOESROT, ROT, COLOR, GROW)
664
	local wave = CreatePart(3, Effects, "Neon", 0, 0.5, BRICKC(COLOR), "Effect", VT(0, 0, 0))
665
	local mesh = IT("SpecialMesh", wave)
666
	mesh.MeshType = "FileMesh"
667
	mesh.MeshId = "http://www.roblox.com/asset/?id=20329976"
668
	mesh.Scale = SIZE
669
	mesh.Offset = VT(0, 0, -SIZE.X / 8)
670
	wave.CFrame = CFRAME
671
	coroutine.resume(coroutine.create(function(PART)
672
		for i = 1, WAIT do
673
			Swait()
674
			mesh.Scale = mesh.Scale + GROW
675
			mesh.Offset = VT(0, 0, -(mesh.Scale.X / 8))
676
			if DOESROT == true then
677
				wave.CFrame = wave.CFrame * CFrame.fromEulerAnglesXYZ(0, ROT, 0)
678
			end
679
			wave.Transparency = wave.Transparency + 0.5 / WAIT
680
			if wave.Transparency > 0.99 then
681
				wave:remove()
682
			end
683
		end
684
	end))
685
end
686
function CreateCrown(SIZE, WAIT, CFRAME, DOESROT, ROT, COLOR, GROW)
687
	local wave = CreatePart(3, Effects, "Neon", 0, 0.5, BRICKC(COLOR), "Effect", VT(0, 0, 0))
688
	local mesh = IT("SpecialMesh", wave)
689
	mesh.MeshType = "FileMesh"
690
	mesh.MeshId = "http://www.roblox.com/asset/?id=1078075"
691
	mesh.Scale = SIZE
692
	mesh.Offset = VT(0, 0, -SIZE.X / 8)
693
	wave.CFrame = CFRAME
694
	coroutine.resume(coroutine.create(function(PART)
695
		for i = 1, WAIT do
696
			Swait()
697
			mesh.Scale = mesh.Scale + GROW
698
			mesh.Offset = VT(0, 0, -(mesh.Scale.X / 8))
699
			if DOESROT == true then
700
				wave.CFrame = wave.CFrame * CFrame.fromEulerAnglesXYZ(0, ROT, 0)
701
			end
702
			wave.Transparency = wave.Transparency + 0.5 / WAIT
703
			if wave.Transparency > 0.99 then
704
				wave:remove()
705
			end
706
		end
707
	end))
708
end
709
function CreateIceCrown(SIZE, WAIT, CFRAME, DOESROT, ROT, COLOR, GROW)
710
	local wave = CreatePart(3, Effects, "Neon", 0, 0.5, BRICKC(COLOR), "Effect", VT(0, 0, 0))
711
	local mesh = IT("SpecialMesh", wave)
712
	mesh.MeshType = "FileMesh"
713
	mesh.MeshId = "http://www.roblox.com/asset/?id=1323306"
714
	mesh.Scale = SIZE
715
	mesh.Offset = VT(0, 0, -SIZE.X / 8)
716
	wave.CFrame = CFRAME
717
	coroutine.resume(coroutine.create(function(PART)
718
		for i = 1, WAIT do
719
			Swait()
720
			mesh.Scale = mesh.Scale + GROW
721
			mesh.Offset = VT(0, 0, -(mesh.Scale.X / 8))
722
			if DOESROT == true then
723
				wave.CFrame = wave.CFrame * CFrame.fromEulerAnglesXYZ(0, ROT, 0)
724
			end
725
			wave.Transparency = wave.Transparency + 0.5 / WAIT
726
			if wave.Transparency > 0.99 then
727
				wave:remove()
728
			end
729
		end
730
	end))
731
end
732
function CreateSpikeball(SIZE, WAIT, CFRAME, DOESROT, ROT, COLOR, GROW)
733
	local wave = CreatePart(3, Effects, "Neon", 0, 0.5, BRICKC(COLOR), "Effect", VT(0, 0, 0))
734
	local mesh = IT("SpecialMesh", wave)
735
	mesh.MeshType = "FileMesh"
736
	mesh.MeshId = "http://www.roblox.com/asset/?id=9982590"
737
	mesh.Scale = SIZE
738
	mesh.Offset = VT(0, 0, -SIZE.X / 8)
739
	wave.CFrame = CFRAME
740
	coroutine.resume(coroutine.create(function(PART)
741
		for i = 1, WAIT do
742
			Swait()
743
			mesh.Scale = mesh.Scale + GROW
744
			mesh.Offset = VT(0, 0, -(mesh.Scale.X / 8))
745
			if DOESROT == true then
746
				wave.CFrame = wave.CFrame * CFrame.fromEulerAnglesXYZ(0, ROT, 0)
747
			end
748
			wave.Transparency = wave.Transparency + 0.5 / WAIT
749
			if wave.Transparency > 0.99 then
750
				wave:remove()
751
			end
752
		end
753
	end))
754
end
755
function CreateSwirl(SIZE, WAIT, CFRAME, DOESROT, ROT, COLOR, GROW)
756
	local wave = CreatePart(3, Effects, "Neon", 0, 0.5, BRICKC(COLOR), "Effect", VT(0, 0, 0))
757
	local mesh = IT("SpecialMesh", wave)
758
	mesh.MeshType = "FileMesh"
759
	mesh.MeshId = "http://www.roblox.com/asset/?id=1051557"
760
	mesh.Scale = SIZE
761
	wave.CFrame = CFRAME
762
	coroutine.resume(coroutine.create(function(PART)
763
		for i = 1, WAIT do
764
			Swait()
765
			mesh.Scale = mesh.Scale + GROW
766
			mesh.Offset = VT(0, 0, -(mesh.Scale.X / 8))
767
			if DOESROT == true then
768
				wave.CFrame = wave.CFrame * CFrame.fromEulerAnglesXYZ(0, ROT, 0)
769
			end
770
			wave.Transparency = wave.Transparency + 0.5 / WAIT
771
			if wave.Transparency > 0.99 then
772
				wave:remove()
773
			end
774
		end
775
	end))
776
end
777
function CreateTornado(SIZE, DOESROT, ROT, WAIT, CFRAME, COLOR, GROW)
778
	local wave = CreatePart(3, Effects, "Neon", 0, 0.5, BRICKC(COLOR), "Effect", VT(0, 0, 0))
779
	local mesh = IT("SpecialMesh", wave)
780
	mesh.MeshType = "FileMesh"
781
	mesh.MeshId = "http://www.roblox.com/asset/?id=102638417"
782
	mesh.Scale = SIZE
783
	wave.CFrame = CFRAME
784
	coroutine.resume(coroutine.create(function(PART)
785
		for i = 1, WAIT do
786
			Swait()
787
			mesh.Scale = mesh.Scale + GROW
788
			if DOESROT == true then
789
				wave.CFrame = wave.CFrame * CFrame.fromEulerAnglesXYZ(0, ROT, 0)
790
			end
791
			wave.Transparency = wave.Transparency + 0.5 / WAIT
792
			if wave.Transparency > 0.99 then
793
				wave:remove()
794
			end
795
		end
796
	end))
797
end
798
function CreateRing(SIZE, DOESROT, ROT, WAIT, CFRAME, COLOR, GROW)
799
	local wave = CreatePart(3, Effects, "Neon", 0, 0.5, BRICKC(COLOR), "Effect", VT(0, 0, 0))
800
	local mesh = IT("SpecialMesh", wave)
801
	mesh.MeshType = "FileMesh"
802
	mesh.MeshId = "http://www.roblox.com/asset/?id=3270017"
803
	mesh.Scale = SIZE
804
	mesh.Offset = VT(0, 0, 0)
805
	wave.CFrame = CFRAME
806
	coroutine.resume(coroutine.create(function(PART)
807
		for i = 1, WAIT do
808
			Swait()
809
			mesh.Scale = mesh.Scale + GROW
810
			if DOESROT == true then
811
				wave.CFrame = wave.CFrame * CFrame.fromEulerAnglesXYZ(0, ROT, 0)
812
			end
813
			wave.Transparency = wave.Transparency + 0.5 / WAIT
814
			if wave.Transparency > 0.99 then
815
				wave:remove()
816
			end
817
		end
818
	end))
819
end
820
function MagicSphere(SIZE, WAIT, CFRAME, COLOR, GROW)
821
	local wave = CreatePart(3, Effects, "Neon", 0, 0, BRICKC(COLOR), "Effect", VT(1, 1, 1), true)
822
	local mesh = IT("SpecialMesh", wave)
823
	mesh.MeshType = "Sphere"
824
	mesh.Scale = SIZE
825
	mesh.Offset = VT(0, 0, 0)
826
	wave.CFrame = CFRAME
827
	coroutine.resume(coroutine.create(function(PART)
828
		for i = 1, WAIT do
829
			Swait()
830
			mesh.Scale = mesh.Scale + GROW
831
			wave.Transparency = wave.Transparency + 1 / WAIT
832
			if wave.Transparency > 0.99 then
833
				wave:remove()
834
			end
835
		end
836
	end))
837
end
838
function MagicBlock(SIZE, WAIT, CFRAME, COLOR, GROW)
839
	local wave = CreatePart(3, Effects, "Neon", 0, 0, BRICKC(COLOR), "Effect", VT(SIZE, SIZE, SIZE), true)
840
	local mesh = IT("BlockMesh", wave)
841
	wave.CFrame = CFRAME
842
	coroutine.resume(coroutine.create(function(PART)
843
		for i = 1, WAIT do
844
			Swait()
845
			mesh.Scale = mesh.Scale + GROW
846
			wave.CFrame = CFRAME * ANGLES(RAD(math.random(-360, 360)), RAD(math.random(-360, 360)), RAD(math.random(-360, 360)))
847
			wave.Transparency = wave.Transparency + 1 / WAIT
848
			if wave.Transparency > 0.99 then
849
				wave:remove()
850
			end
851
		end
852
	end))
853
end
854
855
--//=================================\\
856
--||	     WEAPON CREATION
857
--\\=================================//
858
859
local Particle = IT("ParticleEmitter",nil)
860
Particle.Enabled = false
861
Particle.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0.3),NumberSequenceKeypoint.new(0.3,0),NumberSequenceKeypoint.new(1,1)})
862
Particle.LightEmission = 0.5
863
Particle.Rate = 150
864
Particle.ZOffset = 0.2
865
Particle.Rotation = NumberRange.new(-180, 180)
866
Particle.RotSpeed = NumberRange.new(-180, 180)
867
Particle.Texture = "http://www.roblox.com/asset/?id=304437537"
868
Particle.Color = ColorSequence.new(C3(1,0,0),C3(0.4,0,0))
869
870
--ParticleEmitter({Speed = 5, Drag = 0, Size1 = 1, Size2 = 5, Lifetime1 = 1, Lifetime2 = 1.5, Parent = Torso, Emit = 100, Offset = 360, Enabled = false})
871
function ParticleEmitter(Table)
872
	local PRTCL = Particle:Clone()
873
	local Speed = Table.Speed or 5
874
	local Drag = Table.Drag or 0
875
	local Size1 = Table.Size1 or 1
876
	local Size2 = Table.Size2 or 5
877
	local Lifetime1 = Table.Lifetime1 or 1
878
	local Lifetime2 = Table.Lifetime2 or 1.5
879
	local Parent = Table.Parent or Torso
880
	local Emit = Table.Emit or 100
881
	local Offset = Table.Offset or 360
882
	local Acel = Table.Acel or VT(0,0,0)
883
	local Enabled = Table.Enabled or false
884
	PRTCL.Parent = Parent
885
	PRTCL.Size = NumberSequence.new(Size1,Size2)
886
	PRTCL.Lifetime = NumberRange.new(Lifetime1,Lifetime2)
887
	PRTCL.Speed = NumberRange.new(Speed)
888
	PRTCL.VelocitySpread = Offset
889
	PRTCL.Drag = Drag
890
	PRTCL.Acceleration = Acel
891
	if Enabled == false then
892
		PRTCL:Emit(Emit)
893
		Debris:AddItem(PRTCL,Lifetime2)
894
	else
895
		PRTCL.Enabled = true
896
	end
897
	return PRTCL
898
end
899
900
901
local Gun = CreatePart(3, Weapon, "SmoothPlastic", 0, 0, "Really black", "Gun", VT(0, 0, 0), false)
902
local HandleMesh = CreateMesh("SpecialMesh", Gun, "FileMesh", "430198390", "430198451", VT(0.02, 0.02, 0.02), VT(0, 0, 0))
903
local Weld = CreateWeldOrSnapOrMotor("Weld", Gun, RightArm, Gun, CF(0, -1.7, -0.2) * ANGLES(RAD(0), RAD(90), RAD(-90)), CF(0, 0, 0))
904
GunPoint = CreatePart(3, Weapon, "SmoothPlastic", 0, 1, "Really black", "Point blank", VT(0, 0, 0), false)
905
local HandleWeld = CreateWeldOrSnapOrMotor("Weld", GunPoint, RightArm, GunPoint, CF(0, -3.1, -0.8) * ANGLES(RAD(0), RAD(0), RAD(135)), CF(0, 0, 0))
906
907
local Gun1 = CreatePart(3, Weapon, "SmoothPlastic", 0, 0, "Really black", "Gun1", VT(0, 0, 0), false)
908
local HandleMesh = CreateMesh("SpecialMesh", Gun1, "FileMesh", "0", "0", VT(0.02, 0.02, 0.02), VT(0, 0, 0))
909
local Weld = CreateWeldOrSnapOrMotor("Weld", Gun1, RightArm, Gun1, CF(0, -3.1, -0.8) * ANGLES(RAD(0), RAD(90), RAD(-90)), CF(0, 0, 0))
910
911
912
local BODY = {}
913
914
for _, c in pairs(Character:GetDescendants()) do
915
	if c:IsA("BasePart") and c.Name ~= "Handle" then
916
		if c ~= RootPart and c ~= Torso and c ~= Head and c ~= RightArm and c ~= LeftArm and c ~= RightLeg and c ~= LeftLeg then
917
			c.CustomPhysicalProperties = PhysicalProperties.new(0, 0, 0, 0, 0)
918
		end
919
		table.insert(BODY,{c,c.Parent,c.Material,c.Color,c.Transparency})
920
	elseif c:IsA("JointInstance") then
921
		table.insert(BODY,{c,c.Parent,nil,nil,nil})
922
	end
923
end
924
925
for e = 1, #BODY do
926
	if BODY[e] ~= nil then
927
		local STUFF = BODY[e]
928
		local PART = STUFF[1]
929
		local PARENT = STUFF[2]
930
		local MATERIAL = STUFF[3]
931
		local COLOR = STUFF[4]
932
		local TRANSPARENCY = STUFF[5]
933
		if PART.ClassName == "Part" and PART ~= RootPart then
934
			PART.Material = MATERIAL
935
			PART.Color = COLOR
936
			PART.Transparency = TRANSPARENCY
937
		end
938
		PART.AncestryChanged:Connect(function()
939
			PART.Parent = PARENT
940
		end)
941
	end
942
end
943
944
function refit()
945
	Character.Parent = workspace
946
	for e = 1, #BODY do
947
		if BODY[e] ~= nil then
948
			local STUFF = BODY[e]
949
			local PART = STUFF[1]
950
			local PARENT = STUFF[2]
951
			local MATERIAL = STUFF[3]
952
			local COLOR = STUFF[4]
953
			local TRANSPARENCY = STUFF[5]
954
			if PART.ClassName == "Part" and PART ~= RootPart then
955
				PART.Material = MATERIAL
956
				PART.Color = COLOR
957
				PART.Transparency = TRANSPARENCY
958
			end
959
			if PART.Parent ~= PARENT then
960
				Humanoid:remove()
961
				PART.Parent = PARENT
962
				Humanoid = IT("Humanoid",Character)
963
			end
964
		end
965
	end
966
end
967
968
Weapon.Parent = Character
969
for _, c in pairs(Weapon:GetChildren()) do
970
	if c.ClassName == "Part" then
971
		c.CustomPhysicalProperties = PhysicalProperties.new(0, 0, 0, 0, 0)
972
	end
973
end
974
975
local SKILLTEXTCOLOR = C3(1,0,0)
976
local SKILLFONT = "Antique"
977
local SKILLTEXTSIZE = 7
978
979
Humanoid.Died:connect(function()
980
	ATTACK = false
981
end)
982
983
984
985
986
local SKILL1FRAME = CreateFrame(WEAPONGUI, 0.75, 2, UD2(0.100, 0, 0.9, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 1 Frame")
987
local SKILL2FRAME = CreateFrame(WEAPONGUI, 0.75, 2, UD2(0.365, 0, 0.9, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 2 Frame")
988
local SKILL3FRAME = CreateFrame(WEAPONGUI, 0.75, 2, UD2(0.631, 0, 0.9, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 3 Frame")
989
990
local SOULFRAME = CreateFrame(WEAPONGUI, 0.75, 2, UD2(0.365, 0, 0.815, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Soul Frame")
991
992
local SKILL1TEXT = CreateLabel(SKILL1FRAME, "[Z] Banish Bullet", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 1, "Text 1")
993
local SKILL2TEXT = CreateLabel(SKILL2FRAME, "[X] Banish Laser", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 1, "Text 2")
994
local SKILL3TEXT = CreateLabel(SKILL3FRAME, "[C] Teleport", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 1, "Text 3")
995
996
local SOULTEXT = CreateLabel(SOULFRAME, "Souls : [0]", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 1, "Souls")
997
998
999
1000
1001
function printbye(Name)
1002
	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, "}
1003
	warn(MESSAGES[MRANDOM(1,#MESSAGES)]..Name..".")	
1004
end
1005
1006
workspace.ChildAdded:connect(function(instance)
1007
    for BANISH = 1, #TOBANISH do
1008
		if TOBANISH[BANISH] ~= nil then
1009
			if instance.Name == TOBANISH[BANISH] then
1010
				coroutine.resume(coroutine.create(function()
1011
					printbye(instance.Name)
1012
					instance:ClearAllChildren()
1013
					Debris:AddItem(instance,0.0005)
1014
				end))
1015
			end
1016
		end
1017
	end
1018
end)
1019
1020
--//=================================\\
1021
--||			DAMAGING
1022
--\\=================================//
1023
1024
function Banish(Foe)
1025
	if Foe then
1026
		coroutine.resume(coroutine.create(function()
1027
			--if game.Players:FindFirstChild(Foe.Name) then
1028
				table.insert(TOBANISH,Foe.Name)
1029
				printbye(Foe.Name)
1030
			--end
1031
			Foe.Archivable = true
1032
			local CLONE = Foe:Clone()
1033
			Foe:Destroy()
1034
			CLONE.Parent = Effects
1035
			CLONE:BreakJoints()
1036
			local MATERIALS = {"Neon","Neon"}
1037
			for _, c in pairs(CLONE:GetDescendants()) do
1038
				if c:IsA("BasePart") then
1039
					if c.Name == "Torso" or c.Name == "UpperTorso" or c == CLONE.PrimaryPart then
1040
 						CreateSound(340722848, c, 10, 1, false)
1041
					end
1042
					c.Anchored = true
1043
					c.Transparency = c.Transparency + 0.2
1044
					c.Material = MATERIALS[MRANDOM(1,2)]
1045
					c.Color = C3(1,0,0)
1046
					if c.ClassName == "MeshPart" then
1047
						c.TextureID = ""
1048
					end
1049
					if c:FindFirstChildOfClass("SpecialMesh") then
1050
						c:FindFirstChildOfClass("SpecialMesh").TextureId = ""
1051
					end
1052
					if c:FindFirstChildOfClass("Decal") then
1053
						c:FindFirstChildOfClass("Decal"):remove()
1054
					end
1055
					c.Name = "Banished"
1056
					c.CanCollide = false
1057
				else
1058
					c:remove()
1059
				end
1060
			end
1061
			local A = false
1062
			for i = 1, 35 do
1063
				if A == false then
1064
					A = true
1065
				elseif A == true then
1066
					A = false
1067
				end
1068
				for _, c in pairs(CLONE:GetDescendants()) do
1069
					if c:IsA("BasePart") then
1070
						c.Anchored = true
1071
						c.Material = MATERIALS[MRANDOM(1,2)]
1072
						c.Transparency = c.Transparency + 0.8/35
1073
						if A == false then
1074
							c.CFrame = c.CFrame*CF(MRANDOM(-5,5)/5,MRANDOM(-5,5)/5,MRANDOM(-5,5)/5)
1075
						elseif A == true then
1076
							c.CFrame = c.CFrame*CF(MRANDOM(-5,5)/5,MRANDOM(-5,5)/5,MRANDOM(-5,5)/5)						
1077
						end
1078
					end
1079
				end
1080
				Swait()
1081
			end
1082
                        SpawnSoul(Humanoid)
1083
                        Wait(0.1)
1084
			CLONE:remove()
1085
		end))
1086
	end
1087
end
1088
1089
function ApplyAoE(POSITION,RANGE,ISBANISH)
1090
	local CHILDREN = workspace:GetDescendants()
1091
	for index, CHILD in pairs(CHILDREN) do
1092
		if CHILD.ClassName == "Model" and CHILD ~= Character then
1093
			local HUM = CHILD:FindFirstChildOfClass("Humanoid")
1094
			if HUM then
1095
				local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso")
1096
				if TORSO then
1097
					if (TORSO.Position - POSITION).Magnitude <= RANGE then
1098
						if ISBANISH == true then
1099
							Banish(CHILD)
1100
						else
1101
							if ISBANISH == "Gravity" then
1102
								HUM.PlatformStand = true
1103
								if TORSO:FindFirstChild("V3BanishForce"..Player.Name) then
1104
									local grav = Instance.new("BodyPosition",TORSO)
1105
									grav.D = 15
1106
									grav.P = 20000
1107
									grav.maxForce = Vector3.new(math.huge,math.huge,math.huge)
1108
									grav.position = TORSO.Position
1109
									grav.Name = "V3BanishForce"..Player.Name
1110
								else
1111
									TORSO:FindFirstChild("V3BanishForce"..Player.Name).position = TORSO.Position+VT(0,0.3,0)
1112
									TORSO.RotVelocity = VT(MRANDOM(-5,5),MRANDOM(-5,5),MRANDOM(-5,5))
1113
								end
1114
							else
1115
								HUM.PlatformStand = false
1116
							end
1117
						end
1118
					elseif ISBANISH == "Gravity" then
1119
                                                        if TORSO:FindFirstChild("f"..Player.Name) then
1120
							TORSO:FindFirstChild("f"..Player.Name)
1121
							HUM.PlatformStand = false
1122
                                                        SpawnSoul(Humanoid)
1123
						end
1124
					end
1125
				end
1126
			end
1127
		end
1128
	end
1129
end
1130
1131
--//=================================\\
1132
--||	ATTACK FUNCTIONS AND STUFF
1133
--\\=================================//
1134
1135
function Banisher_Bullet()
1136
    ATTACK = true
1137
    Rooted = false
1138
    for i=0, 0.4, 0.1 / Animation_Speed do
1139
        Swait()
1140
        turnto(Mouse.Hit.p)
1141
        RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(90)), 0.5 / Animation_Speed)
1142
        Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(-90)), 0.5 / Animation_Speed)
1143
        RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(90), RAD(0), RAD(90)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed)
1144
        LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.6, 0) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, 0.5 / Animation_Speed)
1145
        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)
1146
        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)
1147
    end
1148
    repeat
1149
        for i=0, 0.2, 0.1 / Animation_Speed do
1150
            Swait()
1151
            turnto(Mouse.Hit.p)
1152
            RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(90)), 0.5 / Animation_Speed)
1153
            Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(-90)), 0.5 / Animation_Speed)
1154
            RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(90), RAD(0), RAD(90)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed)
1155
            LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.6, 0) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, 0.5 / Animation_Speed)
1156
            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)
1157
            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)
1158
        end
1159
        local HIT,POS = CastProperRay(Gun1.Position, Mouse.Hit.p, 1000, Character)
1160
        SpawnTrail(Gun1.Position,POS)
1161
        if HIT ~= nil then
1162
            if HIT.Parent ~= workspace and HIT.Parent.ClassName ~= "Folder" then
1163
                Banish(HIT.Parent)
1164
            end
1165
        end
1166
        WACKYEFFECT({Time = 15+(i*5), EffectType = "Slash", Size = VT(0.03,0.03,0.03), Size2 = VT(0.05,0,0.05), Transparency = 0, Transparency2 = 1, CFrame = CF(Gun1.Position)*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360))), MoveToPos = nil, RotationX = MRANDOM(-15,15)/15, RotationY = MRANDOM(-15,15)/15, RotationZ = MRANDOM(-15,15)/15, Material = "Neon", Color = C3(1,0,0), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
1167
        WACKYEFFECT({Time = 75, EffectType = "Sphere", Size = VT(0.3,0.3,0.3), Size2 = VT(1.5,1.5,1.5), Transparency = 0, Transparency2 = 1, CFrame = Gun1.CFrame, MoveToPos = Gun1.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})
1168
        WACKYEFFECT({Time = 75, EffectType = "Sphere", Size = VT(0.4,0.4,0.4), Size2 = VT(2.5,2.5,2.5), Transparency = 0, Transparency2 = 1, CFrame = Gun1.CFrame, MoveToPos = nil, RotationX = 0, RotationY = 5, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = 238353911, SoundPitch = MRANDOM(8,11)/10, SoundVolume = 8})
1169
        WACKYEFFECT({Time = 75, EffectType = "Sphere", Size = VT(0.3,0.3,0.3), Size2 = VT(3,3.5,3), Transparency = 0, Transparency2 = 1, CFrame = CF(POS,Gun1.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})
1170
        WACKYEFFECT({Time = 75, EffectType = "Sphere", Size = VT(0.3,0.3,0.3), Size2 = VT(3,3.5,3), Transparency = 0, Transparency2 = 1, CFrame = CF(POS,Gun1.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})
1171
        WACKYEFFECT({Time = 15+(i*5), EffectType = "Ring", Size = VT(0.3,0.3,0.3), Size2 = VT(0.5,0.5,0.5), Transparency = 0, Transparency2 = 1, CFrame = CF(POS,Gun1.Position)*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360))), MoveToPos = nil, RotationX = MRANDOM(-15,15)/15, RotationY = MRANDOM(-15,15)/15, RotationZ = MRANDOM(-15,15)/15, Material = "Neon", Color = C3(1,0,0), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
1172
        WACKYEFFECT({Time = 70, EffectType = "Sphere", Size = VT(10,10,10), Size2 = VT(MRANDOM(12,13),MRANDOM(12,13),MRANDOM(12,13)), Transparency = 0.5, Transparency2 = 1, CFrame = CF(Gun1.Position)*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))*CF(0,0,45), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = BRICKC"Really red".Color, SoundID = 608538233, SoundPitch = MRANDOM(8,12)/10, SoundVolume = MRANDOM(5,10)})
1173
        for i=0, 0.3, 0.1 / Animation_Speed do
1174
            Swait()
1175
            RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(90)), 0.5 / Animation_Speed)
1176
            Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(-90)), 0.25 / Animation_Speed)
1177
            RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(90), RAD(15), RAD(90)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed)
1178
            LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.6, 0) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, 0.5 / Animation_Speed)
1179
            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)
1180
            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)
1181
        end
1182
    until KEYHOLD == false
1183
    ATTACK = false
1184
    Rooted = false
1185
end
1186
function AttackTemplate()
1187
	ATTACK = true
1188
	Rooted = false
1189
	for i=0, 1, 0.1 / Animation_Speed do
1190
		Swait()
1191
		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)
1192
		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)
1193
		RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(12)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
1194
		LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
1195
		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)
1196
		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)
1197
	end
1198
	ATTACK = false
1199
	Rooted = false
1200
end
1201
1202
function BanishLaser()
1203
    ATTACK = true
1204
    local GYRO = IT("BodyGyro",RootPart)
1205
    GYRO.D = 100
1206
    GYRO.P = 2000
1207
    GYRO.MaxTorque = VT(0,4000000,0)
1208
    GYRO.cframe = CF(RootPart.Position,Mouse.Hit.p)
1209
    for i=1, 35 do
1210
        Swait()
1211
        GYRO.cframe = CF(RootPart.Position,Mouse.Hit.p)
1212
        WACKYEFFECT({Time = 5, EffectType = "Sphere", Size = VT(5,5,5), Size2 = VT(0,0,0), Transparency = 1, Transparency2 = 0.25, CFrame = Gun1, MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = nil, SoundPitch = 0.6, SoundVolume = 6})
1213
        RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(90)), 0.5 / Animation_Speed)
1214
        Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(-90)), 0.5 / Animation_Speed)
1215
        RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(90), RAD(0), RAD(90)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed)
1216
        LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.6, 0) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, 0.5 / Animation_Speed)
1217
        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)
1218
        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)
1219
    end
1220
    local BEAM = CreatePart(3, Effects, "Neon", 0, 1, "Really red", "Lazer", VT(0,0,0))
1221
    local LOOP = CreateSound("289315275", Gun1, 5, 1.2, false)
1222
    local MSH = IT("CylinderMesh",BEAM)
1223
    local TOCH = BEAM.Touched:Connect(function(hit)
1224
        if hit.Anchored == false and hit.Parent ~= Head and hit.Parent ~= Character and hit.Parent ~= Effects then
1225
            if hit.Parent:FindFirstChildOfClass("Humanoid") then
1226
                Banish(hit.Parent)
1227
            end
1228
        end
1229
    end)
1230
    local I = 0
1231
    repeat
1232
        Swait()
1233
        I = I + 1
1234
        if I <= 10 then
1235
            BEAM.Transparency = BEAM.Transparency - 0.1
1236
        end
1237
        local STARTPOS = Gun1.CFrame.p
1238
        local ENDHIT,ENDPOS = CastProperRay(STARTPOS,Mouse.Hit.p,650,Character)
1239
        local DISTANCE = (STARTPOS - ENDPOS).Magnitude
1240
        BEAM.CFrame = CF(STARTPOS,ENDPOS)*CF(0,0,-DISTANCE/2)*ANGLES(RAD(90),RAD(0),RAD(0))
1241
        BEAM.Size = VT(1,DISTANCE,1)
1242
        WACKYEFFECT({Time = 15, EffectType = "Sphere", Size = VT(3,3,3), Size2 = VT(0,0,0), Transparency = 0, Transparency2 = 1, CFrame = Gun1.CFrame, MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = nil, SoundPitch = 0.6, SoundVolume = 6})
1243
        WACKYEFFECT({Time = 15, EffectType = "Sphere", Size = VT(3,3,3), Size2 = VT(0,0,0), Transparency = 0, Transparency2 = 1, CFrame = CF(ENDPOS), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = 238353911, SoundPitch = 0.6, SoundVolume = 6})
1244
        WACKYEFFECT({Time = 35, EffectType = "Block", Size = VT(4,4,4), Size2 = VT(0,0,0), Transparency = 0, Transparency2 = 1, CFrame = CF(ENDPOS), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = 238353911, SoundPitch = 0.6, SoundVolume = 6})
1245
        WACKYEFFECT({Time = 35, EffectType = "Sphere", Size = VT(19,19,19), Size2 = VT(10,10,10), Transparency = 0, Transparency2 = 0.25, CFrame = CF(ENDPOS)*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))*CF(0,0,45), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = nil, SoundPitch = 0.6, SoundVolume = 6})
1246
        GYRO.cframe = CF(RootPart.Position,Mouse.Hit.p)
1247
        RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(90)), 0.5 / Animation_Speed)
1248
        Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(-90)), 0.25 / Animation_Speed)
1249
        RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(90), RAD(15), RAD(90)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed)
1250
        LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.6, 0) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, 0.5 / Animation_Speed)
1251
        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)
1252
        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)
1253
        if ENDHIT ~= nil then
1254
            if ENDHIT.Anchored == false and ENDHIT.Parent ~= Effects then
1255
                if ENDHIT.Parent:FindFirstChildOfClass("Humanoid") then
1256
                    Banish(ENDHIT.Parent)
1257
                end
1258
            end
1259
        end
1260
    until LOOP.Playing == false
1261
    BEAM:remove()
1262
    GYRO:remove()
1263
    ATTACK = false
1264
end
1265
1266
function Teleport()
1267
	ATTACK = true
1268
	Rooted = false
1269
	for i=0, 0.5, 0.1 / Animation_Speed do
1270
		Swait()
1271
		RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(90)), 0.5 / Animation_Speed)
1272
                Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(-90)), 0.5 / Animation_Speed)
1273
                RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(90), RAD(0), RAD(90)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed)
1274
                LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.6, 0) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, 0.5 / Animation_Speed)
1275
                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)
1276
                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)
1277
	end
1278
	for e = 1, #BODY do
1279
		if BODY[e] ~= nil then
1280
			local STUFF = BODY[e]
1281
			local PART = STUFF[1]
1282
			if PART:IsA("BasePart") and PART ~= RootPart and PART.Name ~= "Gun1" and PART.Name ~= "Gun" and PART.Transparency ~= 1 then
1283
				local PRT = PART:Clone()
1284
				PRT.Anchored = true
1285
				PRT.CanCollide = false
1286
				PRT.Material = "Neon"
1287
				PRT.Color = C3(1,0,0)
1288
				PRT.Name = "WarpEffect"
1289
				PRT.Parent = Effects
1290
				PRT.CFrame = PART.CFrame
1291
				PRT:BreakJoints()
1292
				if PRT:FindFirstChildOfClass("Sound") then
1293
					PRT:FindFirstChildOfClass("Sound"):remove()
1294
				end
1295
				if PRT:FindFirstChildOfClass("Decal") then
1296
					PRT:FindFirstChildOfClass("Decal"):remove()
1297
				end
1298
				coroutine.resume(coroutine.create(function()
1299
					for i = 1, 500 do
1300
						Swait()
1301
						PRT.Transparency = PRT.Transparency + 1/100
1302
					end
1303
					PRT:remove()
1304
				end))
1305
			end
1306
		end
1307
	end
1308
	CreateSound(217767125, Torso, 10, 1)
1309
	local POS = RootPart.Orientation
1310
	RootPart.CFrame = CF(Mouse.Hit.p+VT(0,6,0))
1311
        local HIT,POS = CastProperRay(RootPart.Position, Mouse.Hit.p, 1000, Character)
1312
        SpawnTrail(Gun1.Position,POS)
1313
	RootPart.Orientation = POS
1314
	RootJoint.Parent = RootPart
1315
        WACKYEFFECT({Time = 75, EffectType = "Sphere", Size = VT(3,8,3), Size2 = VT(0,0,0), Transparency = 0, Transparency2 = 1, CFrame = Torso.CFrame*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))*CF(0,0,10), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = 238353911, SoundPitch = 0.6, SoundVolume = 6})
1316
        WACKYEFFECT({Time = 75, EffectType = "Sphere", Size = VT(6,5,6), Size2 = VT(0,0,0), Transparency = 0, Transparency2 = 1, CFrame = Torso.CFrame*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))*CF(0,0,10), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = 238353911, SoundPitch = 0.6, SoundVolume = 3})
1317
        WACKYEFFECT({Time = 75, EffectType = "Sphere", Size = VT(5,5,5), Size2 = VT(0,0,0), Transparency = 0, Transparency2 = 1, CFrame = Torso.CFrame, MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = 238353911, SoundPitch = 0.6, SoundVolume = 1})
1318
        WACKYEFFECT({Time = 75, EffectType = "Sphere", Size = VT(19,19,19), Size2 = VT(0,0,0), Transparency = 0, Transparency2 = 1, CFrame = Torso.CFrame, MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = 238353911, SoundPitch = 0.6, SoundVolume = 1})
1319
        WACKYEFFECT({Time = 75, EffectType = "Ring", Size = VT(0.3,0.2,0.3), Size2 = VT(0.5,0.5,0.5), Transparency = 0, Transparency2 = 1, CFrame = Torso.CFrame*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))*CF(0,0,0), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = 238353911, SoundPitch = 0.6, SoundVolume = 1})
1320
	for i=0, 0.5, 0.1 / Animation_Speed do
1321
		Swait()
1322
            RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(90)), 0.5 / Animation_Speed)
1323
            Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(-90)), 0.25 / Animation_Speed)
1324
            RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(90), RAD(15), RAD(90)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed)
1325
            LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.6, 0) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, 0.5 / Animation_Speed)
1326
            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)
1327
            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)
1328
	end
1329
	for i=0, 0.1, 0.1 / Animation_Speed do
1330
		Swait()
1331
	    RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(90)), 0.5 / Animation_Speed)
1332
            Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(-90)), 0.25 / Animation_Speed)
1333
            RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(90), RAD(15), RAD(90)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed)
1334
            LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.6, 0) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, 0.5 / Animation_Speed)
1335
            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)
1336
            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)
1337
	end
1338
	ATTACK = false
1339
	Rooted = false
1340
end
1341
1342
1343
function BanishingRampage()
1344
	ATTACK = true
1345
	Rooted = false
1346
	chatfunc("...", 3)
1347
        wait(1)
1348
        chatfunc("Be gone.....", 3)
1349
	for i = 0, 2, 0.1 / Animation_Speed do
1350
		Swait()
1351
		turnto(Mouse.Hit.p)
1352
		RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, -1.5) * ANGLES(RAD(0), RAD(0), RAD(45)), 0.5 / Animation_Speed)
1353
		Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(15), RAD(0), RAD(-45)), 0.15 / Animation_Speed)
1354
		RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 1, -0.3) * ANGLES(RAD(25), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed)
1355
		LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.5 / Animation_Speed)
1356
		RightHip.C0 = Clerp(RightHip.C0, CF(1, 0.5, -0.75) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.5 / Animation_Speed)
1357
		LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.4) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(90)), 0.5 / Animation_Speed)
1358
	end
1359
	local HITFLOOR = Raycast(RootPart.Position, CF(RootPart.Position, RootPart.Position + VT(0, -1, 0)).lookVector, 4 * Player_Size, Character)
1360
	repeat
1361
		Swait()
1362
		HITFLOOR = Raycast(RootPart.Position, CF(RootPart.Position, RootPart.Position + VT(0, -1, 0)).lookVector, 4 * Player_Size, Character)
1363
	until HITFLOOR ~= nil
1364
	CreateSound("238353911", Gun1, 10, MRANDOM(9, 11) / 10)
1365
        for i = 1, 75 do
1366
                WACKYEFFECT({Time = 75, EffectType = "Sphere", Size = VT(3,8,3), Size2 = VT(0,0,0), Transparency = 0, Transparency2 = 1, CFrame = Gun1.CFrame, MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = 238353911, SoundPitch = 0.6, SoundVolume = 6})
1367
                WACKYEFFECT({Time = 75, EffectType = "Sphere", Size = VT(8,3,8), Size2 = VT(0,0,0), Transparency = 0, Transparency2 = 1, CFrame = Gun1.CFrame, MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = 238353911, SoundPitch = 0.3, SoundVolume = 6})
1368
                WACKYEFFECT({Time = 75, EffectType = "Ring", Size = VT(0.3,0.8,3), Size2 = VT(0,0,0), Transparency = 0, Transparency2 = 1, CFrame = Gun1.CFrame, MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = 238353911, SoundPitch = 0.6, SoundVolume = 6})
1369
        end
1370
	local SOUND = CreateSound("415700134", Effects, 10, 1.6)
1371
	CreateSound("138677306", Effects, 7, 1.2)
1372
	coroutine.resume(coroutine.create(function()
1373
		local CFRAME = RootPart.CFrame * CF(0, -1.2, -3)
1374
		local SIZE = 1
1375
		while true do
1376
			Swait()
1377
			for i = 1, 2 do
1378
				MagicSphere(VT(SIZE / 5, SIZE / 5, SIZE * 2), 65, CF(CFRAME * CF(MRANDOM(-5, 5), MRANDOM(-5, 5), MRANDOM(-5, 5)).p, CFRAME.p), "Really red", VT(0.001, 0.001, 0), 0.5)
1379
			end
1380
			do
1381
				local Part = CreatePart(3, Effects, HITFLOOR.Material, 0, 0, HITFLOOR.BrickColor, "Debree", VT(SIZE / 5, SIZE / 5, SIZE / 5))
1382
				Part.CFrame = CFRAME * CF(SIZE / 1.5, -0.7, 0) * ANGLES(RAD(MRANDOM(-180, 180)), RAD(MRANDOM(-180, 180)), RAD(MRANDOM(-180, 180)))
1383
				coroutine.resume(coroutine.create(function()
1384
					Swait(200)
1385
					Part.Anchored = false
1386
				end))
1387
				local Part = CreatePart(3, Effects, HITFLOOR.Material, 0, 0, HITFLOOR.BrickColor, "Debree", VT(SIZE / 5, SIZE / 5, SIZE / 5))
1388
				Part.CFrame = CFRAME * CF(-SIZE / 1.5, -0.7, 0) * ANGLES(RAD(MRANDOM(-180, 180)), RAD(MRANDOM(-180, 180)), RAD(MRANDOM(-180, 180)))
1389
				coroutine.resume(coroutine.create(function()
1390
					Swait(200)
1391
					Part.Anchored = false
1392
				end))
1393
				MagicSphere(VT(SIZE, SIZE, SIZE), 75, CFRAME, "Really red", VT(-SIZE / 75, -SIZE / 75, -SIZE / 75))
1394
				ApplyAoE(CFRAME.p, SIZE, 0)
1395
				SIZE = SIZE + 2
1396
				CFRAME = CFRAME * CF(0, 0, -2)
1397
				if SOUND.Playing == false then
1398
					break
1399
				end
1400
			end
1401
		end
1402
	end))
1403
	MagicSphere(VT(0.1, 0.1, 0.1), 45, Gun1.CFrame, "Really red", VT(0.1, 0.1, 0.1))
1404
	MagicSphere(VT(0.1, 0.1, 0.1), 45, Gun1.CFrame, "Really red", VT(0.05, 0.05, 0.05))
1405
	for i = 0, 3, 0.1 / Animation_Speed do
1406
		Swait()
1407
		RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, -1.5) * ANGLES(RAD(0), RAD(0), RAD(45)), 0.5 / Animation_Speed)
1408
		Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(10), RAD(0), RAD(-45)), 0.15 / Animation_Speed)
1409
		RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 1, -0.3) * ANGLES(RAD(55), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed)
1410
		LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.5 / Animation_Speed)
1411
		RightHip.C0 = Clerp(RightHip.C0, CF(1, 0.5, -0.75) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.5 / Animation_Speed)
1412
		LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.4) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(90)), 0.5 / Animation_Speed)
1413
	end
1414
	ATTACK = false
1415
	Rooted = false
1416
end
1417
1418
function SpawnChaos(POS,SIZE,ISDEBREE,ORIPOS)
1419
	coroutine.resume(coroutine.create(function()
1420
		local METEOR = IT("Model",Effects)
1421
		METEOR.Name = "Meteorite"
1422
		local CENTER = CreatePart(3, METEOR, "Neon", 0, 0, "Really red", "MeteorCenter", VT(5,5,5)*SIZE)
1423
		METEOR.PrimaryPart = CENTER
1424
		local PRT = CreatePart(3, METEOR, "Neon", 0, 0, "Really red", "MeteorCenter", VT(5,5,5)*SIZE)
1425
		PRT.CFrame = CENTER.CFrame*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))
1426
		for i = 1, 15 do
1427
			local FIRE = CreatePart(3, METEOR, "Neon", 0, 0, "Really red", "Fire", VT(5.1,1,5.1)*SIZE)
1428
			FIRE.CFrame = CENTER.CFrame*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))
1429
		end
1430
		if ISDEBREE ~= true then
1431
			METEOR:SetPrimaryPartCFrame(CF(POS) * ANGLES(RAD(MRANDOM(-15,15)), RAD(0), RAD(MRANDOM(-15,15)))*CF(0,500,0) * ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360))))
1432
		else
1433
			METEOR:SetPrimaryPartCFrame(CF(ORIPOS,POS) * ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360))))
1434
		end
1435
		local IMPACT = false
1436
		CreateSound(463593339, CENTER, 10, 0.6)
1437
		if SIZE >= 3.5 then
1438
			for i = 1, MRANDOM(3,7) do
1439
				SpawnChaos(CF(POS) * ANGLES(RAD(0), RAD(MRANDOM(0,360)), RAD(0))*CF(0,0,SIZE*12).p,SIZE/MRANDOM(4,5),true,CENTER.CFrame*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))*CF(0,0,SIZE*15).p)
1440
			end
1441
		end
1442
		for i = 1, 200 do
1443
			Swait()
1444
			local HITFLOOR,HITPOS = Raycast(CENTER.Position, CF(CENTER.Position,POS).lookVector, 3, Character)
1445
			if HITFLOOR == nil then
1446
				local ORI = CENTER.Orientation
1447
				METEOR:SetPrimaryPartCFrame(CF(HITPOS) * ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360))))
1448
			else
1449
				if HITFLOOR.Anchored == true then
1450
					CreateDebreeRing(HITFLOOR,HITPOS,30*SIZE,VT(6,6,6)*SIZE,5)
1451
					CreateFlyingDebree(HITFLOOR,CF(HITPOS),8,VT(4,4,4)*SIZE,5,175)
1452
				end
1453
				IMPACT = true
1454
				break
1455
			end
1456
		end
1457
		if IMPACT == true then
1458
			WACKYEFFECT({EffectType = "Sphere", Size = CENTER.Size, Size2 = VT(10,10,10)*4*SIZE, Transparency = 0, Transparency2 = 1, CFrame = CF(CENTER.Position), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = 130972023, SoundPitch = 1, SoundVolume = 5})
1459
			WACKYEFFECT({EffectType = "Sphere", Size = CENTER.Size, Size2 = VT(10,10,10)*3*SIZE, Transparency = 0, Transparency2 = 1, CFrame = CF(CENTER.Position), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = 201858144, SoundPitch = 1, SoundVolume = 5})
1460
			WACKYEFFECT({EffectType = "Sphere", Size = VT(SIZE*20,0,SIZE*20), Size2 = VT(0,SIZE*750,0), Transparency = 0, Transparency2 = 1, CFrame = CF(CENTER.Position), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = 130972023, SoundPitch = 1, SoundVolume = 5})
1461
			ApplyAoE(CENTER.Position,30*25)
1462
		end
1463
		METEOR:remove()
1464
	end))
1465
end
1466
1467
1468
1469
1470
1471
function SpectralBanishing()
1472
	ATTACK = true
1473
	Rooted = false
1474
	chatfunc("Your time has ended...", 20)
1475
	for i = 0, 5, 0.1 / Animation_Speed do
1476
		Swait()
1477
		RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(45)), 0.25 / Animation_Speed)
1478
		Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(-45 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(-45)), 0.25 / Animation_Speed)
1479
		RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(180), RAD(0), RAD(0)) * ANGLES(RAD(0), RAD(45), RAD(0)) * RIGHTSHOULDERC0, 0.25 / Animation_Speed)
1480
		LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.6, 0) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, 0.25 / Animation_Speed)
1481
		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.25 / Animation_Speed)
1482
		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.25 / Animation_Speed)
1483
        end
1484
        local BEAM = CreatePart(3, Effects, "Neon", 0, 1, "Really red", "Lazer", VT(0,0,0))
1485
        local LOOP = CreateSound("289315275", Gun1, 5, 1.2, false)
1486
        local MSH = IT("CylinderMesh",BEAM)
1487
        local STARTPOS = Gun1.CFrame.p
1488
        local ENDHIT,ENDPOS = CastProperRay(STARTPOS,Mouse.Hit.p,650,Character)
1489
        local DISTANCE = (STARTPOS - ENDPOS).Magnitude
1490
        BEAM.CFrame = CF(STARTPOS,ENDPOS)
1491
        BEAM.Size = VT(1,DISTANCE,1)
1492
        WACKYEFFECT({Time = 125, EffectType = "Sphere", Size = VT(55,55,55), Size2 = VT(44,44,44), Transparency = 0, Transparency2 = 1, CFrame = Gun1.CFrame, MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = 238353911, SoundPitch = 0.6, SoundVolume = 6})
1493
        I = I + 1
1494
        if I <= 10 then
1495
            BEAM.Transparency = BEAM.Transparency - 0.1
1496
        end
1497
        Swait(10)
1498
        Swait(1)
1499
        SpawnChaos(Mouse.Hit.p,100/100)
1500
        Swait(1)
1501
        Swait(1)
1502
        SpawnChaos(Mouse.Hit.p,100/100)
1503
        Swait(1)
1504
        Swait(1)
1505
        SpawnChaos(Mouse.Hit.p,100/100)
1506
        Swait(1)
1507
        Swait(1)
1508
        SpawnChaos(Mouse.Hit.p,100/100)
1509
        Swait(1)
1510
        SpawnChaos(Mouse.Hit.p,100/100)
1511
        SpawnChaos(Mouse.Hit.p,100/100)
1512
        SpawnChaos(Mouse.Hit.p,100/100)
1513
        SpawnChaos(Mouse.Hit.p,100/100)
1514
        SpawnChaos(Mouse.Hit.p,100/100)
1515
        SpawnChaos(Mouse.Hit.p,100/100)
1516
        for i = 0, 2, 0.1 / Animation_Speed do
1517
		Swait()
1518
		RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(45)), 0.25 / Animation_Speed)
1519
		Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(-45 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(-45)), 0.25 / Animation_Speed)
1520
		RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(195), RAD(0), RAD(0)) * ANGLES(RAD(0), RAD(45), RAD(0)) * RIGHTSHOULDERC0, 0.25 / Animation_Speed)
1521
		LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.6, 0) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, 0.25 / Animation_Speed)
1522
		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.25 / Animation_Speed)
1523
		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.25 / Animation_Speed)
1524
        end
1525
        BEAM:remove()
1526
        ATTACK = false
1527
	Rooted = false
1528
end
1529
1530
1531
--//=================================\\
1532
--||	  ASSIGN THINGS TO KEYS
1533
--\\=================================//
1534
1535
function MouseDown(Mouse)
1536
	if ATTACK == false then
1537
	end
1538
end
1539
1540
function MouseUp(Mouse)
1541
HOLD = false
1542
end
1543
1544
function KeyDown(Key)
1545
	KEYHOLD = true
1546
	if Key == "z" and ATTACK == false then
1547
		Banisher_Bullet()
1548
	end
1549
1550
	if Key == "b" and ATTACK == false then
1551
                SpectralBanishing()
1552
	end
1553
1554
	if Key == "c" and ATTACK == false then
1555
                Teleport()
1556
	end
1557
1558
	if Key == "v" and ATTACK == false then
1559
                BanishingRampage()
1560
	end
1561
1562
	if Key == "x" and ATTACK == false then
1563
                BanishLaser()
1564
	end
1565
end
1566
1567
function KeyUp(Key)
1568
	KEYHOLD = false
1569
end
1570
1571
	Mouse.Button1Down:connect(function(NEWKEY)
1572
		MouseDown(NEWKEY)
1573
	end)
1574
	Mouse.Button1Up:connect(function(NEWKEY)
1575
		MouseUp(NEWKEY)
1576
	end)
1577
	Mouse.KeyDown:connect(function(NEWKEY)
1578
		KeyDown(NEWKEY)
1579
	end)
1580
	Mouse.KeyUp:connect(function(NEWKEY)
1581
		KeyUp(NEWKEY)
1582
	end)
1583
1584
--//=================================\\
1585
--\\=================================//
1586
1587
1588
function unanchor()
1589
	if UNANCHOR == true then
1590
		g = Character:GetChildren()
1591
		for i = 1, #g do
1592
			if g[i].ClassName == "Part" then
1593
				g[i].Anchored = false
1594
			end
1595
		end
1596
	end
1597
end
1598
1599
1600
--//=================================\\
1601
--||	WRAP THE WHOLE SCRIPT UP
1602
--\\=================================//
1603
1604
Humanoid.Changed:connect(function(Jump)
1605
	if Jump == "Jump" and (Disable_Jump == true) then
1606
		Humanoid.Jump = false
1607
	end
1608
end)
1609
1610
local CONNECT = nil
1611
1612
while true do
1613
	Swait()
1614
	ANIMATE.Parent = nil
1615
	if Character:FindFirstChildOfClass("Humanoid") == nil then
1616
		Humanoid = IT("Humanoid",Character)
1617
	end
1618
	for _,v in next, Humanoid:GetPlayingAnimationTracks() do
1619
	    v:Stop();
1620
	end
1621
	SINE = SINE + CHANGE
1622
	local TORSOVELOCITY = (RootPart.Velocity * VT(1, 0, 1)).magnitude
1623
	local TORSOVERTICALVELOCITY = RootPart.Velocity.y
1624
	local LV = Torso.CFrame:pointToObjectSpace(Torso.Velocity - Torso.Position)
1625
	local HITFLOOR = Raycast(RootPart.Position, CF(RootPart.Position, RootPart.Position + VT(0, -1, 0)).lookVector, 4 * Player_Size, Character)
1626
	local WALKSPEEDVALUE = 6 / (Humanoid.WalkSpeed / 16)
1627
	if ANIM == "Walk" and TORSOVELOCITY > 1 then
1628
		RootJoint.C1 = Clerp(RootJoint.C1, ROOTC0 * CF(0, 0, -0.1 * COS(SINE / (WALKSPEEDVALUE / 2)) * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
1629
		Neck.C1 = Clerp(Neck.C1, CF(0 * Player_Size, -0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-90), RAD(0), RAD(180)) * ANGLES(RAD(2.5 * SIN(SINE / (WALKSPEEDVALUE / 2))), RAD(0), RAD(0)), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
1630
		RightHip.C1 = Clerp(RightHip.C1, CF(0.5 * Player_Size, 0.875 * Player_Size - 0.125 * SIN(SINE / WALKSPEEDVALUE) * Player_Size, -0.125 * COS(SINE / WALKSPEEDVALUE) * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(60 * COS(SINE / WALKSPEEDVALUE))), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
1631
		LeftHip.C1 = Clerp(LeftHip.C1, CF(-0.5 * Player_Size, 0.875 * Player_Size + 0.125 * SIN(SINE / WALKSPEEDVALUE) * Player_Size, 0.125 * COS(SINE / WALKSPEEDVALUE) * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(60 * COS(SINE / WALKSPEEDVALUE))), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
1632
	elseif ANIM ~= "Walk" or TORSOVELOCITY < 1 then
1633
		RootJoint.C1 = Clerp(RootJoint.C1, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
1634
		Neck.C1 = Clerp(Neck.C1, CF(0 * Player_Size, -0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-90), RAD(0), RAD(180)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
1635
		RightHip.C1 = Clerp(RightHip.C1, CF(0.5 * Player_Size, 1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
1636
		LeftHip.C1 = Clerp(LeftHip.C1, CF(-0.5 * Player_Size, 1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
1637
	end
1638
	if TORSOVERTICALVELOCITY > 1 and HITFLOOR == nil then
1639
		ANIM = "Jump"
1640
		if ATTACK == false then
1641
			RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
1642
			Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0 * Player_Size, 0) * ANGLES(RAD(-20), RAD(0), RAD(0)), 0.2 / Animation_Speed)
1643
			RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(25), RAD(0), RAD(25)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
1644
			LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.6, 0) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
1645
			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)
1646
			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)
1647
		end
1648
	elseif TORSOVERTICALVELOCITY < -1 and HITFLOOR == nil then
1649
		ANIM = "Fall"
1650
		if ATTACK == false then
1651
			RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
1652
			Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(20), RAD(0), RAD(0)), 0.2 / Animation_Speed)
1653
			RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(55), RAD(0), RAD(55)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
1654
			LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.6, 0) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
1655
			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)
1656
			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)
1657
		end
1658
	elseif TORSOVELOCITY < 1 and HITFLOOR ~= nil then
1659
		ANIM = "Idle"
1660
		if ATTACK == false then
1661
			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)
1662
			Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed)
1663
			RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(45), RAD(0), RAD(45)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
1664
			LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.6, 0) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
1665
			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)
1666
			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)
1667
		end
1668
	elseif TORSOVELOCITY > 1 and HITFLOOR ~= nil then
1669
		ANIM = "Walk"
1670
		WALK = WALK + 1 / Animation_Speed
1671
		if WALK >= 15 - 5 * (Humanoid.WalkSpeed / 16 / Player_Size) then
1672
			WALK = 0
1673
			if WALKINGANIM == true then
1674
				WALKINGANIM = false
1675
			elseif WALKINGANIM == false then
1676
				WALKINGANIM = true
1677
			end
1678
		end
1679
		if ATTACK == false then
1680
			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)
1681
			Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed)
1682
			RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(45), RAD(0), RAD(45)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
1683
			LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.6, 0) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
1684
			RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
1685
			LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
1686
		end
1687
	end
1688
	unanchor()
1689
	Humanoid.MaxHealth = "inf"
1690
	Humanoid.Health = "inf"
1691
	if Rooted == false then
1692
		Disable_Jump = false
1693
		Humanoid.WalkSpeed = Speed
1694
	elseif Rooted == true then
1695
		Disable_Jump = true
1696
		Humanoid.WalkSpeed = 0
1697
	end
1698
        if MRANDOM(1,25) == 1 then
1699
                        Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(MRANDOM(-25,25)), RAD(MRANDOM(-25,25)), RAD(MRANDOM(-25,25))), 1)
1700
        end
1701
	sick.Parent = Torso
1702
	sick:resume()
1703
	sick.Volume = 1.25
1704
	sick.Pitch = 1.01
1705
	sick.SoundId = "rbxassetid://1140442110"
1706
	sick.Name = "BanishV3Music"
1707
        SOULTEXT.Text = "Souls : ["..SOULWELL.."]"
1708
		if VALUE1 == false then
1709
			SKILL3TEXT.Text = "[C] Soul Rage"
1710
		else
1711
			SKILL3TEXT.Text = "["..VALUE2.."] Soul Rage"
1712
		end
1713
end
1714
1715
--//=================================\\
1716
--\\=================================//
1717
1718
1719
1720
1721
1722
--//====================================================\\--
1723
--||			  		 END OF SCRIPT
1724
--\\====================================================//--