View difference between Paste ID: uyaUkpRM and Y32p2qut
SHOW: | | - or go back to the newest paste.
1-
script.Name = "Timeless Deo"
1+
local Player = game:GetService("Players").iComboPE   --<=== Replace With Your Name
2
3
4
local Mouse,mouse,UserInputService,ContextActionService
5
do
6
	script.Parent = Player.Character
7-
--Fake event to make stuff like Mouse.KeyDown work
7+
	local CAS = {Actions={}}
8-
	local function fakeEvent()
8+
	local Event = Instance.new("RemoteEvent")
9-
		local t = {_fakeEvent=true,Connect=function(self,f)self.Function=f end}
9+
	Event.Name = "UserInput_Event"
10
	Event.Parent = Player.Character
11
	local fakeEvent = function()
12
		local t = {_fakeEvent=true}
13
		t.Connect = function(self,f)self.Function=f end
14-
Player = game:GetService("Players").LukasPoohBear1
14+
15
		return t
16
	end
17
    local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()}
18
	local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
19
	function CAS:BindAction(name,fun,touch,...)
20-
Mouse = Player:GetMouse()
20+
		CAS.Actions[name] = {Name=name,Function=fun,Keys={...}}
21
	end
22
	function CAS:UnbindAction(name)
23
		CAS.Actions[name] = nil
24
	end
25
	local function te(self,ev,...)
26
		local t = m[ev]
27
		if t and t._fakeEvent and t.Function then
28
			t.Function(...)
29
		end
30
	end
31
	m.TrigEvent = te
32
	UIS.TrigEvent = te
33
	Event.OnServerEvent:Connect(function(plr,io)
34
	    if plr~=Player then return end
35
		if io.isMouse then
36
			m.Target = io.Target
37
			m.Hit = io.Hit
38
		elseif io.UserInputType == Enum.UserInputType.MouseButton1 then
39
	        if io.UserInputState == Enum.UserInputState.Begin then
40
				m:TrigEvent("Button1Down")
41
			else
42
				m:TrigEvent("Button1Up")
43
			end
44
		else
45
			for n,t in pairs(CAS.Actions) do
46
				for _,k in pairs(t.Keys) do
47
					if k==io.KeyCode then
48
						t.Function(t.Name,io.UserInputState,io)
49
					end
50
				end
51
			end
52
	        if io.UserInputState == Enum.UserInputState.Begin then
53
	            m:TrigEvent("KeyDown",io.KeyCode.Name:lower())
54-
local CLOCKLOOP = 0
54+
				UIS:TrigEvent("InputBegan",io,false)
55-
local CLOCKSPEED = 40
55+
56-
local CLOCKTARGET = nil
56+
				m:TrigEvent("KeyUp",io.KeyCode.Name:lower())
57
				UIS:TrigEvent("InputEnded",io,false)
58
	        end
59
	    end
60
	end)
61
	Mouse,mouse,UserInputService,ContextActionService = m,m,UIS,CAS
62
end
63-
touchCounter = 0
63+
print("Loading Request...")
64
---------Replace All "LocalPlayer" With Your Name.
65
--Remove "Mouse =" or "local mouse =" at the start.
66
--Replace Kermat161 At The Top Of The Script With You Name.
67
-----------------------------Script In The Line's.
68
69
--Original script created by shackluster
70
--Edit by iComboPE
71
script:ClearAllChildren()
72
wait(0.2)
73
74
local kickedtable = {}
75
local Kick_Reason = "skid!"
76
Player = game:GetService("Players").iComboPE
77
PlayerGui = Player.PlayerGui
78
Cam = workspace.CurrentCamera
79
Backpack = Player.Backpack
80
Character = Player.Character
81
Humanoid = Character.Humanoid
82
RootPart = Character["HumanoidRootPart"]
83
Torso = Character["Torso"]
84
Head = Character["Head"]
85
RightArm = Character["Right Arm"]
86
LeftArm = Character["Left Arm"]
87
RightLeg = Character["Right Leg"]
88
LeftLeg = Character["Left Leg"]
89
RootJoint = RootPart["RootJoint"]
90
Neck = Torso["Neck"]
91
RightShoulder = Torso["Right Shoulder"]
92
LeftShoulder = Torso["Left Shoulder"]
93
RightHip = Torso["Right Hip"]
94
LeftHip = Torso["Left Hip"]
95
local TIME = 0
96
local sick = Instance.new("Sound",Torso)
97
98
IT = Instance.new
99
CF = CFrame.new
100
VT = Vector3.new
101
RAD = math.rad
102
C3 = Color3.new
103
UD2 = UDim2.new
104
BRICKC = BrickColor.new
105
ANGLES = CFrame.Angles
106
EULER = CFrame.fromEulerAnglesXYZ
107
COS = math.cos
108
ACOS = math.acos
109
SIN = math.sin
110
ASIN = math.asin
111
ABS = math.abs
112
MRANDOM = math.random
113
FLOOR = math.floor
114
Player_Size = 1
115
local SIZE = 1
116
117
--//=================================\\
118
--|| 	      USEFUL VALUES
119
--\\=================================//
120
121
local cR=255
122
local cG=0
123
local cB=0
124
local flg5=1 local omgidk=1
125
local add=10.5
126
game:GetService('RunService').Heartbeat:connect(function()
127
    if omgidk>10000 then omgidk=0 end
128
    omgidk=omgidk+1
129
    if cR>=255 then flg5=1 end
130
    if cG>=255 then flg5=2 end
131
    if cB>=255 then flg5=3 end
132
    if flg5==1 then cR=cR-add cG=cG+add end
133
    if flg5==2 then cG=cG-add cB=cB+add end
134
    if flg5==3 then cB=cB-add cR=cR+add end
135
end)
136
137
Animation_Speed = 3
138
local FORCERESET = false
139
Frame_Speed = 1 / 60 -- (1 / 30) OR (1 / 60)
140
local Speed = 35
141
local ROOTC0 = CF(0, 0, 0) * ANGLES(RAD(-90), RAD(0), RAD(180))
142
local NECKC0 = CF(0, 1, 0) * ANGLES(RAD(-90), RAD(0), RAD(180))
143
local RIGHTSHOULDERC0 = CF(-0.5, 0, 0) * ANGLES(RAD(0), RAD(90), RAD(0))
144
local LEFTSHOULDERC0 = CF(0.5, 0, 0) * ANGLES(RAD(0), RAD(-90), RAD(0))
145
local DAMAGEMULTIPLIER = 1
146
local ANIM = "Idle"
147
local ATTACK = false
148
local EQUIPPED = false
149
local HOLD = false
150
local COMBO = 1
151
local Rooted = false
152
local SINE = 0
153
local KEYHOLD = false
154
local CHANGE = 2 / Animation_Speed
155
local WALKINGANIM = false
156
local VALUE1 = false
157
local VALUE2 = false
158
local ROBLOXIDLEANIMATION = IT("Animation")
159
ROBLOXIDLEANIMATION.Name = "Roblox Idle Animation"
160
ROBLOXIDLEANIMATION.AnimationId = "http://www.roblox.com/asset/?id=180435571"
161
--ROBLOXIDLEANIMATION.Parent = Humanoid
162
local WEAPONGUI = IT("ScreenGui", PlayerGui)
163
WEAPONGUI.Name = "BanishV3Gui"
164
local Weapon = IT("Model")
165
Weapon.Name = "Adds"
166
local Effects = IT("Folder", Weapon)
167
Effects.Name = "Effects"
168
local ANIMATOR = Humanoid.Animator
169
local ANIMATE = Character:FindFirstChild("Animate")
170
local UNANCHOR = true
171
local TOBANISH = {}
172
script.Parent = PlayerGui
173
local MODE = "GoodCop"
174
local Weapon2 = IT("Model")
175
Weapon2.Name = "Adds2"
176
local Effects = IT("Folder", Weapon2)
177
Effects.Name = "Effects"
178
local SINE = 0
179
180
warn('[Z] Kick Shot')
181
warn('[X] Lift Players')
182
warn('[V] Useless beam')
183
warn('SWITCH CONTROLS')
184
warn('------------------------------------')
185
warn('[F] Switch Modes')
186
warn('[Z] Banisher Bullet')
187
warn('[C] Kick Beam')
188
189
--//=================================\\
190
--\\=================================//
191
192
193
--//=================================\\
194
--|| SAZERENOS' ARTIFICIAL HEARTBEAT
195
--\\=================================//
196
197
ArtificialHB = Instance.new("BindableEvent", script)
198
ArtificialHB.Name = "ArtificialHB"
199
200
script:WaitForChild("ArtificialHB")
201
202
frame = Frame_Speed
203
tf = 0
204
allowframeloss = false
205
tossremainder = false
206
lastframe = tick()
207
script.ArtificialHB:Fire()
208
209
game:GetService("RunService").Heartbeat:connect(function(s, p)
210
	tf = tf + s
211
	if tf >= frame then
212
		if allowframeloss then
213
			script.ArtificialHB:Fire()
214
			lastframe = tick()
215
		else
216
			for i = 1, math.floor(tf / frame) do
217
				script.ArtificialHB:Fire()
218
			end
219
		lastframe = tick()
220
		end
221
		if tossremainder then
222
			tf = 0
223
		else
224
			tf = tf - frame * math.floor(tf / frame)
225
		end
226
	end
227
end)
228
229
--//=================================\\
230
--\\=================================//
231
232
233
function ApplyAoE3(POSITION,RANGE,MINDMG,MAXDMG,FLING,INSTAKILL)
234
    local CHILDREN = workspace:GetDescendants()
235
    for index, CHILD in pairs(CHILDREN) do
236
        if CHILD.ClassName == "Model" and CHILD ~= Character and CHILD.Parent ~= Effects then
237
            local HUM = CHILD:FindFirstChildOfClass("Humanoid")
238
            if HUM then
239
                local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso")
240
                if TORSO then
241
                    if (TORSO.Position - POSITION).Magnitude <= RANGE then
242
                        if INSTAKILL == true then
243
                            CHILD:BreakJoints()
244
                        else
245
                            local DMG = MRANDOM(MINDMG,MAXDMG)
246
                            ApplyDamage(HUM,DMG,TORSO)
247
                        end
248
                        if FLING > 0 then
249
                            for _, c in pairs(CHILD:GetChildren()) do
250
                                if c:IsA("BasePart") then
251
                                    local bv = Instance.new("BodyVelocity")
252
                                    bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
253
                                    bv.velocity = CF(POSITION,TORSO.Position).lookVector*FLING
254
                                    bv.Parent = c
255
                                    Debris:AddItem(bv,0.05)
256
                                end
257
                            end
258
                        end
259
                    end
260
                end
261
            end
262
        end
263
    end
264
end
265
 
266
267
268
--//=================================\\
269
--|| 	      SOME FUNCTIONS
270
--\\=================================//
271
272
function Raycast(POSITION, DIRECTION, RANGE, IGNOREDECENDANTS)
273
	return workspace:FindPartOnRay(Ray.new(POSITION, DIRECTION.unit * RANGE), IGNOREDECENDANTS)
274
end
275
276
function PositiveAngle(NUMBER)
277
	if NUMBER >= 0 then
278
		NUMBER = 0
279
	end
280
	return NUMBER
281
end
282
283
function NegativeAngle(NUMBER)
284
	if NUMBER <= 0 then
285
		NUMBER = 0
286
	end
287
	return NUMBER
288
end
289
290
function Swait(NUMBER)
291
	if NUMBER == 0 or NUMBER == nil then
292
		ArtificialHB.Event:wait()
293
	else
294
		for i = 1, NUMBER do
295
			ArtificialHB.Event:wait()
296
		end
297
	end
298
end
299
300
function Slice(KIND, SIZE, WAIT, CFRAME, COLOR, GROW)
301
	local wave = CreatePart(3, Effects, "Neon", 0, 0.5, BRICKC(COLOR), "Effect", VT(1, 1, 1), true)
302
	local mesh
303
	if KIND == "Base" then
304
		mesh = CreateMesh("SpecialMesh", wave, "FileMesh", "448386996", "", VT(0, SIZE / 10, SIZE / 10), VT(0, 0, 0))
305
	elseif KIND == "Thin" then
306
		mesh = CreateMesh("SpecialMesh", wave, "FileMesh", "662586858", "", VT(SIZE / 10, 0, SIZE / 10), VT(0, 0, 0))
307
	elseif KIND == "Round" then
308
		mesh = CreateMesh("SpecialMesh", wave, "FileMesh", "662585058", "", VT(SIZE / 10, 0, SIZE / 10), VT(0, 0, 0))
309
	end
310
	wave.CFrame = CFRAME
311
	coroutine.resume(coroutine.create(function(PART)
312
		for i = 1, WAIT do
313
			Swait()
314
			mesh.Scale = mesh.Scale + GROW / 10
315
			wave.Transparency = wave.Transparency + 0.5 / WAIT
316
			if wave.Transparency > 0.99 then
317
				wave:remove()
318
			end
319
		end
320
	end))
321
end
322
323
function CreateMesh(MESH, PARENT, MESHTYPE, MESHID, TEXTUREID, SCALE, OFFSET)
324
	local NEWMESH = IT(MESH)
325
	if MESH == "SpecialMesh" then
326
		NEWMESH.MeshType = MESHTYPE
327
		if MESHID ~= "nil" and MESHID ~= "" then
328
			NEWMESH.MeshId = "http://www.roblox.com/asset/?id="..MESHID
329
		end
330
		if TEXTUREID ~= "nil" and TEXTUREID ~= "" then
331
			NEWMESH.TextureId = "http://www.roblox.com/asset/?id="..TEXTUREID
332
		end
333
	end
334
	NEWMESH.Offset = OFFSET or VT(0, 0, 0)
335
	NEWMESH.Scale = SCALE
336
	NEWMESH.Parent = PARENT
337
	return NEWMESH
338
end
339
340
function CreatePart(FORMFACTOR, PARENT, MATERIAL, REFLECTANCE, TRANSPARENCY, BRICKCOLOR, NAME, SIZE, ANCHOR)
341
	local NEWPART = IT("Part")
342
	NEWPART.formFactor = FORMFACTOR
343
	NEWPART.Reflectance = REFLECTANCE
344
	NEWPART.Transparency = TRANSPARENCY
345
	NEWPART.CanCollide = false
346
	NEWPART.Locked = true
347
	NEWPART.Anchored = true
348
	if ANCHOR == false then
349
		NEWPART.Anchored = false
350
	end
351
	NEWPART.BrickColor = BRICKC(tostring(BRICKCOLOR))
352
	NEWPART.Name = NAME
353
	NEWPART.Size = SIZE
354
	NEWPART.Position = Torso.Position
355
	NEWPART.Material = MATERIAL
356
	NEWPART:BreakJoints()
357
	NEWPART.Parent = PARENT
358
	return NEWPART
359
end
360
361
	local function weldBetween(a, b)
362
	    local weldd = Instance.new("ManualWeld")
363
	    weldd.Part0 = a
364
	    weldd.Part1 = b
365
	    weldd.C0 = CFrame.new()
366
	    weldd.C1 = b.CFrame:inverse() * a.CFrame
367
	    weldd.Parent = a
368
	    return weldd
369
	end
370
371
372
function QuaternionFromCFrame(cf)
373
	local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
374
	local trace = m00 + m11 + m22
375
	if trace > 0 then 
376
		local s = math.sqrt(1 + trace)
377
		local recip = 0.5 / s
378
		return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5
379
	else
380
		local i = 0
381
		if m11 > m00 then
382
			i = 1
383
		end
384
		if m22 > (i == 0 and m00 or m11) then
385
			i = 2
386
		end
387
		if i == 0 then
388
			local s = math.sqrt(m00 - m11 - m22 + 1)
389
			local recip = 0.5 / s
390
			return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip
391
		elseif i == 1 then
392
			local s = math.sqrt(m11 - m22 - m00 + 1)
393
			local recip = 0.5 / s
394
			return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip
395
		elseif i == 2 then
396
			local s = math.sqrt(m22 - m00 - m11 + 1)
397
			local recip = 0.5 / s return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip
398
		end
399
	end
400
end
401
 
402
function QuaternionToCFrame(px, py, pz, x, y, z, w)
403
	local xs, ys, zs = x + x, y + y, z + z
404
	local wx, wy, wz = w * xs, w * ys, w * zs
405
	local xx = x * xs
406
	local xy = x * ys
407
	local xz = x * zs
408
	local yy = y * ys
409
	local yz = y * zs
410
	local zz = z * zs
411
	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))
412
end
413
 
414
function QuaternionSlerp(a, b, t)
415
	local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4]
416
	local startInterp, finishInterp;
417
	if cosTheta >= 0.0001 then
418
		if (1 - cosTheta) > 0.0001 then
419
			local theta = ACOS(cosTheta)
420
			local invSinTheta = 1 / SIN(theta)
421
			startInterp = SIN((1 - t) * theta) * invSinTheta
