tubers93zxzxz

Prison Life Admin

Feb 12th, 2023
196
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 107.25 KB | None | 0 0
  1. --[[
  2. ~~ Credits ~~
  3. CXZ NAME_R : My Youtube channle
  4. LocalPlayer#7434 : Script owner
  5. Zyrex#5956 : Script helper
  6. ]]
  7.  
  8. --(Press ';' to enter commands bar)
  9. --(Say ':cmds' then say '/console' to view commands)
  10. -- Settings:
  11.  
  12. connections = {}
  13. Crash = true -- If your gui is crashing your game try make this to true maybe it's will help
  14. DeleteDoors = true -- Delete all doors and Cells door
  15. EspChamber = false -- Show ESP chamber
  16. EspName = false -- Show ESP player name
  17. EspItem = false -- Esp dropped items (Glitchy)
  18. ShowNotification = true -- Show notifycation when you executes commands
  19. ShowSpawnPads = true -- Show a spawns pad
  20. MaxChatLogsSaves = 33 -- Max chats will save when someone chat
  21. SaveYourMessageToChatLogs = true -- When you chat it's will save message that you say to chat logs
  22. AutoRespawnOnDie = true -- Auto respawn when you died
  23. AutoGunWhenRepspawn = true -- Auto respawn when you respawned
  24. AutoBToolsWhenRespawn = true -- Auto BTools when respawned
  25. AutoModTheGunInYourBackpackWhenRespawn = true -- Auto mod the when you respawned
  26. AntiFling = true -- When someone is using fling you can prevent get fling by change this to true
  27. AntiCriminal = true -- You cannot become a criminal but this will protect you from spam arresters
  28. AntiArrest = true -- When you got arrested you will turn into Neutral and you will tp to Prison nexus
  29. DeleteCriminalPads = true -- You are not able to become a criminal but if someone have a advance crim script you can become a crimnal
  30. AntiCrash = true -- You won't crasg when someone is crashing server
  31. AntiArmorSpam = true -- When someone rage and spam armor you won't lag anymore
  32. AntiBring = false -- You won't get bring by another exploiters This will help you from being Void you cannot use this with another scripts
  33. MaxAntiBringDistance = 9 -- 1 = 1 stud , If you get bring farther than max anti bring distance(studs) you will tp back
  34. FastPunch = true -- Fast punch mode
  35. AntiTaser = true -- Taser bypass mode
  36. InfStamina = false -- No function
  37. AntiTeamChange = true -- When you died if your team changed When you respawn you will become old team
  38. AnimatedGui = true -- Animated the gui when you open the gui
  39. GuiAnimatedSpeed = 0.5 -- Gui animation when you open the gui
  40. GuiClosePosition = UDim2.new(0.45, 0, 2, 0) -- Gui position when you close
  41. GuiOpenPosition = UDim2.new(0.45, 0, 0.85, 0) -- Gui position when you open
  42.  
  43. if reScript then
  44. reScript()
  45. end
  46.  
  47. -- Guis:
  48.  
  49. local ADMINGUI = Instance.new("ScreenGui")
  50. local INPUT_BACKGROUND = Instance.new("Frame")
  51. local ICON_1 = Instance.new("TextLabel")
  52. local INPUT_HANDLER = Instance.new("TextLabel")
  53. local INPUT = Instance.new("TextBox")
  54. local NOTIFY_HANDLER = Instance.new("Frame")
  55. local NOTIFY_GUI = Instance.new("Frame")
  56. local UICorner = Instance.new("UICorner")
  57. local NOTIFYLABEL = Instance.new("TextLabel")
  58. local NOTIFYTEXT = Instance.new("TextLabel")
  59. local UILISTLAYOUT = Instance.new("UIListLayout")
  60.  
  61. ADMINGUI.Name = "AdminGui"
  62. if not Crash then
  63. ADMINGUI.Parent = game:GetService("CoreGui")
  64. else
  65. ADMINGUI.Parent = game:GetService("Players").LocalPlayer:WaitForChild("PlayerGui")
  66. end
  67. ADMINGUI.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
  68.  
  69. INPUT_BACKGROUND.Name = "INPUT_BACKGROUND"
  70. INPUT_BACKGROUND.Parent = ADMINGUI
  71. INPUT_BACKGROUND.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
  72. INPUT_BACKGROUND.BackgroundTransparency = 0.500
  73. INPUT_BACKGROUND.BorderSizePixel = 0
  74. INPUT_BACKGROUND.Position = UDim2.new(0.373991966, 0, 0.883138597, 0)
  75. INPUT_BACKGROUND.Size = UDim2.new(0, 250, 0, 40)
  76.  
  77. ICON_1.Name = "ICON_1"
  78. ICON_1.Parent = INPUT_BACKGROUND
  79. ICON_1.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  80. ICON_1.BackgroundTransparency = 1.000
  81. ICON_1.BorderSizePixel = 0
  82. ICON_1.Position = UDim2.new(-0.00214279164, 0, 0, 0)
  83. ICON_1.Size = UDim2.new(0, 30, 1, 0)
  84. ICON_1.Font = Enum.Font.SourceSans
  85. ICON_1.Text = ">"
  86. ICON_1.TextColor3 = Color3.fromRGB(255, 255, 255)
  87. ICON_1.TextScaled = true
  88. ICON_1.TextSize = 14.000
  89. ICON_1.TextWrapped = true
  90.  
  91. INPUT_HANDLER.Name = "INPUT_HANDLER"
  92. INPUT_HANDLER.Parent = INPUT_BACKGROUND
  93. INPUT_HANDLER.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  94. INPUT_HANDLER.BackgroundTransparency = 1.000
  95. INPUT_HANDLER.BorderSizePixel = 0
  96. INPUT_HANDLER.Position = UDim2.new(0.118000001, 0, 0, 0)
  97. INPUT_HANDLER.Size = UDim2.new(0.882000029, 0, 1, 0)
  98. INPUT_HANDLER.ZIndex = 0
  99. INPUT_HANDLER.Font = Enum.Font.SourceSans
  100. INPUT_HANDLER.Text = ""
  101. INPUT_HANDLER.TextColor3 = Color3.fromRGB(155, 155, 155)
  102. INPUT_HANDLER.TextSize = 18.000
  103. INPUT_HANDLER.TextXAlignment = Enum.TextXAlignment.Left
  104.  
  105. INPUT.Name = "INPUT"
  106. INPUT.Parent = INPUT_HANDLER
  107. INPUT.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  108. INPUT.BackgroundTransparency = 1.000
  109. INPUT.BorderSizePixel = 0
  110. INPUT.Size = UDim2.new(1, 0, 1, 0)
  111. INPUT.Font = Enum.Font.SourceSans
  112. INPUT.PlaceholderColor3 = Color3.fromRGB(255, 255, 255)
  113. INPUT.Text = ""
  114. INPUT.TextColor3 = Color3.fromRGB(255, 255, 255)
  115. INPUT.TextSize = 18.000
  116. INPUT.TextWrapped = true
  117. INPUT.TextXAlignment = Enum.TextXAlignment.Left
  118.  
  119. NOTIFY_HANDLER.Name = "NOTIFY_HANDLER"
  120. NOTIFY_HANDLER.Parent = ADMINGUI
  121. NOTIFY_HANDLER.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
  122. NOTIFY_HANDLER.BackgroundTransparency = 1.000
  123. NOTIFY_HANDLER.BorderSizePixel = 0
  124. NOTIFY_HANDLER.Position = UDim2.new(0.00806451589, 0, 0.320534229, 0)
  125. NOTIFY_HANDLER.Size = UDim2.new(0, 200, 0, 400)
  126.  
  127. NOTIFY_GUI.Name = "NOTIFY_GUI"
  128. NOTIFY_GUI.Parent = nil
  129. NOTIFY_GUI.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
  130. NOTIFY_GUI.BackgroundTransparency = 0.500
  131. NOTIFY_GUI.BorderSizePixel = 0
  132. NOTIFY_GUI.Size = UDim2.new(1, 0, 0, 75)
  133.  
  134. UICorner.Parent = NOTIFY_GUI
  135.  
  136. NOTIFYLABEL.Name = "NOTIFYLABEL"
  137. NOTIFYLABEL.Parent = NOTIFY_GUI
  138. NOTIFYLABEL.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  139. NOTIFYLABEL.BackgroundTransparency = 1.000
  140. NOTIFYLABEL.BorderSizePixel = 0
  141. NOTIFYLABEL.Size = UDim2.new(1, 0, 0, 20)
  142. NOTIFYLABEL.Font = Enum.Font.GothamBlack
  143. NOTIFYLABEL.Text = "Success"
  144. NOTIFYLABEL.TextColor3 = Color3.fromRGB(0, 255, 0)
  145. NOTIFYLABEL.TextScaled = true
  146. NOTIFYLABEL.TextSize = 14.000
  147. NOTIFYLABEL.TextWrapped = true
  148.  
  149. NOTIFYTEXT.Name = "NOTIFYTEXT"
  150. NOTIFYTEXT.Parent = NOTIFY_GUI
  151. NOTIFYTEXT.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  152. NOTIFYTEXT.BackgroundTransparency = 1.000
  153. NOTIFYTEXT.BorderSizePixel = 0
  154. NOTIFYTEXT.Position = UDim2.new(0, 0, 0, 20)
  155. NOTIFYTEXT.Size = UDim2.new(1, 0, 0, 55)
  156. NOTIFYTEXT.Font = Enum.Font.GothamBlack
  157. NOTIFYTEXT.Text = ""
  158. NOTIFYTEXT.TextColor3 = Color3.fromRGB(255, 255, 255)
  159. NOTIFYTEXT.TextSize = 18.000
  160. NOTIFYTEXT.TextWrapped = true
  161. NOTIFYTEXT.TextYAlignment = Enum.TextYAlignment.Top
  162.  
  163. UILISTLAYOUT.Name = "UILISTLAYOUT"
  164. UILISTLAYOUT.Parent = NOTIFY_HANDLER
  165. UILISTLAYOUT.Padding = UDim.new(0, 3)
  166. UILISTLAYOUT.VerticalAlignment = Enum.VerticalAlignment.Bottom
  167. UILISTLAYOUT.SortOrder = Enum.SortOrder.LayoutOrder
  168.  
  169. local cmds = {
  170. "me = you, player name = another player",
  171. "cmds -- show commands",
  172. "kill [player,all,inmate,guard,criminal] -- kill player",
  173. "ded -- loop kill all",
  174. "lb [player] -- loop bring player",
  175. "unded -- unloop kill all",
  176. "sa [player] -- spam arrest player",
  177. "ka [player] -- kill aura player",
  178. "lk [player] -- loop kill player",
  179. "unlk [player] -- unloop kill player",
  180. "goto [player] -- bring player",
  181. "bring [player,all,guard,criminal,inmate] -- bring player",
  182. "crim [player,all,inmate,guard] -- crim player",
  183. "tase [player] -- tase player",
  184. "taze -- tase all",
  185. "void [player,all,guard,inmate,criminal] -- void player",
  186. "crash -- crash server",
  187. "arrest [player,all,inmate,criminal] [time] -- arrest player",
  188. "rank [player,all,guard,inmate,criminal] -- admin player",
  189. "unrank [player,all,guard,inmate,criminal] -- unadmin player",
  190. "base [player] -- tp player to criminal base",
  191. "yard [player] -- tp player to yard",
  192. "nexus [player] -- tp player to nexus",
  193. "color (r/g/b) -- change team color",
  194. "stuck -- stuck you into the neutral spawn",
  195. "unstuck -- unstuck you into the neutral spawn",
  196. "view [player] -- view player",
  197. "unview [player] -- unview player",
  198. "disconnect -- disconnected server",
  199. "rj -- rejoin server",
  200. "team [inmate,guard,neutral,brickcolor]",
  201. "re -- re",
  202. "res -- respawn",
  203. "key [player,all,inmate,criminal] -- give key card",
  204. "cuffs [player,all,inmate,criminal] -- give hand cuffs",
  205. "chatlog -- view chat logs",
  206. "timeout -- time out server",
  207. }
  208.  
  209. local TWEENSERVICE = game:GetService("TweenService")
  210.  
  211. function OpenInput()
  212. if AnimatedGui then
  213. local TWEENINFO = TweenInfo.new(
  214. GuiAnimatedSpeed,
  215. Enum.EasingStyle.Linear,
  216. Enum.EasingDirection.In,
  217. 0,
  218. false,
  219. 0
  220. )
  221. local MAKECHANGES = {
  222. Position = GuiOpenPosition
  223. }
  224. local TWEENING = TWEENSERVICE:Create(INPUT_BACKGROUND, TWEENINFO, MAKECHANGES)
  225. TWEENING:Play()
  226. else
  227. INPUT_BACKGROUND.Position = GuiOpenPosition
  228. end
  229. end
  230.  
  231. function CloseInput()
  232. if AnimatedGui then
  233. local TWEENINFO = TweenInfo.new(
  234. GuiAnimatedSpeed,
  235. Enum.EasingStyle.Linear,
  236. Enum.EasingDirection.In,
  237. 0,
  238. false,
  239. 0
  240. )
  241. local MAKECHANGES = {
  242. Position = GuiClosePosition
  243. }
  244. local TWEENING = TWEENSERVICE:Create(INPUT_BACKGROUND, TWEENINFO, MAKECHANGES)
  245. TWEENING:Play()
  246. else
  247. INPUT_BACKGROUND.Position = GuiClosePosition
  248. end
  249. end
  250.  
  251. function SendNotification(msg, typeofmsg, color)
  252. if ShowNotification then
  253. local clr = color or Color3.fromRGB(255, 255, 255)
  254. local clone = NOTIFY_GUI:Clone()
  255. clone.NOTIFYLABEL.Text = typeofmsg
  256. clone.NOTIFYTEXT.Text = msg
  257. clone.Parent = NOTIFY_HANDLER
  258. coroutine.wrap(function()
  259. wait(1)
  260. for i = 0,1,0.05 do
  261. wait(.05)
  262. if i > 0.5 then
  263. clone.BackgroundTransparency = i
  264. clone.NOTIFYTEXT.TextTransparency = i
  265. clone.NOTIFYLABEL.TextTransparency = i
  266. end
  267. end
  268. clone:Destroy()
  269. end)()
  270. end
  271. end
  272.  
  273. CloseInput()
  274.  
  275. local prefix = ":"
  276. local antiTouch = {}
  277.  
  278. game.Players.LocalPlayer:GetMouse().KeyDown:Connect(function(key)
  279. if prefix == ":" then
  280. prefix = ":" and ";"
  281. elseif prefix == "?" then
  282. prefix = "?" and "/"
  283. elseif prefix == ">" then
  284. prefix = ">" and "."
  285. elseif prefix == "<" then
  286. prefix = "<" and ","
  287. else
  288. prefix = prefix and prefix:lower() and prefix:upper()
  289. end
  290. if key == prefix then
  291. OpenInput()
  292. wait()
  293. INPUT:CaptureFocus()
  294. end
  295. end)
  296.  
  297. function GETPLR(STRING)
  298. if not STRING then return end
  299. if STRING == "me" then
  300. return game.Players.LocalPlayer
  301. else
  302. local MATCH = {}
  303. for _,plr in pairs(game.Players:GetPlayers()) do
  304. if string.lower(plr.Name):match(string.lower(STRING)) then
  305. table.insert(MATCH, plr.Name)
  306. end
  307. if string.lower(plr.DisplayName):match(string.lower(STRING)) then
  308. table.insert(MATCH, plr.DisplayName)
  309. end
  310. end
  311. if #MATCH > 0 then
  312. return MATCH[math.random(1, #MATCH)]
  313. elseif #MATCH < 1 then
  314. return nil
  315. end
  316. end
  317. end
  318.  
  319. game:GetService("UserInputService").InputBegan:Connect(function(key)
  320. if key.KeyCode == Enum.KeyCode.Tab then
  321. if INPUT_HANDLER.Text ~= "" then
  322. INPUT.Text = INPUT_HANDLER.Text
  323. end
  324. end
  325. end)
  326.  
  327. INPUT.Changed:Connect(function(change)
  328. if change == "Text" then
  329. if INPUT.Text ~= "" then
  330. for i,v in pairs(cmds) do
  331. if string.lower(v:split(" ")[1]):match(string.lower(INPUT.Text:split(" ")[1])) and not INPUT.Text:split(" ")[2] then
  332. INPUT_HANDLER.Text = v:split(" ")[1]
  333. end
  334. end
  335. if INPUT.Text:split(" ")[2] and not INPUT.Text:split(" ")[3] then
  336. if string.lower("all"):match(string.lower(INPUT.Text:split(" ")[2])) then
  337. INPUT_HANDLER.Text = INPUT.Text:split(" ")[1].." all"
  338. elseif string.lower("me"):match(string.lower(INPUT.Text:split(" ")[2])) then
  339. INPUT_HANDLER.Text = INPUT.Text:split(" ")[1].." me"
  340. elseif string.lower("inmates"):match(string.lower(INPUT.Text:split(" ")[2])) then
  341. INPUT_HANDLER.Text = INPUT.Text:split(" ")[1].." inmates"
  342. elseif string.lower("guards"):match(string.lower(INPUT.Text:split(" ")[2])) then
  343. INPUT_HANDLER.Text = INPUT.Text:split(" ")[1].." guards"
  344. elseif string.lower("criminals"):match(string.lower(INPUT.Text:split(" ")[2])) then
  345. INPUT_HANDLER.Text = INPUT.Text:split(" ")[1].." criminals"
  346. else
  347. local PLAYER = GETPLR(INPUT.Text:split(" ")[2])
  348. if PLAYER ~= nil then
  349. INPUT_HANDLER.Text = INPUT.Text:split(" ")[1].." "..PLAYER:lower()
  350. end
  351. end
  352. end
  353. if INPUT.Text:split(" ")[3] then
  354. if string.lower("all"):match(string.lower(INPUT.Text:split(" ")[3])) then
  355. INPUT_HANDLER.Text = INPUT.Text:split(" ")[1].." "..INPUT.Text:split(" ")[2].." all"
  356. elseif string.lower("inmates"):match(string.lower(INPUT.Text:split(" ")[3])) then
  357. INPUT_HANDLER.Text = INPUT.Text:split(" ")[1].." "..INPUT.Text:split(" ")[2].." inmates"
  358. elseif string.lower("guards"):match(string.lower(INPUT.Text:split(" ")[3])) then
  359. INPUT_HANDLER.Text = INPUT.Text:split(" ")[1].." "..INPUT.Text:split(" ")[2].." guards"
  360. elseif string.lower("criminals"):match(string.lower(INPUT.Text:split(" ")[3])) then
  361. INPUT_HANDLER.Text = INPUT.Text:split(" ")[1].." "..INPUT.Text:split(" ")[2].." criminals"
  362. elseif string.lower("me"):match(string.lower(INPUT.Text:split(" ")[3])) then
  363. INPUT_HANDLER.Text = INPUT.Text:split(" ")[1].." "..INPUT.Text:split(" ")[2].." me"
  364. else
  365. local PLAYER = GETPLR(INPUT.Text:split(" ")[3])
  366. if PLAYER ~= nil then
  367. INPUT_HANDLER.Text = INPUT.Text:split(" ")[1].." "..INPUT.Text:split(" ")[2].." "..PLAYER
  368. end
  369. end
  370. end
  371. else
  372. INPUT_HANDLER.Text = ""
  373. end
  374. end
  375. end)
  376.  
  377. -- Scripts:
  378.  
  379. local players = game:GetService("Players")
  380. local run = game:GetService("RunService")
  381. local localplayer = players.LocalPlayer
  382. local character = localplayer.Character
  383. local humroot = character:FindFirstChild("HumanoidRootPart")
  384. local backpack = localplayer.Backpack
  385. local replicatedstorage = game:GetService("ReplicatedStorage")
  386. local humanoid = character:FindFirstChild("Humanoid")
  387.  
  388. local usingcmd = false
  389.  
  390. local prefix = ":"
  391. local states = {}
  392. local loopkill = {}
  393. local killaura = {}
  394. local admins = {}
  395.  
  396. localplayer.CharacterAdded:Connect(function(char)
  397. character = game.Players.LocalPlayer.Character
  398. backpack = localplayer:WaitForChild("Backpack", 0.3)
  399. humanoid = char:WaitForChild("Humanoid", 0.3)
  400. char:WaitForChild("Humanoid", 0.3).Died:Connect(function()
  401. if AutoRespawnOnDie then
  402. pcall(function()
  403. if game.Players.LocalPlayer.TeamColor.Name ~= "Medium stone grey" then
  404. savepos()
  405. loadchar()
  406. wait(.1)
  407. loadpos()
  408. else
  409. teamevent("Bright orange")
  410. savepos()
  411. loadchar()
  412. wait(.1)
  413. loadpos()
  414. teamevent("Medium stone grey")
  415. end
  416. end)
  417. end
  418. end)
  419. humroot = char:WaitForChild("HumanoidRootPart", 0.3)
  420. end)
  421.  
  422. function getplr(str, plr)
  423. if not str then return end
  424. local yes = {}
  425. if str == "me" then
  426. return plr
  427. else
  428. for _,plrs in ipairs(players:GetPlayers()) do
  429. if string.lower(plrs.Name):match(string.lower(str)) or string.lower(plrs.DisplayName):match(string.lower(str)) then
  430. table.insert(yes, plrs)
  431. end
  432. end
  433. end
  434. if #yes > 0 then
  435. return yes[1]
  436. elseif #yes < 1 then
  437. return nil
  438. end
  439. end
  440.  
  441. function getpos()
  442. local x,y,z = game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame:ToOrientation()
  443. return CFrame.new(game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame.X, game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame.Y, game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame.Z) * CFrame.fromOrientation(0, y, 0)
  444. end
  445.  
  446. local HumanoidRootPartLastCFrame = getpos()
  447. local CurrentCameraLastCFrame = game:GetService("Workspace").CurrentCamera.CFrame
  448.  
  449. function savepos()
  450. CurrentCameraLastCFrame = game:GetService("Workspace").CurrentCamera.CFrame
  451. HumanoidRootPartLastCFrame = getpos()
  452. end
  453.  
  454. function loadpos()
  455. humroot.CFrame = HumanoidRootPartLastCFrame
  456. for i = 1,2 do
  457. wait()
  458. game:GetService("Workspace").CurrentCamera.CFrame = CurrentCameraLastCFrame
  459. end
  460. end
  461.  
  462. function loadchar(color)
  463. local color = color or nil
  464. workspace.Remote.loadchar:InvokeServer(nil, color)
  465. end
  466.  
  467. function fegod()
  468. local CHAR = game.Players.LocalPlayer.Character
  469. CHAR.Humanoid.Name = "1"
  470. local c = CHAR["1"]:Clone()
  471. c.Name = "Humanoid"
  472. c.Parent = CHAR
  473. CHAR["1"]:Destroy()
  474. game.Workspace.CurrentCamera.CameraSubject = CHAR
  475. CHAR.Animate.Disabled = true
  476. wait()
  477. CHAR.Animate.Disabled = false
  478. CHAR.Humanoid.DisplayDistanceType = "None"
  479. end
  480.  
  481. function beam(plr, time, distance, size)
  482. if plr ~= nil then
  483. local time = tonumber(time) or 1
  484. local distance = tonumber(distance) or math.huge
  485. if plr and time and distance then
  486. workspace:WaitForChild("Remote"):WaitForChild("ItemHandler"):InvokeServer(workspace:WaitForChild("Prison_ITEMS"):WaitForChild("giver"):WaitForChild("Remington 870"):FindFirstChild("ITEMPICKUP"))
  487. local events = {}
  488. local size = tonumber(size) or 100
  489. for i = 1,size do
  490. events[#events + 1] = {
  491. Hit = plr.Character:FindFirstChildOfClass("Part"),
  492. Distance = distance,
  493. Cframe = plr.Character:FindFirstChildOfClass("Part").CFrame * CFrame.Angles(math.rad(i), 0, 0),
  494. RayObject = Ray.new(Vector3.new(), Vector3.new())
  495. }
  496. end
  497. local gun
  498. for i,v in pairs(backpack:GetChildren()) do
  499. if gun == nil and v:FindFirstChild("GunStates") then
  500. gun = v
  501. end
  502. end
  503. if gun == nil then
  504. for i,v in pairs(character:GetChildren()) do
  505. if gun == nil and v:FindFirstChild("GunStates") then
  506. gun = v
  507. end
  508. end
  509. end
  510. game:GetService("ReplicatedStorage"):WaitForChild("ShootEvent"):FireServer(events, gun)
  511. gun.Parent = character
  512. character:FindFirstChild(gun.Name):Destroy()
  513. end
  514. end
  515. end
  516.  
  517. function tp(plr, pos)
  518. pcall(function()
  519. if plr == localplayer then
  520. humroot.CFrame = pos
  521. else
  522. local isantifling = false
  523. if AntiFling then
  524. AntiFling = false
  525. isantifling = true
  526. end
  527. local lastpos = getpos()
  528. loadchar()
  529. local CHAR = game.Players.LocalPlayer.Character
  530. CHAR.Humanoid.Name = "1"
  531. local c = CHAR["1"]:Clone()
  532. c.Name = "Humanoid"
  533. c.Parent = CHAR
  534. CHAR["1"]:Destroy()
  535. game.Workspace.CurrentCamera.CameraSubject = CHAR
  536. local Animate = CHAR:FindFirstChild("Animate")
  537. if Animate then
  538. Animate.Disabled = true
  539. wait()
  540. Animate.Disabled = false
  541. end
  542. CHAR.Humanoid.DisplayDistanceType = "None"
  543. workspace.Remote.ItemHandler:InvokeServer(workspace.Prison_ITEMS.single.Hammer.ITEMPICKUP)
  544. if not game.Players.LocalPlayer:FindFirstChild("Backpack"):FindFirstChild("Hammer") and not game.Players.LocalPlayer.Character:FindFirstChild("Hammer") then
  545. workspace.Remote.ItemHandler:InvokeServer(workspace.Prison_ITEMS.giver.M9.ITEMPICKUP)
  546. end
  547. local tool = game.Players.LocalPlayer:FindFirstChild("Backpack"):FindFirstChild("Hammer") or game.Players.LocalPlayer:FindFirstChild("Backpack"):FindFirstChild("M9")
  548. local canHave = Instance.new("BoolValue", tool)
  549. canHave.Value = true
  550. canHave.Name = "CanHave"
  551. tool.Parent = character
  552. humroot.Anchored = true
  553. local stop = 0
  554. repeat wait(.1)
  555. pcall(function()
  556. stop = stop + 1
  557. humroot.CFrame = pos
  558. plr.Character.HumanoidRootPart.CFrame = humroot.CFrame * CFrame.new(0, 0, -0.5)
  559. end)
  560. until not character:FindFirstChildOfClass("Tool") or not localplayer.Character or not localplayer.Character.HumanoidRootPart or not game.Players:FindFirstChild(plr.Name) or stop > 500
  561. humroot.Anchored = false
  562. wait(.2)
  563. loadchar()
  564. wait(.1)
  565. for i = 1,3 do
  566. wait()
  567. usingcmd = true
  568. game.Players.LocalPlayer.Character:FindFirstChild("HumanoidRootPart").CFrame = lastpos
  569. end
  570. if isantifling then
  571. AntiFling = true
  572. end
  573. end
  574. end)
  575. end
  576.  
  577. game.Players.LocalPlayer.CharacterAdded:connect(function(char)
  578. wait(.2)
  579. char.ChildAdded:connect(function(child)
  580. if not child:IsA("HopperBin") and not child:FindFirstChild("CanHave") and not child:IsA("Humanoid") and not child:IsA("BasePart") and not child:IsA("Accessory") and not child:IsA("Shirt") and not child:IsA("Pants") then
  581. child.Parent = backpack
  582. child:Destroy()
  583. wait()
  584. child:Destroy()
  585. end
  586. end)
  587. end)
  588.  
  589. function void(plr)
  590. pcall(function()
  591. if plr == localplayer then
  592. humroot.CFrame = CFrame.new(99999999999999, 99999999999999, 99999999999999)
  593. else
  594. local isantifling = false
  595. if AntiFling then
  596. AntiFling = false
  597. isantifling = true
  598. end
  599. local lastpos = getpos()
  600. loadchar()
  601. local CHAR = game.Players.LocalPlayer.Character
  602. CHAR.Humanoid.Name = "1"
  603. local c = CHAR["1"]:Clone()
  604. c.Name = "Humanoid"
  605. c.Parent = CHAR
  606. CHAR["1"]:Destroy()
  607. game.Workspace.CurrentCamera.CameraSubject = CHAR
  608. local Animate = CHAR:FindFirstChild("Animate")
  609. if Animate then
  610. Animate.Disabled = true
  611. wait()
  612. Animate.Disabled = false
  613. end
  614. CHAR.Humanoid.DisplayDistanceType = "None"
  615. workspace.Remote.ItemHandler:InvokeServer(workspace.Prison_ITEMS.single.Hammer.ITEMPICKUP)
  616. if not game.Players.LocalPlayer:FindFirstChild("Backpack"):FindFirstChild("Hammer") and not game.Players.LocalPlayer.Character:FindFirstChild("Hammer") then
  617. workspace.Remote.ItemHandler:InvokeServer(workspace.Prison_ITEMS.giver.M9.ITEMPICKUP)
  618. end
  619. local tool = game.Players.LocalPlayer:FindFirstChild("Backpack"):FindFirstChild("Hammer") or game.Players.LocalPlayer:FindFirstChild("Backpack"):FindFirstChild("M9")
  620. local canHave = Instance.new("BoolValue", tool)
  621. canHave.Value = true
  622. canHave.Name = "CanHave"
  623. tool.Parent = character
  624. humroot.Anchored = true
  625. local stop = 0
  626. repeat wait(.1)
  627. pcall(function()
  628. stop = stop + 1
  629. plr.Character.HumanoidRootPart.CFrame = humroot.CFrame * CFrame.new(0, 0, -0.5)
  630. end)
  631. until not character:FindFirstChildOfClass("Tool") or not localplayer.Character or not localplayer.Character.HumanoidRootPart or not game.Players:FindFirstChild(plr.Name) or stop > 500
  632. humroot.Anchored = false
  633. for i = 1,10 do
  634. wait()
  635. usingcmd = true
  636. humroot.CFrame = CFrame.new(99999999999999, 99999999999999, 99999999999999)
  637. end
  638. wait(.2)
  639. loadchar()
  640. wait(.1)
  641. for i = 1,3 do
  642. wait()
  643. usingcmd = true
  644. game.Players.LocalPlayer.Character:WaitForChild("HumanoidRootPart").CFrame = lastpos
  645. end
  646. if isantifling then
  647. AntiFling = true
  648. end
  649. end
  650. end)
  651. end
  652.  
  653. local NOW = humroot.CFrame
  654.  
  655. game:GetService("RunService").Stepped:Connect(function()
  656. if states.loopbring then
  657. humroot.CFrame = NOW
  658. end
  659. end)
  660.  
  661. function doloop()
  662. savepos()
  663. repeat wait()
  664. until not states.loopbring
  665. usingcmd = true
  666. loadpos()
  667. end
  668.  
  669. function tpV(plr, plr2)
  670. pcall(function()
  671. if plr == localplayer then
  672. humroot.CFrame = plr2.Character.HumanoidRootPart.CFrame
  673. else
  674. local isantifling = false
  675. if AntiFling then
  676. AntiFling = false
  677. isantifling = true
  678. end
  679. local lastpos = getpos()
  680. loadchar()
  681. local CHAR = game.Players.LocalPlayer.Character
  682. CHAR.Humanoid.Name = "1"
  683. local c = CHAR["1"]:Clone()
  684. c.Name = "Humanoid"
  685. c.Parent = CHAR
  686. CHAR["1"]:Destroy()
  687. game.Workspace.CurrentCamera.CameraSubject = CHAR
  688. local Animate = CHAR:FindFirstChild("Animate")
  689. if Animate then
  690. Animate.Disabled = true
  691. wait()
  692. Animate.Disabled = false
  693. end
  694. CHAR.Humanoid.DisplayDistanceType = "None"
  695. workspace.Remote.ItemHandler:InvokeServer(workspace.Prison_ITEMS.single.Hammer.ITEMPICKUP)
  696. if not game.Players.LocalPlayer:FindFirstChild("Backpack"):FindFirstChild("Hammer") and not game.Players.LocalPlayer.Character:FindFirstChild("Hammer") then
  697. workspace.Remote.ItemHandler:InvokeServer(workspace.Prison_ITEMS.giver.M9.ITEMPICKUP)
  698. end
  699. local tool = game.Players.LocalPlayer:FindFirstChild("Backpack"):FindFirstChild("Hammer") or game.Players.LocalPlayer:FindFirstChild("Backpack"):FindFirstChild("M9")
  700. local canHave = Instance.new("BoolValue", tool)
  701. canHave.Value = true
  702. canHave.Name = "CanHave"
  703. tool.Parent = character
  704. humroot.Anchored = true
  705. local stop = 0
  706. repeat wait(.1)
  707. pcall(function()
  708. stop = stop + 1
  709. humroot.CFrame = plr2.Character.HumanoidRootPart.CFrame
  710. plr.Character.HumanoidRootPart.CFrame = humroot.CFrame * CFrame.new(0, 0, -0.5)
  711. end)
  712. until not character:FindFirstChildOfClass("Tool") or not localplayer.Character or not localplayer.Character.HumanoidRootPart or not game.Players:FindFirstChild(plr.Name) or stop > 500
  713. humroot.Anchored = false
  714. wait(.2)
  715. loadchar()
  716. wait(.1)
  717. for i = 1,3 do
  718. wait()
  719. usingcmd = true
  720. game.Players.LocalPlayer.Character:WaitForChild("HumanoidRootPart").CFrame = lastpos
  721. end
  722. if isantifling then
  723. AntiFling = true
  724. end
  725. end
  726. end)
  727. end
  728.  
  729. function kill(plr)
  730. if plr == localplayer then
  731. if not character:FindFirstChild("Force Field") then
  732. character.Humanoid.Health = 0
  733. end
  734. else
  735. if plr.TeamColor.Name == localplayer.TeamColor.Name then
  736. loadchar(BrickColor.random().Name)
  737. end
  738. workspace.Remote.ItemHandler:InvokeServer(workspace.Prison_ITEMS.giver["Remington 870"].ITEMPICKUP)
  739. local gun = backpack:FindFirstChild("Remington 870") or character:FindFirstChild("Remington 870")
  740. local events = {}
  741. for i = 1,15 do
  742. events[#events + 1] = {
  743. Hit = plr.Character:FindFirstChildOfClass("Part"),
  744. Cframe = CFrame.new(),
  745. Distance = 0,
  746. RayObject = Ray.new(Vector3.new(), Vector3.new())
  747. }
  748. end
  749. coroutine.wrap(function()
  750. for i = 1,30 do
  751. replicatedstorage.ReloadEvent:FireServer(gun)
  752. wait(.3)
  753. end
  754. end)()
  755. replicatedstorage.ShootEvent:FireServer(events, gun)
  756. end
  757. end
  758.  
  759. function killteam(brickcolor, whitelist)
  760. if not brickcolor then return end
  761. local events = {}
  762. workspace.Remote.ItemHandler:InvokeServer(workspace.Prison_ITEMS.giver["Remington 870"].ITEMPICKUP)
  763. for _,plrs in pairs(players:GetPlayers()) do
  764. if plrs.TeamColor.Name == brickcolor and plrs ~= localplayer and plrs ~= whitelist then
  765. if plrs.TeamColor.Name == localplayer.TeamColor.Name then
  766. savepos()
  767. loadchar(BrickColor.random().Name)
  768. wait(.1)
  769. loadpos()
  770. workspace.Remote.ItemHandler:InvokeServer(workspace.Prison_ITEMS.giver["Remington 870"].ITEMPICKUP)
  771. end
  772. for i = 1,15 do
  773. events[#events + 1] = {
  774. Hit = plrs.Character:FindFirstChildOfClass("Part"),
  775. Cframe = CFrame.new(),
  776. Distance = 0,
  777. RayObject = Ray.new(Vector3.new(), Vector3.new())
  778. }
  779. end
  780. end
  781. end
  782. local gun = backpack:FindFirstChild("Remington 870") or character:FindFirstChild("Remington 870")
  783. coroutine.wrap(function()
  784. for i = 1,30 do
  785. replicatedstorage.ReloadEvent:FireServer(gun)
  786. wait(.3)
  787. end
  788. end)()
  789. replicatedstorage.ShootEvent:FireServer(events, gun)
  790. end
  791.  
  792. function killall(whitelist)
  793. local events = {}
  794. workspace.Remote.ItemHandler:InvokeServer(workspace.Prison_ITEMS.giver["Remington 870"].ITEMPICKUP)
  795. for _,plrs in pairs(players:GetPlayers()) do
  796. if plrs ~= localplayer and plrs ~= whitelist then
  797. if plrs.TeamColor.Name == localplayer.TeamColor.Name then
  798. savepos()
  799. loadchar(BrickColor.random().Name)
  800. wait(.1)
  801. loadpos()
  802. workspace.Remote.ItemHandler:InvokeServer(workspace.Prison_ITEMS.giver["Remington 870"].ITEMPICKUP)
  803. end
  804. for i = 1,15 do
  805. events[#events + 1] = {
  806. Hit = plrs.Character:FindFirstChildOfClass("Part"),
  807. Cframe = CFrame.new(),
  808. Distance = 0,
  809. RayObject = Ray.new(Vector3.new(), Vector3.new())
  810. }
  811. end
  812. end
  813. end
  814. local gun = backpack:FindFirstChild("Remington 870") or character:FindFirstChild("Remington 870")
  815. coroutine.wrap(function()
  816. for i = 1,30 do
  817. replicatedstorage.ReloadEvent:FireServer(gun)
  818. wait(.3)
  819. end
  820. end)()
  821. replicatedstorage.ShootEvent:FireServer(events, gun)
  822. end
  823.  
  824. function crim(plr)
  825. pcall(function()
  826. if plr == nil and game.Players:FindFirstChild(plr.Name) or plr.TeamColor.Name == "Really red" then return end
  827. if plr ~= localplayer then
  828. local isantifling = false
  829. if AntiFling then
  830. AntiFling = false
  831. isantifling = true
  832. end
  833. local pad = game:GetService("Lighting"):FindFirstChild("SpawnLocation")
  834. pad.Parent = game:GetService("Workspace")
  835. local padCFrame = pad.CFrame
  836. savepos()
  837. character:WaitForChild("Humanoid").Sit = false
  838. local CHAR = game.Players.LocalPlayer.Character
  839. CHAR.Humanoid.Name = "1"
  840. local c = CHAR["1"]:Clone()
  841. c.Name = "Humanoid"
  842. c.Parent = CHAR
  843. CHAR["1"]:Destroy()
  844. game.Workspace.CurrentCamera.CameraSubject = CHAR
  845. local Animate = CHAR:FindFirstChild("Animate")
  846. if Animate then
  847. Animate.Disabled = true
  848. wait()
  849. Animate.Disabled = false
  850. end
  851. CHAR.Humanoid.DisplayDistanceType = "None"
  852. workspace.Remote.ItemHandler:InvokeServer(workspace.Prison_ITEMS.single.Hammer.ITEMPICKUP)
  853. if not game.Players.LocalPlayer:FindFirstChild("Backpack"):FindFirstChild("Hammer") and not game.Players.LocalPlayer.Character:FindFirstChild("Hammer") then
  854. workspace.Remote.ItemHandler:InvokeServer(workspace.Prison_ITEMS.giver.M9.ITEMPICKUP)
  855. end
  856. local tool = game.Players.LocalPlayer:FindFirstChild("Backpack"):FindFirstChild("Hammer") or game.Players.LocalPlayer:FindFirstChild("Backpack"):FindFirstChild("M9")
  857. local canHave = Instance.new("BoolValue", tool)
  858. canHave.Value = true
  859. canHave.Name = "CanHave"
  860. tool.Parent = character
  861. humroot.Anchored = true
  862. local oldteam = localplayer.TeamColor.Name
  863. local stop = 0
  864. pad.CanCollide = false
  865. pad.Transparency = 1.000
  866. repeat wait(.1)
  867. pcall(function()
  868. stop = stop + 1
  869. pad.Anchored = false
  870. pad.CFrame = humroot.CFrame
  871. pad.Anchored = true
  872. teamevent("Bright orange")
  873. plr.Character.HumanoidRootPart.CFrame = humroot.CFrame * CFrame.new(0, 0, -0.75)
  874. end)
  875. until not character:FindFirstChildOfClass("Tool") or not localplayer.Character or not localplayer.Character.HumanoidRootPart or not game.Players:FindFirstChild(plr.Name) or stop > 500
  876. humroot.Anchored = false
  877. pad.Anchored = true
  878. pad.Transparency = 0.000
  879. wait(.2)
  880. teamevent("Bright orange")
  881. if oldteam ~= "Medium stone grey" then
  882. loadchar(BrickColor.new(oldteam).Name)
  883. else
  884. loadchar(BrickColor.new("Bright orange").Name)
  885. end
  886. wait(.1)
  887. usingcmd = true
  888. loadpos()
  889. pad.Parent = game:GetService("Lighting")
  890. if isantifling then
  891. AntiFling = true
  892. end
  893. end
  894. end)
  895. end
  896.  
  897. function tase(plr)
  898. local events = {}
  899. savepos()
  900. local oldteam = localplayer.TeamColor.Name
  901. if not character:FindFirstChild("Taser") and not backpack:FindFirstChild("Taser") then
  902. oldteam = localplayer.TeamColor.Name
  903. loadchar(BrickColor.new("Bright blue").Name)
  904. loadpos()
  905. end
  906. for i = 1,1 do
  907. events[#events + 1] = {
  908. Hit = plr.Character:FindFirstChildOfClass("Part"),
  909. Cframe = CFrame.new(),
  910. Distance = 0,
  911. RayObject = Ray.new(Vector3.new(), Vector3.new())
  912. }
  913. end
  914. local gun = backpack:FindFirstChild("Taser") or character:FindFirstChild("Taser")
  915. coroutine.wrap(function()
  916. for i = 1,30 do
  917. replicatedstorage.ReloadEvent:FireServer(gun)
  918. wait(.3)
  919. end
  920. end)()
  921. replicatedstorage.ShootEvent:FireServer(events, gun)
  922. if localplayer.TeamColor.Name ~= oldteam then
  923. loadchar(BrickColor.new(oldteam).Name)
  924. end
  925. loadpos()
  926. end
  927.  
  928. function taseall(whitelist)
  929. local events = {}
  930. savepos()
  931. local oldteam = localplayer.TeamColor.Name
  932. if not character:FindFirstChild("Taser") and not backpack:FindFirstChild("Taser") then
  933. oldteam = localplayer.TeamColor.Name
  934. loadchar(BrickColor.new("Bright blue").Name)
  935. loadpos()
  936. end
  937. for _,plrs in pairs(players:GetPlayers()) do
  938. if plrs ~= localplayer and plrs ~= whitelist then
  939. for i = 1,1 do
  940. events[#events + 1] = {
  941. Hit = plrs.Character:FindFirstChildOfClass("Part"),
  942. Cframe = CFrame.new(),
  943. Distance = 0,
  944. RayObject = Ray.new(Vector3.new(), Vector3.new())
  945. }
  946. end
  947. end
  948. end
  949. local gun = backpack:FindFirstChild("Taser") or character:FindFirstChild("Taser")
  950. coroutine.wrap(function()
  951. for i = 1,30 do
  952. replicatedstorage.ReloadEvent:FireServer(gun)
  953. wait(.3)
  954. end
  955. end)()
  956. replicatedstorage.ShootEvent:FireServer(events, gun)
  957. if localplayer.TeamColor.Name ~= oldteam then
  958. loadchar(BrickColor.new(oldteam).Name)
  959. end
  960. loadpos()
  961. end
  962.  
  963. function arrest(plr, times)
  964. savepos()
  965. local times = tonumber(times) or 1
  966. local stop = 0
  967. repeat wait()
  968. stop = stop + 1
  969. character.Humanoid.Sit = false
  970. usingcmd = true
  971. humroot.CFrame = plr.Character.HumanoidRootPart.CFrame * CFrame.new(0, 0, 0.75)
  972. for i = 1,times do
  973. coroutine.wrap(function()
  974. workspace.Remote.arrest:InvokeServer(plr.Character.Head)
  975. end)()
  976. end
  977. until (plr.Character.Head:FindFirstChild("handcuffedGui") or stop > 100)
  978. character.Humanoid.Sit = false
  979. loadchar()
  980. usingcmd = true
  981. loadpos()
  982. end
  983.  
  984. function bypassbring(plr)
  985. savepos()
  986. loadchar()
  987. local CHAR = game.Players.LocalPlayer.Character
  988. CHAR.Humanoid.Name = "1"
  989. local c = CHAR["1"]:Clone()
  990. c.Name = "Humanoid"
  991. c.Parent = CHAR
  992. CHAR["1"]:Destroy()
  993. game.Workspace.CurrentCamera.CameraSubject = CHAR
  994. CHAR.Animate.Disabled = true
  995. wait()
  996. CHAR.Animate.Disabled = false
  997. CHAR.Humanoid.DisplayDistanceType = "None"
  998. workspace.Remote.ItemHandler:InvokeServer(workspace.Prison_ITEMS.single.Hammer.ITEMPICKUP)
  999. if not game.Players.LocalPlayer:FindFirstChild("Backpack"):FindFirstChild("Hammer") then
  1000. workspace.Remote.ItemHandler:InvokeServer(workspace.Prison_ITEMS.giver.M9.ITEMPICKUP)
  1001. end
  1002. local tool = game.Players.LocalPlayer:FindFirstChild("Backpack"):FindFirstChild("Hammer") or game.Players.LocalPlayer:FindFirstChild("Backpack"):FindFirstChild("M9")
  1003. tool.Parent = character
  1004. humroot.Anchored = true
  1005. local stop = 0
  1006. repeat wait(.1)
  1007. pcall(function()
  1008. stop = stop + 1
  1009. plr.Character.HumanoidRootPart.CFrame = humroot.CFrame * CFrame.new(0, 0, -0.75)
  1010. end)
  1011. until not character:FindFirstChildOfClass("Tool") or not localplayer.Character or not localplayer.Character.HumanoidRootPart or not game.Players:FindFirstChild(plr.Name) or stop > 500
  1012. humroot.Anchored = false
  1013. game.Players.LocalPlayer.CharacterRemoving:Wait()
  1014. loadchar()
  1015. usingcmd = true
  1016. loadpos()
  1017. end
  1018.  
  1019. function arrestevent(plr, times)
  1020. local times = tonumber(times) or 1
  1021. for i = 1,times do
  1022. wait()
  1023. pcall(function()
  1024. workspace.Remote.arrest:InvokeServer(plr.Character.Head)
  1025. end)
  1026. end
  1027. end
  1028.  
  1029. function key(plr)
  1030. local success, errorm = pcall(function()
  1031. local MyPos = getpos()
  1032. local oldteam
  1033. if not backpack:FindFirstChild("Key card") and not character:FindFirstChild("Key card") then
  1034. oldteam = localplayer.TeamColor.Name
  1035. repeat wait(.2)
  1036. character:WaitForChild("Humanoid").Health = 0
  1037. usingcmd = true
  1038. loadchar(BrickColor.new("Bright blue").Name)
  1039. until workspace.Prison_ITEMS.single:FindFirstChild("Key card")
  1040. loadchar(BrickColor.new(oldteam).Name)
  1041. workspace:WaitForChild("Remote"):WaitForChild("ItemHandler"):InvokeServer(workspace:WaitForChild("Prison_ITEMS").single:WaitForChild("Key card"):FindFirstChild("ITEMPICKUP"))
  1042. end
  1043. local keycard = backpack:FindFirstChild("Key card") or character:FindFirstChild("Key card")
  1044. local canHave = Instance.new("BoolValue")
  1045. if keycard and game.Players:FindFirstChild(plr.Name) then
  1046. canHave.Value = true
  1047. canHave.Name = "CanHave"
  1048. canHave.Parent = keycard
  1049. local CHAR = game.Players.LocalPlayer.Character
  1050. CHAR.Humanoid.Name = "1"
  1051. local c = CHAR["1"]:Clone()
  1052. c.Name = "Humanoid"
  1053. c.Parent = CHAR
  1054. CHAR["1"]:Destroy()
  1055. game.Workspace.CurrentCamera.CameraSubject = CHAR
  1056. CHAR.Animate.Disabled = true
  1057. wait()
  1058. CHAR.Animate.Disabled = false
  1059. CHAR.Humanoid.DisplayDistanceType = "None"
  1060. keycard.Parent = character
  1061. local stop = 0
  1062. repeat wait(.1)
  1063. pcall(function()
  1064. stop = stop + 1
  1065. usingcmd = true
  1066. humroot.CFrame = plr.Character:FindFirstChild("Torso").CFrame * CFrame.new(0, 0, 0.75) or plr.Character:FindFirstChild("HumanoidRootPart").CFrame * CFrame.new(0, 0, 0.75) or plr.Character:FindFirstChildOfClass("Part").CFrame * CFrame.new(0, 0, 0.75)
  1067. plr.Character:FindFirstChild("HumanoidRootPart").Anchored = true
  1068. end)
  1069. until not character:FindFirstChild("Key card") or not game.Players:FindFirstChild(plr.Name) or stop > 500
  1070. loadchar(BrickColor.new(oldteam).Name)
  1071. end
  1072. wait(.2)
  1073. for i = 1,3 do
  1074. wait()
  1075. usingcmd = true
  1076. humroot.CFrame = MyPos
  1077. end
  1078. plr.Character:FindFirstChild("HumanoidRootPart").Anchored = false
  1079. end)
  1080. if success then
  1081. return true, ""
  1082. else
  1083. return false, errorm
  1084. end
  1085. end
  1086.  
  1087. function cuffs(plr)
  1088. local success, errorm = pcall(function()
  1089. local MyPos = getpos()
  1090. local hand_cuffs = backpack:FindFirstChild("Handcuffs") or character:FindFirstChild("Handcuffs")
  1091. local oldteam = localplayer.TeamColor.Name
  1092. if not hand_cuffs then
  1093. oldteam = localplayer.TeamColor.Name
  1094. loadchar(BrickColor.new("Bright blue").Name)
  1095. end
  1096. local CHAR = game.Players.LocalPlayer.Character
  1097. CHAR.Humanoid.Name = "1"
  1098. local c = CHAR["1"]:Clone()
  1099. c.Name = "Humanoid"
  1100. c.Parent = CHAR
  1101. CHAR["1"]:Destroy()
  1102. game.Workspace.CurrentCamera.CameraSubject = CHAR
  1103. CHAR.Animate.Disabled = true
  1104. wait()
  1105. CHAR.Animate.Disabled = false
  1106. CHAR.Humanoid.DisplayDistanceType = "None"
  1107. hand_cuffs = backpack:FindFirstChild("Handcuffs") or character:FindFirstChild("Handcuffs")
  1108. local canHave = Instance.new("BoolValue", hand_cuffs)
  1109. canHave.Value = true
  1110. canHave.Name = "CanHave"
  1111. hand_cuffs.Parent = character
  1112. local stop = 0
  1113. repeat wait(.1)
  1114. pcall(function()
  1115. stop = stop + 1
  1116. usingcmd = true
  1117. humroot.CFrame = plr.Character:FindFirstChild("Torso").CFrame * CFrame.new(0, 0, 0.75) or plr.Character:FindFirstChild("HumanoidRootPart").CFrame * CFrame.new(0, 0, 0.75) or plr.Character:FindFirstChildOfClass("Part").CFrame * CFrame.new(0, 0, 0.75)
  1118. plr.Character:FindFirstChild("HumanoidRootPart").Anchored = true
  1119. end)
  1120. until not character:FindFirstChild("Handcuffs") or not humroot or not character or not game.Players:FindFirstChild(plr.Name) or stop > 500
  1121. loadchar(BrickColor.new(oldteam).Name)
  1122. wait(.2)
  1123. for i = 1,3 do
  1124. wait()
  1125. usingcmd = true
  1126. humroot.CFrame = MyPos
  1127. end
  1128. plr.Character:FindFirstChild("HumanoidRootPart").Anchored = false
  1129. end)
  1130. if success then
  1131. return true, ""
  1132. else
  1133. return false, errorm
  1134. end
  1135. end
  1136.  
  1137. function teamevent(brickcolor)
  1138. workspace.Remote.TeamEvent:FireServer(brickcolor)
  1139. end
  1140.  
  1141. function chatnotify(msg)
  1142. game.StarterGui:SetCore("ChatMakeSystemMessage", {
  1143. Text = msg,
  1144. Color = Color3.fromRGB(255, 0, 0),
  1145. Font = Enum.Font.SourceSans,
  1146. FontSize = Enum.FontSize.Size96
  1147. })
  1148. end
  1149.  
  1150. function chat(msg)
  1151. game:GetService("ReplicatedStorage").DefaultChatSystemChatEvents.SayMessageRequest:FireServer(msg, "All")
  1152. end
  1153.  
  1154. function cmd(cmd)
  1155. return arg1 == prefix..string.lower(cmd)
  1156. end
  1157.  
  1158. function cmd2(cmds, plr)
  1159. return arg1 == admins[plr.Name].prefix..string.lower(cmds)
  1160. end
  1161.  
  1162. chatnotify("Admin loaded!, enjoy!")
  1163. chatnotify("Made by : ")
  1164. chatnotify("Youtube : CXZ NAME_R")
  1165. chatnotify("Discord : LocalPlayer#7434")
  1166. chatnotify("Helper Discord : Zyrex#5659")
  1167.  
  1168. local chatlogs = {}
  1169.  
  1170. function usecmd(msg)
  1171. arg = string.lower(msg):split(" ")
  1172. arg1 = arg[1]
  1173. arg2 = arg[2]
  1174. arg3 = arg[3]
  1175. usingcmd = true
  1176. if cmd("cmds") then
  1177. chatnotify("Say '/console' or press F9 or Fn + F9 to see all commands")
  1178. for i,v in pairs(cmds) do
  1179. print(i..". "..v)
  1180. end
  1181. SendNotification("Say '/console' or press F9 or Fn + F9 to see all commands", "Success", Color3.fromRGB(0, 255, 0))
  1182. end
  1183. if cmd("timeout") then
  1184. local events = {}
  1185. for i = 1,100000 do
  1186. events[#events + 1] = {
  1187. Hit = game.Players.LocalPlayer.Character:FindFirstChildOfClass("Part"),
  1188. Distance = 0,
  1189. Cframe = CFrame.new(),
  1190. RayObject = Ray.new(Vector3.new(), Vector3.new())
  1191. }
  1192. end
  1193. for i = 1,2 do
  1194. workspace.Remote.ItemHandler:InvokeServer(workspace.Prison_ITEMS.giver["Remington 870"].ITEMPICKUP)
  1195. local gun = game.Players.LocalPlayer.Character:FindFirstChild("Remington 870") or game.Players.LocalPlayer.Backpack:FindFirstChild("Remington 870")
  1196. if gun then
  1197. game.ReplicatedStorage.ShootEvent:FireServer(events, gun)
  1198. end
  1199. end
  1200. end
  1201. if cmd("lag") then
  1202. local events = {}
  1203. for i = 1,10000 do
  1204. events[#events + 1] = {
  1205. Hit = game.Players.LocalPlayer.Character:FindFirstChildOfClass("Part"),
  1206. Distance = 0,
  1207. Cframe = CFrame.new(),
  1208. RayObject = Ray.new(Vector3.new(), Vector3.new())
  1209. }
  1210. end
  1211. for i = 1,math.huge do
  1212. workspace.Remote.ItemHandler:InvokeServer(workspace.Prison_ITEMS.giver["Remington 870"].ITEMPICKUP)
  1213. local gun = game.Players.LocalPlayer.Character:FindFirstChild("Remington 870") or game.Players.LocalPlayer.Backpack:FindFirstChild("Remington 870")
  1214. if gun then
  1215. game.ReplicatedStorage.ShootEvent:FireServer(events, gun)
  1216. end
  1217. end
  1218. end
  1219. if cmd("bbring") then
  1220. local plr = getplr(arg2, localplayer)
  1221. if plr ~= game.Players.LocalPlayer and plr ~= nil then
  1222. bypassbring(plr)
  1223. end
  1224. end
  1225. if cmd("chatlog") then
  1226. warn("-- Chat logs --")
  1227. for i = 1,#chatlogs do
  1228. print("("..chatlogs[i].clocktime..")".."["..chatlogs[i].plr.DisplayName.."]: "..chatlogs[i].chat)
  1229. end
  1230. SendNotification("Printed chat logs!", "Success", Color3.fromRGB(0, 255, 0))
  1231. chatnotify("Say '/console' or press F9 or FN + F9 to view chat logs")
  1232. end
  1233. if cmd("res") then
  1234. usingcmd = true
  1235. loadchar()
  1236. end
  1237. if cmd("re") then
  1238. savepos()
  1239. loadchar()
  1240. wait(.1)
  1241. usingcmd = true
  1242. loadpos()
  1243. end
  1244. if cmd("team") then
  1245. if string.lower("neutral") == string.lower(arg2) then
  1246. teamevent("Medium stone grey")
  1247. elseif string.lower("guard") == string.lower(arg2) or string.lower("guards") == string.lower(arg2) then
  1248. teamevent("Bright blue")
  1249. elseif string.lower("inmate") == string.lower(arg2) or string.lower("inmates") == string.lower(arg2) then
  1250. teamevent("Bright orange")
  1251. else
  1252. if arg[4] == nil then
  1253. loadchar(BrickColor.new(arg2.." "..arg3).Name)
  1254. else
  1255. loadchar(BrickColor.new(arg2.." "..arg3.." "..arg[4]).Name)
  1256. end
  1257. end
  1258. end
  1259. if cmd("touch") then
  1260. local plr = getplr(arg2, localplayer)
  1261. if plr ~= nil then
  1262. if plr == localplayer then
  1263. states.antitouch = true
  1264. else
  1265. if not antiTouch[plr.Name] then
  1266. antiTouch[plr.Name] = {plr = plr}
  1267. SendNotification("Added anti touch to "..plr.DisplayName, "Success", Color3.fromRGB(0, 255, 0))
  1268. else
  1269. SendNotification(plr.DisplayName.." already have anti touch", "Warn", Color3.fromRGB(255, 255, 0))
  1270. end
  1271. end
  1272. else
  1273. SendNotification("No player found by name: "..arg2, "Error", Color3.fromRGB(255, 0, 0))
  1274. end
  1275. end
  1276. if cmd("untouch") then
  1277. local plr = getplr(arg2, localplayer)
  1278. if plr ~= nil then
  1279. if plr == localplayer then
  1280. states.antitouch = false
  1281. else
  1282. if not antiTouch[plr.Name] then
  1283. antiTouch[plr.Name] = nil
  1284. SendNotification("Removed anti touch to "..plr.DisplayName, "Success", Color3.fromRGB(0, 255, 0))
  1285. else
  1286. SendNotification(plr.DisplayName.." don't have anti touch", "Warn", Color3.fromRGB(255, 255, 0))
  1287. end
  1288. end
  1289. else
  1290. SendNotification("No player found by name: "..arg2, "Error", Color3.fromRGB(255, 0, 0))
  1291. end
  1292. end
  1293. --[[if cmd("bypass") then
  1294. local message = arg2
  1295. local space = "_"
  1296. if arg2 ~= nil then
  1297. local alpharbet = {
  1298. a = "a ͤ",
  1299. b = "b ͤ",
  1300. c = "c ͤ",
  1301. d = "d ͤ",
  1302. e = "e ͤ",
  1303. f = "f",
  1304. g = "g ͤ",
  1305. h = "h ͤ",
  1306. i = "i ͤ",
  1307. j = "j",
  1308. k = "k ͤ",
  1309. l = "l ͤ",
  1310. m = "m ͤ",
  1311. n = "n ͤ",
  1312. o = "○",
  1313. p = "p ͤ",
  1314. q = "q ͤ",
  1315. r = "r ͤ",
  1316. s = "s ͤ",
  1317. t = "t ͤ",
  1318. u = "u ͤ",
  1319. w = "w ͤ",
  1320. x = "x ͤ",
  1321. y = "y ͤ",
  1322. z = "z ͤ",
  1323. _ = " "
  1324. }
  1325. local bypasses
  1326. for t = 1,#message do
  1327. for i,v in pairs(alpharbet) do
  1328. if message:sub(1,t):lower() == i then
  1329. if bypasses == nil then
  1330. bypasses = v
  1331. else
  1332. bypasses = bypasses..v
  1333. end
  1334. end
  1335. end
  1336. end
  1337. chat(bypasses)
  1338. end
  1339. end]]
  1340. if cmd("rj") then
  1341. SendNotification("Rejoining server", "Success", Color3.fromRGB(0, 255, 0))
  1342. game:GetService("TeleportService"):Teleport(game.PlaceId, game.Players.LocalPlayer)
  1343. end
  1344. if cmd("disconnect") then
  1345. SendNotification("Disconnected server", "Success", Color3.fromRGB(0, 255, 0))
  1346. local events = {
  1347. Hit = workspace:FindFirstChildOfClass("Part"),
  1348. Cframe = CFrame.new(),
  1349. Distance = 0,
  1350. RayObject = Ray.new(Vector3.new(), Vector3.new())
  1351. }
  1352. local eventspack = {}
  1353. for i = 1,10000 do
  1354. eventspack[#eventspack + 1] = events
  1355. end
  1356. for i = 1,math.huge do
  1357. workspace.Remote.ItemHandler:InvokeServer(workspace.Prison_ITEMS.giver["Remington 870"].ITEMPICKUP)
  1358. local gun = character:FindFirstChild("Remington 870") or backpack:FindFirstChild("Remington 870")
  1359. game.ReplicatedStorage.ShootEvent:FireServer(eventspack, gun)
  1360. end
  1361. end
  1362. if cmd("view") then
  1363. local plr = getplr(arg2, localplayer)
  1364. if plr then
  1365. SendNotification("Viewing "..plr.DisplayName, "Success", Color3.fromRGB(0, 255, 0))
  1366. states.viewing = plr
  1367. else
  1368. SendNotification("No player found by name: "..arg2, "Error", Color3.fromRGB(255, 0, 0))
  1369. end
  1370. end
  1371. if cmd("unview") then
  1372. SendNotification("Unviewed "..states.viewing.DisplayName, "Success", Color3.fromRGB(0, 255, 0))
  1373. states.viewing = nil
  1374. wait(.1)
  1375. workspace.CurrentCamera.CameraSubject = character
  1376. end
  1377. if cmd("stuck") then
  1378. states.stucking = true
  1379. wait(.2)
  1380. SendNotification("Stucked", "Success", Color3.fromRGB(0, 255, 0))
  1381. loadchar(BrickColor.new("Medium stone grey").Name)
  1382. end
  1383. if cmd("unstuck") then
  1384. SendNotification("Unstucked", "Success", Color3.fromRGB(0, 255, 0))
  1385. states.stucking = false
  1386. end
  1387. if cmd("color") then
  1388. local Arguaments = arg2
  1389. local Split = Arguaments:split("/")
  1390. savepos()
  1391. loadchar(Color3.fromRGB(Split[1], Split[2], Split[3]))
  1392. usingcmd = true
  1393. loadpos()
  1394. SendNotification("Color", "Success", Color3.fromRGB(0, 255, 0))
  1395. end
  1396. if cmd("lb") then
  1397. local plr = getplr(arg2, localplayer)
  1398. if plr then
  1399. states.loopbring = true
  1400. coroutine.wrap(function()
  1401. doloop()
  1402. end)()
  1403. usingcmd = true
  1404. NOW = CFrame.new(plr.Character:FindFirstChildOfClass("Part").CFrame.p)
  1405. SendNotification("Looped bring "..plr.DisplayName, "Success", Color3.fromRGB(0, 255, 0))
  1406. local count = 0
  1407. local isantifling = false
  1408. if AntiFling then
  1409. isantifling = true
  1410. AntiFling = false
  1411. end
  1412. repeat wait(.1)
  1413. pcall(function()
  1414. count = count + 1
  1415. if count < 2 then
  1416. local CHAR = game.Players.LocalPlayer.Character
  1417. CHAR.Humanoid.Name = "1"
  1418. local c = CHAR["1"]:Clone()
  1419. c.Name = "Humanoid"
  1420. c.Parent = CHAR
  1421. CHAR["1"]:Destroy()
  1422. game.Workspace.CurrentCamera.CameraSubject = CHAR
  1423. CHAR.Animate.Disabled = true
  1424. wait()
  1425. CHAR.Animate.Disabled = false
  1426. CHAR.Humanoid.DisplayDistanceType = "None"
  1427. workspace.Remote.ItemHandler:InvokeServer(workspace.Prison_ITEMS.single.Hammer.ITEMPICKUP)
  1428. if not game.Players.LocalPlayer:FindFirstChild("Backpack"):FindFirstChild("Hammer") then
  1429. workspace.Remote.ItemHandler:InvokeServer(workspace.Prison_ITEMS.giver.M9.ITEMPICKUP)
  1430. end
  1431. if not CHAR:FindFirstChildOfClass("Tool") then
  1432. local tool = game.Players.LocalPlayer:FindFirstChild("Backpack"):FindFirstChild("Hammer") or game.Players.LocalPlayer:FindFirstChild("Backpack"):FindFirstChild("M9")
  1433. local canHave = Instance.new("BoolValue", tool)
  1434. canHave.Value = true
  1435. canHave.Name = "CanHave"
  1436. tool.Parent = character
  1437. end
  1438. local isrespawn = Instance.new("BoolValue", CHAR)
  1439. isrespawn.Value = true
  1440. isrespawn.Name = "Respawn"
  1441. end
  1442. if not game.Players.LocalPlayer.Character:FindFirstChildOfClass("Tool") or not character:FindFirstChild("Respawn") then
  1443. count = 0
  1444. end
  1445. plr.Character.HumanoidRootPart.CFrame = humroot.CFrame * CFrame.new(0, 0, -0.5)
  1446. end)
  1447. until not states.loopbring or not players:FindFirstChild(plr.Name)
  1448. states.loopbring = false
  1449. if isantifling then
  1450. AntiFling = true
  1451. end
  1452. else
  1453. SendNotification("No player found by name: "..arg2, "Error", Color3.fromRGB(255, 0, 0))
  1454. end
  1455. end
  1456. if cmd("unlb") then
  1457. SendNotification("Unlooped bring", "Success", Color3.fromRGB(0, 255, 0))
  1458. states.loopbring = false
  1459. end
  1460. if cmd("beam") then
  1461. local plr = getplr(arg2, localplayer)
  1462. local time = tonumber(arg3) or 1
  1463. local size = tonumber(arg[4]) or 100
  1464. if plr ~= nil then
  1465. for i = 1,time do
  1466. beam(plr, time, math.huge, size)
  1467. end
  1468. end
  1469. end
  1470. if cmd("crash") then
  1471. SendNotification("Crashed server", "Success", Color3.fromRGB(0, 255 ,0))
  1472. local events = {
  1473. Hit = game:GetService("Workspace"):FindFirstChildOfClass("Part"),
  1474. Cframe = CFrame.new(),
  1475. Distance = math.huge,
  1476. RayObject = Ray.new(Vector3.new(), Vector3.new())
  1477. }
  1478. local events_package = {}
  1479. for i = 1,75000 do
  1480. events_package[#events_package + 1] = events
  1481. end
  1482. workspace.Remote.ItemHandler:InvokeServer(workspace.Prison_ITEMS.giver["Remington 870"].ITEMPICKUP)
  1483. local gun = character:FindFirstChild("Remington 870") or backpack:FindFirstChild("Remington 870")
  1484. for i = 1,10 do
  1485. game.ReplicatedStorage.ShootEvent:FireServer(events_package, gun)
  1486. end
  1487. end
  1488. if cmd("sa") then
  1489. local plr = getplr(arg2, localplayer)
  1490. if plr ~= nil then
  1491. local pad = game:GetService("Lighting"):FindFirstChild("SpawnLocation")
  1492. pcall(function()
  1493. for i,v in pairs(connections) do
  1494. v:Disconnect()
  1495. end
  1496. end)
  1497. coroutine.wrap(function()
  1498. for i = 1,100 do
  1499. coroutine.wrap(function()
  1500. arrestevent(plr, math.huge)
  1501. end)()
  1502. end
  1503. end)()
  1504. if plr.TeamColor.Name ~= "Really red" then
  1505. repeat wait()
  1506. crim(plr)
  1507. until plr.TeamColor.Name == "Realy red" or not game.Players:FindFirstChild(plr.Name)
  1508. end
  1509. loadchar()
  1510. for i = 1,10 do
  1511. wait()
  1512. usingcmd = true
  1513. humroot.CFrame = plr.Character:FindFirstChildOfClass("Part").CFrame * CFrame.new(0, 1, 0)
  1514. end
  1515. pad.Anchored = true
  1516. pad.Transparency = 0.000
  1517. pad.Parent = game:GetService("Lighting")
  1518. SendNotification("Spam arrested "..plr.DisplayName, "Success", Color3.fromRGB(0, 255, 0))
  1519. else
  1520. SendNotification("No player found by name: "..arg2, "Error", Color3.fromRGB(255, 0, 0))
  1521. end
  1522. end
  1523. if cmd("prefix") then
  1524. local newPrefix = tostring(arg2) or tostring(prefix)
  1525. if #newPrefix == 1 and newPrefix ~= prefix then
  1526. prefix = newPrefix
  1527. SendNotification("Changed prefix to "..prefix, "Success", Color3.fromRGB(0, 255, 0))
  1528. else
  1529. SendNotification("Prefix cannot have more than 1 letter", "Warn", Color3.fromRGB(255, 255, 0))
  1530. end
  1531. end
  1532. if cmd("rank") then
  1533. local plr = getplr(arg2, localplayer)
  1534. if plr ~= nil then
  1535. if plr and not admins[plr.Name] then
  1536. admins[plr.Name] = {plr = plr, prefix = ":"}
  1537. SendNotification("Ranked "..plr.DisplayName, "Success", Color3.fromRGB(0, 255, 0))
  1538. chat("/w "..plr.DisplayName.." You have been ranked say :cmds for commands")
  1539. elseif plr and admins[plr.Name] then
  1540. SendNotification(plr.DisplayName.." already have ranked", "Warn", Color3.fromRGB(255, 255, 0))
  1541. elseif not plr then
  1542. SendNotification("No player foudn by name: "..arg2, "Error", Color3.fromRGB(255, 0, 0))
  1543. end
  1544. else
  1545. if string.lower("all") == string.lower(arg2) or string.lower("others") == string.lower(arg2) then
  1546. for i,v in pairs(game.Players:GetPlayers()) do
  1547. if v ~= game.Players.LocalPlayer and not admins[v.Name] then
  1548. admins[v.Name] = {plr = v, prefix = ":"}
  1549. end
  1550. end
  1551. SendNotification("Ranked everyone", "Success", Color3.fromRGB(0, 255, 0))
  1552. elseif string.lower("inmate") == string.lower(arg2) or string.lower("inmates") == string.lower(arg2) then
  1553. for i,v in pairs(game.Players:GetPlayers()) do
  1554. if v ~= game.Players.LocalPlayer and not admins[v.Name] and v.TeamColor.Name == "Bright orange" then
  1555. admins[v.Name] = {plr = v, prefix = ":"}
  1556. end
  1557. end
  1558. SendNotification("Rabked inmates", "Success", Color3.fromRGB(0, 255, 0))
  1559. elseif string.lower("guard") == string.lower(arg2) or string.lower("guards") == string.lower(arg2) then
  1560. for i,v in pairs(game.Players:GetPlayers()) do
  1561. if v ~= game.Players.LocalPlayer and not admins[v.Name] and v.TeamColor.Name == "Bright blue" then
  1562. admins[v.Name] = {plr = v, prefix = ":"}
  1563. end
  1564. end
  1565. SendNotification("Ranked guards", "Success", Color3.fromRGB(0, 255, 0))
  1566. elseif string.lower("criminal") == string.lower(arg2) or string.lower("criminals") == string.lower(arg2) then
  1567. for i,v in pairs(game.Players:GetPlayers()) do
  1568. if v ~= game.Players.LocalPlayer and not admins[v.Name] and v.TeamColor.Name == "Really red" then
  1569. admins[v.Name] = {plr = v, prefix = ":"}
  1570. end
  1571. end
  1572. SendNotification("Ranked criminals", "Success", Color3.fromRGB(0, 255, 0))
  1573. else
  1574. SendNotification("No player foudn by name: "..arg2, "Error", Color3.fromRGB(255, 0, 0))
  1575. end
  1576. end
  1577. end
  1578. if cmd("unrank") then
  1579. local plr = getplr(arg2, localplayer)
  1580. if plr ~= nil then
  1581. if plr and admins[plr.Name] then
  1582. admins[plr.Name] = nil
  1583. SendNotification("Unranked "..plr.DisplayName, "Success", Color3.fromRGB(0, 255, 0))
  1584. chat("/w "..plr.Name.." You have been ranked say :cmds for commands")
  1585. elseif plr and not admins[plr.Name] then
  1586. SendNotification(plr.DisplayName.." doesn't have ranked", "Warn", Color3.fromRGB(255, 255, 0))
  1587. elseif not plr then
  1588. SendNotification("No player foudn by name: "..arg2, "Error", Color3.fromRGB(255, 0, 0))
  1589. end
  1590. else
  1591. if string.lower("all") == string.lower(arg2) or string.lower("others") == string.lower(arg2) then
  1592. for i,v in pairs(game.Players:GetPlayers()) do
  1593. if v ~= game.Players.LocalPlayer and admins[v.Name] then
  1594. admins[v.Name] = nil
  1595. end
  1596. end
  1597. SendNotification("Unranked everyone", "Success", Color3.fromRGB(0, 255, 0))
  1598. elseif string.lower("inmate") == string.lower(arg2) or string.lower("inmates") == string.lower(arg2) then
  1599. for i,v in pairs(game.Players:GetPlayers()) do
  1600. if v ~= game.Players.LocalPlayer and admins[v.Name] and v.TeamColor.Name == "Bright orange" then
  1601. admins[v.Name] = nil
  1602. end
  1603. end
  1604. SendNotification("Unranked inmates", "Success", Color3.fromRGB(0, 255, 0))
  1605. elseif string.lower("guard") == string.lower(arg2) or string.lower("guards") == string.lower(arg2) then
  1606. for i,v in pairs(game.Players:GetPlayers()) do
  1607. if v ~= game.Players.LocalPlayer and admins[v.Name] and v.TeamColor.Name == "Bright blue" then
  1608. admins[v.Name] = nil
  1609. end
  1610. end
  1611. SendNotification("Unranked guards", "Success", Color3.fromRGB(0, 255, 0))
  1612. elseif string.lower("criminal") == string.lower(arg2) or string.lower("criminals") == string.lower(arg2) then
  1613. for i,v in pairs(game.Players:GetPlayers()) do
  1614. if v ~= game.Players.LocalPlayer and admins[v.Name] and v.TeamColor.Name == "Really red" then
  1615. admins[v.Name] = nil
  1616. end
  1617. end
  1618. SendNotification("Unranked criminals", "Success", Color3.fromRGB(0, 255, 0))
  1619. else
  1620. SendNotification("No player foudn by name: "..arg2, "Error", Color3.fromRGB(255, 0, 0))
  1621. end
  1622. end
  1623. end
  1624. if cmd("arrest") then
  1625. local plr = getplr(arg2, localplayer)
  1626. local times = tonumber(arg3) or 1
  1627. savepos()
  1628. if plr ~= nil then
  1629. SendNotification("Arrested "..plr.DisplayName, "Success", Color3.fromRGB(0, 255, 0))
  1630. arrest(plr, times)
  1631. elseif string.lower("all") == string.lower(arg2) or string.lower("others") == string.lower(arg2) then
  1632. for i,v in pairs(game.Players:GetPlayers()) do
  1633. if v ~= localplayer and v.TeamColor.Name ~= "Bright blue" then
  1634. for i = 1,10 do
  1635. wait()
  1636. character:WaitForChild("Humanoid").Sit = false
  1637. usingcmd = true
  1638. humroot.CFrame = v.Character:FindFirstChildOfClass("Part").CFrame
  1639. arrestevent(v, times)
  1640. end
  1641. end
  1642. end
  1643. elseif string.lower("inmates") == string.lower(arg2) or string.lower("inmate") == string.lower(arg2) then
  1644. for i,v in pairs(game.Players:GetPlayers()) do
  1645. if v ~= localplayer and v.TeamColor.Name == "Bright orange" then
  1646. for i = 1,10 do
  1647. wait()
  1648. character:WaitForChild("Humanoid").Sit = false
  1649. usingcmd = true
  1650. humroot.CFrame = v.Character:FindFirstChildOfClass("Part").CFrame
  1651. arrestevent(v, times)
  1652. end
  1653. end
  1654. end
  1655. elseif string.lower("criminals") == string.lower(arg2) or string.lower("criminal") == string.lower(arg2) then
  1656. for i,v in pairs(game.Players:GetPlayers()) do
  1657. if v ~= localplayer and v.TeamColor.Name == "Really red" then
  1658. for i = 1,10 do
  1659. wait()
  1660. character:WaitForChild("Humanoid").Sit = false
  1661. usingcmd = true
  1662. humroot.CFrame = v.Character:FindFirstChildOfClass("Part").CFrame
  1663. arrestevent(v, times)
  1664. end
  1665. end
  1666. end
  1667. else
  1668. SendNotification("No player found by name: "..arg2)
  1669. end
  1670. loadpos()
  1671. end
  1672. if cmd("ka") then
  1673. local plr = getplr(arg2, localplayer)
  1674. if plr == localplayer then
  1675. SendNotification("Added kill aura to you", "Success", Color3.fromRGB(0, 255, 0))
  1676. states.killaura = true
  1677. elseif plr ~= nil and plr ~= localplayer then
  1678. if not killaura[plr.Name] then
  1679. SendNotification("Added kill aura to "..plr.DisplayName, "Success", Color3.fromRGB(0, 255, 0))
  1680. killaura[plr.Name] = {plr = plr}
  1681. end
  1682. else
  1683. SendNotification("No player found by name: "..arg2, "Error", Color3.fromRGB(255, 0, 0))
  1684. end
  1685. end
  1686. if cmd("unka") then
  1687. local plr = getplr(arg2, localplayer)
  1688. if plr == localplayer then
  1689. states.killaura = false
  1690. SendNotification("Removed kill aura from you", "Success", Color3.fromRGB(0, 255, 0))
  1691. else
  1692. if killaura[plr.Name] then
  1693. killaura[plr.Name] = nil
  1694. SendNotification("Removed kill aura from "..plr.DisplayName, "Success", Color3.fromRGB(0, 255, 0))
  1695. end
  1696. end
  1697. end
  1698. if cmd("taze") then
  1699. local success, errorm = pcall(function()
  1700. taseall()
  1701. end)
  1702. if success then
  1703. SendNotification("Taze all", "Success", Color3.fromRGB(0, 255, 0))
  1704. else
  1705. SendNotification(errorm, "Success", Color3.fromRGB(255, 0, 0))
  1706. end
  1707. end
  1708. if cmd("tase") then
  1709. local success, errorm = pcall(function()
  1710. tase(getplr(arg2, localplayer))
  1711. end)
  1712. if success then
  1713. SendNotification("Taze "..getplr(arg2, localplayer).DisplayName, "Success", Color3.fromRGB(0, 255, 0))
  1714. else
  1715. SendNotification(errorm, "Error", Color3.fromRGB(255, 0, 0))
  1716. end
  1717. end
  1718. if cmd("bcrim") then
  1719. local plr = getplr(arg2, localplayer)
  1720. if plr ~= localplayer and plr ~= nil then
  1721. local char = plr.Character
  1722. local pad = game:GetService("Lighting"):FindFirstChildOfClass("SpawnLocation")
  1723. wait(.1)
  1724. pad.Parent = workspace
  1725. pad.Transparency = 1
  1726. pad.AllowTeamChangeOnTouch = false
  1727. local time = 0
  1728. repeat wait()
  1729. pcall(function()
  1730. time = time + 1
  1731. pad.Anchored = false
  1732. for i = 1,2 do
  1733. coroutine.wrap(function()
  1734. game:GetService("ReplicatedStorage"):WaitForChild("meleeEvent"):FireServer(plr)
  1735. end)()
  1736. end
  1737. pad.CFrame = humroot.CFrame
  1738. pad.Anchored = true
  1739. humroot.CFrame = char:FindFirstChildOfClass("Part").CFrame * CFrame.new(0, 0, 0.5)
  1740. end)
  1741. until plr.TeamColor.Name == "Really red" or not game.Players:FindFirstChild(plr.Name) or time > 200
  1742. pad.Transparency = 0
  1743. pad.Parent = game:GetService("Lighting")
  1744. pad.AllowTeamChangeOnTouch = true
  1745. end
  1746. end
  1747. if cmd("crim") then
  1748. local plr = getplr(arg2, localplayer)
  1749. pcall(function()
  1750. if plr ~= nil then
  1751. local success, errorm = pcall(function()
  1752. crim(plr)
  1753. end)
  1754. if success then
  1755. SendNotification("Crimmed "..getplr(arg2, localplayer).DisplayName, "Success", Color3.fromRGB(0, 255, 0))
  1756. else
  1757. SendNotification(errorm, "Error", Color3.fromRGB(255, 0, 0))
  1758. end
  1759. else
  1760. if string.lower("all") == string.lower(arg2) or string.lower("others") == string.lower(arg2) then
  1761. for i,v in pairs(game.Players:GetPlayers()) do
  1762. if v ~= game.Players.LocalPlayer and v.TeamColor.Name ~= "Really red" then
  1763. repeat wait()
  1764. crim(v)
  1765. until not game.Players:FindFirstChild(v.Name) or v.TeamColor.Name == "Really red"
  1766. end
  1767. end
  1768. elseif string.lower("inmate") == string.lower(arg2) or string.lower("inmates") == string.lower(arg2) then
  1769. for i,v in pairs(game.Players:GetPlayers()) do
  1770. if v ~= game.Players.LocalPlayer and v.TeamColor.Name == "Bright orange" then
  1771. repeat wait()
  1772. crim(v)
  1773. until not game.Players:FindFirstChild(v.Name) or v.TeamColor.Name == "Really red"
  1774. end
  1775. end
  1776. elseif string.lower("guard") == string.lower(arg2) or string.lower("guards") == string.lower(arg2) then
  1777. for i,v in pairs(game.Players:GetPlayers()) do
  1778. if v ~= game.Players.LocalPlayer and v.TeamColor.Name == "Bright blue" then
  1779. repeat wait()
  1780. crim(v)
  1781. until not game.Players:FindFirstChild(v.Name) or v.TeamColor.Name == "Really red"
  1782. end
  1783. end
  1784. else
  1785. SendNotification("No player found by name: "..arg2, "Error", Color3.fromRGB(255, 0, 0))
  1786. end
  1787. end
  1788. end)
  1789. end
  1790. if cmd("bring") then
  1791. local plr = getplr(arg2, localplayer)
  1792. local success, errorm
  1793. if plr ~= nil then
  1794. success, errorm = pcall(function()
  1795. tp(plr, humroot.CFrame)
  1796. end)
  1797. if success then
  1798. SendNotification("Brought "..getplr(arg2, localplayer).DisplayName, "Success", Color3.fromRGB(0, 255, 0))
  1799. else
  1800. SendNotification(errorm, "Error", Color3.fromRGB(255, 0, 0))
  1801. end
  1802. else
  1803. if string.lower("all") == (string.lower(arg2)) or string.lower("others") == (string.lower(arg2)) then
  1804. for i,v in pairs(game.Players:GetPlayers()) do
  1805. if v ~= localplayer then
  1806. tp(v, getpos())
  1807. end
  1808. end
  1809. SendNotification("Brought "..arg2, "Success", Color3.fromRGB(0, 255, 0))
  1810. elseif string.lower("inmates") == (string.lower(arg2)) or string.lower("inmate") == (string.lower(arg2)) then
  1811. for i,v in pairs(game.Players:GetPlayers()) do
  1812. if v ~= localplayer and v.TeamColor.Name == "Bright orange" then
  1813. tp(v, getpos())
  1814. end
  1815. end
  1816. SendNotification("Brought "..arg2, "Success", Color3.fromRGB(0, 255, 0))
  1817. elseif string.lower("guards") == (string.lower(arg2)) or string.lower("guard") == (string.lower(arg2)) then
  1818. for i,v in pairs(game.Players:GetPlayers()) do
  1819. if v ~= localplayer and v.TeamColor.Name == "Bright blue" then
  1820. tp(v, getpos())
  1821. end
  1822. end
  1823. SendNotification("Brought "..arg2, "Success", Color3.fromRGB(0, 255, 0))
  1824. elseif string.lower("criminals") == (string.lower(arg2)) or string.lower("criminal") == (string.lower(arg2)) then
  1825. for i,v in pairs(game.Players:GetPlayers()) do
  1826. if v ~= localplayer and v.TeamColor.Name == "Really red" then
  1827. tp(v, getpos())
  1828. end
  1829. end
  1830. SendNotification("Brought "..arg2, "Success", Color3.fromRGB(0, 255, 0))
  1831. end
  1832. end
  1833. end
  1834. if cmd("goto") then
  1835. local success, errorm = pcall(function()
  1836. humroot.CFrame = getplr(arg2, localplayer).Character.HumanoidRootPart.CFrame
  1837. end)
  1838. if success then
  1839. SendNotification("Gone to "..getplr(arg2, localplayer).DisplayName, "Success", Color3.fromRGB(0, 255, 0))
  1840. else
  1841. SendNotification(errorm, "Error", Color3.fromRGB(255, 0, 0))
  1842. end
  1843. end
  1844. if cmd("lk") then
  1845. local plr = getplr(arg2, localplayer)
  1846. if plr and not loopkill[plr.Name] then
  1847. loopkill[plr.Name] = {plr = plr}
  1848. SendNotification("Looped kills "..plr.DisplayName, "Success", Color3.fromRGB(0, 255, 0))
  1849. elseif plr == nil then
  1850. SendNotification("No player found by name: "..arg2, "Error", Color3.fromRGB(255, 0, 0))
  1851. elseif plr and loopkill[plr.Name] then
  1852. SendNotification(plr.DisplayName.." already have loop kills", "Warn", Color3.fromRGB(255, 255, 0))
  1853. end
  1854. end
  1855. if cmd("unlk") then
  1856. local plr = getplr(arg2, localplayer)
  1857. if plr and loopkill[plr.Name] then
  1858. loopkill[plr.Name] = nil
  1859. SendNotification("Unlooped kills "..plr.DisplayName, "Success", Color3.fromRGB(0, 255, 0))
  1860. elseif plr == nil then
  1861. SendNotification("No player found by name: "..arg2, "Error", Color3.fromRGB(255, 0, 0))
  1862. elseif plr and not loopkill[plr.Name] then
  1863. SendNotification(plr.DisplayName.." doesn't have loop kills", "Warn", Color3.fromRGB(255, 255, 0))
  1864. end
  1865. end
  1866. if cmd("void") then
  1867. local plr = getplr(arg2, localplayer)
  1868. local success, errorm
  1869. if plr ~= nil then
  1870. success, errorm = pcall(function()
  1871. void(plr)
  1872. end)
  1873. else
  1874. if string.lower("all") == string.lower(arg2) or string.lower("others") == string.lower(arg2) then
  1875. for i,v in pairs(game.Players:GetPlayers()) do
  1876. if v ~= game.Players.LocalPlayer then
  1877. void(v)
  1878. end
  1879. end
  1880. SendNotification("Voided "..arg2, "Success", Color3.fromRGB(0, 255, 0))
  1881. elseif string.lower("guard") == string.lower(arg2) or string.lower("guards") == (string.lower(arg2)) then
  1882. for i,v in pairs(game.Players:GetPlayers()) do
  1883. if v ~= game.Players.LocalPlayer and v.TeamColor.Name == "Bright blue" then
  1884. void(v)
  1885. end
  1886. end
  1887. SendNotification("Voided "..arg2, "Success", Color3.fromRGB(0, 255, 0))
  1888. elseif string.lower("inmate") == (string.lower(arg2)) or string.lower("inmates") == (string.lower(arg2)) then
  1889. for i,v in pairs(game.Players:GetPlayers()) do
  1890. if v ~= game.Players.LocalPlayer and v.TeamColor.Name == "Bright orange" then
  1891. void(v)
  1892. end
  1893. end
  1894. SendNotification("Voided "..arg2, "Success", Color3.fromRGB(0, 255, 0))
  1895. elseif string.lower("criminal") == (string.lower(arg2)) or string.lower("criminals") == (string.lower(arg2)) then
  1896. for i,v in pairs(game.Players:GetPlayers()) do
  1897. if v ~= game.Players.LocalPlayer and v.TeamColor.Name == "Really red" then
  1898. void(v)
  1899. end
  1900. end
  1901. SendNotification("Voided "..arg2, "Success", Color3.fromRGB(0, 255, 0))
  1902. end
  1903. end
  1904. if success then
  1905. SendNotification("Voided "..getplr(arg2, localplayer).Name, "Success", Color3.fromRGB(0, 255, 0))
  1906. else
  1907. SendNotification(errorm, "Error", Color3.fromRGB(255, 0, 0))
  1908. end
  1909. end
  1910. if cmd("kill") then
  1911. if string.lower("all") == (string.lower(arg2)) or string.lower("others") == (string.lower(arg2)) then
  1912. local success, errorm = pcall(function()
  1913. killall()
  1914. end)
  1915. if success then
  1916. SendNotification("Killed all", "Success", Color3.fromRGB(0, 255, 0))
  1917. else
  1918. SendNotification(errorm, "Error", Color3.fromRGB(255, 0, 0))
  1919. end
  1920. elseif string.lower("inmate") == (string.lower(arg2)) or string.lower("inmates") == (string.lower(arg2)) then
  1921. local success, errorm = pcall(function()
  1922. killteam(BrickColor.new("Bright orange").Name)
  1923. end)
  1924. if success then
  1925. SendNotification("Killed inmates", "Success", Color3.fromRGB(0, 255, 0))
  1926. else
  1927. SendNotification(errorm, "Error", Color3.fromRGB(255, 0, 0))
  1928. end
  1929. elseif string.lower("guard") == (string.lower(arg2)) or string.lower("guards") == (string.lower(arg2)) then
  1930. local success, errorm = pcall(function()
  1931. killteam(BrickColor.new("Bright blue").Name)
  1932. end)
  1933. if success then
  1934. SendNotification("Killed guards", "Success", Color3.fromRGB(0, 255, 0))
  1935. else
  1936. SendNotification(errorm, "Error", Color3.fromRGB(255, 0, 0))
  1937. end
  1938. elseif string.lower("criminal") == (string.lower(arg2)) or string.lower("criminals") == (string.lower(arg2)) then
  1939. local success, errorm = pcall(function()
  1940. killteam(BrickColor.new("Really red").Name)
  1941. end)
  1942. if success then
  1943. SendNotification("Killed criminals", "Success", Color3.fromRGB(0, 255, 0))
  1944. else
  1945. SendNotification(errorm, "Error", Color3.fromRGB(255, 0, 0))
  1946. end
  1947. else
  1948. local plr = getplr(arg2, localplayer)
  1949. local success, errorm = pcall(function()
  1950. kill(plr)
  1951. end)
  1952. if success then
  1953. SendNotification("Killed "..plr.DisplayName, "Success", Color3.fromRGB(0, 255, 0))
  1954. else
  1955. SendNotification(errorm, "Error", Color3.fromRGB(255, 0, 0))
  1956. end
  1957. end
  1958. end
  1959. if cmd("ded") then
  1960. states.loopkillall = true
  1961. end
  1962. if cmd("unded") then
  1963. states.loopkillall = false
  1964. end
  1965. if cmd("tp") then
  1966. local plr = getplr(arg2, localplayer)
  1967. local plr2 = getplr(arg3, localplayer)
  1968. if plr ~= nil then
  1969. local success, errorm
  1970. if plr2 ~= nil then
  1971. success, errorm = pcall(function()
  1972. tpV(plr, plr2)
  1973. end)
  1974. end
  1975. if success then
  1976. SendNotification("Tp "..plr.DisplayName.." to "..plr2.DisplayName)
  1977. else
  1978. SendNotification(errorm, "Error", Color3.fromRGB(255, 0, 0))
  1979. end
  1980. else
  1981. if plr2 ~= nil then
  1982. if string.lower("all") == (string.lower(arg2)) or string.lower("others") == (string.lower(arg2)) then
  1983. for i,v in pairs(game.Players:GetPlayers()) do
  1984. if v ~= localplayer and v ~= plr2 then
  1985. tpV(v, plr2)
  1986. end
  1987. end
  1988. SendNotification("Tp "..arg2.." to "..plr2.DisplayName, "Success", Color3.fromRGB(0, 255, 0))
  1989. elseif string.lower("guard") == (string.lower(arg2)) or string.lower("guards") == (string.lower(arg2)) then
  1990. for i,v in pairs(game.Players:GetPlayers()) do
  1991. if v ~= localplayer and v ~= plr2 and v.TeamColor.Name == "Bright blue" then
  1992. tpV(v, plr2)
  1993. end
  1994. end
  1995. SendNotification("Tp "..arg2.." to "..plr2.DisplayName, "Success", Color3.fromRGB(0, 255, 0))
  1996. elseif string.lower("inmate") == (string.lower(arg2)) or string.lower("inmates") == (string.lower(arg2)) then
  1997. for i,v in pairs(game.Players:GetPlayers()) do
  1998. if v ~= localplayer and v ~= plr2 and v.TeamColor.Name == "Bright orange" then
  1999. tpV(v, plr2)
  2000. end
  2001. end
  2002. SendNotification("Tp "..arg2.." to "..plr2.DisplayName, "Success", Color3.fromRGB(0, 255, 0))
  2003. elseif string.lower("criminal") == (string.lower(arg2)) or string.lower("criminals") == (string.lower(arg2)) then
  2004. for i,v in pairs(game.Players:GetPlayers()) do
  2005. if v ~= localplayer and v ~= plr2 and v.TeamColor.Name == "Really red" then
  2006. tpV(v, plr2)
  2007. end
  2008. end
  2009. SendNotification("Tp "..arg2.." to "..plr2.DisplayName, "Success", Color3.fromRGB(0, 255, 0))
  2010. end
  2011. end
  2012. end
  2013. end
  2014. if cmd("nexus") then
  2015. local plr = getplr(arg2, localplayer)
  2016. if plr ~= nil then
  2017. local success, errorm = pcall(function()
  2018. tp(plr, CFrame.new(888, 100, 2388))
  2019. end)
  2020. if success then
  2021. SendNotification("Tp "..getplr(arg2, localplayer).DisplayName.." to prison nexus", "Success", Color3.fromRGB(0, 255, 0))
  2022. else
  2023. SendNotification(errorm, "Error", Color3.fromRGB(255, 0, 0))
  2024. end
  2025. else
  2026. if string.lower("all") == string.lower(arg2) or string.lower("others") == string.lower(arg2) then
  2027. for i,v in pairs(players:GetPlayers()) do
  2028. if v ~= localplayer then
  2029. tp(v, CFrame.new(888, 100, 2388))
  2030. end
  2031. end
  2032. elseif string.lower("guard") == string.lower(arg2) or string.lower("guards") == string.lower(arg2) then
  2033. for i,v in pairs(players:GetPlayers()) do
  2034. if v ~= localplayer and v.TeamColor.Name == "Bright blue" then
  2035. tp(v, CFrame.new(888, 100, 2388))
  2036. end
  2037. end
  2038. elseif string.lower("inmate") == string.lower(arg2) or string.lower("inmates") == string.lower(arg2) then
  2039. for i,v in pairs(players:GetPlayers()) do
  2040. if v ~= localplayer and v.TeamColor.Name == "Bright orange" then
  2041. tp(v, CFrame.new(888, 100, 2388))
  2042. end
  2043. end
  2044. elseif string.lower("criminal") == string.lower(arg2) or string.lower("criminals") == string.lower(arg2) then
  2045. for i,v in pairs(players:GetPlayers()) do
  2046. if v ~= localplayer and v.TeamColor.Name == "Really red" then
  2047. tp(v, CFrame.new(888, 100, 2388))
  2048. end
  2049. end
  2050. end
  2051. end
  2052. end
  2053. if cmd("yard") then
  2054. local plr = getplr(arg2, localplayer)
  2055. if plr ~= nil then
  2056. local success, errorm = pcall(function()
  2057. tp(plr, CFrame.new(791, 98, 2498))
  2058. end)
  2059. if success then
  2060. SendNotification("Tp "..getplr(arg2, localplayer).DisplayName.." to prison yard", "Success", Color3.fromRGB(0, 255, 0))
  2061. else
  2062. SendNotification(errorm, "Error", Color3.fromRGB(255, 0, 0))
  2063. end
  2064. else
  2065. if string.lower("all") == string.lower(arg2) or string.lower("others") == string.lower(arg2) then
  2066. for i,v in pairs(players:GetPlayers()) do
  2067. if v ~= localplayer then
  2068. tp(v, CFrame.new(791, 98, 2498))
  2069. end
  2070. end
  2071. elseif string.lower("guard") == string.lower(arg2) or string.lower("guards") == string.lower(arg2) then
  2072. for i,v in pairs(players:GetPlayers()) do
  2073. if v ~= localplayer and v.TeamColor.Name == "Bright blue" then
  2074. tp(v, CFrame.new(791, 98, 2498))
  2075. end
  2076. end
  2077. elseif string.lower("inmate") == string.lower(arg2) or string.lower("inmates") == string.lower(arg2) then
  2078. for i,v in pairs(players:GetPlayers()) do
  2079. if v ~= localplayer and v.TeamColor.Name == "Bright orange" then
  2080. tp(v, CFrame.new(791, 98, 2498))
  2081. end
  2082. end
  2083. elseif string.lower("criminal") == string.lower(arg2) or string.lower("criminals") == string.lower(arg2) then
  2084. for i,v in pairs(players:GetPlayers()) do
  2085. if v ~= localplayer and v.TeamColor.Name == "Really red" then
  2086. tp(v, CFrame.new(791, 98, 2498))
  2087. end
  2088. end
  2089. end
  2090. end
  2091. end
  2092. if cmd("base") then
  2093. local plr = getplr(arg2, localplayer)
  2094. if plr ~= nil then
  2095. local success, errorm = pcall(function()
  2096. tp(plr, CFrame.new(-943, 95, 2055))
  2097. end)
  2098. if success then
  2099. SendNotification("Tp "..getplr(arg2, localplayer).DisplayName.." to criminal base", "Success", Color3.fromRGB(0, 255, 0))
  2100. else
  2101. SendNotification(errorm, "Error", Color3.fromRGB(255, 0, 0))
  2102. end
  2103. else
  2104. if string.lower("all") == string.lower(arg2) or string.lower("others") == string.lower(arg2) then
  2105. for i,v in pairs(players:GetPlayers()) do
  2106. if v ~= localplayer then
  2107. tp(v, CFrame.new(-943, 95, 2055))
  2108. end
  2109. end
  2110. elseif string.lower("guard") == string.lower(arg2) or string.lower("guards") == string.lower(arg2) then
  2111. for i,v in pairs(players:GetPlayers()) do
  2112. if v ~= localplayer and v.TeamColor.Name == "Bright blue" then
  2113. tp(v, CFrame.new(-943, 95, 2055))
  2114. end
  2115. end
  2116. elseif string.lower("inmate") == string.lower(arg2) or string.lower("inmates") == string.lower(arg2) then
  2117. for i,v in pairs(players:GetPlayers()) do
  2118. if v ~= localplayer and v.TeamColor.Name == "Bright orange" then
  2119. tp(v, CFrame.new(-943, 95, 2055))
  2120. end
  2121. end
  2122. elseif string.lower("criminal") == string.lower(arg2) or string.lower("criminals") == string.lower(arg2) then
  2123. for i,v in pairs(players:GetPlayers()) do
  2124. if v ~= localplayer and v.TeamColor.Name == "Really red" then
  2125. tp(v, CFrame.new(-943, 95, 2055))
  2126. end
  2127. end
  2128. end
  2129. end
  2130. end
  2131. if cmd("key") then
  2132. local plr = getplr(arg2, localplayer)
  2133. if string.lower("all") == (string.lower(arg2)) or string.lower("others") == (string.lower(arg2)) then
  2134. savepos()
  2135. for i,v in pairs(players:GetPlayers()) do
  2136. if v ~= localplayer then
  2137. pcall(function()
  2138. key(v)
  2139. end)
  2140. end
  2141. end
  2142. loadpos()
  2143. SendNotification("Gave "..arg2.." key card", "Success", Color3.fromRGB(0, 255, 0))
  2144. elseif string.lower("inmate") == (string.lower(arg2)) or string.lower("inmates") == (string.lower(arg2)) then
  2145. savepos()
  2146. for i,v in pairs(players:GetPlayers()) do
  2147. if v ~= localplayer and v.TeamColor.Name == "Bright orange" then
  2148. pcall(function()
  2149. key(v)
  2150. end)
  2151. end
  2152. end
  2153. loadpos()
  2154. SendNotification("Gave "..arg2.." key card", "Success", Color3.fromRGB(0, 255, 0))
  2155. elseif string.lower("guard") == (string.lower(arg2)) or string.lower("guards") == (string.lower(arg2)) then
  2156. savepos()
  2157. for i,v in pairs(players:GetPlayers()) do
  2158. if v ~= localplayer and v.TeamColor.Name == "Bright blue" then
  2159. pcall(function()
  2160. key(v)
  2161. end)
  2162. end
  2163. end
  2164. loadpos()
  2165. SendNotification("Gave "..arg2.." key card", "Success", Color3.fromRGB(0, 255, 0))
  2166. elseif string.lower("criminal") == (string.lower(arg2)) or string.lower("criminals") == (string.lower(arg2)) then
  2167. savepos()
  2168. for i,v in pairs(players:GetPlayers()) do
  2169. if v ~= localplayer and v.TeamColor.Name == "Really red" then
  2170. pcall(function()
  2171. key(v)
  2172. end)
  2173. end
  2174. end
  2175. loadpos()
  2176. SendNotification("Gave "..arg2.." key card", "Success", Color3.fromRGB(0, 255, 0))
  2177. else
  2178. if plr ~= nil then
  2179. if plr == localplayer then
  2180. local success, errorm = pcall(function()
  2181. if not backpack:FindFirstChild("Key card") and not character:FindFirstChild("Key card") then
  2182. local oldteam = localplayer.TeamColor.Name
  2183. savepos()
  2184. repeat wait(.2)
  2185. character:WaitForChild("Humanoid").Health = 0
  2186. usingcmd = true
  2187. loadchar(BrickColor.new("Bright blue").Name)
  2188. until workspace.Prison_ITEMS.single:FindFirstChild("Key card")
  2189. loadchar(BrickColor.new(oldteam).Name)
  2190. usingcmd = true
  2191. loadpos()
  2192. workspace:WaitForChild("Remote"):WaitForChild("ItemHandler"):InvokeServer(workspace:WaitForChild("Prison_ITEMS").single:WaitForChild("Key card"):FindFirstChild("ITEMPICKUP"))
  2193. SendNotification("Obtains key card", "Success", Color3.fromRGB(0, 255, 0))
  2194. else
  2195. SendNotification("You already have key card", "Warn", Color3.fromRGB(255, 255, 0))
  2196. end
  2197. end)
  2198. if not success then
  2199. SendNotification(errorm, "Error", Color3.fromRGB(255, 0, 0))
  2200. end
  2201. else
  2202. local success, errorm = pcall(function()
  2203. key(plr)
  2204. end)
  2205. if success then
  2206. SendNotification("Gave "..plr.DisplayName.." key card", "Success", Color3.fromRGB(0, 255, 0))
  2207. else
  2208. SendNotification(errorm, "Error", Color3.fromRGB(255, 0, 0))
  2209. end
  2210. end
  2211. end
  2212. end
  2213. end
  2214. if cmd("cuffs") then
  2215. local plr = getplr(arg2, localplayer)
  2216. if string.lower("all"):match(string.lower(arg2)) or string.lower("others"):match(string.lower(arg2)) then
  2217. savepos()
  2218. for i,v in pairs(players:GetPlayers()) do
  2219. if v ~= localplayer then
  2220. pcall(function()
  2221. cuffs(v)
  2222. end)
  2223. end
  2224. end
  2225. loadpos()
  2226. SendNotification("Gave "..arg2.." hand cuffs", "Success", Color3.fromRGB(0, 255, 0))
  2227. elseif string.lower("inmate"):match(string.lower(arg2)) or string.lower("inmates"):match(string.lower(arg2)) then
  2228. savepos()
  2229. for i,v in pairs(players:GetPlayers()) do
  2230. if v ~= localplayer and v.TeamColor.Name == "Bright orange" then
  2231. pcall(function()
  2232. cuffs(v)
  2233. end)
  2234. end
  2235. end
  2236. loadpos()
  2237. SendNotification("Gave "..arg2.." hand cuffs", "Success", Color3.fromRGB(0, 255, 0))
  2238. elseif string.lower("guard"):match(string.lower(arg2)) or string.lower("guards"):match(string.lower(arg2)) then
  2239. savepos()
  2240. for i,v in pairs(players:GetPlayers()) do
  2241. if v ~= localplayer and v.TeamColor.Name == "Bright blue" then
  2242. pcall(function()
  2243. cuffs(v)
  2244. end)
  2245. end
  2246. end
  2247. loadpos()
  2248. SendNotification("Gave "..arg2.." hand cuffs", "Success", Color3.fromRGB(0, 255, 0))
  2249. elseif string.lower("criminal"):match(string.lower(arg2)) or string.lower("criminals"):match(string.lower(arg2)) then
  2250. savepos()
  2251. for i,v in pairs(players:GetPlayers()) do
  2252. if v ~= localplayer and v.TeamColor.Name == "Really red" then
  2253. pcall(function()
  2254. cuffs(v)
  2255. end)
  2256. end
  2257. end
  2258. loadpos()
  2259. SendNotification("Gave "..arg2.." hand cuffs", "Success", Color3.fromRGB(0, 255, 0))
  2260. else
  2261. if plr ~= nil then
  2262. if plr == localplayer then
  2263. local success, errorm = pcall(function()
  2264. local oldteam = localplayer.TeamColor.Name
  2265. loadchar(BrickColor.new("Bright blue").Name)
  2266. if oldteam == "Bright blue" or oldteam == "Bright orange" or oldteam == "Medium stone grey" then
  2267. teamevent(oldteam)
  2268. elseif oldteam == "Really red" then
  2269. SendNotification("Cannot change team back to normal team", "Warn", Color3.fromRGB(255, 255, 0))
  2270. else
  2271. teamevent("Medium ston grey")
  2272. end
  2273. end)
  2274. if success then
  2275. SendNotification("Obtains hand cuffs", "Success", Color3.fromRGB(0, 255, 0))
  2276. else
  2277. SendNotification(errorm, "Error", Color3.fromRGB(255, 0, 0))
  2278. end
  2279. else
  2280. local success, errorm = pcall(function()
  2281. cuffs(plr)
  2282. end)
  2283. if success then
  2284. SendNotification("Gave "..plr.DisplayName.." hand cuffs")
  2285. else
  2286. SendNotification(errorm, "Error", Color3.fromRGB(255, 0, 0))
  2287. end
  2288. end
  2289. end
  2290. end
  2291. end
  2292. end
  2293.  
  2294. function usecmds(msg, plr)
  2295. arg = string.lower(msg):split(" ")
  2296. arg1 = arg[1]
  2297. arg2 = arg[2]
  2298. arg3 = arg[3]
  2299. usingcmd = true
  2300. local oldcmd = cmd2
  2301. local cmd = function(commands)
  2302. return oldcmd(commands, plr)
  2303. end
  2304. local PF = admins[plr.Name].prefix
  2305. if cmd2("cmds", plr) then
  2306. chat("/w "..plr.Name.." "..PF.."kill [player] "..PF.."bring [player] "..PF.."goto [player] "..PF.."nexus [player] "..PF.."crim [player] "..PF.."ka [player] "..PF.."unka [player] ")
  2307. chat("/w "..plr.Name.." "..PF.."kill [all,inmate,criminal,guard] "..PF.."base [player] "..PF.."yard [player] "..PF.."lk [player] "..PF.."unlk [player] "..PF.."key [player] "..PF.."cuffs [player] " )
  2308. end
  2309. if cmd2("prefix", plr) then
  2310. local newPrefix = tostring(arg2) or tostring(admins[plr.Name].prefix)
  2311. if newPrefix ~= admins[plr.Name].prefix and #newPrefix == 1 then
  2312. admins[plr.Name].prefix = newPrefix
  2313. end
  2314. end
  2315. if cmd2("ka", plr) then
  2316. local plr = getplr(arg2, plr)
  2317. if plr and not killaura[plr.Name] then
  2318. killaura[plr.Name] = {plr = plr}
  2319. end
  2320. end
  2321. if cmd2("unka", plr) then
  2322. local plr = getplr(arg2, plr)
  2323. if plr and killaura[plr.Name] then
  2324. killaura[plr.Name] = nil
  2325. end
  2326. end
  2327. if cmd2("kill", plr) then
  2328. if arg2 == "all" then
  2329. killall(plr)
  2330. elseif arg2 == "inmate" or arg2 == "inmates" then
  2331. killteam(BrickColor.new("Bright orange").Name, plr)
  2332. elseif arg2 == "guard" or arg2 == "guards" then
  2333. killteam(BrickColor.new("Bright blue").Name, plr)
  2334. elseif arg2 == "criminal" or arg2 == "criminals" then
  2335. killteam(BrickColor.new("Really red").Name, plr)
  2336. else
  2337. local plr = getplr(arg2, plr)
  2338. if plr ~= nil then
  2339. kill(plr)
  2340. end
  2341. end
  2342. end
  2343. if cmd2("bring", plr) then
  2344. local plr2 = getplr(arg2, plr)
  2345. if plr2 ~= nil then
  2346. tpV(plr2, plr)
  2347. end
  2348. end
  2349. if cmd2("goto", plr) then
  2350. local plr2 = getplr(arg2, plr)
  2351. if plr2 ~= nil then
  2352. tpV(plr, plr2)
  2353. end
  2354. end
  2355. if cmd2("nexus", plr) then
  2356. local plr = getplr(arg2, plr)
  2357. if plr ~= nil then
  2358. tp(plr, CFrame.new(888, 100, 2388))
  2359. end
  2360. end
  2361. if cmd2("yard", plr) then
  2362. local plr = getplr(arg2, plr)
  2363. if plr ~= nil then
  2364. tp(plr, CFrame.new(791, 98, 2498))
  2365. end
  2366. end
  2367. if cmd2("base", plr) then
  2368. local plr = getplr(arg2, plr)
  2369. if plr ~= nil then
  2370. tp(plr, CFrame.new(-943, 95, 2055))
  2371. end
  2372. end
  2373. if cmd2("crim", plr) then
  2374. local plr = getplr(arg2, plr)
  2375. if plr then
  2376. tp(plr, CFrame.new(-919, 100, 2138))
  2377. end
  2378. end
  2379. if cmd2("lk", plr) then
  2380. local plr = getplr(arg2, plr)
  2381. if plr and not loopkill[plr.Name] then
  2382. loopkill[plr.Name] = {plr = plr}
  2383. end
  2384. end
  2385. if cmd2("unlk", plr) then
  2386. local plr = getplr(arg2, plr)
  2387. if plr and loopkill[plr.Name] then
  2388. loopkill[plr.Name] = nil
  2389. end
  2390. end
  2391. if cmd2("key", plr) then
  2392. local plr = getplr(arg2, plr)
  2393. if plr ~= nil then
  2394. key(plr)
  2395. end
  2396. end
  2397. if cmd("cuffs", plr) then
  2398. local plr = getplr(arg2, plr)
  2399. if plr ~= nil then
  2400. cuffs(plr)
  2401. end
  2402. end
  2403. end
  2404.  
  2405. for _,v in pairs(players:GetPlayers()) do
  2406. if v ~= localplayer then
  2407. v.Chatted:Connect(function(msg)
  2408. if admins[v.Name] then
  2409. usecmds(msg, v)
  2410. end
  2411. end)
  2412. end
  2413. end
  2414.  
  2415. players.PlayerAdded:Connect(function(plr)
  2416. plr.Chatted:Connect(function(msg)
  2417. if admins[plr.Name] then
  2418. usecmds(msg, plr)
  2419. end
  2420. end)
  2421. end)
  2422.  
  2423. localplayer.Chatted:Connect(usecmd)
  2424.  
  2425. spawn(function()
  2426. while wait(.75) do
  2427. if states.loopkillall then
  2428. pcall(function()
  2429. killall()
  2430. end)
  2431. end
  2432. end
  2433. end)
  2434.  
  2435. spawn(function()
  2436. while wait(.75) do
  2437. for i,v in pairs(loopkill) do
  2438. pcall(function()
  2439. if v.plr and game.Players:FindFirstChild(v.plr.Name) then
  2440. if v.plr.TeamColor.Name == localplayer.TeamColor.Name then
  2441. savepos()
  2442. loadchar(BrickColor.random().Name)
  2443. wait(.1)
  2444. loadpos()
  2445. end
  2446. workspace.Remote.ItemHandler:InvokeServer(workspace.Prison_ITEMS.giver["Remington 870"].ITEMPICKUP)
  2447. local gun = backpack:FindFirstChild("Remington 870") or character:FindFirstChild("Remington 870")
  2448. local events = {}
  2449. for i = 1,15 do
  2450. events[#events + 1] = {
  2451. Hit = v.plr.Character:FindFirstChildOfClass("Part"),
  2452. Cframe = CFrame.new(),
  2453. Distance = 0,
  2454. RayObject = Ray.new(Vector3.new(), Vector3.new())
  2455. }
  2456. end
  2457. coroutine.wrap(function()
  2458. for i = 1,30 do
  2459. replicatedstorage.ReloadEvent:FireServer(gun)
  2460. wait(.3)
  2461. end
  2462. end)()
  2463. replicatedstorage.ShootEvent:FireServer(events, gun)
  2464. end
  2465. end)
  2466. end
  2467. end
  2468. end)
  2469.  
  2470. coroutine.wrap(function()
  2471. while wait(1) do
  2472. if states.killaura then
  2473. for i,v in pairs(game.Players:GetPlayers()) do
  2474. if v ~= game.Players.LocalPlayer and v.TeamColor.Name ~= localplayer.TeamColor.Name then
  2475. pcall(function()
  2476. local events = {}
  2477. local Distance = (v.Character:FindFirstChildOfClass("Part").Position - game.Players.LocalPlayer.Character:FindFirstChildOfClass("Part").Position).magnitude
  2478. if Distance < 25 and v.Character.Humanoid.Health > 0 and not v.Character:FindFirstChild("Force Field") then
  2479. for e = 1,15 do
  2480. events[#events + 1] = {
  2481. Hit = v.Character:FindFirstChildOfClass("Part"),
  2482. Cframe = CFrame.new(),
  2483. Distance = 0,
  2484. RayObject = Ray.new(Vector3.new(), Vector3.new())
  2485. }
  2486. end
  2487. end
  2488. if #events > 10 then
  2489. local gun
  2490. for _,g in pairs(character:GetChildren()) do
  2491. if g.Name ~= "Taser" and gun == nil and g ~= nil and g:FindFirstChild("GunStates") then
  2492. gun = g
  2493. end
  2494. end
  2495. if gun == nil then
  2496. for _,g in pairs(backpack:GetChildren()) do
  2497. if g.Name ~= "Taser" and gun == nil and g ~= nil and g:FindFirstChild("GunStates") then
  2498. gun = g
  2499. end
  2500. end
  2501. end
  2502. coroutine.wrap(function()
  2503. for i = 1,30 do
  2504. game:GetService("ReplicatedStorage"):WaitForChild("ReloadEvent"):FireServer(gun)
  2505. wait(.5)
  2506. end
  2507. end)()
  2508. replicatedstorage:WaitForChild("ShootEvent"):FireServer(events, gun)
  2509. end
  2510. end)
  2511. end
  2512. end
  2513. end
  2514. end
  2515. end)()
  2516.  
  2517. spawn(function()
  2518. while wait(1) do
  2519. for i,v in pairs(game.Players:GetPlayers()) do
  2520. if v ~= game.Players.LocalPlayer and v.TeamColor.Name ~= localplayer.TeamColor.Name then
  2521. for _,p in pairs(killaura) do
  2522. pcall(function()
  2523. local events = {}
  2524. if game.Players:FindFirstChild(p.plr.Name) then
  2525. if (v.Character:FindFirstChildOfClass("Part").Position-p.plr.Character:FindFirstChildOfClass("Part").Position).Magnitude < 20 then
  2526. if v.Character:FindFirstChild("Humanoid").Health > 0 and v ~= p.plr and not v.Character:FindFirstChild("Force Field") then
  2527. for e = 1,15 do
  2528. events[#events + 1] = {
  2529. Hit = v.Character:FindFirstChildOfClass("Part"),
  2530. Cframe = CFrame.new(),
  2531. Distance = 0,
  2532. RayObject = Ray.new(Vector3.new(), Vector3.new())
  2533. }
  2534. end
  2535. end
  2536. end
  2537. end
  2538. if #events > 10 then
  2539. local gun
  2540. for _,g in pairs(character:GetChildren()) do
  2541. if g.Name ~= "Taser" and gun == nil and g ~= nil and g:FindFirstChild("GunStates") then
  2542. gun = g
  2543. end
  2544. end
  2545. if gun == nil then
  2546. for _,g in pairs(backpack:GetChildren()) do
  2547. if g.Name ~= "Taser" and gun == nil and g ~= nil and g:FindFirstChild("GunStates") then
  2548. gun = g
  2549. end
  2550. end
  2551. end
  2552. coroutine.wrap(function()
  2553. for i = 1,30 do
  2554. game:GetService("ReplicatedStorage"):WaitForChild("ReloadEvent"):FireServer(gun)
  2555. wait(.5)
  2556. end
  2557. end)()
  2558. replicatedstorage:WaitForChild("ShootEvent"):FireServer(events, gun)
  2559. end
  2560. end)
  2561. end
  2562. end
  2563. end
  2564. end
  2565. end)
  2566.  
  2567. local OldTeam = game.Players.LocalPlayer.TeamColor.Name
  2568.  
  2569. spawn(function()
  2570. while wait() do
  2571. pcall(function()
  2572. if AntiTeamChange then
  2573. if game.Players.LocalPlayer.Character:FindFirstChild("Humanoid").Health < 1 then
  2574. if game.Players.LocalPlayer.TeamColor.Name ~= OldTeam then
  2575. if OldTeam == "Bright blue" or OldTeam == "Bright orange" then
  2576. teamevent(OldTeam)
  2577. end
  2578. end
  2579. elseif game.Players.LocalPlayer.Character:FindFirstChild("Humanoid").Health > 0 then
  2580. OldTeam = game.Players.LocalPlayer.TeamColor.Name
  2581. end
  2582. end
  2583. end)
  2584. end
  2585. end)
  2586.  
  2587. local oldposition = humroot.Position
  2588. local oldcframe = getpos()
  2589.  
  2590. game:GetService("RunService").Stepped:Connect(function()
  2591. pcall(function()
  2592. game.Players.LocalPlayer.Character.HumanoidRootPart.Anchored = true
  2593. game.Players.LocalPlayer.Character.HumanoidRootPart.Anchored = false
  2594. end)
  2595. end)
  2596.  
  2597. spawn(function()
  2598. while wait() do
  2599. pcall(function()
  2600. if AntiBring then
  2601. if (game.Players.LocalPlayer.Character.HumanoidRootPart.Position-oldposition).magnitude > MaxAntiBringDistance and not usingcmd then
  2602. coroutine.wrap(function()
  2603. for i = 1,3 do
  2604. wait()
  2605. game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = oldcframe
  2606. end
  2607. end)()
  2608. elseif usingcmd then
  2609. wait(.1)
  2610. usingcmd = false
  2611. oldposition = game.Players.LocalPlayer.Character.HumanoidRootPart.Position
  2612. oldcframe = getpos()
  2613. end
  2614. if (game.Players.LocalPlayer.Character.HumanoidRootPart.Position-oldposition).magnitude < MaxAntiBringDistance and not usingcmd then
  2615. oldposition = game.Players.LocalPlayer.Character.HumanoidRootPart.Position
  2616. oldcframe = getpos()
  2617. end
  2618. end
  2619. end)
  2620. end
  2621. end)
  2622.  
  2623. spawn(function()
  2624. while wait() do
  2625. pcall(function()
  2626. if game.Players.LocalPlayer.Character.HumanoidRootPart.Position.Y < 1 then
  2627. usingcmd = true
  2628. game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = CFrame.new(888, 100, 2388)
  2629. end
  2630. end)
  2631. end
  2632. end)
  2633.  
  2634. spawn(function()
  2635. while wait() do
  2636. pcall(function()
  2637. local arrestPlayer = getconnections(game:GetService("Workspace"):WaitForChild("Remote"):WaitForChild("arrestPlayer").OnClientEvent)
  2638. for i,v in pairs(arrestPlayer) do
  2639. v:Disable()
  2640. end
  2641. end)
  2642. end
  2643. end)
  2644.  
  2645. spawn(function()
  2646. while wait() do
  2647. for i,v in pairs(game.Players:GetPlayers()) do
  2648. if v ~= localplayer then
  2649. pcall(function()
  2650. coroutine.wrap(function()
  2651. for t = 1,1000 do
  2652. v.Character.Head:FindFirstChild("handcuffedGui"):Destroy()
  2653. end
  2654. end)()
  2655. end)
  2656. end
  2657. end
  2658. end
  2659. end)
  2660.  
  2661. local removing = false
  2662.  
  2663. spawn(function()
  2664. while wait() do
  2665. pcall(function()
  2666. if AntiCriminal then
  2667. if game.Players.LocalPlayer.TeamColor.Name == "Really red" then
  2668. local char = character
  2669. local hum = char:FindFirstChildOfClass("Humanoid"):Clone()
  2670. hum.Name = "Humanoid"
  2671. char:FindFirstChildOfClass("Humanoid"):Destroy()
  2672. hum.Parent = char
  2673. usingcmd = true
  2674. loadchar(BrickColor.new("Bright blue").Name)
  2675. humroot.CFrame = CFrame.new(888, 100, 2388)
  2676. end
  2677. end
  2678. if AntiArrest then
  2679. if game.Players.LocalPlayer.Character:FindFirstChild("Head"):FindFirstChild("handcuffedGui") then
  2680. teamevent("Medium stone grey")
  2681. end
  2682. end
  2683. end)
  2684. end
  2685. end)
  2686.  
  2687. spawn(function()
  2688. while wait() do
  2689. pcall(function()
  2690. if FastPunch then
  2691. getsenv(game.Players.LocalPlayer.Character.ClientInputHandler).cs.isFighting = false
  2692. getsenv(game.Players.LocalPlayer.Character.ClientInputHandler).cs.isRunning = false
  2693. end
  2694. end)
  2695. end
  2696. end)
  2697.  
  2698. spawn(function()
  2699. while wait() do
  2700. pcall(function()
  2701. if AntiTaser then
  2702. local tazePlayer = getconnections(workspace.Remote.tazePlayer.OnClientEvent)
  2703. for i,v in pairs(tazePlayer) do
  2704. v:Disable()
  2705. end
  2706. end
  2707. end)
  2708. end
  2709. end)
  2710.  
  2711. spawn(function()
  2712. while wait() do
  2713. pcall(function()
  2714. if states.viewing ~= nil then
  2715. workspace.CurrentCamera.CameraSubject = states.viewing.Character
  2716. end
  2717. end)
  2718. end
  2719. end)
  2720.  
  2721. localplayer.CharacterAdded:Connect(function()
  2722. if localplayer.TeamColor.Name == "Medium stone grey" and states.stucking then
  2723. wait(.5)
  2724. game.Players.LocalPlayer.PlayerGui.Home.intro.Visible = false
  2725. game.Players.LocalPlayer.PlayerGui.Home.hud.Visible = true
  2726. workspace.CurrentCamera.FieldOfView = 70
  2727. game:GetService("StarterGui"):SetCoreGuiEnabled("Chat", true)
  2728. game:GetService("StarterGui"):SetCoreGuiEnabled("Backpack", true)
  2729. game:GetService("StarterGui"):SetCoreGuiEnabled("PlayerList", true)
  2730. workspace.CurrentCamera.CameraType = Enum.CameraType.Custom
  2731. end
  2732. end)
  2733.  
  2734. spawn(function()
  2735. while wait() do
  2736. pcall(function()
  2737. for i,v in pairs(players:GetPlayers()) do
  2738. if v.Character:FindFirstChild("vest") then
  2739. if AntiArmorSpam then
  2740. for i = 1,25 do
  2741. coroutine.wrap(function()
  2742. v.Character:FindFirstChild("vest"):Destroy()
  2743. end)()
  2744. end
  2745. end
  2746. end
  2747. end
  2748. end)
  2749. end
  2750. end)
  2751.  
  2752. if AntiCrash then
  2753. local replicatedEvent = getconnections(game:GetService("ReplicatedStorage"):WaitForChild("ReplicateEvent").OnClientEvent)
  2754.  
  2755. for i,v in pairs(replicatedEvent) do
  2756. v:Disable()
  2757. end
  2758. end
  2759.  
  2760. game:GetService("Workspace"):WaitForChild("Prison_ITEMS"):WaitForChild("single").ChildAdded:Connect(function(child)
  2761. if child ~= nil and EspItem then
  2762. local bill = Instance.new("BillboardGui", child)
  2763. local text = Instance.new("TextLabel", bill)
  2764. bill.AlwaysOnTop = true
  2765. bill.Size = UDim2.new(2, 0, 1, 0)
  2766. bill.ExtentsOffset = Vector3.new(0, 2, 0)
  2767. text.Text = child.Name
  2768. text.TextScaled = false
  2769. text.TextSize = 16
  2770. text.Font = Enum.Font.GothamBlack
  2771. text.TextColor3 = Color3.fromRGB(0, 255, 255)
  2772. text.BackgroundTransparency = 1.000
  2773. text.Size = UDim2.new(1, 0, 1, 0)
  2774. text.Name = "Title"
  2775. bill.Name = "Billboard"
  2776. end
  2777. end)
  2778.  
  2779. for _,plr in pairs(game.Players:GetPlayers()) do
  2780. if plr ~= localplayer then
  2781. repeat wait() until plr.Character ~= nil and plr.Character:FindFirstChildOfClass("Part")
  2782. if plr ~= nil and EspName then
  2783. local bill = Instance.new("BillboardGui", plr.Character)
  2784. local text = Instance.new("TextLabel", bill)
  2785. bill.AlwaysOnTop = true
  2786. bill.Size = UDim2.new(2, 0, 1, 0)
  2787. bill.ExtentsOffset = Vector3.new(0, 1, 0)
  2788. text.Text = plr.DisplayName
  2789. text.TextScaled = false
  2790. text.TextSize = 16
  2791. text.Font = Enum.Font.GothamBlack
  2792. text.TextColor = plr.TeamColor
  2793. text.BackgroundTransparency = 1.000
  2794. text.Size = UDim2.new(1, 0, 1, 0)
  2795. text.Name = "Title"
  2796. bill.Name = "Billboard"
  2797. end
  2798. if plr ~= nil and EspChamber then
  2799. for i,v in pairs(plr.Character:children()) do
  2800. pcall(function()
  2801. local box = Instance.new("BoxHandleAdornment", v)
  2802. box.AlwaysOnTop = true
  2803. box.Color3 = plr.TeamColor.Color
  2804. box.AdornCullingMode = Enum.AdornCullingMode.Automatic
  2805. box.Transparency = 0.750
  2806. box.Visible = true
  2807. box.Adornee = v
  2808. box.ZIndex = 0
  2809. box.Size = v.Size
  2810. box.Name = "Box"
  2811. end)
  2812. end
  2813. end
  2814. plr.CharacterAdded:Connect(function(char)
  2815. char:WaitForChild("HumanoidRootPart")
  2816. repeat wait() until char ~= nil and char:FindFirstChildOfClass("Part")
  2817. if plr ~= nil and EspName then
  2818. local bill = Instance.new("BillboardGui", char)
  2819. local text = Instance.new("TextLabel", bill)
  2820. bill.AlwaysOnTop = true
  2821. bill.Size = UDim2.new(2, 0, 1, 0)
  2822. bill.ExtentsOffset = Vector3.new(0, 1, 0)
  2823. text.Text = plr.DisplayName
  2824. text.TextScaled = false
  2825. text.TextSize = 16
  2826. text.Font = Enum.Font.GothamBlack
  2827. text.TextColor = plr.TeamColor
  2828. text.BackgroundTransparency = 1.000
  2829. text.Size = UDim2.new(1, 0, 1, 0)
  2830. text.Name = "Title"
  2831. bill.Name = "Billboard"
  2832. end
  2833. if plr ~= nil and EspChamber then
  2834. for i,v in pairs(char:children()) do
  2835. pcall(function()
  2836. local box = Instance.new("BoxHandleAdornment", v)
  2837. box.AlwaysOnTop = true
  2838. box.Color3 = plr.TeamColor.Color
  2839. box.AdornCullingMode = Enum.AdornCullingMode.Automatic
  2840. box.Transparency = 0.750
  2841. box.Visible = true
  2842. box.Adornee = v
  2843. box.ZIndex = 0
  2844. box.Size = v.Size
  2845. box.Name = "Box"
  2846. end)
  2847. end
  2848. end
  2849. end)
  2850. end
  2851. end
  2852.  
  2853. game.Players.PlayerAdded:Connect(function(plr)
  2854. plr.CharacterAdded:Wait()
  2855. repeat wait() until plr.Character ~= nil and plr.Character:FindFirstChildOfClass("Part")
  2856. if plr ~= nil and EspName then
  2857. local bill = Instance.new("BillboardGui", plr.Character:WaitForChild("Head"))
  2858. local text = Instance.new("TextLabel", bill)
  2859. bill.AlwaysOnTop = true
  2860. bill.Size = UDim2.new(2, 0, 1, 0)
  2861. bill.ExtentsOffset = Vector3.new(0, 1, 0)
  2862. text.Text = plr.DisplayName
  2863. text.TextScaled = false
  2864. text.TextSize = 16
  2865. text.Font = Enum.Font.GothamBlack
  2866. text.TextColor = plr.TeamColor
  2867. text.BackgroundTransparency = 1.000
  2868. text.Size = UDim2.new(1, 0, 1, 0)
  2869. text.Name = "Title"
  2870. bill.Name = "Billboard"
  2871. end
  2872. if plr ~= nil and EspChamber then
  2873. for i,v in pairs(plr.Character:children()) do
  2874. pcall(function()
  2875. local box = Instance.new("BoxHandleAdornment", v)
  2876. box.AlwaysOnTop = true
  2877. box.Color3 = plr.TeamColor.Color
  2878. box.AdornCullingMode = Enum.AdornCullingMode.Automatic
  2879. box.Transparency = 0.750
  2880. box.Visible = true
  2881. box.Adornee = v
  2882. box.ZIndex = 0
  2883. box.Size = v.Size
  2884. box.Name = "Box"
  2885. end)
  2886. end
  2887. end
  2888. plr.CharacterAdded:Connect(function(char)
  2889. char:WaitForChild("HumanoidRootPart")
  2890. repeat wait() until char:FindFirstChildOfClass("Part") and char ~= nil
  2891. if plr ~= nil and EspName then
  2892. local bill = Instance.new("BillboardGui", char:WaitForChild("Head"))
  2893. local text = Instance.new("TextLabel", bill)
  2894. bill.AlwaysOnTop = true
  2895. bill.Size = UDim2.new(2, 0, 1, 0)
  2896. bill.ExtentsOffset = Vector3.new(0, 1, 0)
  2897. text.Text = plr.DisplayName
  2898. text.TextScaled = false
  2899. text.TextSize = 16
  2900. text.Font = Enum.Font.GothamBlack
  2901. text.TextColor = plr.TeamColor
  2902. text.BackgroundTransparency = 1.000
  2903. text.Size = UDim2.new(1, 0, 1, 0)
  2904. text.Name = "Title"
  2905. bill.Name = "Billboard"
  2906. end
  2907. if EspChamber then
  2908. for i,v in pairs(char:children()) do
  2909. pcall(function()
  2910. local box = Instance.new("BoxHandleAdornment", v)
  2911. box.AlwaysOnTop = true
  2912. box.Color3 = plr.TeamColor.Color
  2913. box.AdornCullingMode = Enum.AdornCullingMode.Automatic
  2914. box.Transparency = 0.750
  2915. box.Visible = true
  2916. box.Adornee = v
  2917. box.ZIndex = 0
  2918. box.Size = v.Size
  2919. box.Name = "Box"
  2920. end)
  2921. end
  2922. end
  2923. end)
  2924. end)
  2925.  
  2926. spawn(function()
  2927. while wait() do
  2928. for i,v in pairs(game.Players:GetPlayers()) do
  2929. if v ~= localplayer then
  2930. pcall(function()
  2931. if v.Character.Head:FindFirstChild("Billboard") then
  2932. v.Character.Head.Billboard.Title.TextColor = v.TeamColor
  2933. v.Character.Head.Billboard.Title.Text = v.DisplayName
  2934. end
  2935. end)
  2936. end
  2937. end
  2938. end
  2939. end)
  2940.  
  2941. localplayer.CharacterAdded:Connect(function()
  2942. if AutoGunWhenRepspawn then
  2943. workspace.Remote.ItemHandler:InvokeServer(workspace.Prison_ITEMS.giver["Remington 870"].ITEMPICKUP)
  2944. if game:GetService("MarketplaceService"):UserOwnsGamePassAsync(localplayer.UserId, 96651) then
  2945. workspace.Remote.ItemHandler:InvokeServer(workspace.Prison_ITEMS.giver["M4A1"].ITEMPICKUP)
  2946. end
  2947. workspace.Remote.ItemHandler:InvokeServer(workspace.Prison_ITEMS.giver["AK-47"].ITEMPICKUP)
  2948. workspace.Remote.ItemHandler:InvokeServer(workspace.Prison_ITEMS.giver["M9"].ITEMPICKUP)
  2949. if AutoModTheGunInYourBackpackWhenRespawn then
  2950. local Remington_870 = character:FindFirstChild("Remington 870") or backpack:FindFirstChild("Remington 870")
  2951. local AK_47 = character:FindFirstChild("AK-47") or backpack:FindFirstChild("AK-47")
  2952. local M4A1
  2953. if game:GetService("MarketplaceService"):UserOwnsGamePassAsync(localplayer.UserId, 96651) then
  2954. M4A1 = character:FindFirstChild("M4A1") or backpack:FindFirstChild("M4A1")
  2955. end
  2956. local M9 = character:FindFirstChild("M9") or backpack:FindFirstChild("M9")
  2957. local Taser
  2958. if character:FindFirstChild("Taser") or backpack:FindFirstChild("Taser") then
  2959. Taser = character:FindFirstChild("Taser") or backpack:FindFirstChild("Taser")
  2960. end
  2961. for i,v in pairs(backpack:GetChildren()) do
  2962. if v:IsA("Tool") then
  2963. local canHave = Instance.new("BoolValue", v)
  2964. canHave.Value = true
  2965. canHave.Name = "CanHave"
  2966. end
  2967. end
  2968. local GUNS = {
  2969. Remington_870,
  2970. AK_47,
  2971. M4A1,
  2972. M9,
  2973. Taser
  2974. }
  2975. for i,v in pairs(GUNS) do
  2976. if v ~= nil then
  2977. local req = require(v:FindFirstChild("GunStates"))
  2978. req["ReloadTime"] = -math.huge
  2979. req["FireRate"] = -math.huge
  2980. req["AutoFire"] = true
  2981. req["StoredAmmo"] = math.huge
  2982. req["AmmoPerClip"] = math.huge
  2983. req["CurrentAmmo"] = math.huge
  2984. req["MaxAmmo"] = math.huge
  2985. local canHave = Instance.new("BoolValue", v)
  2986. canHave.Value = true
  2987. canHave.Name = "CanHave"
  2988. end
  2989. end
  2990. end
  2991. end
  2992. if AutoBToolsWhenRespawn then
  2993. local HopperBin = Instance.new("HopperBin", backpack)
  2994. HopperBin.BinType = 4
  2995. HopperBin = Instance.new("HopperBin", backpack)
  2996. HopperBin.BinType = 3
  2997. HopperBin = Instance.new("HopperBin", backpack)
  2998. HopperBin.BinType = 2
  2999. end
  3000. end)
  3001.  
  3002. if DeleteCriminalPads then
  3003. for i,v in pairs(workspace["Criminals Spawn"]:children()) do
  3004. v.Parent = game.Lighting
  3005. end
  3006. end
  3007.  
  3008. spawn(function()
  3009. while wait() do
  3010. coroutine.wrap(function()
  3011. pcall(function()
  3012. local Remington_870 = character:FindFirstChild("Remington 870") or backpack:FindFirstChild("Remington 870")
  3013. local AK_47 = character:FindFirstChild("AK-47") or backpack:FindFirstChild("AK-47")
  3014. local M4A1
  3015. if game:GetService("MarketplaceService"):UserOwnsGamePassAsync(localplayer.UserId, 96651) then
  3016. M4A1 = character:FindFirstChild("M4A1") or backpack:FindFirstChild("M4A1")
  3017. end
  3018. local M9 = character:FindFirstChild("M9") or backpack:FindFirstChild("M9")
  3019. local Taser
  3020. if character:FindFirstChild("Taser") or backpack:FindFirstChild("Taser") then
  3021. Taser = character:FindFirstChild("Taser") or backpack:FindFirstChild("Taser")
  3022. end
  3023. local Guns = {
  3024. Remington_870,
  3025. AK_47,
  3026. M4A1,
  3027. M9,
  3028. Taser
  3029. }
  3030. for i,v in pairs(Guns) do
  3031. local req = require(v:FindFirstChild("GunStates"))
  3032. for t = 1,2 do
  3033. game:GetService("ReplicatedStorage"):WaitForChild("ReloadEvent"):FireServer(v)
  3034. wait(.5)
  3035. end
  3036. end
  3037. end)
  3038. end)()
  3039. end
  3040. end)
  3041.  
  3042. game:GetService("RunService").Stepped:Connect(function()
  3043. if AntiFling then
  3044. local plr = game:GetService('Players')
  3045. local me = plr.LocalPlayer
  3046. for i,v in pairs(plr:GetPlayers()) do
  3047. if v ~= me then
  3048. local char = v.Character
  3049. if char then
  3050. for _,p in pairs(char:GetChildren()) do
  3051. pcall(function()
  3052. p.CanCollide = false
  3053. if p:FindFirstChild("Handle") then
  3054. p.Handle.CanCollide = false
  3055. end
  3056. end)
  3057. end
  3058. end
  3059. end
  3060. end
  3061. end
  3062. end)
  3063.  
  3064. game:GetService("RunService").RenderStepped:connect(function()
  3065. if states.timeout then
  3066. local events = {}
  3067. for i = 1,1000 do
  3068. events[#events + 1] = {
  3069. Hit = game.Players.LocalPlayer.Character:FindFirstChildOfClass("Part"),
  3070. Distance = 0,
  3071. Cframe = CFrame.new(),
  3072. RayObject = Ray.new(Vector3.new(), Vector3.new())
  3073. }
  3074. end
  3075. local gun = nil
  3076. for _,v in pairs(game.Players.LocalPlayer:WaitForChild("Backpack"):children()) do
  3077. if v:IsA("Tool") and v.Name ~= "Taser" and v:FindFirstChild("GunStates") and gun == nil then
  3078. gun = v
  3079. end
  3080. end
  3081. if gun == nil then
  3082. for _,v in pairs(game.Players.LocalPlayer.Character:children()) do
  3083. if v:IsA("Tool") and v.Name ~= "Taser" and v:FindFirstChild("GunStates") and gun == nil then
  3084. gun = v
  3085. end
  3086. end
  3087. end
  3088. game:GetService("ReplicatedStorage"):WaitForChild("ShootEvent"):FireServer(events, gun)
  3089. end
  3090. end)
  3091.  
  3092. for i,v in pairs(game.Players:GetPlayers()) do
  3093. if SaveYourMessageToChatLogs then
  3094. v.Chatted:Connect(function(msg)
  3095. if #chatlogs > MaxChatLogsSaves then
  3096. chatlogs[1] = nil
  3097. for i = 1,#chatlogs do
  3098. if i ~= 1 then
  3099. chatlogs[i-1] = {
  3100. plr = chatlogs[i].plr,
  3101. chat = chatlogs[i].chat,
  3102. clocktime = chatlogs[i].clocktime
  3103. }
  3104. end
  3105. end
  3106. end
  3107. chatlogs[#chatlogs + 1] = {
  3108. plr = v,
  3109. chat = msg,
  3110. clocktime = game.Players.LocalPlayer:WaitForChild("PlayerGui"):WaitForChild("Home").hud.ClockFrame.tl.Text
  3111. }
  3112. end)
  3113. else
  3114. if v ~= localplayer then
  3115. v.Chatted:Connect(function(msg)
  3116. if #chatlogs > MaxChatLogsSaves then
  3117. chatlogs[1] = nil
  3118. for i = 1,#chatlogs do
  3119. if i ~= 1 then
  3120. chatlogs[i-1] = {
  3121. plr = chatlogs[i].plr,
  3122. chat = chatlogs[i].chat,
  3123. clocktime = chatlogs[i].clocktime
  3124. }
  3125. end
  3126. end
  3127. end
  3128. chatlogs[#chatlogs + 1] = {
  3129. plr = v,
  3130. chat = msg,
  3131. clocktime = game.Players.LocalPlayer:WaitForChild("PlayerGui"):WaitForChild("Home").hud.ClockFrame.tl.Text
  3132. }
  3133. end)
  3134. end
  3135. end
  3136. end
  3137.  
  3138. game.Players.PlayerAdded:Connect(function(plr)
  3139. plr.Chatted:Connect(function(msg)
  3140. if #chatlogs > MaxChatLogsSaves then
  3141. chatlogs[1] = nil
  3142. end
  3143. chatlogs[#chatlogs + 1] = {
  3144. plr = plr,
  3145. chat = msg,
  3146. clocktime = game.Players.LocalPlayer:WaitForChild("PlayerGui"):WaitForChild("Home").hud.ClockFrame.tl.Text
  3147. }
  3148. end)
  3149. end)
  3150.  
  3151. spawn(function()
  3152. while wait() do
  3153. pcall(function()
  3154. localplayer:WaitForChild("Status"):WaitForChild("isBadGuard").Value = false
  3155. localplayer:WaitForChild("Status"):WaitForChild("toolIsEquipped").Value = false
  3156. localplayer:WaitForChild("Status"):WaitForChild("playerCell").Value = nil
  3157. end)
  3158. end
  3159. end)
  3160.  
  3161. INPUT.FocusLost:Connect(function()
  3162. if INPUT.Text:sub(1,1) ~= prefix then
  3163. usecmd(prefix..INPUT.Text)
  3164. else
  3165. usecmd(INPUT.Text)
  3166. end
  3167. wait()
  3168. INPUT.Text = ""
  3169. INPUT_HANDLER.Text = ""
  3170. CloseInput()
  3171. end)
  3172.  
  3173. for i,v in pairs(game:GetService("Lighting"):GetChildren()) do
  3174. if v:IsA("SpawnLocation") then
  3175. v.AllowTeamChangeOnTouch = false
  3176. v.CanCollide = false
  3177. end
  3178. end
  3179.  
  3180. pcall(function()
  3181. savepos()
  3182. loadchar(BrickColor.random().Name)
  3183. wait(.1)
  3184. usingcmd = true
  3185. loadpos()
  3186. local cellBlock = game:GetService("Workspace"):FindFirstChild("Prison_Cellblock")
  3187. if cellBlock then
  3188. local cellDoor = cellBlock:FindFirstChild("doors")
  3189. if cellDoor and DeleteDoors then
  3190. game:GetService("Workspace"):WaitForChild("Prison_Cellblock"):WaitForChild("doors").Parent = game:GetService("Lighting")
  3191. end
  3192. end
  3193. local door = game:GetService("Workspace"):FindFirstChild("Doors")
  3194. if door and DeleteDoors then
  3195. game:GetService("Workspace"):FindFirstChild("Doors").Parent = game:GetService("Lighting")
  3196. end
  3197. if ShowSpawnPads then
  3198. for _,models in pairs(game:GetService("Workspace"):WaitForChild("Prison_spawn"):GetChildren()) do
  3199. for _,spawns in pairs(models:GetChildren()) do
  3200. if spawns:IsA("SpawnLocation") then
  3201. spawns.Transparency = 0.750
  3202. spawns.FrontSurface = Enum.SurfaceType.Smooth
  3203. end
  3204. end
  3205. end
  3206. end
  3207. end)
  3208.  
  3209. getgenv().reScript = function()
  3210. states = {}
  3211. loopkill = {}
  3212. admins = {}
  3213. killaura = {}
  3214. chatlogs = {}
  3215. connections = {}
  3216. antiTouch = {}
  3217. ADMINGUI:Destroy()
  3218. Crash = false
  3219. DeleteDoors = false
  3220. EspChamber = false
  3221. EspName = false
  3222. EspItem = false
  3223. ShowNotification = false
  3224. ShowSpawnPads = false
  3225. MaxChatLogsSaves = 0
  3226. SaveYourMessageToChatLogs = false
  3227. AutoRespawnOnDie = false
  3228. AutoGunWhenRepspawn = false
  3229. AutoBToolsWhenRespawn = false
  3230. AutoModTheGunInYourBackpackWhenRespawn = false
  3231. AntiFling = false
  3232. AntiCriminal = false
  3233. AntiArrest = false
  3234. DeleteCriminalPads = false
  3235. AntiCrash = false
  3236. AntiArmorSpam = false
  3237. AntiBring = false
  3238. MaxAntiBringDistance = 100
  3239. FastPunch = false
  3240. AntiTaser = false
  3241. InfStamina = false
  3242. AntiTeamChange = false
  3243. AnimatedGui = false
  3244. GuiAnimatedSpeed = 0
  3245. GuiClosePosition = UDim2.new(0., 0, 0, 0)
  3246. GuiOpenPosition = UDim2.new(0, 0, 0, 0)
  3247. for i,v in pairs(game:GetService("Lighting"):GetChildren()) do
  3248. if v.Name == "doors" then
  3249. v.Parent = game:GetService("Workspace"):FindFirstChild("Prison_Cellblock")
  3250. elseif v.Name == "Doors" then
  3251. v.Parent = game:GetService("Workspace")
  3252. else
  3253. v.Parent = game:GetService("Workspace"):FindFirstChild("Criminals Spawn")
  3254. end
  3255. end
  3256. chatnotify("Success, Reloaded admin")
  3257. end
Add Comment
Please, Sign In to add comment