Advertisement
sneakydodge123

gudcopbadcop FE

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