422
			finishInterp = SIN(t * theta) * invSinTheta
423
		else
424
			startInterp = 1 - t
425
			finishInterp = t
426
		end
427
	else
428
		if (1 + cosTheta) > 0.0001 then
429
			local theta = ACOS(-cosTheta)
430
			local invSinTheta = 1 / SIN(theta)
431
			startInterp = SIN((t - 1) * theta) * invSinTheta
432
			finishInterp = SIN(t * theta) * invSinTheta
433
		else
434
			startInterp = t - 1
435
			finishInterp = t
436
		end
437
	end
438
	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
439
end
440
441
function Clerp(a, b, t)
442
	local qa = {QuaternionFromCFrame(a)}
443
	local qb = {QuaternionFromCFrame(b)}
444
	local ax, ay, az = a.x, a.y, a.z
445
	local bx, by, bz = b.x, b.y, b.z
446
	local _t = 1 - t
447
	return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t))
448
end
449
450
function CreateFrame(PARENT, TRANSPARENCY, BORDERSIZEPIXEL, POSITION, SIZE, COLOR, BORDERCOLOR, NAME)
451
	local frame = IT("Frame")
452
	frame.BackgroundTransparency = TRANSPARENCY
453
	frame.BorderSizePixel = BORDERSIZEPIXEL
454
	frame.Position = POSITION
455
	frame.Size = SIZE
456
	frame.BackgroundColor3 = COLOR
457
	frame.BorderColor3 = BORDERCOLOR
458
	frame.Name = NAME
459
	frame.Parent = PARENT
460
	return frame
461
end
462
463
function CreateLabel(PARENT, TEXT, TEXTCOLOR, TEXTFONTSIZE, TEXTFONT, TRANSPARENCY, BORDERSIZEPIXEL, STROKETRANSPARENCY, NAME)
464
	local label = IT("TextLabel")
465
	label.BackgroundTransparency = 1
466
	label.Size = UD2(1, 0, 1, 0)
467
	label.Position = UD2(0, 0, 0, 0)
468
	label.TextColor3 = TEXTCOLOR
469
	label.TextStrokeTransparency = STROKETRANSPARENCY
470
	label.TextTransparency = TRANSPARENCY
471
	label.FontSize = TEXTFONTSIZE
472
	label.Font = TEXTFONT
473
	label.BorderSizePixel = BORDERSIZEPIXEL
474
	label.TextScaled = false
475
	label.Text = TEXT
476
	label.Name = NAME
477
	label.Parent = PARENT
478
	return label
479
end
480
481
function NoOutlines(PART)
482
	PART.TopSurface, PART.BottomSurface, PART.LeftSurface, PART.RightSurface, PART.FrontSurface, PART.BackSurface = 10, 10, 10, 10, 10, 10
483
end
484
485
function CreateWeldOrSnapOrMotor(TYPE, PARENT, PART0, PART1, C0, C1)
486
	local NEWWELD = IT(TYPE)
487
	NEWWELD.Part0 = PART0
488
	NEWWELD.Part1 = PART1
489
	NEWWELD.C0 = C0
490
	NEWWELD.C1 = C1
491
	NEWWELD.Parent = PARENT
492
	return NEWWELD
493
end
494
495
function SpawnTrail2(FROM,TO,BIG)
496
local TRAIL = CreatePart(3, Effects, "Neon", 0, 0, "Really red", "Trail", VT(10,10,10))
497
    MakeForm(TRAIL,"Cyl")
498
local cR=255
499
local cG=0
500
local cB=0
501
local flg5=1 local omgidk=1
502
local add=15
503
game:GetService("RunService"):BindToRenderStep("Ghost",1,function()
504
    if omgidk>10000 then omgidk=0 end
505
    omgidk=omgidk+1
506
    if cR>=255 then flg5=1 end
507
    if cG>=255 then flg5=2 end
508
    if cB>=255 then flg5=3 end
509
    if flg5==1 then cR=cR-add cG=cG+add end
510
    if flg5==2 then cG=cG-add cB=cB+add end
511
    if flg5==3 then cB=cB-add cR=cR+add end
512
    color=Color3.fromRGB(cR,cG,cB)
513
    TRAIL.Color = color
514
end)
515
    local DIST = (FROM - TO).Magnitude
516
    if BIG == true then
517
        TRAIL.Size = VT(5,DIST,5)
518
    else
519
        TRAIL.Size = VT(5,DIST,5)
520
    end
521
    TRAIL.CFrame = CF(FROM, TO) * CF(0, 0, -DIST/2) * ANGLES(RAD(90),RAD(0),RAD(0))
522
    coroutine.resume(coroutine.create(function()
523
        for i = 1, 55 do
524
            Swait()
525
            TRAIL.Transparency = TRAIL.Transparency + 0.01
526
        end
527
        TRAIL:remove()
528
    end))
529
end
530
531
532
local S = IT("Sound")
533
function CreateSound(ID, PARENT, VOLUME, PITCH, DOESLOOP)
534
	local NEWSOUND = nil
535
	coroutine.resume(coroutine.create(function()
536
		NEWSOUND = S:Clone()
537
		NEWSOUND.Parent = PARENT
538
		NEWSOUND.Volume = VOLUME
539
		NEWSOUND.Pitch = PITCH
540-
	local TRAIL = CreatePart(3, Effects, "Neon", 0, 0.5, "Really red", "Trail", VT(0,0,0))
540+
541-
	MakeForm(TRAIL,"Cyl")
541+
542-
	local DIST = (FROM - TO).Magnitude
542+
543-
	if BIG == true then
543+
544-
		TRAIL.Size = VT(0.5,DIST,0.5)
544+
545
			repeat wait(1) until NEWSOUND.Playing == false or NEWSOUND.Parent ~= PARENT
546-
		TRAIL.Size = VT(0.25,DIST,0.25)
546+
547
		end
548-
	TRAIL.CFrame = CF(FROM, TO) * CF(0, 0, -DIST/2) * ANGLES(RAD(90),RAD(0),RAD(0))
548+
549
	return NEWSOUND
550-
		for i = 1, 5 do
550+
551
552-
			TRAIL.Transparency = TRAIL.Transparency + 0.1
552+
553
    local CHILDREN = workspace:GetDescendants()
554-
		TRAIL:remove()
554+
555
        if CHILD.ClassName == "Model" and CHILD ~= Character and CHILD.Parent ~= Effects then
556
            local HUM = CHILD:FindFirstChildOfClass("Humanoid")
557
            if HUM then
558
                local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso")
559
                if TORSO then
560
                    if (TORSO.Position - POSITION).Magnitude <= RANGE then
561
                        if INSTAKILL == true then
562
                            CHILD:BreakJoints()
563
                        else
564
                            local DMG = MRANDOM(MINDMG,MAXDMG)
565
                            ApplyDamage(HUM,DMG,TORSO)
566
                        end
567
                        if FLING > 0 then
568
                            for _, c in pairs(CHILD:GetChildren()) do
569
                                if c:IsA("BasePart") then
570
                                    local bv = Instance.new("BodyVelocity")
571
                                    bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
572
                                    bv.velocity = CF(POSITION,TORSO.Position).lookVector*FLING
573
                                    bv.Parent = c
574
                                    Debris:AddItem(bv,0.05)
575
                                end
576
                            end
577
                        end
578
                    end
579
                end
580
            end
581
        end
582
    end
583
end
584
585
function CFrameFromTopBack(at, top, back)
586
	local right = top:Cross(back)
587
	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)
588
end
589
590
--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})
591
function WACKYEFFECT(Table)
592
	local TYPE = (Table.EffectType or "Sphere")
593
	local SIZE = (Table.Size or VT(1,1,1))
594
	local ENDSIZE = (Table.Size2 or VT(0,0,0))
595
	local TRANSPARENCY = (Table.Transparency or 0)
596
	local ENDTRANSPARENCY = (Table.Transparency2 or 1)
597
	local CFRAME = (Table.CFrame or Torso.CFrame)
598
	local MOVEDIRECTION = (Table.MoveToPos or nil)
599
	local ROTATION1 = (Table.RotationX or 0)
600
	local ROTATION2 = (Table.RotationY or 0)
601-
	tecks2.Text = "BANNED"
601+
602
	local MATERIAL = (Table.Material or "Neon")
603
	local COLOR = (Table.Color or C3(1,1,1))
604
	local TIME = (Table.Time or 45)
605
	local SOUNDID = (Table.SoundID or nil)
606
	local SOUNDPITCH = (Table.SoundPitch or nil)
607
	local SOUNDVOLUME = (Table.SoundVolume or nil)
608
	coroutine.resume(coroutine.create(function()
609
		local PLAYSSOUND = false
610
		local SOUND = nil
611
		local EFFECT = CreatePart(3, Effects, MATERIAL, 0, TRANSPARENCY, BRICKC("Pearl"), "Effect", VT(1,1,1), true)
612
		if SOUNDID ~= nil and SOUNDPITCH ~= nil and SOUNDVOLUME ~= nil then
613
			PLAYSSOUND = true
614
			SOUND = CreateSound(SOUNDID, EFFECT, SOUNDVOLUME, SOUNDPITCH, false)
615
		end
616
		EFFECT.Color = COLOR
617
		local MSH = nil
618
		if TYPE == "Sphere" then
619
			MSH = CreateMesh("SpecialMesh", EFFECT, "Sphere", "", "", SIZE, VT(0,0,0))
620
		elseif TYPE == "Block" then
621
			MSH = IT("BlockMesh",EFFECT)
622
			MSH.Scale = VT(SIZE.X,SIZE.X,SIZE.X)
623
		elseif TYPE == "Wave" then
624
			MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "20329976", "", SIZE, VT(0,0,-SIZE.X/8))
625
		elseif TYPE == "Ring" then
626
			MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "559831844", "", VT(SIZE.X,SIZE.X,0.1), VT(0,0,0))
627
		elseif TYPE == "Slash" then
628
			MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662586858", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0))
629
		elseif TYPE == "Round Slash" then
630
			MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662585058", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0))
631
		elseif TYPE == "Swirl" then
632
			MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "1051557", "", SIZE, VT(0,0,0))
633
		elseif TYPE == "Skull" then
634
			MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "4770583", "", SIZE, VT(0,0,0))
635
		elseif TYPE == "Crystal" then
636
			MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "9756362", "", SIZE, VT(0,0,0))
637
		end
638
		if MSH ~= nil then
639
			local MOVESPEED = nil
640
			if MOVEDIRECTION ~= nil then
641
				MOVESPEED = (CFRAME.p - MOVEDIRECTION).Magnitude/TIME
642
			end
643
			local GROWTH = SIZE - ENDSIZE
644
			local TRANS = TRANSPARENCY - ENDTRANSPARENCY
645
			if TYPE == "Block" then
646
				EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))
647
			else
648
				EFFECT.CFrame = CFRAME
649
			end
650
			for LOOP = 1, TIME+1 do
651
				Swait()
652
				MSH.Scale = MSH.Scale - GROWTH/TIME
653
				if TYPE == "Wave" then
654
					MSH.Offset = VT(0,0,-MSH.Scale.X/8)
655
				end
656
				EFFECT.Transparency = EFFECT.Transparency - TRANS/TIME
657
				if TYPE == "Block" then
658
					EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))
659
				else
660
					EFFECT.CFrame = EFFECT.CFrame*ANGLES(RAD(ROTATION1),RAD(ROTATION2),RAD(ROTATION3))
661
				end
662
				if MOVEDIRECTION ~= nil then
663
					local ORI = EFFECT.Orientation
664
					EFFECT.CFrame = CF(EFFECT.Position,MOVEDIRECTION)*CF(0,0,-MOVESPEED)
665
					EFFECT.Orientation = ORI
666
				end
667
			end
668
			if PLAYSSOUND == false then
669
				EFFECT:remove()
670
			else
671
				SOUND.Stopped:Connect(function()
672
					EFFECT:remove()
673
				end)
674
			end
675
		else
676
			if PLAYSSOUND == false then
677
				EFFECT:remove()
678
			else
679
				repeat Swait() until SOUND.Playing == false
680
				EFFECT:remove()
681
			end
682
		end
683
	end))
684
end
685
686
function MakeForm(PART,TYPE)
687
	if TYPE == "Cyl" then
688
		local MSH = IT("CylinderMesh",PART)
689
	elseif TYPE == "Ball" then
690
		local MSH = IT("SpecialMesh",PART)
691
		MSH.MeshType = "Sphere"
692
	elseif TYPE == "Wedge" then
693
		local MSH = IT("SpecialMesh",PART)
694
		MSH.MeshType = "Wedge"
695
	end
696
end
697
698
local DECAL = IT("Decal")
699
function MagicRing()
700
	local RING = CreatePart(3, Effects, "Granite", 0, 1, "Maroon", "MagicRing", VT(0,0,0),true)
701
	local MESH = IT("BlockMesh",RING)
702
	local BOTTOMTEXTURE = DECAL:Clone()
703
	BOTTOMTEXTURE.Parent = RING
704
	BOTTOMTEXTURE.Face = "Bottom"
705
	BOTTOMTEXTURE.Name = "BottomTexture"
706
	local TOPTEXTURE = DECAL:Clone()
707
	TOPTEXTURE.Parent = RING
708
	TOPTEXTURE.Face = "Top"
709
	TOPTEXTURE.Name = "TopTexture"
710
	BOTTOMTEXTURE.Texture = "http://www.roblox.com/asset/?id=1208118228"
711
	TOPTEXTURE.Texture = "http://www.roblox.com/asset/?id=1208118228"
712
	BOTTOMTEXTURE.Color3 = C3(0,0,0)
713
	TOPTEXTURE.Color3 = C3(0,0,0)
714
	return RING,MESH,TOPTEXTURE,BOTTOMTEXTURE
715
end
716
function ApplyDamage(Humanoid,Damage,TorsoPart)
717
    local defence = Instance.new("BoolValue",Humanoid.Parent)
718
    defence.Name = ("HitBy"..Player.Name)
719
    game:GetService("Debris"):AddItem(defence, 0.001)
720
    Damage = Damage * DAMAGEMULTIPLIER
721
    if Humanoid.Health ~= 0 then
722
        local CritChance = MRANDOM(1,100)
723
        if Damage > Humanoid.Health then
724
            Damage = math.ceil(Humanoid.Health)
725
            if Damage == 0 then
726
                Damage = 0.1
727
            end
728
        end
729
        Humanoid.Health = Humanoid.Health - Damage*100
730
    end
731
end
732
733
function SpawnTrail(FROM,TO,BIG)
734
local TRAIL = CreatePart(3, Effects, "Neon", 0, 0, "Really red", "Trail", VT(10,10,10))
735
    MakeForm(TRAIL,"Cyl")
736
local cR=255
737
local cG=0
738
local cB=0
739
local flg5=1 local omgidk=1
740
local add=15
741
game:GetService("RunService"):BindToRenderStep("Ghost",1,function()
742
    if omgidk>10000 then omgidk=0 end
743
    omgidk=omgidk+1
744
    if cR>=255 then flg5=1 end
745
    if cG>=255 then flg5=2 end
746
    if cB>=255 then flg5=3 end
747
    if flg5==1 then cR=cR-add cG=cG+add end
748
    if flg5==2 then cG=cG-add cB=cB+add end
749
    if flg5==3 then cB=cB-add cR=cR+add end
750
    color=Color3.fromRGB(cR,cG,cB)
751
    TRAIL.Color = color
752
end)
753
    local DIST = (FROM - TO).Magnitude
754
    if BIG == true then
755
        TRAIL.Size = VT(5,DIST,5)
756
    else
757
        TRAIL.Size = VT(5,DIST,5)
758
    end
759
    TRAIL.CFrame = CF(FROM, TO) * CF(0, 0, -DIST/2) * ANGLES(RAD(90),RAD(0),RAD(0))
760
    coroutine.resume(coroutine.create(function()
761
        for i = 1, 55 do
762
            Swait()
763
            TRAIL.Transparency = TRAIL.Transparency + 0.01
764
        end
765
        TRAIL:remove()
766
    end))
767
end
768
769
Debris = game:GetService("Debris")
770
771
function CastProperRay(StartPos, EndPos, Distance, Ignore)
772
	local DIRECTION = CF(StartPos,EndPos).lookVector
773
	return Raycast(StartPos, DIRECTION, Distance, Ignore)
774
end
775
776
function turnto(position)
777
	RootPart.CFrame=CFrame.new(RootPart.CFrame.p,VT(position.X,RootPart.Position.Y,position.Z)) * CFrame.new(0, 0, 0)
778
end
779
780
781
782
--//=================================\\
783
--|| 	       Kick Reason
784
--\\=================================//
785
786
787
Player.Chatted:connect(function(Message)
788
	if string.sub(Message,1,10) == "SetReason!" then
789
		if string.sub(Message,11) then
790
			local Kick_Reason = "Nothing" ..string.sub(Message,11)
791
		end
792
	end
793
	if string.sub(Message,1,5) == "!Ban" then
794
		if string.sub(Message,6) then
795
			local Kick_Reason = "Server Banned: " ..string.sub(Message,6)
796
		end
797
	end
798
end)
799
800
801
function BAN(People)
802
	local BANFOLDER = IT("Folder",Effects)
