Pop4484

Pop4484's Edited Good Cop Bad Cop AKA. Good Maajoo Bad Maajo

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