Advertisement
xdimxd123412

Untitled

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