803
	local naeeym2 = Instance.new("BillboardGui",BANFOLDER)
804
	naeeym2.AlwaysOnTop = false
805
	naeeym2.Size = UDim2.new(5,35,2,35)
806
	naeeym2.StudsOffset = Vector3.new(0,1,0)
807
	naeeym2.Name = "AAAA"
808
	local tecks2 = Instance.new("TextLabel",naeeym2)
809
	tecks2.BackgroundTransparency = 1
810
	tecks2.TextScaled = true
811
	tecks2.BorderSizePixel = 0
812
	tecks2.Text = "BEANED"
813
	tecks2.Font = "Code"
814
	tecks2.TextSize = 30
815
	tecks2.TextStrokeTransparency = 1
816
	tecks2.TextColor3 = Color3.new(1,0,0)
817
	tecks2.TextStrokeColor3 = Color3.new(1,0,0)
818
	tecks2.Size = UDim2.new(1,0,0.5,0)
819
	tecks2.Parent = naeeym2
820
	
821
	People:Kick(Kick_Reason)
822
end
823
824
function BANNEAREST(POS,RANGE)
825
	for i,v in ipairs(workspace:GetChildren()) do
826
	local body = v:GetChildren()
827
		for part = 1, #body do
828
			if((body[part].ClassName == "Part" or body[part].ClassName == "MeshPart") and v ~= Character) then
829
				if(body[part].Position - POS).Magnitude < RANGE then
830
					if v:FindFirstChildOfClass("Humanoid") then
831
						local Person = game:GetService("Players"):GetPlayerFromCharacter(v)
832
						table.insert(kickedtable,Person.Name)
833
						wait()
834
						BAN(Person)
835
					end
836
				end
837
			end
838
		end
839
	end
840
end
841
842
--//=================================\\
843
--||        TRANSFORMATIONS
844
--\\=================================//
845-
local GEARWELD = CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.7), CF(0, 0, 0))
845+
846
function Switch()
847
    ATTACK = true
848-
local GEARWELD2 = CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.7), CF(0, 0, 0))
848+
    Rooted = true
849
    if MODE == "GoodCop" then
850
        for i=0, 0.3, 0.1 / Animation_Speed do
851
            Swait()
852-
		GEARWELD.C0 = GEARWELD.C0 * ANGLES(RAD(0), RAD(0), RAD(5))
852+
            RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
853-
		GEARWELD2.C0 = GEARWELD2.C0 * ANGLES(RAD(0), RAD(0), RAD(-5))
853+
            Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
854
            RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(25)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
855
            LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-25)) * LEFTSHOULDERC0, 1 / Animation_Speed)
856-
--PARTICLES REEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEE
856+
            RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(83), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
857-
--[[
857+
            LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-83), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
858-
	YEAH BOIIIIIIIII
858+
859-
	PARTICLE TIME
859+
        for i=0, 1, 0.1 / Animation_Speed do
860
            Swait()
861
            RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
862-
--ParticleEmitter3({Speed = 0, Drag = 0, Size1 = 20, Size2 = 25, Lifetime1 = 0.3, Lifetime2 = 1, Parent = Barrel, Emit = 100, Offset = 0, Enabled = true, Acel = VT(0,0,0)})
862+
            Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(5), RAD(0), RAD(0)), 1 / Animation_Speed)
863-
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)})
863+
            RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.25, 0.5, -0.5) * ANGLES(RAD(100), RAD(0), RAD(-70)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
864-
ParticleEmitter2({Speed = 0, Drag = 0, Size1 = .5, Size2 = 1, Lifetime1 = 1, Lifetime2 = 1, Parent = Hole, Emit = 20, Offset = 360, Enabled = true, Acel = VT(0,0,0)})
864+
            LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25, 0.35, -0.35) * ANGLES(RAD(70), RAD(0), RAD(80)) * LEFTSHOULDERC0, 1 / Animation_Speed)
865-
ParticleEmitter2({Speed = 0, Drag = 0, Size1 = 3, Size2 = 1, Lifetime1 = 1, Lifetime2 = 2, Parent = Handle, Emit = 100, Offset = 360, Enabled = true, Acel = VT(0,0,0)})
865+
            RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(83), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
866-
--Trails
866+
            LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-83), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
867-
local A1 = Instance.new("Attachment",Barrel)
867+
868-
local A2 = Instance.new("Attachment",Barrel)
868+
869-
local Trail = Instance.new("Trail",Barrel)
869+
        CreateSound(363808674, Torso, 6, 1, false)
870-
A1.Position = Vector3.new(0,1,0)
870+
        for i=0, 0.6, 0.1 / Animation_Speed do
871-
A2.Position = Vector3.new(0,-0.8,0)
871+
            Swait()
872-
Trail.Attachment0 = A1
872+
            RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
873-
Trail.Attachment1 = A2
873+
            Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(5), RAD(25), RAD(0)), 1 / Animation_Speed)
874-
Trail.LightEmission = 1
874+
            RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.25, 0.5, -0.5) * ANGLES(RAD(100), RAD(0), RAD(-50)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
875-
Trail.Color = ColorSequence.new(Color3.new(0,0,255),Color3.new(0,255,255))
875+
            LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25, 0.35, -0.35) * ANGLES(RAD(70), RAD(0), RAD(60)) * LEFTSHOULDERC0, 1 / Animation_Speed)
876-
Trail.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0.3),NumberSequenceKeypoint.new(0.3,.9),NumberSequenceKeypoint.new(1,1)})
876+
            RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(83), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
877
            LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-83), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
878
        end
879
        CreateSound(363808674, Torso, 6, 1, false)
880
        for i=0, 0.6, 0.1 / Animation_Speed do
881
            Swait()
882-
		c.Color = C3(0,0,1)
882+
            RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
883
            Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(5), RAD(-25), RAD(0)), 1 / Animation_Speed)
884
            RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.25, 0.5, -0.5) * ANGLES(RAD(100), RAD(0), RAD(-90)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
885
            LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25, 0.35, -0.35) * ANGLES(RAD(70), RAD(0), RAD(90)) * LEFTSHOULDERC0, 1 / Animation_Speed)
886
            RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(83), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
887
            LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-83), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
888
        end
889
        MODE = "BadCop"
890
    elseif MODE == "BadCop" then
891
        CreateSound(147722227, Torso, 4, 1.3, false)
892
        for i=0, 0.3, 0.1 / Animation_Speed do
893
            Swait()
894
            RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
895
            Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(35), RAD(0), RAD(0)), 1 / Animation_Speed)
896
            RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(25)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
897
            LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-25)) * LEFTSHOULDERC0, 1 / Animation_Speed)
898
            RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(83), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
899
            LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-83), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
900
        end
901
        MODE = "GoodCop"
902
903
    end
904
    ATTACK = false
905
    Rooted = false
906
end
907
908
909
910
--//=================================\\
911
--||	     WEAPON CREATION
912
--\\=================================//
913
 
914
915
local GRIP = CreateWeldOrSnapOrMotor("Weld", RightArm, RightArm, HANDLE, CF(0,-1.1,-0.25)*ANGLES(RAD(-110),RAD(0),RAD(0))*ANGLES(RAD(0),RAD(0),RAD(180)), CF(0,0,0))
916
 
917
local Particle = IT("ParticleEmitter",nil)
918
Particle.Enabled = false
919
Particle.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0.3),NumberSequenceKeypoint.new(0.3,0),NumberSequenceKeypoint.new(1,1)})
920-
workspace.ChildAdded:connect(function(instance)
920+
921-
    for BANISH = 1, #TOBANISH do
921+
922-
		if TOBANISH[BANISH] ~= nil then
922+
923-
			if instance.Name == TOBANISH[BANISH] then
923+
924
Particle.RotSpeed = NumberRange.new(-180, 180)
925-
					printbye(instance.Name)
925+
926-
					instance:ClearAllChildren()
926+
Particle.Color = ColorSequence.new(C3(18/255,238/255,212/255))
927-
					Debris:AddItem(instance,0.0005)
927+
928
local Particle2 = IT("ParticleEmitter",nil)
929
Particle2.Enabled = false
930
Particle2.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0.3),NumberSequenceKeypoint.new(0.3,0),NumberSequenceKeypoint.new(1,1)})
931
Particle2.LightEmission = 0.5
932
Particle2.Rate = 150
933
Particle2.ZOffset = 0.2
934
Particle2.Rotation = NumberRange.new(-180, 180)
935
Particle2.RotSpeed = NumberRange.new(-180, 180)
936
Particle2.Texture = "http://www.roblox.com/asset/?id=304437537"
937-
--BANNEAREST(RootPart.CFrame*CF(0,0,-4).p,15)
937+
Particle2.Color = ColorSequence.new(C3(0/255, 255/255, 0/255))
938
 
939
--ParticleEmitter({Speed = 5, Drag = 0, Size1 = 1, Size2 = 5, Lifetime1 = 1, Lifetime2 = 1.5, Parent = Torso, Emit = 100, Offset = 360, Enabled = false})
940
function ParticleEmitter(Table)
941
    local PRTCL = Particle:Clone()
942
    local Speed = Table.Speed or 5
943
    local Drag = Table.Drag or 0
944-
function Banisher_Bullet()
944+
    local Size1 = Table.Size1 or 1
945
    local Size2 = Table.Size2 or 5
946
    local Lifetime1 = Table.Lifetime1 or 1
947-
	for i=0, 0.05, 0.1 / Animation_Speed do
947+
    local Lifetime2 = Table.Lifetime2 or 1.5
948
    local Parent = Table.Parent or Torso
949-
		turnto(Mouse.Hit.p)
949+
    local Emit = Table.Emit or 100
950-
		RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(90)), 0.5 / Animation_Speed)
950+
    local Offset = Table.Offset or 360
951-
		Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(-90)), 0.5 / Animation_Speed)
951+
    local Acel = Table.Acel or VT(0,0,0)
952-
		RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(90), RAD(0), RAD(90)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed)
952+
    local Enabled = Table.Enabled or false
953-
		LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.6, 0) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, 0.5 / Animation_Speed)
953+
    PRTCL.Parent = Parent
954
    PRTCL.Size = NumberSequence.new(Size1,Size2)
955
    PRTCL.Lifetime = NumberRange.new(Lifetime1,Lifetime2)
956
    PRTCL.Speed = NumberRange.new(Speed)
957
    PRTCL.VelocitySpread = Offset
958-
		for i=0, 0.05, 0.1 / Animation_Speed do
958+
    PRTCL.Drag = Drag
959
    PRTCL.Acceleration = Acel
960-
			turnto(Mouse.Hit.p)
960+
    if Enabled == false then
961-
			RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(90)), 0.5 / Animation_Speed)
961+
        PRTCL:Emit(Emit)
962-
			Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(-90)), 0.5 / Animation_Speed)
962+
        Debris:AddItem(PRTCL,Lifetime2)
963-
			RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(90), RAD(0), RAD(90)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed)
963+
    else
964-
			LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.6, 0) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, 0.5 / Animation_Speed)
964+
        PRTCL.Enabled = true
965-
			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)
965+
966-
			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)
966+
    return PRTCL
967
end
968
 
969
function ParticleEmitter2(Table)
970
    local PRTCL = Particle2:Clone()
971
    local Speed = Table.Speed or 5
972-
				BANNEAREST(RootPart.CFrame*CF(0,0,-4).p,15)
972+
    local Drag = Table.Drag or 0
973
    local Size1 = Table.Size1 or 1
974
    local Size2 = Table.Size2 or 5
975-
		WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(1,0,1), Size2 = VT(6,7.5,6), 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(0,0,255), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
975+
    local Lifetime1 = Table.Lifetime1 or 1
976-
		WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(1,0,1), Size2 = VT(6,6.5,6), Transparency = 0, Transparency2 = 1, CFrame = Hole.CFrame, MoveToPos = nil, RotationX = 0, RotationY = 5, RotationZ = 0, Material = "Neon", Color = C3(0,0,255), SoundID = 904440937, SoundPitch = MRANDOM(8,11)/10, SoundVolume = 8})
976+
    local Lifetime2 = Table.Lifetime2 or 1.5
977-
		WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(1,0,1), Size2 = VT(6,6.5,6), Transparency = 0, Transparency2 = 1, CFrame = CF(POS,Hole.Position) * ANGLES(RAD(-90), RAD(0), RAD(0)), MoveToPos = nil, RotationX = 0, RotationY = -5, RotationZ = 0, Material = "Neon", Color = C3(0,0,255), SoundID = nil, SoundPitch = MRANDOM(8,11)/10, SoundVolume = 8})
977+
    local Parent = Table.Parent or Torso
978-
		WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(1,0,1), Size2 = VT(6,6.5,6), Transparency = 0, Transparency2 = 1, CFrame = CF(POS,Hole.Position) * ANGLES(RAD(-90), RAD(0), RAD(0)), MoveToPos = nil, RotationX = 0, RotationY = 5, RotationZ = 0, Material = "Neon", Color = C3(0,0,255), SoundID = nil, SoundPitch = MRANDOM(8,11)/10, SoundVolume = 8})
978+
    local Emit = Table.Emit or 100
979-
		for i=0, 0.05, 0.1 / Animation_Speed do
979+
    local Offset = Table.Offset or 360
980
    local Acel = Table.Acel or VT(0,0,0)
981-
			RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(90)), 0.5 / Animation_Speed)
981+
    local Enabled = Table.Enabled or false
982-
			Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(-90)), 0.25 / Animation_Speed)
982+
    PRTCL.Parent = Parent
983-
			RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(130), RAD(15), RAD(90)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed)
983+
    PRTCL.Size = NumberSequence.new(Size1,Size2)
984-
			LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.6, 0) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, 0.5 / Animation_Speed)
984+
    PRTCL.Lifetime = NumberRange.new(Lifetime1,Lifetime2)
985-
			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)
985+
    PRTCL.Speed = NumberRange.new(Speed)
986-
			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)
986+
    PRTCL.VelocitySpread = Offset
987
    PRTCL.Drag = Drag
988
    PRTCL.Acceleration = Acel
989
    if Enabled == false then
990
        PRTCL:Emit(Emit)
991
        Debris:AddItem(PRTCL,Lifetime2)
992
    else
993
        PRTCL.Enabled = true
994
    end
995
    return PRTCL
996
end
997
 
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
ParticleEmitter({Speed = 0.2, Drag = 0, Size1 = 0.7, Size2 = 0, Lifetime1 = 0.7, Lifetime2 = 0.7, Parent = Hole, Emit = 100, Offset = 360, Enabled = true, Acel = VT(3,9,8)})
1018
--ParticleEmitter({Speed = 0.5, Drag = 0, Size1 = 10, Size2 = 0, Lifetime1 = 0.8, Lifetime2 = 0.9, Parent = Dangle, Emit = 100, Offset = 360, Enabled = true, Acel = VT(3,9,8)})
1019
 
1020
local GRIP2 = CreateWeldOrSnapOrMotor("Weld", LeftArm, LeftArm, HANDLE, CF(0,-1.1,-0.25)*ANGLES(RAD(-110),RAD(0),RAD(0))*ANGLES(RAD(0),RAD(0),RAD(180)), CF(0,0,0))
1021
 
1022
local Handle2 = CreatePart(3, Weapon2, "Metal", 0, 0, "Mid gray", "Part", VT(0.2,0.6,0.2),false)
1023
local LeftArmGrasp2 = CreateWeldOrSnapOrMotor("Weld", Handle2, LeftArm, Handle2, CF(0,-1, 0) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0.21, 0))
1024
local Part = CreatePart(3, Weapon2, "Metal", 0, 0, "Mid gray", "Part", VT(0.2,0.5,0.2),false)
1025
MakeForm(Part,"Wedge")
1026-
		Banisher_Bullet()
1026+
CreateWeldOrSnapOrMotor("Weld", Handle2, Handle2, Part, CF(0, -0.3, 0.2) * ANGLES(RAD(0), RAD(180), RAD(0)), CF(0, 0, 0))
1027
local Part = CreatePart(3, Weapon2, "Metal", 0, 0, "Mid gray", "Part", VT(0.2,0.3,0.2),false)
1028
MakeForm(Part,"Wedge")
1029-
	if Key == "b" and ATTACK == false then
