Mediakiller7Cool

Test534

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