Advertisement
yabagaba

Untitled

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