1029+
CreateWeldOrSnapOrMotor("Weld", Handle2, Handle2, Part, CF(0, -0.4, 0) * ANGLES(RAD(0), RAD(0), RAD(180)), CF(0, 0, 0))
1030
local Part = CreatePart(3, Weapon2, "Metal", 0, 0, "Mid gray", "Part", VT(0.3,0.3,0.3),false)
1031
CreateWeldOrSnapOrMotor("Weld", Handle2, Handle2, Part, CF(0, -0.5, 0.2) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
1032
local Part = CreatePart(3, Weapon2, "Metal", 0, 0, "Mid gray", "Part", VT(0.3,0.5,0.5),false)
1033
CreateWeldOrSnapOrMotor("Weld", Handle2, Handle2, Part, CF(0, -0.6, 0.5) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
1034
local Part = CreatePart(3, Weapon2, "Metal", 0, 0, "Mid gray", "Part", VT(0.4,0.4,0.4),false)
1035
MakeForm(Part,"Cyl")
1036
CreateWeldOrSnapOrMotor("Weld", Handle2, Handle2, Part, CF(0, -0.6, 0.5) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
1037
for i = 1, 8 do
1038
    local Piece = CreatePart(3, Weapon2, "Metal", 0, 0, "Mid gray", "Eye2", VT(0,0.35,0.41),false)
1039
    CreateWeldOrSnapOrMotor("Weld", Handle2, Part, Piece, CF(0, 0, 0) * ANGLES(RAD(0), RAD((360/8)*i), RAD(0)), CF(0, 0, 0))
1040
end
1041
local Part = CreatePart(3, Weapon2, "Metal", 0, 0, "Mid gray", "Eye2", VT(0.38,0.41,0.38),false)
1042
MakeForm(Part,"Cyl")
1043
CreateWeldOrSnapOrMotor("Weld", Handle2, Handle2, Part, CF(0, -0.6, 0.5) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
1044
local Part = CreatePart(3, Weapon2, "Metal", 0, 0, "Mid gray", "Part", VT(0.37,0.5,0.37),false)
1045
MakeForm(Part,"Ball")
1046
CreateWeldOrSnapOrMotor("Weld", Handle2, Handle2, Part, CF(0, -0.6, 0.3) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
1047
local Part = CreatePart(3, Weapon2, "Metal", 0, 0, "Mid gray", "Part", VT(0.2,0.7,0.4),false)
1048
MakeForm(Part,"Wedge")
1049
CreateWeldOrSnapOrMotor("Weld", Handle2, Handle2, Part, CF(0, -0.7, 0.5) * ANGLES(RAD(90), RAD(180), RAD(180)), CF(0, 0, 0))
1050
local Part = CreatePart(3, Weapon2, "Metal", 0, 0, "Mid gray", "Part", VT(0.3,0.4,0.2),false)
1051
CreateWeldOrSnapOrMotor("Weld", Handle2, Handle2, Part, CF(0, -0.6, 0.7) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
1052
local Part = CreatePart(3, Weapon2, "Metal", 0, 0, "Mid gray", "Part", VT(0.35,0.35,0.35),false)
1053
MakeForm(Part,"Cyl")
1054
CreateWeldOrSnapOrMotor("Weld", Handle2, Handle2, Part, CF(0, -0.6, 0.7) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
1055
local Part = CreatePart(3, Weapon2, "Metal", 0, 0, "Mid gray", "Part", VT(0.5,0.1,0.5),false)
1056
MakeForm(Part,"Cyl")
1057
CreateWeldOrSnapOrMotor("Weld", Handle2, Handle2, Part, CF(0, -0.6, 1) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
1058
local Part = CreatePart(3, Weapon2, "Metal", 0, 0, "Mid gray", "Part", VT(0.5,0.1,0.45),false)
1059
MakeForm(Part,"Cyl")
1060
CreateWeldOrSnapOrMotor("Weld", Handle2, Handle2, Part, CF(0, -0.6, 1.1) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
1061
local Part = CreatePart(3, Weapon2, "Metal", 0, 0, "Mid gray", "Part", VT(0.2,0.5,0.2),false)
1062
MakeForm(Part,"Wedge")
1063
CreateWeldOrSnapOrMotor("Weld", Handle2, Handle2, Part, CF(0, -0.55, 0.2) * ANGLES(RAD(-135), RAD(0), RAD(0)), CF(0, -0.3, 0))
1064
local LASTPART = Handle2
1065
for i = 1, 10 do
1066
    if LASTPART == Handle2 then
1067
        local Part = CreatePart(3, Weapon2, "Metal", 0, 0, "Mid gray", "Part", VT(0.1,0.2,0),false)
1068
        LASTPART = Part
1069
        CreateWeldOrSnapOrMotor("Weld", Handle2, Handle2, Part, CF(0, -0.1, 0.2) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
1070
    else
1071
        local Part = CreatePart(3, Weapon2, "Metal", 0, 0, "Mid gray", "Part", VT(0.1,0.05,0),false)
1072
        CreateWeldOrSnapOrMotor("Weld", Handle2, LASTPART, Part, CF(0, 0.025, 0) * ANGLES(RAD(8), RAD(0), RAD(0)), CF(0, -0.025, 0))
1073
        LASTPART = Part
1074
    end
1075
end
1076
 
1077
local Barrel = CreatePart(3, Weapon2, "Metal", 0, 0, "Mid gray", "Part", VT(0.15,2,0.15),false)
1078
MakeForm(Barrel,"Cyl")
1079
CreateWeldOrSnapOrMotor("Weld", Handle2, Handle2, Barrel, CF(0, -0.6, 1.8) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
1080
local Part = CreatePart(3, Weapon2, "Metal", 0, 0, "Mid gray", "Part", VT(0.25,1,0.25),false)
1081
MakeForm(Part,"Cyl")
1082
CreateWeldOrSnapOrMotor("Weld", Handle2, Barrel, Part, CF(0, -0.6, 0), CF(0, 0, 0))
1083
local Part = CreatePart(3, Weapon2, "Metal", 0, 0, "Mid gray", "Part", VT(0,0.1,0.2),false)
1084
MakeForm(Part,"Wedge")
1085
CreateWeldOrSnapOrMotor("Weld", Handle2, Barrel, Part, CF(0, 0.945, 0.1) * ANGLES(RAD(180), RAD(0), RAD(0)), CF(0, 0, 0))
1086
local Hole2 = CreatePart(3, Weapon2, "Metal", 0, 0, "Mid gray", "Eye2", VT(0.125,0,0.125),false)
1087
MakeForm(Hole2,"Cyl")
1088
CreateWeldOrSnapOrMotor("Weld", Handle2, Barrel, Hole2, CF(0, 0.98, 0), CF(0, 0, 0))
1089
local Part = CreatePart(3, Weapon2, "Metal", 0, 0, "Mid gray", "Part", VT(0,0,0),false)
1090
local GEARWELD = CreateWeldOrSnapOrMotor("Weld", Handle2, Handle2, Part, CF(0, -0.6, 0.7), CF(0, 0, 0))
1091
CreateMesh("SpecialMesh", Part, "FileMesh", 156292343, "", VT(0.8,0.8,1.5), VT(0,0,0.2))
1092
local Part = CreatePart(3, Weapon2, "Metal", 0, 0, "Mid gray", "Eye2", VT(0,0,0),false)
1093
local GEARWELD2 = CreateWeldOrSnapOrMotor("Weld", Handle2, Handle2, Part, CF(0, -0.6, 0.7), CF(0, 0, 0))
1094
CreateMesh("SpecialMesh", Part, "FileMesh", 156292343, "", VT(0.9,0.9,0.3), VT(0,0,0.2))
1095
coroutine.resume(coroutine.create(function()
1096
    while wait() do
1097
        GEARWELD.C0 = GEARWELD.C0 * ANGLES(RAD(0), RAD(0), RAD(5))
1098
        GEARWELD2.C0 = GEARWELD2.C0 * ANGLES(RAD(0), RAD(0), RAD(-5))
1099
    end
1100
end))
1101
 
1102
ParticleEmitter2({Speed = 0.2, Drag = 0, Size1 = 0.7, Size2 = 0, Lifetime1 = 0.7, Lifetime2 = 0.7, Parent = Hole2, Emit = 100, Offset = 360, Enabled = true, Acel = VT(3,9,8)})
1103
--ParticleEmitter({Speed = 0.5, Drag = 0, Size1 = 10, Size2 = 0, Lifetime1 = 0.8, Lifetime2 = 0.9, Parent = Dangle, Emit = 100, Offset = 360, Enabled = true, Acel = VT(3,9,8)})
1104
1105
1106
for _, c in pairs(Weapon2:GetDescendants()) do
1107
    if c.ClassName == "Part" and c.Name ~= "Eye2" and c.Parent ~= Effects and c.Parent.Parent ~= Effects then
1108
        c.Material = "Glass"
1109
        c.Color = C3(18/255,238/255,212/255)
1110
    elseif c.ClassName == "Part" and c.Name == "Eye2" then
1111
        c.Color = C3(18/255,238/255,212/255)
1112
        c.Material = "Neon"
1113
    end
1114
end
1115
 
1116
Weapon2.Parent = Character
1117
for _, c in pairs(Weapon2:GetChildren()) do
1118
    if c.ClassName == "Part" then
1119
        c.CustomPhysicalProperties = PhysicalProperties.new(0, 0, 0, 0, 0)
1120
    end
1121
end
1122
1123
1124
1125
1126
1127
1128
local Particle = IT("ParticleEmitter",nil)
1129
Particle.Enabled = false
1130
Particle.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0.3),NumberSequenceKeypoint.new(0.3,0),NumberSequenceKeypoint.new(1,1)})
1131
Particle.LightEmission = 0.5
1132
Particle.Rate = 150
1133
Particle.ZOffset = 0.2
1134
Particle.Rotation = NumberRange.new(-180, 180)
1135
Particle.RotSpeed = NumberRange.new(-180, 180)
1136
Particle.Texture = "http://www.roblox.com/asset/?id=304437537"
1137
Particle.Color = ColorSequence.new(C3(0,0,255),C3(0,255,255))
1138-
			RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.35, 0.5, -0.5) * ANGLES(RAD(180), RAD(65), RAD(-25))* RIGHTSHOULDERC0, 0.15 / Animation_Speed)
1138+
1139-
			LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25, 0.5, 0.5) * ANGLES(RAD(35), RAD(20), RAD(10)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
1139+
1140-
			RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 22), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed)
1140+
1141-
		        LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 22), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed)
1141+
1142
Particle2.LightEmission = 0
1143
Particle2.RotSpeed = NumberRange.new(0, 180)
1144
Particle2.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0.3),NumberSequenceKeypoint.new(0.3,0),NumberSequenceKeypoint.new(1,1)})
1145
Particle2.LightEmission = 1
1146-
            RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -0.05) * ANGLES(RAD(15), RAD(0), RAD(-7 * COS(SINE / (WALKSPEEDVALUE)))), 1 / Animation_Speed)
1146+
1147-
            Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(5 - 1 * SIN(SINE / (WALKSPEEDVALUE / 2))), RAD(0), RAD(7 * COS(SINE / (WALKSPEEDVALUE)))), 1 / Animation_Speed)
1147+
1148-
            RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(-15), RAD(-5), RAD(5)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
1148+
1149-
            LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-15), RAD(5), RAD(-5)) * LEFTSHOULDERC0, 1 / Animation_Speed)
1149+
1150-
            RightHip.C0 = Clerp(RightHip.C0, CF(1 , -1, 0) * ANGLES(RAD(0), RAD(85), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 2 / Animation_Speed)
1150+
1151-
            LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-85), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 2 / Animation_Speed)
1151+
1152
Particle3.LightEmission = 0
1153
Particle3.RotSpeed = NumberRange.new(0, 180)
1154
Particle3.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0.7),NumberSequenceKeypoint.new(0.3,.9),NumberSequenceKeypoint.new(1,1)})
1155
Particle3.LightEmission = 1
1156
Particle3.Rate = 20
1157
Particle3.RotSpeed = NumberRange.new(-20, 20)
1158
--ParticleEmitter({Speed = 5, Drag = 0, Size1 = 1, Size2 = 5, Lifetime1 = 1, Lifetime2 = 1.5, Parent = Torso, Emit = 100, Offset = 360, Enabled = false})
1159
function ParticleEmitter(Table)
1160
	local PRTCL = Particle:Clone()
1161
	local Speed = Table.Speed or 5
1162
	local Drag = Table.Drag or 0
1163
	local Size1 = Table.Size1 or 1
1164
	local Size2 = Table.Size2 or 5
1165
	local Lifetime1 = Table.Lifetime1 or 1
1166
	local Lifetime2 = Table.Lifetime2 or 1.5
1167
	local Parent = Table.Parent or Torso
1168-
	sick.SoundId = "rbxassetid://534861083"
1168+
1169
	local Offset = Table.Offset or 360
1170
	local Acel = Table.Acel or VT(0,0,0)
1171
	local Enabled = Table.Enabled or false
1172
	PRTCL.Parent = Parent
1173
	PRTCL.Size = NumberSequence.new(Size1,Size2)
1174
	PRTCL.Lifetime = NumberRange.new(Lifetime1,Lifetime2)
1175
	PRTCL.Speed = NumberRange.new(Speed)
1176
	PRTCL.VelocitySpread = Offset
1177
	PRTCL.Drag = Drag
1178
	PRTCL.Acceleration = Acel
1179
	if Enabled == false then
1180
		PRTCL:Emit(Emit)
1181-
--\\====================================================//--
1181+
1182
	else
1183
		PRTCL.Enabled = true
1184
	end
1185
	return PRTCL
1186
end
1187
function ParticleEmitter2(Table)
1188
	local PRTCL2 = Particle2:Clone()
1189
	local LockedToPart = Table.LTP or true
1190
	local Speed = Table.Speed or 0
1191
	local Drag = Table.Drag or 0
1192
	local Size1 = Table.Size1 or 1
1193
	local Size2 = Table.Size2 or 2
1194
	local Lifetime1 = Table.Lifetime1 or 1
1195
	local Lifetime2 = Table.Lifetime2 or 1
1196
	local Parent = Table.Parent or Torso
1197
	local Emit = Table.Emit or 100
1198
	local Offset = Table.Offset or 360
1199
	local Acel = Table.Acel or VT(0,0,0)
1200
	local Enabled = Table.Enabled or false
1201
	PRTCL2.Parent = Parent
1202
	PRTCL2.Size = NumberSequence.new(Size1,Size2)
1203
	PRTCL2.Lifetime = NumberRange.new(Lifetime1,Lifetime2)
1204
	PRTCL2.Speed = NumberRange.new(Speed)
1205
	PRTCL2.VelocitySpread = Offset
1206
	PRTCL2.Drag = Drag
1207
	PRTCL2.Acceleration = Acel
1208
		PRTCL2.Parent = Parent
1209
		PRTCL2.Size = NumberSequence.new(Size1,Size2)
1210
		PRTCL2.Lifetime = NumberRange.new(Lifetime1,Lifetime2)
1211
		PRTCL2.Speed = NumberRange.new(Speed)
1212
		PRTCL2.VelocitySpread = Offset
1213
		PRTCL2.Drag = Drag
1214
		PRTCL2.Acceleration = Acel
1215
		PRTCL2.LockedToPart = true
1216
	if Enabled == false then
1217
		PRTCL2:Emit(Emit)
1218
		Debris:AddItem(PRTCL2,Lifetime2)
1219
	else
1220
		PRTCL2.Enabled = true
1221
	end
1222
	return PRTCL2
1223
end
1224
function ParticleEmitter3(Table)
1225
	local PRTCL3 = Particle2:Clone()
1226
	local Speed = Table.Speed or 0
1227
	local Drag = Table.Drag or 0
1228
	local Size1 = Table.Size1 or 1
1229
	local Size2 = Table.Size2 or 2
1230
	local Lifetime1 = Table.Lifetime1 or 1
1231
	local Lifetime2 = Table.Lifetime2 or 1
1232
	local Parent = Table.Parent or Torso
1233
	local Emit = Table.Emit or 100
1234
	local Offset = Table.Offset or 0
1235
	local Acel = Table.Acel or VT(0,0,0)
1236
	local Enabled = Table.Enabled or false
1237
	PRTCL3.Parent = Parent
1238
	PRTCL3.Size = NumberSequence.new(Size1,Size2)
1239
	PRTCL3.Lifetime = NumberRange.new(Lifetime1,Lifetime2)
1240
	PRTCL3.Speed = NumberRange.new(Speed)
1241
	PRTCL3.VelocitySpread = Offset
1242
	PRTCL3.Drag = Drag
1243
	PRTCL3.Acceleration = Acel
1244
		PRTCL3.Parent = Parent
1245
		PRTCL3.Size = NumberSequence.new(Size1,Size2)
1246
		PRTCL3.Lifetime = NumberRange.new(Lifetime1,Lifetime2)
1247
		PRTCL3.Speed = NumberRange.new(Speed)
1248
		PRTCL3.VelocitySpread = Offset
1249
		PRTCL3.Drag = Drag
1250
		PRTCL3.Acceleration = Acel
1251
	if Enabled == false then
1252
		PRTCL3:Emit(Emit)
1253
		Debris:AddItem(PRTCL3,Lifetime2)
1254
	else
1255
		PRTCL3.Enabled = true
1256
	end
1257
	return PRTCL3
