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