Advertisement
memberhero

Cop FE

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