Advertisement
SirSkyvalky

goodbadcopfe

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