1258
end
1259
1260
local Handle = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.2,0.6,0.2),false)
1261
local RightArmGrasp = CreateWeldOrSnapOrMotor("Weld", Handle, RightArm, Handle, CF(0,-1, 0) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0.21, 0))
1262
local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.2,0.5,0.2),false)
1263
MakeForm(Part,"Wedge")
1264
CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.3, 0.2) * ANGLES(RAD(0), RAD(180), RAD(0)), CF(0, 0, 0))
1265
local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.2,0.3,0.2),false)
1266
MakeForm(Part,"Wedge")
1267
CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.4, 0) * ANGLES(RAD(0), RAD(0), RAD(180)), CF(0, 0, 0))
1268
local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.3,0.3,0.3),false)
1269
CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.5, 0.2) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
1270
local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.3,0.5,0.5),false)
1271
CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.5) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
1272
local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.4,0.4,0.4),false)
1273
MakeForm(Part,"Cyl")
1274
CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.5) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
1275
for i = 1, 8 do
1276
	local Piece = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Eye", VT(0,0.35,0.41),false)
1277
	CreateWeldOrSnapOrMotor("Weld", Handle, Part, Piece, CF(0, 0, 0) * ANGLES(RAD(0), RAD((360/8)*i), RAD(0)), CF(0, 0, 0))
1278
end
1279
local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Eye", VT(0.38,0.41,0.38),false)
1280
MakeForm(Part,"Cyl")
1281
CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.5) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
1282
local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.37,0.5,0.37),false)
1283
MakeForm(Part,"Ball")
1284
CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.3) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
1285
local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.2,0.7,0.4),false)
1286
MakeForm(Part,"Wedge")
1287
CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.7, 0.5) * ANGLES(RAD(90), RAD(180), RAD(180)), CF(0, 0, 0))
1288
local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.3,0.4,0.2),false)
1289
CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.7) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
1290
local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.35,0.35,0.35),false)
1291
MakeForm(Part,"Cyl")
1292
CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.7) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
1293
local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.5,0.1,0.5),false)
1294
MakeForm(Part,"Cyl")
1295
CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 1) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
1296
local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.5,0.1,0.45),false)
1297
MakeForm(Part,"Cyl")
1298
CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 1.1) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
1299
local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.2,0.5,0.2),false)
1300
MakeForm(Part,"Wedge")
1301
CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.55, 0.2) * ANGLES(RAD(-135), RAD(0), RAD(0)), CF(0, -0.3, 0))
1302
local LASTPART = Handle
1303
for i = 1, 10 do
1304
	if LASTPART == Handle then
1305
		local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.1,0.2,0),false)
1306
		LASTPART = Part
1307
		CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.1, 0.2) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
1308
	else
1309
		local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.1,0.05,0),false)
1310
		CreateWeldOrSnapOrMotor("Weld", Handle, LASTPART, Part, CF(0, 0.025, 0) * ANGLES(RAD(8), RAD(0), RAD(0)), CF(0, -0.025, 0))
1311
		LASTPART = Part
1312
	end
1313
end
1314
1315
local Barrel = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.15,2,0.15),false)
1316
MakeForm(Barrel,"Cyl")
1317
CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Barrel, CF(0, -0.6, 1.8) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
1318
local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.25,1,0.25),false)
1319
MakeForm(Part,"Cyl")
1320
CreateWeldOrSnapOrMotor("Weld", Handle, Barrel, Part, CF(0, -0.6, 0), CF(0, 0, 0))
1321
local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0,0.1,0.2),false)
1322
MakeForm(Part,"Wedge")
1323
CreateWeldOrSnapOrMotor("Weld", Handle, Barrel, Part, CF(0, 0.945, 0.1) * ANGLES(RAD(180), RAD(0), RAD(0)), CF(0, 0, 0))
1324
local Hole = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Eye", VT(0.125,0,0.125),false)
1325
MakeForm(Hole,"Cyl")
1326
CreateWeldOrSnapOrMotor("Weld", Handle, Barrel, Hole, CF(0, 0.98, 0), CF(0, 0, 0))
1327
local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0,0,0),false)
1328
local GEARWELD = CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -1.0, 0.7), CF(0, 0, 0))
1329
CreateMesh("SpecialMesh", Part, "FileMesh", 156292343, "", VT(0.8,0.8,1.5), VT(0,0,0.5))
1330
local Part = CreatePart(3, Weapon, "Metal", 0, 0.5, "Mid gray", "Eye", VT(0,0,0),false)
1331
local GEARWELD2 = CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, 0.0, 0.7), CF(0, 0, 0))
1332
CreateMesh("SpecialMesh", Part, "FileMesh", 156292343, "", VT(0.9,0.9,0.3), VT(0,0,0.5))
1333
coroutine.resume(coroutine.create(function()
1334
	while wait() do
1335
		GEARWELD.C0 = GEARWELD.C0 * ANGLES(RAD(0), RAD(4), RAD(6))
1336
		GEARWELD2.C0 = GEARWELD2.C0 * ANGLES(RAD(0), RAD(-3), RAD(-5))
1337
	end
1338
end))
1339
CreateWeldOrSnapOrMotor("Weld", Handle, Barrel, Hole, CF(0, 0.98, 0), CF(0, 0, 0))
1340
local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0,0,0),false)
1341
local GEARWELD = CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.4, 0.7), CF(0, 0, 0))
1342
CreateMesh("SpecialMesh", Part, "FileMesh", 156292343, "", VT(0.3,0.3,1.2), VT(0,0,0.2))
1343
local Part = CreatePart(3, Weapon, "Metal", 0, 0.5, "Mid gray", "Eye", VT(0,0,0),false)
1344
local GEARWELD2 = CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -1.3, 0.7), CF(0, 0, 0))
1345
CreateMesh("SpecialMesh", Part, "FileMesh", 156292343, "", VT(0.4,0.4,0.4), VT(0,0,0.2))
1346
coroutine.resume(coroutine.create(function()
1347
	while wait() do
1348
		GEARWELD.C0 = GEARWELD.C0 * ANGLES(RAD(3), RAD(3), RAD(5))
1349
		GEARWELD2.C0 = GEARWELD2.C0 * ANGLES(RAD(-3), RAD(-3), RAD(-5))
1350
	end
1351
end))
1352
1353
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)})
1354
--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)})
1355
1356
for _, c in pairs(Weapon:GetDescendants()) do
1357
	if c.ClassName == "Part" and c.Name ~= "Eye" and c.Parent ~= Effects and c.Parent.Parent ~= Effects then
1358
		c.Material = "Glass"
1359
		c.Color = C3(0,0,0)
1360
	elseif c.ClassName == "Part" and c.Name == "Eye" then
1361
		c.Color = C3(0,1,0)
1362
		c.Material = "Neon"
1363
	end
1364
end
1365
1366
Weapon.Parent = Character
1367
for _, c in pairs(Weapon:GetChildren()) do
1368
	if c.ClassName == "Part" then
1369
		c.CustomPhysicalProperties = PhysicalProperties.new(0, 0, 0, 0, 0)
1370
	end
1371
end
1372
1373
1374
local SKILLTEXTCOLOR = C3(0,0,1)
1375
local SKILLFONT = "Antique"
1376
local SKILLTEXTSIZE = 7
1377
1378
Humanoid.Died:connect(function()
1379
	ATTACK = true
1380
end)
1381
1382
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")
1383
--[[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")
1384
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")
1385
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")
1386
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")
1387
--]]
1388
local SKILL1TEXT = CreateLabel(SKILL1FRAME, "[Z] Banisher Bullet", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0.7, "Text 1")
1389
--[[local SKILL2TEXT = CreateLabel(SKILL2FRAME, "[B] Ability 2", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0.7, "Text 2")
1390
local SKILL3TEXT = CreateLabel(SKILL3FRAME, "[C] Ability 3", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0.7, "Text 3")
1391
local SKILL4TEXT = CreateLabel(SKILL4FRAME, "[V] Ability 4", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0.7, "Text 4")
1392
local SKILL5TEXT = CreateLabel(SKILL5FRAME, "[X] Mercy", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0.7, "Text 5")
1393
--]]
1394
function printbye(Name)
1395
	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, "}
1396
	warn(MESSAGES[MRANDOM(1,#MESSAGES)]..Name..".")
1397
		
1398
end
1399
1400
1401
--//=================================\\
1402
--||			DAMAGING
1403
--\\=================================//
1404
--BANNEAREST(RootPart.CFrame*CF(0,0,-4).p,18)
1405
1406
1407
function Banish(Foe)
1408
    if Foe then
1409
        coroutine.resume(coroutine.create(function()
1410
            --if game.Players:FindFirstChild(Foe.Name) then
1411
                table.insert(TOBANISH,Foe.Name)
1412
                printbye(Foe.Name)
1413
            --end
1414
            Foe.Archivable = true
1415
            local CLONE = Foe:Clone()
1416
            Foe:Destroy()
1417
            CLONE.Parent = Effects
1418
            CLONE:BreakJoints()
1419
            local MATERIALS = {"Glass","Neon"}
1420
            for _, c in pairs(CLONE:GetDescendants()) do
1421
                if c:IsA("BasePart") then
1422
                    if c.Name == "Torso" or c.Name == "UpperTorso" or c == CLONE.PrimaryPart then
1423
                        CreateSound(340722848, c, 10, 1, false)
1424
                    end
1425
                    c.Anchored = true
1426
                    c.Transparency = c.Transparency + 0.2
1427
                    c.Material = MATERIALS[MRANDOM(1,2)]
1428
                    c.Color = C3(1,0,0)
1429
                    if c.ClassName == "MeshPart" then
1430
                        c.TextureID = ""
1431
                    end
1432
                    if c:FindFirstChildOfClass("SpecialMesh") then
1433
                        c:FindFirstChildOfClass("SpecialMesh").TextureId = ""
1434
                    end
1435
                    if c:FindFirstChildOfClass("Decal") then
1436
                        c:FindFirstChildOfClass("Decal"):remove()
1437
                    end
1438
                    c.Name = "Banished"
1439
                    c.CanCollide = false
1440
                else
1441
                    c:remove()
1442
                end
1443
            end
1444
            local A = false
1445
            for i = 1, 35 do
1446
                if A == false then
1447
                    A = true
1448
                elseif A == true then
1449
                    A = false
1450
                end
1451
                for _, c in pairs(CLONE:GetDescendants()) do
1452
                    if c:IsA("BasePart") then
1453
                        c.Anchored = true
1454
                        c.Material = MATERIALS[MRANDOM(1,2)]
1455
                        c.Transparency = c.Transparency + 0.8/35
1456
                        if A == false then
1457
                            c.CFrame = c.CFrame*CF(MRANDOM(-45,45)/45,MRANDOM(-45,45)/45,MRANDOM(-45,45)/45)
1458
                        elseif A == true then
1459
                            c.CFrame = c.CFrame*CF(MRANDOM(-45,45)/45,MRANDOM(-45,45)/45,MRANDOM(-45,45)/45)                       
1460
                        end
1461
                    end
1462
                end
1463
                Swait()
1464
            end
1465
            CLONE:remove()
1466
        end))
1467
    end
1468
end
1469
 
1470
1471
1472
1473
1474
--//=================================\\
1475
--||	ATTACK FUNCTIONS AND STUFF
1476
--\\=================================//
1477
Animation_Speed2 = 0.5
1478
function Banisher()
1479
    ATTACK = true
1480
    Rooted = false
1481
    for i=0, 0.4, 0.1 / Animation_Speed2 do
1482
        Swait()
1483
        turnto(Mouse.Hit.p)
1484
        RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(90)), 0.5 / Animation_Speed)
1485
        Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(-90)), 0.5 / Animation_Speed)
1486
        RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(90), RAD(0), RAD(90)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed)
1487
        LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.6, 0) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, 0.5 / Animation_Speed)
1488
        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)
1489
        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)
1490
    end
1491
    repeat
1492
        for i=0, 0.2, 0.1 / Animation_Speed2 do
1493
            Swait()
1494
            turnto(Mouse.Hit.p)
1495
            RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(90)), 0.5 / Animation_Speed)
1496
            Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(-90)), 0.5 / Animation_Speed)
1497
            RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(90), RAD(0), RAD(90)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed)
1498
            LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.6, 0) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, 0.5 / Animation_Speed)
1499
            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)
1500
            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)
1501
        end
1502
        local HIT,POS = CastProperRay(Hole.Position, Mouse.Hit.p, 1000, Character)
1503
        SpawnTrail(Hole.Position,POS)
1504
        if HIT ~= nil then
1505
            if HIT.Parent ~= workspace and HIT.Parent.ClassName ~= "Folder" then        BANNEAREST(RootPart.CFrame*CF(0,0,-4).p,50)
1506
            end
1507
        end
1508
        WACKYEFFECT({Time = 20, 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(0,1,0), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
1509
        WACKYEFFECT({Time = 20, 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(0,1,0), SoundID = 213603013, SoundPitch = MRANDOM(8,11)/10, SoundVolume = 7})
1510
        WACKYEFFECT({Time = 20, EffectType = "Wave", Size = VT(0.3,0,0.3), Size2 = VT(2,0.5,2), Transparency = 0, Transparency2 = 1, CFrame = CF(POS,Hole.Position) * ANGLES(RAD(-90), RAD(0), RAD(0)), MoveToPos = nil, RotationX = 0, RotationY = -5, RotationZ = 0, Material = "Neon", Color = C3(0,1,0), SoundID = nil, SoundPitch = MRANDOM(8,11)/10, SoundVolume = 8})
1511
        WACKYEFFECT({Time = 20, EffectType = "Wave", Size = VT(0.3,0,0.3), Size2 = VT(2,0.5,2), Transparency = 0, Transparency2 = 1, CFrame = CF(POS,Hole.Position) * ANGLES(RAD(-90), RAD(0), RAD(0)), MoveToPos = nil, RotationX = 0, RotationY = 5, RotationZ = 0, Material = "Neon", Color = C3(0,1,0), SoundID = nil, SoundPitch = MRANDOM(8,11)/10, SoundVolume = 8})
1512
        for i=0, 0.3, 0.1 / Animation_Speed2 do
1513
            Swait()
1514
            RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(90)), 0.5 / Animation_Speed)
1515
            Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(-90)), 0.25 / Animation_Speed)
1516
            RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(90), RAD(15), RAD(90)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed)
1517
            LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.6, 0) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, 0.5 / Animation_Speed)
1518
            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)
1519
            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)
1520
        end
1521
    until KEYHOLD == false
1522
    ATTACK = false
1523
    Rooted = false
1524
end
1525
1526
function AttackTemplate()
1527
	ATTACK = true
1528
	Rooted = false
1529
	for i=0, 1, 0.1 / Animation_Speed do
1530
		Swait()
1531
		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)
1532
		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)
1533
		RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(12)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
1534
		LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
1535
		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)
1536
		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)
1537
	end
1538
	ATTACK = false
1539
	Rooted = false
1540
end
1541
1542
1543
function BanishmentBeam()
1544
    ATTACK = true
1545
    Rooted = false
1546
    local GYRO = IT("BodyGyro",RootPart)
1547
    GYRO.D = 100
1548
    GYRO.P = 2000
1549
    GYRO.MaxTorque = VT(0,4000000,0)
1550
    GYRO.cframe = CF(RootPart.Position,Mouse.Hit.p)
1551
    CreateSound("93724183", RightArm, 5, 1, false)
1552
    for i=1, 35 do
1553
        Swait()
1554
        WACKYEFFECT({Time = 5, EffectType = "Block", Size = VT(5,5,5), Size2 = VT(0,0,0), Transparency = 1, Transparency2 = 0.25, CFrame = RightArm.CFrame*CF(0,-5,0), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = SKILLTEXTCOLOR, SoundID = nil, SoundPitch = 0.6, SoundVolume = 6})
1555
        GYRO.cframe = CF(RootPart.Position,Mouse.Hit.p)
1556
        RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.25 * COS(SINE / 12)) * ANGLES(RAD(4 + 2.5 * SIN(SINE / 12)), RAD(0), RAD(45)), 1 / Animation_Speed)
1557
        Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(15 + 4.5 * SIN(SINE / 12)), RAD(0), RAD(-45 - 4 * SIN(SINE / 12))), 1 / Animation_Speed)
1558
        RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5 + 0.025 * COS(SINE / 12), -0.5) * ANGLES(RAD(90), RAD(0 - 7.5 * SIN(SINE / 12)), RAD(45 + 7.5 * SIN(SINE / 12))) * RIGHTSHOULDERC0, 1 / Animation_Speed)
