Advertisement
5sdfsadgaq5465

good cop bad cop edit fe

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