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