1559
        LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5 + 0.025 * COS(SINE / 12), 0) * ANGLES(RAD(0), RAD(0 + 7.5 * SIN(SINE / 12)), RAD(-12 - 7.5 * SIN(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed)
1560
        RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(-7.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
1561
        LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(-7.5 * SIN(SINE / 12)), RAD(-90), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
1562
    end
1563
    local BEAM = CreatePart(3, Effects, "Neon", 0, 1, "Toothpaste", "Lazer", VT(0,0,0))
1564
    local LOOP = CreateSound("415700134", RightArm, 5, 1, false)
1565
    local TOCH = BEAM.Touched:Connect(function(hit)
1566
    end)
1567
    local I = 0
1568
    repeat
1569
        Swait()
1570
        I = I + 1
1571
        if I <= 10 then
1572
            BEAM.Transparency = BEAM.Transparency - 0.5
1573
        end
1574
        local STARTPOS = RightArm.CFrame*CF(0,-4,0).p
1575
        local ENDHIT,ENDPOS = CastProperRay(STARTPOS,Mouse.Hit.p,650,Character)
1576
        local DISTANCE = (STARTPOS - ENDPOS).Magnitude
1577
        BEAM.CFrame = CF(STARTPOS,ENDPOS)*CF(0,0,-DISTANCE/2)*ANGLES(RAD(0),RAD(0),RAD(I*5))
1578
        BEAM.Size = VT(2,2,DISTANCE)
1579
        GYRO.cframe = CF(RootPart.Position,Mouse.Hit.p)
1580
        WACKYEFFECT({Time = 5, EffectType = "Block", Size = VT(5,5,5), Size2 = VT(0,0,0), Transparency = 0.75, Transparency2 = 0.005, CFrame = RightArm.CFrame*CF(0,-5,0), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = SKILLTEXTCOLOR, SoundID = nil, SoundPitch = 0.6, SoundVolume = 6})
1581
        RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.25 * COS(SINE / 12)) * ANGLES(RAD(4 + 2.5 * SIN(SINE / 12)), RAD(0), RAD(45)), 1 / Animation_Speed)
1582
        Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(15 + 4.5 * SIN(SINE / 12)), RAD(0), RAD(-45 - 4 * SIN(SINE / 12))), 1 / Animation_Speed)
1583
        RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5 + 0.025 * COS(SINE / 12), -0.5) * ANGLES(RAD(90), RAD(0 - 7.5 * SIN(SINE / 12)), RAD(45 + 7.5 * SIN(SINE / 12))) * RIGHTSHOULDERC0, 1 / Animation_Speed)
1584
        LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5 + 0.025 * COS(SINE / 12), 0) * ANGLES(RAD(0), RAD(0 + 7.5 * SIN(SINE / 12)), RAD(-12 - 7.5 * SIN(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed)
1585
        RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(-7.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
1586
        LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(-7.5 * SIN(SINE / 12)), RAD(-90), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
1587
        if ENDHIT ~= nil then
1588
            if ENDHIT.Anchored == false and ENDHIT.Parent ~= Effects then
1589
                BANNEAREST(RootPart.CFrame*CF(0,0,-5).p,25)
1590
            end
1591
        end
1592
    until LOOP.Playing == false
1593
    GYRO:remove()
1594
    BEAM:remove()
1595
    ATTACK = false
1596
    Rooted = false
1597
end
1598
1599
1600
function Lift()
1601
    if Mouse.Target.Parent ~= Character and Mouse.Target.Parent.Parent ~= Character and Mouse.Target.Parent:FindFirstChildOfClass("Humanoid") ~= nil then
1602
        local HUM = Mouse.Target.Parent:FindFirstChildOfClass("Humanoid")
1603
        local TORSO = HUM.Parent:FindFirstChild("Torso") or HUM.Parent:FindFirstChild("UpperTorso")
1604
        if TORSO and HUM.Health > 0 then
1605
            ATTACK = true
1606
            Rooted = false
1607
            local GYRO = IT("BodyGyro",RootPart)
1608
            GYRO.D = 275
1609
            GYRO.P = 20000
1610
            GYRO.MaxTorque = VT(0,40000,0)
1611
            for i=0, 0.8, 0.1 / Animation_Speed do
1612
                Swait()
1613
                GYRO.cframe = CF(RootPart.Position,TORSO.Position)
1614
                RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0  + 0.25 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
1615
                Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(15 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
1616
                RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, -0.5) * ANGLES(RAD(0), RAD(0), RAD(-85)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
1617
                LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.15, -0.5) * ANGLES(RAD(-15), RAD(0), RAD(85)) * LEFTSHOULDERC0, 1 / Animation_Speed)
1618
                RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(-2.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
1619
                LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(-2.5 * SIN(SINE / 12)), RAD(-90), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
1620
            end        
1621
            local MAGIC = ParticleEmitter({Speed = 5, Drag = 3, Size1 = 1.7, Size2 = 0, Lifetime1 = 1, Lifetime2 = 3, Parent = TORSO, Emit = 100, Offset = 360, Enabled = true})
1622
            MAGIC.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,1),NumberSequenceKeypoint.new(1,0)})
1623
            local grav = Instance.new("BodyPosition",TORSO)
1624
            grav.D = 1500
1625
            grav.P = 20000
1626
            grav.maxForce = Vector3.new(math.huge,math.huge,math.huge)
1627
            grav.position = TORSO.Position+VT(0,15,0)
1628
            Debris:AddItem(grav,10)
1629
            Debris:AddItem(MAGIC,10)
1630
            CreateSound(902204346, Torso, 7, 1, false)
1631
            CreateSound(902204346, TORSO, 7, 1, false)
1632
            for i=0, 1, 0.1 / Animation_Speed do
1633
                Swait()
1634
                RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0  + 0.25 * COS(SINE / 12)) * ANGLES(RAD(-35), RAD(0), RAD(0)), 1 / Animation_Speed)
1635
                Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-15 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
1636
                RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(125), RAD(-45), RAD(15)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
1637
                LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(125), RAD(45), RAD(-15)) * LEFTSHOULDERC0, 1 / Animation_Speed)
1638
                RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(-35-2.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
1639
                LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(-35-2.5 * SIN(SINE / 12)), RAD(-90), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
1640
            end
1641
            GYRO:remove()
1642
            ATTACK = false
1643
            Rooted = false
1644
        end
1645
    end
1646
end
1647
1648
function Shot2()
1649
	ATTACK = true
1650
	Rooted = false
1651
	repeat
1652
		local GYRO = IT("BodyGyro",RootPart)
1653
		GYRO.D = 175
1654
		GYRO.P = 20000
1655
		GYRO.MaxTorque = VT(0,40000,0)
1656
		GYRO.cframe = CF(RootPart.Position,Mouse.Hit.p)
1657
		if COMBO == 1 then
1658
			COMBO = 2
1659
			for i=0, 0.6, 0.3 / Animation_Speed do
1660
				Swait()
1661
				GYRO.cframe = CF(RootPart.Position,Mouse.Hit.p)
1662
				RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0  + 0.25 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(-50)), 1 / Animation_Speed)
1663
				Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(50)), 1 / Animation_Speed)
1664
				RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.25, 0.35 + 0.15 * COS(SINE / 12), 0) * ANGLES(RAD(110), RAD(-15 - 2.5 * SIN(SINE / 12)), RAD(35 + 7.5 * SIN(SINE / 12))) * RIGHTSHOULDERC0, 1 / Animation_Speed)
1665
				LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(90), RAD(0), RAD(-50)) * LEFTSHOULDERC0, 1 / Animation_Speed)
1666
		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)
1667
		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)
1668
			end
1669
		local HIT,POS = CastProperRay(Hole2.Position, Mouse.Hit.p, 1000, Character)
1670
		SpawnTrail2(Hole2.Position,POS)
1671
		if HIT ~= nil then
1672
			if HIT.Parent ~= workspace and HIT.Parent.ClassName ~= "Folder" then
1673
				Banish(HIT.Parent)
1674
			end
1675
		end
1676
		WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(0.3,0,0.3), Size2 = VT(1,1.5,1), Transparency = 0, Transparency2 = 1, CFrame = Hole2.CFrame, MoveToPos = Hole2.CFrame*CF(0,0.5,0).p, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
1677
		WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(0.3,0,0.3), Size2 = VT(2,0.5,2), Transparency = 0, Transparency2 = 1, CFrame = Hole2.CFrame, MoveToPos = nil, RotationX = 0, RotationY = 5, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = 213603013, SoundPitch = MRANDOM(8,11)/10, SoundVolume = 8})
1678
		WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(0.3,0,0.3), Size2 = VT(2,0.5,2), Transparency = 0, Transparency2 = 1, CFrame = CF(POS,Hole2.Position) * ANGLES(RAD(-90), RAD(0), RAD(0)), MoveToPos = nil, RotationX = 0, RotationY = -5, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = nil, SoundPitch = MRANDOM(8,11)/10, SoundVolume = 8})
1679
		WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(0.3,0,0.3), Size2 = VT(2,0.5,2), Transparency = 0, Transparency2 = 1, CFrame = CF(POS,Hole2.Position) * ANGLES(RAD(-90), RAD(0), RAD(0)), MoveToPos = nil, RotationX = 0, RotationY = 5, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = nil, SoundPitch = MRANDOM(8,11)/10, SoundVolume = 8})
1680
		
1681
			for i=0, 0.2, 0.3 / Animation_Speed do
1682
				Swait()
1683
				RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0  + 0.25 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(-50)), 1 / Animation_Speed)
1684
				Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(50)), 1 / Animation_Speed)
1685
				RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.25, 0.35 + 0.15 * COS(SINE / 12), 0) * ANGLES(RAD(110), RAD(-15 - 2.5 * SIN(SINE / 12)), RAD(35 + 7.5 * SIN(SINE / 12))) * RIGHTSHOULDERC0, 1 / Animation_Speed)
1686
				LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(130), RAD(0), RAD(-50)) * LEFTSHOULDERC0, 1 / Animation_Speed)
1687
		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)
1688
		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)
1689
			end
1690
		elseif COMBO == 2 then
1691
			COMBO = 1
1692
			for i=0, 0.6, 0.3 / Animation_Speed do
1693
				Swait()
1694
				GYRO.cframe = CF(RootPart.Position,Mouse.Hit.p)
1695
				RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0  + 0.25 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(50)), 1 / Animation_Speed)
1696
				Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(-50)), 1 / Animation_Speed)
1697
				RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(90), RAD(0), RAD(50)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
1698
				LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25, 0.35 + 0.15 * COS(SINE / 12), 0) * ANGLES(RAD(140), RAD(15 + 2.5 * SIN(SINE / 12)), RAD(-35 - 7.5 * SIN(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed)
1699
		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)
1700
		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)
1701
			end
1702
		local HIT,POS = CastProperRay(Hole.Position, Mouse.Hit.p, 1000, Character)
1703
		SpawnTrail(Hole.Position,POS)
1704
		if HIT ~= nil then
1705
			if HIT.Parent ~= workspace and HIT.Parent.ClassName ~= "Folder" then
1706
				Banish(HIT.Parent)
1707
			end
1708
		end
1709
		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(0,0,0), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
1710
		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(0,0,0), SoundID = 213603013, SoundPitch = MRANDOM(8,11)/10, SoundVolume = 8})
1711
		WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(0.3,0,0.3), Size2 = VT(2,0.5,2), Transparency = 0, Transparency2 = 1, CFrame = CF(POS,Hole.Position) * ANGLES(RAD(-90), RAD(0), RAD(0)), MoveToPos = nil, RotationX = 0, RotationY = -5, RotationZ = 0, Material = "Neon", Color = C3(0,0,0), SoundID = nil, SoundPitch = MRANDOM(8,11)/10, SoundVolume = 8})
1712
		WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(0.3,0,0.3), Size2 = VT(2,0.5,2), Transparency = 0, Transparency2 = 1, CFrame = CF(POS,Hole.Position) * ANGLES(RAD(-90), RAD(0), RAD(0)), MoveToPos = nil, RotationX = 0, RotationY = 5, RotationZ = 0, Material = "Neon", Color = C3(0,0,0), SoundID = nil, SoundPitch = MRANDOM(8,11)/10, SoundVolume = 8})
1713
		
1714
			for i=0, 0.2, 0.3 / Animation_Speed do
1715
				Swait()
1716
				RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0  + 0.25 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(50)), 1 / Animation_Speed)
1717
				Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(-50)), 1 / Animation_Speed)
1718
				RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(130), RAD(0), RAD(50)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
1719
				LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25, 0.35 + 0.15 * COS(SINE / 12), 0) * ANGLES(RAD(140), RAD(15 + 2.5 * SIN(SINE / 12)), RAD(-35 - 7.5 * SIN(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed)
1720
		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)
1721
		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)
1722
			end
1723
		end
1724
		GYRO:remove()
1725
	until KEYHOLD == false
1726
	ATTACK = false
1727
	Rooted = false
1728
end
1729
1730
function MakeRing()
1731
	local RING = CreatePart(3, Effects, "Neon", 0, 1, BRICKC("Pearl"), "MagicRing", VT(0, 0, 0), true)
1732
	local MSH = IT("BlockMesh", RING)
1733
	local TOP = DECAL:Clone()
1734
	local BOTTOM = DECAL:Clone()
1735
	TOP.Parent = RING
1736
	BOTTOM.Parent = RING
1737
	TOP.Face = "Top"
1738
	BOTTOM.Face = "Bottom"
1739
	TOP.Texture = "http://www.roblox.com/asset/?id=121028264"
1740
	BOTTOM.Texture = "http://www.roblox.com/asset/?id=121028264"
1741
	local function REMOVE()
1742
		coroutine.resume(coroutine.create(function()
1743
			local SIZE = MSH.Scale.X
1744
			for i = 1, 35 do
1745
				Swait()
1746
				MSH.Scale = MSH.Scale - VT(SIZE, 0, SIZE) / 60
1747
				TOP.Transparency = TOP.Transparency + 0.02857142857142857
1748
				BOTTOM.Transparency = BOTTOM.Transparency + 0.02857142857142857
1749
				RING.CFrame = RING.CFrame * ANGLES(RAD(0), RAD(-5), RAD(0))
1750
			end
1751
			RING:remove()
1752
		end))
1753
	end
1754
	return RING, MSH, REMOVE
1755
end
1756
1757
function Beam()
1758
	ATTACK = true
1759
	Rooted = false
1760
	local GYRO = IT("BodyGyro", RootPart)
1761
	GYRO.D = 20
1762
	GYRO.P = 4000
1763
	GYRO.MaxTorque = VT(0, 40000, 0)
1764
	local RING, MESH, DELET = MakeRing()
1765
	local POS = RootPart.Position + VT(0, 25, 0)
1766
	RING.CFrame = CF(POS, Mouse.Hit.p) * ANGLES(RAD(90), RAD(0), RAD(0))
1767
	CreateSound(459523787, RING, 8, 1, false)
1768
	local BLASTS = {468991944, 468991990}
1769
	coroutine.resume(coroutine.create(function()
1770
		local E = 0
1771
		repeat
1772
			E = E + 5
1773
			GYRO.CFrame = CF(RootPart.Position, Mouse.Hit.p)
1774
			Swait()
1775
			RING.CFrame = CF(POS, Mouse.Hit.p) * ANGLES(RAD(90), RAD(E), RAD(0))
1776
			RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 + 0.45 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(90)), 1 / Animation_Speed)
1777
			Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0 + 4.5 * SIN(SINE / 12)), RAD(0), RAD(-90)), 1 / Animation_Speed)
