Advertisement
Mz_TH_edit

chaos

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