Advertisement
GodOfDuckz

mad boi [fe]

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