1778
			RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5 + 0.25 * COS(SINE / 12), 0) * ANGLES(RAD(0), RAD(0), RAD(90)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
1779
			LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5 + 0.25 * COS(SINE / 12), 0) * ANGLES(RAD(0 - 7.5 * SIN(SINE / 12)), RAD(0 + 7.5 * SIN(SINE / 12)), RAD(-12 - 7.5 * SIN(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed)
1780
			RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 + 0.15 * COS(SINE / 12), -0.01) * ANGLES(RAD(-7.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
1781
			LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5 + 0.25 * COS(SINE / 12), -0.5) * ANGLES(RAD(-7.5 * SIN(SINE / 12)), RAD(-90), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
1782
		until ATTACK == false
1783
		GYRO:remove()
1784
		DELET()
1785
	end))
1786
	for i = 1, 50 do
1787
		Swait()
1788
		MESH.Scale = MESH.Scale + VT(22, 0, 22)
1789
	end
1790
	for i = 1, 25 do
1791
		Swait()
1792
		WACKYEFFECT({
1793
			Time = 15,
1794
			EffectType = "Sphere",
1795
			Size = VT(4, 4, 4),
1796
			Size2 = VT(0, 0, 0),
1797
			Transparency = 1,
1798
			Transparency2 = 0,
1799
			CFrame = CF(RING.Position) * ANGLES(RAD(MRANDOM(0, 360)), RAD(MRANDOM(0, 360)), RAD(MRANDOM(0, 360))) * CF(0, 0, 35),
1800
			MoveToPos = RING.Position,
1801
			RotationX = 0,
1802
			RotationY = 0,
1803
			RotationZ = 0,
1804
			Material = "Neon",
1805
			Color = C3(1,0,0),
1806
			SoundID = nil,
1807
			SoundPitch = nil,
1808
			SoundVolume = nil
1809
		})
1810
	end
1811
	local LOOP = 0
1812
	local BEAM = CreatePart(3, Effects, "Neon", 0, 0, BRICKC("Really red"), "Beam", VT(0, 0, 0), true)
1813
	MakeForm(BEAM, "Cyl")
1814
	CreateSound(BLASTS[MRANDOM(1, #BLASTS)], RING, 5, MRANDOM(9, 11) / 10, false)
1815
	repeat
1816
		local DISTANCE = (RING.Position - Mouse.Hit.p).Magnitude
1817
		if DISTANCE < 2000 then
1818
			BEAM.Size = VT(10 + 2 * COS(SINE / 4), DISTANCE, 10 + 2 * COS(SINE / 4))
1819
			BEAM.CFrame = CF(RING.Position, Mouse.Hit.p) * CF(0, 0, -DISTANCE / 2) * ANGLES(RAD(90), RAD(0), RAD(0))
1820
			BANNEAREST(RootPart.CFrame*CF(0,0,-4).p,18)
1821
			
1822
			WACKYEFFECT({
1823
				Time = 35,
1824
				EffectType = "Sphere",
1825
				Size = VT(10 + 2 * COS(SINE / 4), 10 + 2 * COS(SINE / 4), 10 + 2 * COS(SINE / 4)) * 2,
1826
				Size2 = VT(5, 75, 5),
1827
				Transparency = 0,
1828
				Transparency2 = 1,
1829
				CFrame = CF(Mouse.Hit.p) * ANGLES(RAD(MRANDOM(0, 360)), RAD(MRANDOM(0, 360)), RAD(MRANDOM(0, 360))),
1830
				MoveToPos = nil,
1831
				RotationX = 0,
1832
				RotationY = 0,
1833
				RotationZ = 0,
1834
				Material = "Neon",
1835
				Color = C3(1,0,0),
1836
				SoundID = 2918050487,
1837
				SoundPitch = MRANDOM(9, 12) / 10,
1838
				SoundVolume = 10
1839
			})
1840
			Swait()
1841
			LOOP = LOOP + 1
1842
		end
1843
	until KEYHOLD == false and LOOP >= 35 or DISTANCE >= 2000
1844
	coroutine.resume(coroutine.create(function()
1845
		for i = 1, 15 do
1846
			Swait()
1847
			BEAM.Size = BEAM.Size - VT(0.2, 0, 0.2)
1848
			BEAM.Transparency = BEAM.Transparency + 0.06666666666666667
1849
		end
1850
		BEAM:remove()
1851
	end))
1852
	ATTACK = false
1853
	Rooted = false
1854
end
1855
1856
1857
1858
1859
1860
1861
1862
1863
1864
1865
1866
1867
1868
1869
1870
1871
1872
1873
1874
1875
1876
1877
1878
1879
1880
1881
function CharacterFade(COLOR,TIMER,MOVEDIRECTION,PARENT)
1882
	coroutine.resume(coroutine.create(function()
1883
		local FADE = IT("Model",Effects)
1884
		if PARENT ~= nil then
1885
			FADE.Parent = PARENT
1886
		end
1887
		FADE.Name = "FadingEffect"
1888
		for _, c in pairs(Character:GetChildren()) do
1889
			if c.ClassName == "Part" then
1890
				c.CanCollide = false
1891
				local FADER = CreatePart(3, FADE, "Neon", 0, 0.75, BRICKC("Pearl"), c.Name, c.Size, true)
1892
				FADER.CFrame = c.CFrame
1893
				FADER.Color = COLOR
1894
				if FADER.Name == "Head" then
1895
					Head:FindFirstChildOfClass("SpecialMesh"):Clone().Parent = FADER
1896
				elseif FADER.Name == "HumanoidRootPart" then
1897
					FADE.PrimaryPart = FADER
1898
					FADER.Transparency = 1
1899
				end
1900
			end
1901
		end
1902
		local TRANS = 0.25/TIMER
1903
		local DIST = nil
1904
		if MOVEDIRECTION ~= nil then
1905
			DIST = (FADE.PrimaryPart.Position - MOVEDIRECTION).Magnitude
1906
		end
1907
		for i = 1, TIMER do
1908
			Swait()
1909
			for _, c in pairs(FADE:GetChildren()) do
1910
				if c.ClassName == "Part" then
1911
					c.Transparency = c.Transparency + TRANS
1912
				end
1913
			end
1914
			if MOVEDIRECTION ~= nil then
1915
				local ORI = FADE.PrimaryPart.Orientation
1916
				FADE:SetPrimaryPartCFrame(CF(CF(FADE.PrimaryPart.Position,MOVEDIRECTION)*CF(0,0,-DIST/TIMER).p) * ANGLES(RAD(ORI.X), RAD(ORI.Y), RAD(ORI.Z)))
1917
			end
1918
		end
1919
		FADE:remove()
1920
	end))
1921
end
1922
function R_RANDOM(CFRAME,DIST)
1923
	return CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))*CF(0,0,-DIST)
1924
end
1925
1926
function ApplyAoEl(POSITION,RANGE,MINDMG,MAXDMG,FLING,INSTAKILL)
1927
	for index, CHILD in pairs(workspace:GetDescendants()) do
1928
		if CHILD.ClassName == "Model" and CHILD ~= Character then
1929
			local HUM = CHILD:FindFirstChildOfClass("Humanoid")
1930
			if HUM then
1931
				local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso")
1932
				if TORSO then
1933
					if (TORSO.Position - POSITION).Magnitude <= RANGE then
1934
						if INSTAKILL == true then
1935
							CHILD:BreakJoints()
1936
						else
1937
							local DMG = MRANDOM(MINDMG,MAXDMG)
1938
							ApplyDamagel(HUM,DMG)
1939
						end
1940
						if FLING > 0 then
1941
							for _, c in pairs(CHILD:GetChildren()) do
1942
								if c:IsA("BasePart") then
1943
									local bv = Instance.new("BodyVelocity") 
1944
									bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
1945
									bv.velocity = CF(POSITION,TORSO.Position).lookVector*FLING
1946
									bv.Parent = c
1947
									Debris:AddItem(bv,0.05)
1948
								end
1949
							end
1950
						end
1951
					end
1952
				end
1953
			end
1954
		end
1955
	end
1956
end
1957
function ApplyDamagel(Humanoid,Damage)
1958
	Damage = Damage * DAMAGEMULTIPLIER
1959
	if Humanoid.Health < 0 then
1960
		if Humanoid.Health - Damage > 0 then
1961
			Humanoid.Health = Humanoid.Health - Damage
1962
		else
1963
			Humanoid.Parent:BreakJoints()
1964
		end
1965
	else
1966
		Humanoid.Parent:BreakJoints()
1967
	end
1968
end
1969
function NightmareFall()
1970
	if ANIM ~= "Fall" and ANIM ~= "Jump" and DAMAGEMULTIPLIER == 1 then
1971
		ATTACK = true
1972
		Rooted = true
1973
		EQUIPPED = true
1974
		CreateSound(1466932232,Head,10,1,false)
1975
		for i=0, 2, 0.1 / Animation_Speed do
1976
			Swait()
1977
			RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.1 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
1978
			Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(15 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
1979
			RightShoulder.C0 = Clerp(RightShoulder.C0, CF(0.75, 0.4 + 0.05 * SIN(SINE / 12), -0.7) * ANGLES(RAD(120), RAD(0), RAD(0)) * ANGLES(RAD(5), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
1980
			LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-0.75, 0.35 + 0.05 * SIN(SINE / 12), -0.6) * ANGLES(RAD(0), RAD(0), RAD(92)) * ANGLES(RAD(0), RAD(0), RAD(0)) * LEFTSHOULDERC0, 1 / Animation_Speed)
1981
			RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.6 - 0.05 * SIN(SINE / 12), -0.5) * ANGLES(RAD(0), RAD(70), RAD(0)) * ANGLES(RAD(-1), RAD(0), RAD(-25)), 1 / Animation_Speed)
1982
			LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * SIN(SINE / 12), 0) * ANGLES(RAD(-5), RAD(-70), RAD(0)) * ANGLES(RAD(1), RAD(0), RAD(0)), 1 / Animation_Speed)
1983
1984
		end
1985
		for i=0, 2, 0.1 / Animation_Speed do
1986
			Swait()
1987
			RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.1 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
1988
			Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(15 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
1989
			RightShoulder.C0 = Clerp(RightShoulder.C0, CF(0.75, 0.15 + 0.05 * SIN(SINE / 12), -0.7) * ANGLES(RAD(140), RAD(0), RAD(0)) * ANGLES(RAD(5), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
1990
			LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-0.75, 0.35 + 0.05 * SIN(SINE / 12), -0.6) * ANGLES(RAD(0), RAD(0), RAD(92)) * ANGLES(RAD(0), RAD(0), RAD(0)) * LEFTSHOULDERC0, 1 / Animation_Speed)
1991
			RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.6 - 0.05 * SIN(SINE / 12), -0.5) * ANGLES(RAD(0), RAD(70), RAD(0)) * ANGLES(RAD(-1), RAD(0), RAD(-25)), 1 / Animation_Speed)
1992
			LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * SIN(SINE / 12), 0) * ANGLES(RAD(-5), RAD(-70), RAD(0)) * ANGLES(RAD(1), RAD(0), RAD(0)), 1 / Animation_Speed)
1993
1994
		end
1995
		local SIZE = 0
1996
		local POS = RootPart.Position+VT(0,150,0)
1997
		local BLOWN = false
1998
		coroutine.resume(coroutine.create(function()
1999
			coroutine.resume(coroutine.create(function()
2000
				repeat
2001
					Swait()
2002
					if SIZE > 0 then
2003
						WACKYEFFECT({Time = 15, EffectType = "Block", Size = VT(0,0,0), Size2 = VT(SIZE,SIZE,SIZE)*2.5, Transparency = 0.3, Transparency2 = 1, CFrame = CF(POS), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(0,0,0), SoundID = nil, SoundPitch = 1, SoundVolume = 6, UseBoomerangMath = true, Boomerang = 0, SizeBoomerang = 35})
2004
						WACKYEFFECT({Time = 15, EffectType = "Block", Size = VT(0,0,0), Size2 = VT(SIZE,SIZE,SIZE)*3, Transparency = 0.8, Transparency2 = 1, CFrame = CF(POS), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(0,0,0), SoundID = nil, SoundPitch = 1, SoundVolume = 6, UseBoomerangMath = true, Boomerang = 0, SizeBoomerang = 35})
2005
					end
2006
				until BLOWN == true
2007
			end))
2008
			repeat
2009
				Swait()
2010
				RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.1 * COS(SINE / 12)) * ANGLES(RAD(-5), RAD(12), RAD(25)), 1 / Animation_Speed)
2011
				Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-35), RAD(0), RAD(-15)), 1 / Animation_Speed)
2012
				RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.75, 0) * ANGLES(RAD(180), RAD(15), RAD(17)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
2013
				LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-0.75, 0.35, -0.6) * ANGLES(RAD(0), RAD(0), RAD(92)) * ANGLES(RAD(0), RAD(0), RAD(0)) * LEFTSHOULDERC0, 1 / Animation_Speed)
2014
				RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.6 - 0.05 * SIN(SINE / 12), -0.5) * ANGLES(RAD(0), RAD(70), RAD(0)) * ANGLES(RAD(-1), RAD(0), RAD(-25)), 1 / Animation_Speed)
2015
				LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * SIN(SINE / 12), 0) * ANGLES(RAD(-5), RAD(-70), RAD(0)) * ANGLES(RAD(1), RAD(0), RAD(0)), 1 / Animation_Speed)
2016
2017
			until ATTACK == false
2018
		end))
2019
		wait(0.2)
2020
		for i = 1, 15 do
2021
			wait(MRANDOM(2,6)/45)
2022
			coroutine.resume(coroutine.create(function()
2023
				local CFRAME = CF(BLADE.Position,POS) * ANGLES(RAD(0), RAD(0), RAD(MRANDOM(-90,90)))
2024
				local HEIGHT = 45/5
2025
				local DISTANCE = (BLADE.Position - POS).Magnitude
2026
				for i = 1, 45 do
2027
					Swait()
2028
					CFRAME = CFRAME * CF(0,(HEIGHT-(i/2.575))/45,-DISTANCE/45)
2029
					WACKYEFFECT({Time = 15, EffectType = "Block", Size = VT(3,3,3), Size2 = VT(0,0,0), Transparency = 0.3, Transparency2 = 1, CFrame = CFRAME, MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(0,0,0), SoundID = nil, SoundPitch = 1, SoundVolume = 6, UseBoomerangMath = true, Boomerang = 0, SizeBoomerang = 0})
2030
				end
2031
				SIZE = SIZE + 1
2032
			end))
2033
		end
2034
		wait(2.5)
2035
		BLOWN = true
2036
		WACKYEFFECT({Time = 85, EffectType = "Sphere", Size = VT(25,25,25), Size2 = VT(150,50,150), Transparency = 0, Transparency2 = 1, CFrame = CF(POS), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(0,0,0), SoundID = 401056199, SoundPitch = 0.4, SoundVolume = 10, UseBoomerangMath = true, Boomerang = 0, SizeBoomerang = 35})
2037
		for E = 1, 5 do
2038
			for i = 1, 5 do
2039
				WACKYEFFECT({Time = 50+(E*4), EffectType = "Round Slash", Size = VT(0,0,0), Size2 = VT(E,0,E)/2, Transparency = 0, Transparency2 = 1, CFrame = CF(POS) * ANGLES(RAD(MRANDOM(0,360)), RAD(MRANDOM(0,360)), RAD(MRANDOM(0,360))), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(0,0,0), SoundID = nil, SoundPitch = nil, SoundVolume = nil, UseBoomerangMath = true, Boomerang = 0, SizeBoomerang = 10})
2040
			end
2041
		end
2042
		CreateSound(288641686,Effects,5,1,false)
2043
		CreateSound(592877506,Effects,5,1,false)
2044
		local HITS = {}
2045
		for index, CHILD in pairs(workspace:GetDescendants()) do
2046
			if CHILD.ClassName == "Model" and CHILD ~= Character then
2047
				local HUM = CHILD:FindFirstChildOfClass("Humanoid")
2048
				if HUM then
2049
					local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso")
2050
					if TORSO then
2051
						if (TORSO.Position - RootPart.Position).Magnitude <= 175 then
2052
							local PASS = true
2053
							for E = 1, #HITS do
2054
								if HITS[E] == CHILD then
2055
									PASS = false
2056
								end
2057
							end
2058
							if PASS == true then
2059
								table.insert(HITS,CHILD)
2060
							end
2061
						end
2062
					end
2063
				end
2064
			end
2065
		end	
2066
		if #HITS > 0 then
2067
			local DONE = false
2068
			local HUMS = {}
