Advertisement
AxeuerAlt

Untitled

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