2069
			coroutine.resume(coroutine.create(function()
2070
				for E = 1, #HITS do
2071
					local HUM = HITS[E]:FindFirstChildOfClass("Humanoid")
2072
					table.insert(HUMS,HUM)
2073
					local TORSO = HITS[E]:FindFirstChild("Torso") or HITS[E]:FindFirstChild("UpperTorso")
2074
					local grav = Instance.new("BodyPosition",TORSO)
2075
					grav.D = 850
2076
					grav.P = 4000
2077
					grav.maxForce = Vector3.new(math.huge,math.huge,math.huge)
2078
					grav.Position = TORSO.Position+VT(0,35,0)
2079
					CreateSound(592877506,TORSO,5,0.5,false)
2080
					if TORSO then
2081
						coroutine.resume(coroutine.create(function()
2082
							local B = IT("Attachment",TORSO)
2083
							local ChainLink = IT("Beam",Torso)
2084
							ChainLink.Texture = "rbxassetid://73042633"
2085
							ChainLink.Color = ColorSequence.new(C3(0,0,0))
2086
							ChainLink.TextureSpeed = -1
2087
							ChainLink.FaceCamera = true
2088
							ChainLink.Width0 = 3
2089
							ChainLink.Width1 = 3
2090
							ChainLink.TextureLength = 3
2091
							ChainLink.Attachment0 = A
2092
							ChainLink.Attachment1 = B
2093
							ChainLink.CurveSize0 = 0
2094
							ChainLink.CurveSize1 = 0
2095
							ChainLink.FaceCamera = true
2096
							ChainLink.TextureMode = "Static"
2097
							ChainLink.Transparency = NumberSequence.new(0)
2098
							repeat
2099
								Swait()
2100
								WACKYEFFECT({Time = 5, EffectType = "Block", Size = VT(2,2,2)*TORSO.Size.Z, Size2 = VT(0,0,0), Transparency = 0.6, Transparency2 = 1, CFrame = CF(TORSO.Position), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(0,0,0), SoundID = nil, SoundPitch = 1, SoundVolume = 6, UseBoomerangMath = false, Boomerang = 0, SizeBoomerang = 35})
2101
							until DONE == true or HUM.Health < 1
2102
							B:Remove()
2103
							ChainLink:Remove()
2104
							grav:Remove()
2105
							if HUM.Health < 1 then
2106
								for E = 1, 2 do
2107
									for i = 1, 3 do
2108
										WACKYEFFECT({Time = 15, EffectType = "Round Slash", Size = VT(0,0,0), Size2 = VT(E,0,E)/6, Transparency = 0, Transparency2 = 1, CFrame = CF(TORSO.Position) * ANGLES(RAD(MRANDOM(0,360)), RAD(MRANDOM(0,360)), RAD(MRANDOM(0,360))), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(0,0,0), SoundID = nil, SoundPitch = nil, SoundVolume = nil, UseBoomerangMath = true, Boomerang = 0, SizeBoomerang = 10})
2109
									end
2110
								end
2111
								WACKYEFFECT({Time = 5, EffectType = "Block", Size = VT(2,2,2)*TORSO.Size.Z, Size2 = VT(6,6,6)*TORSO.Size.Z, Transparency = 0.6, Transparency2 = 1, CFrame = CF(TORSO.Position), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(0,0,0), SoundID = 160772554, SoundPitch = 1, SoundVolume = 6, UseBoomerangMath = true, Boomerang = 0, SizeBoomerang = 35})
2112
								for _, c in pairs(HITS[E]:GetChildren()) do
2113
									if c:IsA("BasePart") or c:IsA("Accessory") then
2114
										c:remove()
2115
									end
2116
								end
2117
								local BONES = {
2118
								Skull = {MeshId = 36869983,Size = VT(0.7,0.7,0.7)},
2119
								Ribs = {MeshId = 546760032,Size = VT(2.18, 1.884, 1.105)}
2120
								}
2121
								local SELECTABLEBONES = {
2122
								{MeshId = 546760045,Size = VT(0.468, 1.12, 0.346)},
2123
								{MeshId = 546760042,Size = VT(0.366, 0.991, 0.365)},
2124
								{MeshId = 546760029,Size = VT(0.441, 0.799, 0.347)},
2125
								{MeshId = 546760030,Size = VT(0.605, 0.843, 0.4)}
2126
								}
2127
								for i = 1, 9 do
2128
									local CHOSENPIECE = nil
2129
									if i == 1 then
2130
										CHOSENPIECE = BONES.Skull
2131
									elseif i == 2 then
2132
										CHOSENPIECE = BONES.Ribs
2133
									else
2134
										CHOSENPIECE = SELECTABLEBONES[MRANDOM(1,#SELECTABLEBONES)]
2135
									end
2136
									local BONE = CreatePart(3, HITS[E], "Neon", 0, 0, BRICKC("Salmon"), "RIP", CHOSENPIECE.Size, false)
2137
									BONE.CanCollide = true
2138
									BONE.CFrame = TORSO.CFrame*CF(MRANDOM(-10,10)/30,MRANDOM(-10,10)/30,MRANDOM(-10,10)/30)
2139
									if CHOSENPIECE.MeshId == 36869983 then
2140
										CreateMesh("SpecialMesh", BONE, "FileMesh", CHOSENPIECE.MeshId, "", VT(1,1,1)/1.5, VT(0,0,0))
2141
									else
2142
										CreateMesh("SpecialMesh", BONE, "FileMesh", CHOSENPIECE.MeshId, "", VT(1,1,1), VT(0,0,0))
2143
									end
2144
								end
2145
							end
2146
						end))
2147
					end
2148
				end
2149
				wait(1)
2150
				for i = 1, 250 do
2151
					Swait()
2152
					for E = 1, #HUMS do
2153
						if HUMS[E] then
2154
							if HUMS[E].Health > 0 then
2155
								HUMS[E].Health = HUMS[E].Health - 0.3
2156
								DAMAGEMULTIPLIER = DAMAGEMULTIPLIER + 0.0025
2157
								WACKYEFFECT({Time = 10, EffectType = "Round Slash", Size = VT(0,0,0), Size2 = VT(1.5,0,1.5)/20, Transparency = 0.9, Transparency2 = 1, CFrame = CF(Torso.Position) * ANGLES(RAD(MRANDOM(0,360)), RAD(MRANDOM(0,360)), RAD(MRANDOM(0,360))), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(0,0,0), SoundID = nil, SoundPitch = nil, SoundVolume = nil, UseBoomerangMath = true, Boomerang = 0, SizeBoomerang = 10})
2158
							end
2159
						end
2160
					end
2161
				end
2162
				local SKILLFRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0, 0, 0, 0), UD2(1, 0, 1, 0), C3(0,0,0), C3(0, 0, 0), "OWEXTRADAMAGE")
2163
				local SKILLTEXT = CreateLabel(SKILLFRAME, "!You have increased damage!", SKILLTEXTCOLOR, SKILLTEXTSIZE2, SKILLFONT, 1, 2, 1, "AAAA")
2164
				coroutine.resume(coroutine.create(function()
2165
					CreateSound(743521450,Cam,5,0.6,false)
2166
					for E = 1, 75 do
2167
						Swait()
2168
						SKILLTEXT.TextTransparency = SKILLTEXT.TextTransparency - 1/75
2169
					end
2170
					wait(4)
2171
					for E = 1, 25 do
2172
						Swait()
2173
						SKILLTEXT.TextTransparency = SKILLTEXT.TextTransparency + 1/25
2174
					end
2175
					SKILLFRAME:Remove()
2176
				end))
2177
				DONE = true
2178
				for i = 1, 50 do
2179
					wait(0.5)
2180
					for i = 1, 3 do
2181
						WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(0,0,0), Size2 = VT(DAMAGEMULTIPLIER-1,0.1,DAMAGEMULTIPLIER-1)*1.5, Transparency = 0.6, Transparency2 = 1, CFrame = CF(RootPart.CFrame*CF(0,-3.25,0).p) * ANGLES(RAD(0), RAD(MRANDOM(0,360)), RAD(0)), MoveToPos = nil, RotationX = 1, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(0,0,0), SoundID = nil, SoundPitch = MRANDOM(9,11)/10, SoundVolume = MRANDOM(9,11)/2, UseBoomerangMath = true, Boomerang = 0, SizeBoomerang = 22})
2182
					end
2183
				end
2184
				DAMAGEMULTIPLIER = 1
2185
			end))
2186
			wait(0.2)
2187
		end
2188
		wait(0.4)
2189
		EQUIPPED = false
2190
		ATTACK = false
2191
		Rooted = false
2192
	end
2193
end
2194
2195
2196
2197
--//=================================\\
2198
--||	  ASSIGN THINGS TO KEYS
2199
--\\=================================//
2200
2201
function MouseDown(Mouse)
2202
	if ATTACK == false then
2203
	end
2204
end
2205
2206
function MouseUp(Mouse)
2207
HOLD = false
2208
end
2209
2210
function KeyDown(Key)
2211
	KEYHOLD = true
2212
	if Key == "z" and ATTACK == false then
2213
             if MODE == "GoodCop" then
2214
		Banisher()
2215
                elseif MODE == "BadCop" then
2216
                     Shot2()
2217
	end
2218
end
2219
2220
	if Key == "c" and ATTACK == false then
2221
                 if MODE == "BadCop" then
2222
                 BanishmentBeam()
2223
	end
2224
end
2225
2226
	if Key == "v" and ATTACK == false then
2227
             Beam()
2228
end
2229
2230
	if Key == "f" and ATTACK == false then
2231
         Switch()
2232
	end
2233
2234
     
2235
2236
	if Key == "x" and ATTACK == false then
2237
             NightmareFall()
2238
	end
2239
end
2240
2241
function KeyUp(Key)
2242
	KEYHOLD = false
2243
end
2244
2245
	Mouse.Button1Down:connect(function(NEWKEY)
2246
		MouseDown(NEWKEY)
2247
	end)
2248
	Mouse.Button1Up:connect(function(NEWKEY)
2249
		MouseUp(NEWKEY)
2250
	end)
2251
	Mouse.KeyDown:connect(function(NEWKEY)
2252
		KeyDown(NEWKEY)
2253
	end)
2254
	Mouse.KeyUp:connect(function(NEWKEY)
2255
		KeyUp(NEWKEY)
2256
	end)
2257
2258
--//=================================\\
2259
--\\=================================//
2260
2261
2262
function unanchor()
2263
	if UNANCHOR == true then
2264
		g = Character:GetChildren()
2265
		for i = 1, #g do
2266
			if g[i].ClassName == "Part" then
2267
				g[i].Anchored = false
2268
			end
2269
		end
2270
	end
2271
end
2272
2273
2274
local BODY = {}
2275
for _, c in pairs(Character:GetDescendants()) do
2276
    if c:IsA("BasePart") and c.Name ~= "Handle" then
2277
        if c ~= RootPart and c ~= Torso and c ~= Head and c ~= RightArm and c ~= LeftArm and c ~= RightLeg and c ~= LeftLeg then
2278
            c.CustomPhysicalProperties = PhysicalProperties.new(0, 0, 0, 0, 0)
2279
        end
2280
        table.insert(BODY,{c,c.Parent,c.Material,c.Color,c.Transparency,c.Size,c.Name})
2281
    elseif c:IsA("JointInstance") then
2282
        table.insert(BODY,{c,c.Parent,nil,nil,nil,nil,nil})
2283
    end
2284
end
2285
 
2286
function refit()
2287
    Character.Parent = workspace
2288
    for e = 1, #BODY do
2289
        if BODY[e] ~= nil then
2290
            local STUFF = BODY[e]
2291
            local PART = STUFF[1]
2292
            local PARENT = STUFF[2]
2293
            local MATERIAL = STUFF[3]
2294
            local COLOR = STUFF[4]
2295
            local TRANSPARENCY = STUFF[5]
2296
            --local SIZE = STUFF[6]
2297
            local NAME = STUFF[7]
2298
            if PART.ClassName == "Part" and PART ~= RootPart then
2299
                PART.Material = MATERIAL
2300
                PART.Transparency = TRANSPARENCY
2301
                PART.Name = NAME
2302
            end
2303
            if PART.Parent ~= PARENT then
2304
                Humanoid:remove()
2305
                PART.Parent = PARENT
2306
                Humanoid = IT("Humanoid",Character)
2307
            end
2308
        end
2309
    end
2310
end
2311
 
2312
Humanoid.Died:connect(function()
2313
               refit()
2314
end)
2315
2316
--//=================================\\
2317
--||	WRAP THE WHOLE SCRIPT UP
2318
--\\=================================//
2319
2320
Humanoid.Changed:connect(function(Jump)
2321
	if Jump == "Jump" and (Disable_Jump == true) then
2322
		Humanoid.Jump = false
2323
	end
2324
end)
2325
2326
local CONNECT = nil
2327
2328
while true do
2329
	Swait()
2330
	ANIMATE.Parent = nil
2331
	if Character:FindFirstChildOfClass("Humanoid") == nil then
2332
		Humanoid = IT("Humanoid",Character)
2333
	end
2334
	for _,v in next, Humanoid:GetPlayingAnimationTracks() do
2335
	    v:Stop();
2336
	end
2337
	SINE = SINE + CHANGE
2338
	local TORSOVELOCITY = (RootPart.Velocity * VT(1, 0, 1)).magnitude
2339
	local TORSOVERTICALVELOCITY = RootPart.Velocity.y
2340
	local HITFLOOR = Raycast(RootPart.Position, (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 4, Character)
2341
	local WALKSPEEDVALUE = 6 / (Humanoid.WalkSpeed / 16)
2342
        
2343
	if ANIM == "Walk" and TORSOVELOCITY > 1 then
2344
		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)
2345
		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)
2346
		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)
2347
		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)
2348
	elseif (ANIM ~= "Walk") or (TORSOVELOCITY < 1) then
2349
		RootJoint.C1 = Clerp(RootJoint.C1, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
2350
		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)
2351
		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)
2352
		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)
2353
	end
2354
	if TORSOVERTICALVELOCITY > 1 and HITFLOOR == nil then
2355
		ANIM = "Jump"
2356
		if ATTACK == false then
2357
			RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
2358
			Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-20), RAD(0), RAD(0)), 0.2 / Animation_Speed)
2359
			RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(45), RAD(0), RAD(25))* RIGHTSHOULDERC0, 0.15 / Animation_Speed)
2360
			LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-40), RAD(0), RAD(-20)) * LEFTSHOULDERC0, 0.2 / Animation_Speed)
2361
			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)
2362
			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)
2363
	    end
2364
	elseif TORSOVERTICALVELOCITY < -1 and HITFLOOR == nil then
2365
		ANIM = "Fall"
2366
		if ATTACK == false then
2367
			RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 ) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
2368
			Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0 , 0 + ((1) - 1)) * ANGLES(RAD(20), RAD(0), RAD(0)), 0.2 / Animation_Speed)
2369
			RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(180), RAD(0), RAD(25))* RIGHTSHOULDERC0, 0.15 / Animation_Speed)
2370
			LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(25), RAD(10), RAD(10)) * LEFTSHOULDERC0, 0.2 / Animation_Speed)
2371
			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)
2372
			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)
2373
		end
2374
	elseif TORSOVELOCITY < 1 and HITFLOOR ~= nil then
2375
		ANIM = "Idle"
2376
		if ATTACK == false then
2377
if MODE == "GoodCop" then
2378
			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)
2379
			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)
2380
			RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.35, 0.5, -0.5) * ANGLES(RAD(75), RAD(45), RAD(-25))* RIGHTSHOULDERC0, 0.15 / Animation_Speed)
2381
			LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.35, 0.5, -0.4) * ANGLES(RAD(75), RAD(45), RAD(25))* LEFTSHOULDERC0, 0.15 / Animation_Speed)
2382
			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)
2383
			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)
2384
elseif MODE == "BadCop" then
2385
2386
2387
 Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(25 + MRANDOM(-5,5) - 4 * COS(SINE / 12)), RAD(MRANDOM(-5,5)), RAD(15)), 1 / Animation_Speed)
2388
			if MRANDOM(1,7) == 1 then
2389
				Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 + MRANDOM(-25,25) - 4 * COS(SINE / 12)), RAD(MRANDOM(-25,25)), RAD(0)), 1.5 / Animation_Speed)
2390
			end		
2391
		RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.25 / Animation_Speed)
2392
		RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(150 - 1 * COS(SINE / 1)), RAD(0), RAD(-0 + 1 * COS(SINE / 1))) * RIGHTSHOULDERC0, 0.2 / Animation_Speed)
2393
		LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(150 + 1 * COS(SINE / 1)), RAD(0), RAD(0 - 1 * COS(SINE / 1))) * LEFTSHOULDERC0, 0.2 / Animation_Speed)
2394
		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)
2395
		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)
2396
end
2397
end
2398
2399
2400
2401
2402
2403
	elseif TORSOVELOCITY > 1 and HITFLOOR ~= nil then
2404
		ANIM = "Walk"
2405
		if ATTACK == false then
2406
			RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -0.1) * ANGLES(RAD(5), RAD(0), RAD(0)), 0.15 / Animation_Speed)
2407
			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)
2408
			RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.1, -0.4) * ANGLES(RAD(150), RAD(0), RAD(0))* RIGHTSHOULDERC0, 0.15 / Animation_Speed)
2409
			LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.1, -0.4) * ANGLES(RAD(150), RAD(0), RAD(0))* LEFTSHOULDERC0, 0.15 / Animation_Speed)
2410
			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)
2411
			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)
2412
		end
2413
	end
2414
2415
if VALUE2 == false then
2416
		Slice("Thin", 0.1, 5, RightArm.CFrame * CF(0, -1.1, 0) * ANGLES(RAD(MRANDOM(-180, 180)), RAD(MRANDOM(-180, 180)), RAD(MRANDOM(-180, 180))), C3(0, 1, 0), VT(-0.01, 0, -0.01))
2417
		Slice("Thin", 0.1, 5, LeftArm.CFrame * CF(0, -1.1, 0) * ANGLES(RAD(MRANDOM(-180, 180)), RAD(MRANDOM(-180, 180)), RAD(MRANDOM(-180, 180))), C3(0, 1, 0), VT(-0.01, 0, -0.01))
2418
	end
2419
	unanchor()
2420
	Humanoid.MaxHealth = "inf"
2421
	Humanoid.Health = "inf"
2422
	if Rooted == false then
2423
		Disable_Jump = false
2424
		Humanoid.WalkSpeed = Speed
2425
	elseif Rooted == true then
2426
		Disable_Jump = true
2427
		Humanoid.WalkSpeed = 0
2428
	end
2429
	sick.Parent = Torso
2430
	sick:resume()
2431
	sick.Volume = 2
2432
	sick.Pitch = 1
2433
	sick.SoundId = "rbxassetid://911925578"
2434
	sick.Name = "BanishV3Music"
2435
end
2436
2437
--//=================================\\
2438
--\\=================================//
2439
2440
2441
2442
2443
2444
--//====================================================\\--
2445
--||			  		 END OF SCRIPT
2446
--\\====================================================//--
2447
-------------------------------------------------
2448
print("Done!")