Advertisement
Guest User

Untitled

a guest
Sep 15th, 2019
110
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 59.94 KB | None | 0 0
  1. local ps = game:GetService("Players")
  2. local i = game:GetService("UserInputService")
  3. local r = game:GetService("RunService")
  4. local cg = game:GetService("CoreGui")
  5. local sg = game:GetService("StarterGui")
  6. local ts = game:GetService("TweenService")
  7. local tms = game:GetService("Teams")
  8. local rs = game:GetService("ReplicatedStorage")
  9. local http = game:GetService("HttpService")
  10. local light = game:GetService("Lighting")
  11. local p = ps.LocalPlayer
  12. local c = p.Character
  13. local mo = p:GetMouse()
  14. local b = p:FindFirstChild("Backpack") or p:WaitForChild("Backpack")
  15. local g = p:FindFirstChild("PlayerGui") or p:WaitForChild("PlayerGui")
  16. local ca = workspace.CurrentCamera
  17.  
  18. local getupval = debug.getupvalue or getupvalue
  19. local getupvals = debug.getupvalues or getupvalues
  20. local getreg = debug.getregistry or getregistry
  21. local setupval = debug.setupvalue or setupvalue
  22. local getlocalval = debug.getlocal or getlocal
  23. local getlocalvals = debug.getlocals or getlocals
  24. local setlocalval = debug.setlocal or setlocal
  25. local getmetat = getrawmetatable or getmetatable
  26. local setreadonly1 = make_writeable or setreadonly
  27. local copy = setclipboard or clipboard.set or copystring
  28. local mouse = game.Players.LocalPlayer:GetMouse()
  29. local clickArestTog = false
  30. local arrestEvent = game.Workspace.Remote.arrest
  31.  
  32. if getupval == nil or getupvals == nil or getreg == nil or setupval == nil or getmetat == nil or setreadonly1 == nil then
  33. return p:Kick("noob, bad boi exploit.")
  34. end
  35.  
  36. local m = getmetat(game)
  37. setreadonly1(m, false)
  38.  
  39. local oldindex = m.__index
  40. local oldnamecall = m.__namecall
  41.  
  42. local functions = { }
  43. local main = { }
  44. local invisible_stuff = { }
  45. local kill_aura = { }
  46. local arrest_aura = { }
  47. local esp_stuff = { }
  48. local cham_stuff = { }
  49. local fullbright_stuff = { }
  50. local gui = { }
  51. local loops = { }
  52.  
  53. local version = "2.15.5"
  54. local messages_of_the_day = nil
  55. local blacklist = nil
  56. local admin_api = nil
  57.  
  58. do -- functions
  59. functions = {
  60. data = http:JSONDecode(game:HttpGet("https://raw.githubusercontent.com/iamcal/emoji-data/master/emoji.json"))
  61. }
  62.  
  63. -- IDK who the original creator of this is but credit to that dude
  64. function functions.parseEmoji(emoji)
  65. for _, v in next, functions.data do
  66. if string.lower(emoji) == v["short_name"] then
  67. return utf8.char(tonumber(v["unified"], 16))
  68. end
  69. end
  70. end
  71.  
  72. function functions.split(self, sep)
  73. local sep, fields = sep or ":", {}
  74. local pattern = string.format("([^%s]+)", sep)
  75. string.gsub(self, pattern, function(c) fields[#fields+1] = c end)
  76. return fields
  77. end
  78.  
  79. function functions.detectEmoji(str)
  80. for i = 1, #str do
  81. if string.sub(str, i, i) == ":" then
  82. local substr = string.sub(str, i + 1, #str)
  83. local pos = string.find(substr, ":")
  84. if pos then
  85. return pos
  86. end
  87. end
  88. end
  89.  
  90. return nil
  91. end
  92.  
  93. function functions.parseSemicolon(rawStr)
  94. local tbl = functions.split(rawStr, " ")
  95. local newtbl = { }
  96.  
  97. for i, v in next, tbl do
  98. local pos = functions.detectEmoji(v)
  99. if pos then
  100. v = string.sub(v, 2, pos)
  101. v = functions.parseEmoji(v)
  102. end
  103. newtbl[i] = v
  104. end
  105.  
  106. return table.concat(newtbl, ' ')
  107. end
  108.  
  109. function functions:LoopRunning(name)
  110. return loops[name].Running
  111. end
  112.  
  113. function functions:CreateLoop(name, func, waitt, ...)
  114. if loops[name] ~= nil then return end
  115.  
  116. loops[name] = { }
  117. loops[name].Running = false
  118. loops[name].Destroy = false
  119. loops[name].Loop = coroutine.create(function(...)
  120. while true do
  121. if loops[name].Running then
  122. func(...)
  123. end
  124.  
  125. if loops[name].Destroy then
  126. break
  127. end
  128.  
  129. if type(wait) == "userdata" then
  130. waitt:wait()
  131. else
  132. wait(waitt)
  133. end
  134. end
  135. end)
  136. end
  137.  
  138. function functions:RunLoop(name, func, waitt, ...)
  139. if loops[name] == nil then
  140. if func ~= nil then
  141. self:CreateLoop(name, func, waitt, ...)
  142. end
  143. end
  144.  
  145. loops[name].Running = true
  146. local succ, out = coroutine.resume(loops[name].Loop)
  147. if not succ then
  148. warn("Loop: " .. tostring(name) .. " ERROR: " .. tostring(out))
  149. end
  150. end
  151.  
  152. function functions:StopLoop(name)
  153. if loops[name] == nil then return end
  154.  
  155. loops[name].Running = false
  156. end
  157.  
  158. function functions:DestroyLoop(name)
  159. if loops[name] == nil then return end
  160.  
  161. self:StopLoop(name)
  162. loops[name].Destroy = true
  163.  
  164. loops[name] = nil
  165. end
  166.  
  167. function functions:AddComma(str) -- stole from Mining Simulator :)
  168. local f, k = str, nil
  169. while true do
  170. f, k = string.gsub(f, "^(-?%d+)(%d%d%d)", "%1,%2")
  171. if k == 0 then
  172. break
  173. end
  174. end
  175. return f
  176. end
  177.  
  178. function functions:deepcopy(orig) -- http://lua-users.org/wiki/CopyTable
  179. local orig_type = type(orig)
  180. local copy
  181. if orig_type == 'table' then
  182. copy = {}
  183. for orig_key, orig_value in next, orig, nil do
  184. copy[functions:deepcopy(orig_key)] = functions:deepcopy(orig_value)
  185. end
  186. setmetatable(copy, functions:deepcopy(getmetatable(orig)))
  187. else -- number, string, boolean, etc
  188. copy = orig
  189. end
  190. return copy
  191. end
  192.  
  193. function functions:GetSizeOfObj(obj)
  194. if obj:IsA("BasePart") then
  195. return obj.Size
  196. elseif obj:IsA("Model") then
  197. return obj:GetExtentsSize()
  198. end
  199. end
  200.  
  201. function functions:GetTeamColor(plr)
  202. if p.Team == plr.Team then
  203. return Color3.new(0, 1, 0)
  204. end
  205.  
  206. return Color3.new(1, 0, 0)
  207. end
  208.  
  209. function functions:GetClosestPlayer()
  210. local players = { }
  211. local current_closest_player = nil
  212. local selected_player = nil
  213.  
  214. for i, v in pairs(ps:GetPlayers()) do
  215. if v ~= p and v.Team ~= p.Team then
  216. local char = v.Character
  217. if c and char then
  218. local my_head, my_tor, my_hum = c:FindFirstChild("Head"), c:FindFirstChild("HumanoidRootPart"), c:FindFirstChild("Humanoid")
  219. local their_head, their_tor, their_hum = char:FindFirstChild("Head"), char:FindFirstChild("HumanoidRootPart"), char:FindFirstChild("Humanoid")
  220. if my_head and my_tor and my_hum and their_head and their_tor and their_hum then
  221. if my_hum.Health > 1 and their_hum.Health > 1 then
  222. --local ray = Ray.new(ca.CFrame.p, (their_head.Position - ca.CFrame.p).unit * 2048)
  223. --local part = workspace:FindPartOnRayWithIgnoreList(ray, {c, ca})
  224. --if part ~= nil then
  225. --if part:IsDescendantOf(char) then
  226. local dist = (mo.Hit.p - their_tor.Position).magnitude
  227. players[v] = dist
  228. --end
  229. --end
  230. end
  231. end
  232. end
  233. end
  234. end
  235.  
  236. for i, v in next, players do
  237. if current_closest_player ~= nil then
  238. if v <= current_closest_player then
  239. current_closest_player = v
  240. selected_player = i
  241. end
  242. else
  243. current_closest_player = v
  244. selected_player = i
  245. end
  246. end
  247.  
  248. return selected_player
  249. end
  250.  
  251. function functions:TypeWriter(label, speed)
  252. local speed = speed or 2
  253. local text = label.Text
  254. label.Text = ""
  255. spawn(function()
  256. for i = 1, string.len(text) do
  257. if i % 2 == 0 then
  258. client.sound.play("ui_typeout", 0.2)
  259. end
  260. label.Text = string.sub(text, 1, speed * i)
  261. wait(0.016666666666666666)
  262. end
  263. end)
  264. end
  265.  
  266. function functions:ModifyAllVarsInTable(t, var, val)
  267. for i, v in pairs(t) do
  268. if i == var then
  269. t[i] = val
  270. end
  271.  
  272. if type(v) == "table" then
  273. functions:ModifyAllVarsInTable(t[i], var, val)
  274. end
  275. end
  276. end
  277.  
  278. function functions:Console(txt)
  279. sg:SetCore("ChatMakeSystemMessage",
  280. {
  281. Text = "Beyond Bacon: ".. txt,
  282. Color = Color3.new(248, 118, 37),
  283. Font = Enum.Font.Cartoon,
  284. TextSize = 18
  285. }
  286. )
  287.  
  288. local msg = g.Chat:GetDescendants()
  289. repeat
  290. for i, v in next, msg do
  291. if v:IsA("TextLabel") or v:IsA("TextButton") then
  292. if v.Text == "Beyond Bacon: ".. txt then
  293. msg = v
  294. break
  295. end
  296. end
  297. end
  298.  
  299. r.RenderStepped:wait()
  300. until type(msg) ~= "table"
  301.  
  302. spawn(function()
  303. local n = 0
  304. while msg.Text == "Beyond Bacon: " .. txt do
  305. msg.TextColor3 = Color3.fromHSV(n, 0.4, 1)
  306. n = (n + 0.01) % 1
  307.  
  308. r.RenderStepped:wait()
  309. end
  310.  
  311. msg.TextColor3 = Color3.new(1, 1, 1)
  312. end)
  313. end
  314. end
  315.  
  316. do -- gui
  317. gui = {
  318. name = "leach free",
  319. gui_objs = {
  320. main = nil,
  321. mainframes = { },
  322. }
  323. }
  324.  
  325. function gui:AddTextBox(mainframe, name, text)
  326. self.gui_objs.mainframes[mainframe].buttons[name] = { }
  327.  
  328. self.gui_objs.mainframes[mainframe].buttons[name].main = Instance.new("Frame")
  329. self.gui_objs.mainframes[mainframe].buttons[name].main.BackgroundTransparency = 1
  330. self.gui_objs.mainframes[mainframe].buttons[name].main.Name = name
  331. self.gui_objs.mainframes[mainframe].buttons[name].main.Position = UDim2.new(0, 0, 0, 5 + self.gui_objs.mainframes[mainframe].buttonsnum)
  332. self.gui_objs.mainframes[mainframe].buttons[name].main.Size = UDim2.new(1, 0, 0, 15)
  333. self.gui_objs.mainframes[mainframe].buttons[name].main.Parent = self.gui_objs.mainframes[mainframe].buttonsframe
  334.  
  335. self.gui_objs.mainframes[mainframe].buttons[name].textbox = Instance.new("TextBox")
  336. self.gui_objs.mainframes[mainframe].buttons[name].textbox.BackgroundColor3 = Color3.new(66 / 255, 66 / 255, 66 / 255)
  337. self.gui_objs.mainframes[mainframe].buttons[name].textbox.BackgroundTransparency = 0.3
  338. self.gui_objs.mainframes[mainframe].buttons[name].textbox.BorderSizePixel = 0
  339. self.gui_objs.mainframes[mainframe].buttons[name].textbox.Position = UDim2.new(0, 5, 0, 0)
  340. self.gui_objs.mainframes[mainframe].buttons[name].textbox.Size = UDim2.new(1, -10, 1, 0)
  341. self.gui_objs.mainframes[mainframe].buttons[name].textbox.Font = Enum.Font.Cartoon
  342. self.gui_objs.mainframes[mainframe].buttons[name].textbox.Text = text
  343. self.gui_objs.mainframes[mainframe].buttons[name].textbox.TextScaled = true
  344. self.gui_objs.mainframes[mainframe].buttons[name].textbox.TextColor3 = Color3.new(1, 1, 1)
  345. self.gui_objs.mainframes[mainframe].buttons[name].textbox.TextXAlignment = Enum.TextXAlignment.Left
  346. self.gui_objs.mainframes[mainframe].buttons[name].textbox.Parent = self.gui_objs.mainframes[mainframe].buttons[name].main
  347.  
  348. self.gui_objs.mainframes[mainframe].buttonsnum = self.gui_objs.mainframes[mainframe].buttonsnum + 20
  349.  
  350. return self.gui_objs.mainframes[mainframe].buttons[name].textbox
  351. end
  352.  
  353. function gui:AddButton(mainframe, name, text)
  354. self.gui_objs.mainframes[mainframe].buttons[name] = { }
  355.  
  356. self.gui_objs.mainframes[mainframe].buttons[name].main = Instance.new("Frame")
  357. self.gui_objs.mainframes[mainframe].buttons[name].main.BackgroundTransparency = 1
  358. self.gui_objs.mainframes[mainframe].buttons[name].main.Name = name
  359. self.gui_objs.mainframes[mainframe].buttons[name].main.Position = UDim2.new(0, 0, 0, 5 + self.gui_objs.mainframes[mainframe].buttonsnum)
  360. self.gui_objs.mainframes[mainframe].buttons[name].main.Size = UDim2.new(1, 0, 0, 15)
  361. self.gui_objs.mainframes[mainframe].buttons[name].main.Parent = self.gui_objs.mainframes[mainframe].buttonsframe
  362.  
  363. self.gui_objs.mainframes[mainframe].buttons[name].textbutton = Instance.new("TextButton")
  364. self.gui_objs.mainframes[mainframe].buttons[name].textbutton.BackgroundTransparency = 1
  365. self.gui_objs.mainframes[mainframe].buttons[name].textbutton.Position = UDim2.new(0, 5, 0, 0)
  366. self.gui_objs.mainframes[mainframe].buttons[name].textbutton.Size = UDim2.new(1, -5, 1, 0)
  367. self.gui_objs.mainframes[mainframe].buttons[name].textbutton.ZIndex = 2
  368. self.gui_objs.mainframes[mainframe].buttons[name].textbutton.Font = Enum.Font.Cartoon
  369. self.gui_objs.mainframes[mainframe].buttons[name].textbutton.Text = text
  370. self.gui_objs.mainframes[mainframe].buttons[name].textbutton.TextColor3 = Color3.new(1, 1, 1)
  371. self.gui_objs.mainframes[mainframe].buttons[name].textbutton.TextScaled = true
  372. self.gui_objs.mainframes[mainframe].buttons[name].textbutton.TextXAlignment = Enum.TextXAlignment.Left
  373. self.gui_objs.mainframes[mainframe].buttons[name].textbutton.Parent = self.gui_objs.mainframes[mainframe].buttons[name].main
  374.  
  375. self.gui_objs.mainframes[mainframe].buttons[name].textlabel = Instance.new("TextLabel")
  376. self.gui_objs.mainframes[mainframe].buttons[name].textlabel.BackgroundTransparency = 1
  377. self.gui_objs.mainframes[mainframe].buttons[name].textlabel.Position = UDim2.new(1, -25, 0, 0)
  378. self.gui_objs.mainframes[mainframe].buttons[name].textlabel.Size = UDim2.new(0, 25, 1, 0)
  379. self.gui_objs.mainframes[mainframe].buttons[name].textlabel.Font = Enum.Font.Cartoon
  380. self.gui_objs.mainframes[mainframe].buttons[name].textlabel.Text = "OFF"
  381. self.gui_objs.mainframes[mainframe].buttons[name].textlabel.TextColor3 = Color3.new(1, 0, 0)
  382. self.gui_objs.mainframes[mainframe].buttons[name].textlabel.TextScaled = true
  383. self.gui_objs.mainframes[mainframe].buttons[name].textlabel.TextXAlignment = Enum.TextXAlignment.Right
  384. self.gui_objs.mainframes[mainframe].buttons[name].textlabel.Parent = self.gui_objs.mainframes[mainframe].buttons[name].main
  385.  
  386. self.gui_objs.mainframes[mainframe].buttonsnum = self.gui_objs.mainframes[mainframe].buttonsnum + 20
  387.  
  388. return self.gui_objs.mainframes[mainframe].buttons[name].textbutton, self.gui_objs.mainframes[mainframe].buttons[name].textlabel
  389. end
  390.  
  391. function gui:AddMainFrame(name)
  392. if self.gui_objs.mainframes.numX == nil then self.gui_objs.mainframes.numX = 0 end
  393. if self.gui_objs.mainframes.numY == nil then self.gui_objs.mainframes.numY = 0 end
  394.  
  395. self.gui_objs.mainframes[name] = { }
  396. self.gui_objs.mainframes[name].buttons = { }
  397.  
  398. self.gui_objs.mainframes[name].main = Instance.new("Frame")
  399. self.gui_objs.mainframes[name].main.BackgroundColor3 = Color3.new(0, 0, 0)
  400. self.gui_objs.mainframes[name].main.BackgroundTransparency = 0.3
  401. self.gui_objs.mainframes[name].main.BorderColor3 = Color3.new(51, 208, 49 / 255)
  402. self.gui_objs.mainframes[name].main.BorderSizePixel = 3
  403. self.gui_objs.mainframes[name].main.Name = name
  404. self.gui_objs.mainframes[name].main.Position = UDim2.new(0, 50 + self.gui_objs.mainframes.numX, 0, 50 + self.gui_objs.mainframes.numY)
  405. self.gui_objs.mainframes[name].main.Size = UDim2.new(0, 200, 0, 350)
  406. self.gui_objs.mainframes[name].main.Active = true
  407. self.gui_objs.mainframes[name].main.Draggable = true
  408.  
  409. self.gui_objs.mainframes[name].titleframe = Instance.new("Frame")
  410. self.gui_objs.mainframes[name].titleframe.BackgroundColor3 = Color3.new(0, 0, 0)
  411. self.gui_objs.mainframes[name].titleframe.BackgroundTransparency = 0.3
  412. self.gui_objs.mainframes[name].titleframe.BorderColor3 = Color3.new(51, 208, 49 / 255)
  413. self.gui_objs.mainframes[name].titleframe.BorderSizePixel = 3
  414. self.gui_objs.mainframes[name].titleframe.Name = "titleframe"
  415. self.gui_objs.mainframes[name].titleframe.Position = UDim2.new(0, 0, 0, -35)
  416. self.gui_objs.mainframes[name].titleframe.Size = UDim2.new(1, 0, 0, 25)
  417. self.gui_objs.mainframes[name].titleframe.Parent = self.gui_objs.mainframes[name].main
  418.  
  419. self.gui_objs.mainframes[name].title = Instance.new("TextLabel")
  420. self.gui_objs.mainframes[name].title.BackgroundTransparency = 1
  421. self.gui_objs.mainframes[name].title.Name = "title"
  422. self.gui_objs.mainframes[name].title.Size = UDim2.new(1, 0, 1, 0)
  423. self.gui_objs.mainframes[name].title.Font = Enum.Font.Cartoon
  424. self.gui_objs.mainframes[name].title.Text = name
  425. self.gui_objs.mainframes[name].title.TextColor3 = Color3.new(1, 1, 1) -- 0, 0, 1
  426. self.gui_objs.mainframes[name].title.TextSize = 20
  427. self.gui_objs.mainframes[name].title.Parent = self.gui_objs.mainframes[name].titleframe
  428.  
  429. self.gui_objs.mainframes[name].buttonsframe = Instance.new("Frame")
  430. self.gui_objs.mainframes[name].buttonsframe.BackgroundTransparency = 1
  431. self.gui_objs.mainframes[name].buttonsframe.Name = "buttons"
  432. self.gui_objs.mainframes[name].buttonsframe.Size = UDim2.new(1, 0, 1, 0)
  433. self.gui_objs.mainframes[name].buttonsframe.Parent = self.gui_objs.mainframes[name].main
  434.  
  435. self.gui_objs.mainframes[name].infoframe = self.gui_objs.mainframes[name].titleframe:clone()
  436. self.gui_objs.mainframes[name].infoframe.title:Destroy()
  437. self.gui_objs.mainframes[name].infoframe.Name = "infoframe"
  438. self.gui_objs.mainframes[name].infoframe.Position = UDim2.new(0, 0, 1, 10)
  439. self.gui_objs.mainframes[name].infoframe.Parent = self.gui_objs.mainframes[name].main
  440.  
  441. self.gui_objs.mainframes[name].infotitle = self.gui_objs.mainframes[name].title:clone()
  442. self.gui_objs.mainframes[name].infotitle.Name = "infotitle"
  443. self.gui_objs.mainframes[name].infotitle.Text = "Prison Haxx (P)"
  444. self.gui_objs.mainframes[name].infotitle.TextColor3 = Color3.new(1, 1, 1)
  445. self.gui_objs.mainframes[name].infotitle.TextScaled = true
  446. self.gui_objs.mainframes[name].infotitle.Parent = self.gui_objs.mainframes[name].infoframe
  447.  
  448. self.gui_objs.mainframes[name].buttonsnum = 0
  449. self.gui_objs.mainframes.numX = self.gui_objs.mainframes.numX + 250
  450.  
  451. if (50 + (self.gui_objs.mainframes.numX + 200)) >= ca.ViewportSize.X then
  452. self.gui_objs.mainframes.numX = 0
  453. self.gui_objs.mainframes.numY = self.gui_objs.mainframes.numY + 450
  454. end
  455.  
  456. self.gui_objs.mainframes[name].main.Parent = self.gui_objs.main
  457. end
  458.  
  459. function gui:Init()
  460. self.gui_objs.main = Instance.new("ScreenGui")
  461. self.gui_objs.main.Name = self.name
  462. self.gui_objs.main.Parent = cg
  463.  
  464. do -- Visual Cheats
  465. self:AddMainFrame("Visual Cheats")
  466.  
  467. local ESPBut, ESPStatus = self:AddButton("Visual Cheats", "ESP", "ESP")
  468. local ChamsBut, ChamsStatus = self:AddButton("Visual Cheats", "Chams", "Chams")
  469. local FullbrightToggle, FullbrightStatus = self:AddButton("Visual Cheats", "Fullbright", "Fullbright")
  470.  
  471. ESPBut.MouseButton1Click:connect(function()
  472. esp_stuff.enabled = not esp_stuff.enabled
  473. if esp_stuff.enabled then
  474. ESPStatus.Text = "ON"
  475. ESPStatus.TextColor3 = Color3.new(0, 1, 0)
  476. else
  477. ESPStatus.Text = "OFF"
  478. ESPStatus.TextColor3 = Color3.new(1, 0, 0)
  479. end
  480.  
  481. for i, v in next, esp_stuff.esp_folder:GetChildren() do
  482. v.Frame.Visible = esp_stuff.enabled
  483. end
  484. end)
  485.  
  486. ChamsBut.MouseButton1Click:connect(function()
  487. cham_stuff.enabled = not cham_stuff.enabled
  488. if cham_stuff.enabled then
  489. ChamsStatus.Text = "ON"
  490. ChamsStatus.TextColor3 = Color3.new(0, 1, 0)
  491. else
  492. ChamsStatus.Text = "OFF"
  493. ChamsStatus.TextColor3 = Color3.new(1, 0, 0)
  494. end
  495.  
  496. for i, v in next, cham_stuff.cham_folder:GetChildren() do
  497. for i2, v2 in next, v:GetChildren() do
  498. v2.Transparency = cham_stuff.enabled and 0 or 1
  499. end
  500. end
  501. end)
  502.  
  503. FullbrightToggle.MouseButton1Click:connect(function()
  504. if not fullbright_stuff.enabled then
  505. fullbright_stuff:Enable()
  506. FullbrightStatus.Text = "ON"
  507. FullbrightStatus.TextColor3 = Color3.new(0, 1, 0)
  508. else
  509. fullbright_stuff:Disable()
  510. FullbrightStatus.Text = "OFF"
  511. FullbrightStatus.TextColor3 = Color3.new(1, 0, 0)
  512. end
  513. end)
  514. end
  515.  
  516. do -- Gun Cheats
  517. self:AddMainFrame("Gun Cheats")
  518.  
  519. local AimbotToggle, AimbotStatus = self:AddButton("Gun Cheats", "Aimbot", "Aimbot")
  520. local InfiniteAmmoToggle, InfiniteAmmoStatus = self:AddButton("Gun Cheats", "Infinite_Ammo", "Infinite Ammo")
  521. local BulletSpreadToggle, BulletSpreadStatus = self:AddButton("Gun Cheats", "Bullet_Spread", "No Bullet Spread")
  522. local RapidFireToggle, RapidFireStatus = self:AddButton("Gun Cheats", "Rapid_Fire", "Rapid Fire")
  523. local BulletsPerShotToggle, BulletsPerShotStatus = self:AddButton("Gun Cheats", "Increased_Bullets_Per_Shot", "Increased Bullets Per Shot")
  524. local NoReloadToggle, NoReloadStatus = self:AddButton("Gun Cheats", "No_Reload", "No Reload")
  525. local BulletRangeToggle, BulletRangeStatus = self:AddButton("Gun Cheats", "Bullet_Range", "Increased Bullet Range")
  526. local AllGunsAutoToggle, AllGunsAutoStatus = self:AddButton("Gun Cheats", "All_Guns_Auto", "All Guns Automatic")
  527. local RandomBulletColorToggle, RandomBulletColorStatus = self:AddButton("Gun Cheats", "Random_Bullet_Color", "Random Bullet Colors")
  528. local GiveAllWeapons, GiveAllWeaponsStatus = self:AddButton("Gun Cheats", "Give_All_Weapons", "Give All Weapons")
  529. GiveAllWeaponsStatus:Destroy()
  530.  
  531. AimbotToggle.MouseButton1Click:connect(function()
  532. main.aimbot = not main.aimbot
  533.  
  534. if main.aimbot then
  535. AimbotStatus.Text = "ON"
  536. AimbotStatus.TextColor3 = Color3.new(0, 1, 0)
  537. else
  538. AimbotStatus.Text = "OFF"
  539. AimbotStatus.TextColor3 = Color3.new(1, 0, 0)
  540. end
  541. end)
  542.  
  543. InfiniteAmmoToggle.MouseButton1Click:connect(function()
  544. main.infinite_ammo = not main.infinite_ammo
  545.  
  546. if main.infinite_ammo then
  547. InfiniteAmmoStatus.Text = "ON"
  548. InfiniteAmmoStatus.TextColor3 = Color3.new(0, 1, 0)
  549. else
  550. InfiniteAmmoStatus.Text = "OFF"
  551. InfiniteAmmoStatus.TextColor3 = Color3.new(1, 0, 0)
  552. end
  553. end)
  554.  
  555. BulletSpreadToggle.MouseButton1Click:connect(function()
  556. main.no_bullet_spread = not main.no_bullet_spread
  557.  
  558. if main.no_bullet_spread then
  559. BulletSpreadStatus.Text = "ON"
  560. BulletSpreadStatus.TextColor3 = Color3.new(0, 1, 0)
  561. else
  562. BulletSpreadStatus.Text = "OFF"
  563. BulletSpreadStatus.TextColor3 = Color3.new(1, 0, 0)
  564. end
  565. end)
  566.  
  567. RapidFireToggle.MouseButton1Click:connect(function()
  568. main.rapid_fire = not main.rapid_fire
  569.  
  570. if main.rapid_fire then
  571. RapidFireStatus.Text = "ON"
  572. RapidFireStatus.TextColor3 = Color3.new(0, 1, 0)
  573. else
  574. RapidFireStatus.Text = "OFF"
  575. RapidFireStatus.TextColor3 = Color3.new(1, 0, 0)
  576. end
  577. end)
  578.  
  579. BulletsPerShotToggle.MouseButton1Click:connect(function()
  580. main.increased_bullets_per_shot = not main.increased_bullets_per_shot
  581.  
  582. if main.increased_bullets_per_shot then
  583. BulletsPerShotStatus.Text = "ON"
  584. BulletsPerShotStatus.TextColor3 = Color3.new(0, 1, 0)
  585. else
  586. BulletsPerShotStatus.Text = "OFF"
  587. BulletsPerShotStatus.TextColor3 = Color3.new(1, 0, 0)
  588. end
  589. end)
  590.  
  591. NoReloadToggle.MouseButton1Click:connect(function()
  592. main.no_reload = not main.no_reload
  593.  
  594. if main.no_reload then
  595. NoReloadStatus.Text = "ON"
  596. NoReloadStatus.TextColor3 = Color3.new(0, 1, 0)
  597. else
  598. NoReloadStatus.Text = "OFF"
  599. NoReloadStatus.TextColor3 = Color3.new(1, 0, 0)
  600. end
  601. end)
  602.  
  603. BulletRangeToggle.MouseButton1Click:connect(function()
  604. main.increased_bullet_range = not main.increased_bullet_range
  605.  
  606. if main.increased_bullet_range then
  607. BulletRangeStatus.Text = "ON"
  608. BulletRangeStatus.TextColor3 = Color3.new(0, 1, 0)
  609. else
  610. BulletRangeStatus.Text = "OFF"
  611. BulletRangeStatus.TextColor3 = Color3.new(1, 0, 0)
  612. end
  613. end)
  614.  
  615. AllGunsAutoToggle.MouseButton1Click:connect(function()
  616. main.all_guns_auto = not main.all_guns_auto
  617.  
  618. if main.all_guns_auto then
  619. AllGunsAutoStatus.Text = "ON"
  620. AllGunsAutoStatus.TextColor3 = Color3.new(0, 1, 0)
  621. else
  622. AllGunsAutoStatus.Text = "OFF"
  623. AllGunsAutoStatus.TextColor3 = Color3.new(1, 0, 0)
  624. end
  625. end)
  626.  
  627. RandomBulletColorToggle.MouseButton1Click:connect(function()
  628. main.random_bullet_colors = not main.random_bullet_colors
  629.  
  630. if main.random_bullet_colors then
  631. if getlocalval ~= nil then
  632. RandomBulletColorStatus.Text = "ON"
  633. RandomBulletColorStatus.TextColor3 = Color3.new(0, 1, 0)
  634. end
  635. else
  636. RandomBulletColorStatus.Text = "OFF"
  637. RandomBulletColorStatus.TextColor3 = Color3.new(1, 0, 0)
  638. end
  639. end)
  640.  
  641. GiveAllWeapons.MouseButton1Click:connect(function()
  642. local weapons = workspace:FindFirstChild("Prison_ITEMS")
  643.  
  644. if weapons then
  645. for i, v in pairs(weapons.giver:GetChildren()) do
  646. if tostring(v) == "nil" then
  647. --lul
  648. elseif tostring(v) == "Riot Shield" or tostring(v) == "M4A1" then
  649. if game:GetService("MarketplaceService"):UserOwnsGamePassAsync(p.userId, 96651) then
  650. workspace.Remote.ItemHandler:InvokeServer(v.ITEMPICKUP)
  651. end
  652. else
  653. workspace.Remote.ItemHandler:InvokeServer(v.ITEMPICKUP)
  654. end
  655. end
  656. end
  657. end)
  658. end
  659.  
  660. do -- Character Cheats
  661. self:AddMainFrame("Character Cheats")
  662.  
  663. local InvisibleToggle, InvisibleStatus = self:AddButton("Character Cheats", "Invisible", "Invisible")
  664. local NoclipToggle, NoclipStatus = self:AddButton("Character Cheats", "NoClip", "NoClip: .")
  665. local InfinitePunchesToggle, InfinitePunchesStatus = self:AddButton("Character Cheats", "Infinite_Punches", "No Cooldown Punches")
  666. local OnePunchOneKillToggle, OnePunchOneKillStatus = self:AddButton("Character Cheats", "One_Punch_One_Kill", "Super Punch")
  667. local InfiniteStaminaToggle, InfiniteStaminaStatus = self:AddButton("Character Cheats", "Infinite_Stamina", "Infinite Stamina")
  668. local AntiTazeToggle, AntiTazeStatus = self:AddButton("Character Cheats", "Anti_Taze", "Anti-Taze")
  669. local AntiArrestToggle, AntiArrestStatus = self:AddButton("Character Cheats", "Anti_Arrest", "Anti-Arrest")
  670. local SuperSpeedToggle, SuperSpeedStatus = self:AddButton("Character Cheats", "Super_Speed", "Super Speed")
  671. local SuperJumpToggle, SuperJumpStatus = self:AddButton("Character Cheats", "Super_Jump", "Super Jump")
  672. local InfHealth, InfHealthStatus = self:AddButton("Character Cheats", "Inf_Health", "God Mode")
  673. InfHealthStatus:Destroy()
  674.  
  675. InvisibleToggle.MouseButton1Click:connect(function()
  676. invisible_stuff.enabled = not invisible_stuff.enabled
  677.  
  678. if invisible_stuff.enabled then
  679. invisible_stuff:Start()
  680. InvisibleStatus.Text = "ON"
  681. InvisibleStatus.TextColor3 = Color3.new(0, 1, 0)
  682. else
  683. invisible_stuff:Stop()
  684. InvisibleStatus.Text = "OFF"
  685. InvisibleStatus.TextColor3 = Color3.new(1, 0, 0)
  686. end
  687. end)
  688.  
  689. NoclipToggle.MouseButton1Click:connect(function()
  690. main.noclip = not main.noclip
  691.  
  692. if main.noclip then
  693. NoclipStatus.Text = "ON"
  694. NoclipStatus.TextColor3 = Color3.new(0, 1, 0)
  695. else
  696. NoclipStatus.Text = "OFF"
  697. NoclipStatus.TextColor3 = Color3.new(1, 0, 0)
  698. end
  699. end)
  700.  
  701. InfinitePunchesToggle.MouseButton1Click:connect(function()
  702. main.infinite_punches = not main.infinite_punches
  703.  
  704. if main.infinite_punches then
  705. InfinitePunchesStatus.Text = "ON"
  706. InfinitePunchesStatus.TextColor3 = Color3.new(0, 1, 0)
  707. else
  708. InfinitePunchesStatus.Text = "OFF"
  709. InfinitePunchesStatus.TextColor3 = Color3.new(1, 0, 0)
  710. end
  711. end)
  712.  
  713. OnePunchOneKillToggle.MouseButton1Click:connect(function()
  714. main.one_punch_one_kill = not main.one_punch_one_kill
  715.  
  716. if main.one_punch_one_kill then
  717. OnePunchOneKillStatus.Text = "ON"
  718. OnePunchOneKillStatus.TextColor3 = Color3.new(0, 1, 0)
  719. else
  720. OnePunchOneKillStatus.Text = "OFF"
  721. OnePunchOneKillStatus.TextColor3 = Color3.new(1, 0, 0)
  722. end
  723. end)
  724.  
  725. InfiniteStaminaToggle.MouseButton1Click:connect(function()
  726. main.infinite_stamina = not main.infinite_stamina
  727.  
  728. if main.infinite_stamina then
  729. InfiniteStaminaStatus.Text = "ON"
  730. InfiniteStaminaStatus.TextColor3 = Color3.new(0, 1, 0)
  731. else
  732. InfiniteStaminaStatus.Text = "OFF"
  733. InfiniteStaminaStatus.TextColor3 = Color3.new(1, 0, 0)
  734. end
  735. end)
  736.  
  737. AntiTazeToggle.MouseButton1Click:connect(function()
  738. main.anti_taze = not main.anti_taze
  739.  
  740. if main.anti_taze then
  741. AntiTazeStatus.Text = "ON"
  742. AntiTazeStatus.TextColor3 = Color3.new(0, 1, 0)
  743. else
  744. AntiTazeStatus.Text = "OFF"
  745. AntiTazeStatus.TextColor3 = Color3.new(1, 0, 0)
  746. end
  747. end)
  748.  
  749. AntiArrestToggle.MouseButton1Click:connect(function()
  750. main.anti_arrest = not main.anti_arrest
  751.  
  752. if main.anti_arrest then
  753. AntiArrestStatus.Text = "ON"
  754. AntiArrestStatus.TextColor3 = Color3.new(0, 1, 0)
  755. else
  756. AntiArrestStatus.Text = "OFF"
  757. AntiArrestStatus.TextColor3 = Color3.new(1, 0, 0)
  758. end
  759. end)
  760.  
  761. SuperSpeedToggle.MouseButton1Click:connect(function()
  762. main.super_speed = not main.super_speed
  763. if c then
  764. local hum = c:FindFirstChildOfClass("Humanoid")
  765. if hum then
  766. hum.WalkSpeed = main.super_speed and 100 or 16
  767. end
  768. end
  769.  
  770. if main.super_speed then
  771. SuperSpeedStatus.Text = "ON"
  772. SuperSpeedStatus.TextColor3 = Color3.new(0, 1, 0)
  773. else
  774. SuperSpeedStatus.Text = "OFF"
  775. SuperSpeedStatus.TextColor3 = Color3.new(1, 0, 0)
  776. end
  777. end)
  778.  
  779. SuperJumpToggle.MouseButton1Click:connect(function()
  780. main.super_jump = not main.super_jump
  781. if c then
  782. local hum = c:FindFirstChildOfClass("Humanoid")
  783. if hum then
  784. hum.JumpPower = main.super_jump and 150 or 50
  785. end
  786. end
  787.  
  788. if main.super_jump then
  789. SuperJumpStatus.Text = "ON"
  790. SuperJumpStatus.TextColor3 = Color3.new(0, 1, 0)
  791. else
  792. SuperJumpStatus.Text = "OFF"
  793. SuperJumpStatus.TextColor3 = Color3.new(1, 0, 0)
  794. end
  795. end)
  796.  
  797. InfHealth.MouseButton1Click:Connect(function()
  798. local plr = game.Players.LocalPlayer.Name
  799. local gayevent = game:GetService("Workspace").Remote.loadchar
  800.  
  801. function StoreItems()
  802. for i, v in pairs(game.Players.LocalPlayer.Backpack:GetChildren()) do
  803. if v:IsA('Tool') then
  804. v.Parent = game.Players.LocalPlayer
  805. end end
  806. for i, v in pairs(game.Players.LocalPlayer.Character:GetChildren()) do
  807. if v:IsA('Tool') then
  808. v.Parent = game.Players.LocalPlayer
  809. end end end
  810.  
  811. -- Get Items Function
  812. function GetItems()
  813. for i, v in pairs(game.Players.LocalPlayer:GetChildren()) do
  814. if v:IsA('Tool') then
  815. v.Parent = game.Players.LocalPlayer.Backpack
  816. end end
  817.  
  818. for i, v in pairs(game.Players.LocalPlayer.Character:GetChildren()) do
  819. if v:IsA('Tool') then
  820. v.Parent = game.Players.LocalPlayer.Backpack
  821. end end end
  822.  
  823.  
  824. repeat
  825. wait(0.3)
  826. if game.Players.LocalPlayer.Character.Humanoid.Health < 10 then
  827. local lastPos = game.Players.LocalPlayer.Character:FindFirstChild("HumanoidRootPart").position
  828. StoreItems()
  829. wait(0.2)
  830. gayevent:InvokeServer(plr)
  831. wait(0.1)
  832. GetItems()
  833. game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = CFrame.new(lastPos)
  834. end
  835.  
  836. until game.Workspace.Name == "Wackspace"
  837. end)
  838.  
  839. end
  840.  
  841. do -- Miscellaneous Cheats
  842. self:AddMainFrame("Game Cheats")
  843.  
  844. local ClickArrestToggle, ClickArrestStatus = self:AddButton("Game Cheats", "Click Arrest", "Click Arrest")
  845. local KillAuraToggle, KillAuraStatus = self:AddButton("Game Cheats", "Kill_Aura", "Kill Aura")
  846. local ArrestAuraToggle, ArrestAuraStatus = self:AddButton("Game Cheats", "Arrest_Aura", "Arrest Aura")
  847. local AnnoyServer, AnnoyServerStatus = self:AddButton("Game Cheats", "AnnoyServer", "Annoy Server")
  848. local KillAll, KillAllStatus = self:AddButton("Game Cheats", "Kill_All", "Kill All")
  849. KillAllStatus:Destroy()
  850. local ArrestAll, ArrestAllStatus = self:AddButton("Game Cheats", "Arrest_All", "Arrest All Criminals")
  851. ArrestAllStatus:Destroy()
  852. local RemoveAllDoors, RemoveAllDoorsStatus = self:AddButton("Game Cheats", "Remove_All_Doors", "Remove All Doors")
  853. RemoveAllDoorsStatus:Destroy()
  854. local GuardsTeam, GuardsTeamStatus = self:AddButton("Game Cheats", "Team_Change_Guards", "Team Change: Guards")
  855. GuardsTeamStatus:Destroy()
  856. local InmatesTeam, InmatesTeamStatus = self:AddButton("Game Cheats", "Team_Change_Inmates", "Team Change: Inmates")
  857. InmatesTeamStatus:Destroy()
  858. local CriminalsTeam, CriminalsTeamStatus = self:AddButton("Game Cheats", "Team_Change_Criminals", "Team Change: Criminals")
  859. CriminalsTeamStatus:Destroy()
  860. local NeutralTeam, NeutralTeamStatus = self:AddButton("Game Cheats", "Team_Change_Neutral", "Team Change: Neutral")
  861. NeutralTeamStatus:Destroy()
  862. local DiscordToggle, DiscordStatus = self:AddButton("Game Cheats", "Discord", "Copy Discord Invite")
  863. DiscordStatus:Destroy()
  864.  
  865. mouse.Button1Down:connect(function()
  866. if clickArrestTog == true then
  867. local obj = mouse.Target
  868. local response = arrestEvent:InvokeServer(obj)
  869. end
  870. end)
  871.  
  872. ClickArrestToggle.MouseButton1Click:Connect(function()
  873. kill_aura.enabled = not kill_aura.enabled
  874.  
  875. if kill_aura.enabled then
  876. ClickArrestStatus.Text = "ON"
  877. ClickArrestStatus.TextColor3 = Color3.new(0, 1, 0)
  878. clickArrestTog = true
  879. else
  880. ClickArrestStatus.Text = "OFF"
  881. ClickArrestStatus.TextColor3 = Color3.new(1, 0, 0)
  882. clickArrestTog = false
  883. end
  884. end)
  885.  
  886.  
  887. KillAuraToggle.MouseButton1Click:connect(function()
  888. kill_aura.enabled = not kill_aura.enabled
  889.  
  890. if kill_aura.enabled then
  891. KillAuraStatus.Text = "ON"
  892. KillAuraStatus.TextColor3 = Color3.new(0, 1, 0)
  893. kill_aura:Start()
  894. else
  895. KillAuraStatus.Text = "OFF"
  896. KillAuraStatus.TextColor3 = Color3.new(1, 0, 0)
  897. kill_aura:Stop()
  898. end
  899. end)
  900.  
  901. ArrestAuraToggle.MouseButton1Click:connect(function()
  902. arrest_aura.enabled = not arrest_aura.enabled
  903.  
  904. if arrest_aura.enabled then
  905. ArrestAuraStatus.Text = "ON"
  906. ArrestAuraStatus.TextColor3 = Color3.new(0, 1, 0)
  907. arrest_aura:Start()
  908. else
  909. ArrestAuraStatus.Text = "OFF"
  910. ArrestAuraStatus.TextColor3 = Color3.new(1, 0, 0)
  911. arrest_aura:Stop()
  912. end
  913. end)
  914.  
  915. KillAll.MouseButton1Click:connect(function()
  916. if c and not invisible_stuff.enabled then
  917. local my_tor = c:FindFirstChild("HumanoidRootPart")
  918. if my_tor then
  919. local backup = Vector3.new(my_tor.Position.X, my_tor.Position.Y, my_tor.Position.Z)
  920. for i, v in pairs(ps:GetPlayers()) do
  921. if v ~= p then
  922. if v.Character then
  923. local their_tor, their_hum, their_ff = v.Character:FindFirstChild("HumanoidRootPart"), v.Character:FindFirstChild("Humanoid"), v.Character:FindFirstChildOfClass("ForceField")
  924.  
  925. if their_tor and their_hum and not their_ff then
  926. repeat
  927. my_tor.CFrame = their_tor.CFrame * CFrame.new(Vector3.new(0, their_hum.Sit and 5 or 0, 3))
  928. rs.meleeEvent:FireServer(v)
  929. r.RenderStepped:wait()
  930. until their_hum.Health <= 0
  931. end
  932. end
  933. end
  934. end
  935. my_tor.CFrame = CFrame.new(backup)
  936. end
  937. end
  938. end)
  939.  
  940. ArrestAll.MouseButton1Click:connect(function()
  941. if p.Team ~= nil and c and not invisible_stuff.enabled then
  942. local my_tor = c:FindFirstChild("HumanoidRootPart")
  943. if my_tor then
  944. local backup = Vector3.new(my_tor.Position.X, my_tor.Position.Y, my_tor.Position.Z)
  945. for i, v in pairs(ps:GetPlayers()) do
  946. if v.Team ~= nil then
  947. if v ~= p and v.Team.Name == "Criminals" then
  948. if v.Character then
  949. local their_tor, their_hum = v.Character:FindFirstChild("HumanoidRootPart"), v.Character:FindFirstChildOfClass("Humanoid")
  950. if their_tor and their_hum then
  951. local response = false
  952. repeat
  953. my_tor.CFrame = their_tor.CFrame * CFrame.new(Vector3.new(0, their_hum.Sit and 5 or 0, 3))
  954. response = workspace.Remote.arrest:InvokeServer(their_tor)
  955. r.RenderStepped:wait()
  956. until v == nil or v.Team == nil or v.Team.Name ~= "Criminals" or response == true
  957. end
  958. end
  959. end
  960. end
  961. end
  962. my_tor.CFrame = CFrame.new(backup)
  963. end
  964. end
  965. end)
  966.  
  967. RemoveAllDoors.MouseButton1Click:connect(function()
  968. local find = workspace:FindFirstChild("BOUNDARY")
  969. if find then
  970. find:Destroy()
  971. end
  972.  
  973. find = workspace:FindFirstChild("Doors")
  974. if find then
  975. find:Destroy()
  976. end
  977.  
  978. find = workspace:FindFirstChild("Prison_Fences")
  979. if find then
  980. find:Destroy()
  981. end
  982.  
  983. find = workspace:FindFirstChild("Prison_Cellblock")
  984. if find then
  985. find = find:FindFirstChild("doors")
  986. if find then
  987. find:Destroy()
  988. end
  989. end
  990. end)
  991.  
  992. GuardsTeam.MouseButton1Click:connect(function()
  993. workspace.Remote.TeamEvent:FireServer(tostring(tms.Guards.TeamColor))
  994. end)
  995.  
  996. InmatesTeam.MouseButton1Click:connect(function()
  997. workspace.Remote.TeamEvent:FireServer(tostring(tms.Inmates.TeamColor))
  998. end)
  999.  
  1000. CriminalsTeam.MouseButton1Click:connect(function()
  1001. if c then
  1002. local tor = c:FindFirstChild("HumanoidRootPart")
  1003. if tor then
  1004. local backup = Vector3.new(tor.Position.X, tor.Position.Y, tor.Position.Z)
  1005. repeat
  1006. tor.CFrame = CFrame.new(Vector3.new(-976.006, 109.323, 2061.757))
  1007. r.RenderStepped:wait()
  1008. until p.Team == tms.Criminals
  1009. tor.CFrame = CFrame.new(backup)
  1010. end
  1011. end
  1012. end)
  1013.  
  1014. NeutralTeam.MouseButton1Click:connect(function()
  1015. workspace.Remote.TeamEvent:FireServer(tostring(tms.Neutral.TeamColor))
  1016. end)
  1017.  
  1018. AnnoyServer.MouseButton1Click:connect(function()
  1019. main.annoy_server = not main.annoy_server
  1020.  
  1021. if main.annoy_server then
  1022. AnnoyServerStatus.Text = "ON"
  1023. AnnoyServerStatus.TextColor3 = Color3.new(0, 1, 0)
  1024. else
  1025. AnnoyServerStatus.Text = "OFF"
  1026. AnnoyServerStatus.TextColor3 = Color3.new(1, 0, 0)
  1027. end
  1028. end)
  1029.  
  1030. DiscordToggle.MouseButton1Click:connect(function()
  1031. if copy ~= nil then
  1032. copy("https://discord.gg/xyYkACY")
  1033. main:Console("Discord invite copied to clipboard!")
  1034. else
  1035. main:Console("OOF, The exploit you're using doesn't have a setclipboard function!")
  1036. end
  1037. end)
  1038. end
  1039.  
  1040. do -- Teleport Cheats
  1041. self:AddMainFrame("Teleport Cheats")
  1042.  
  1043. local CriminalBaseTP, CriminalBaseTPStatus = self:AddButton("Teleport Cheats", "Criminal_Base", "Criminal Base")
  1044. CriminalBaseTPStatus:Destroy()
  1045. local YardTP, YardTPStatus = self:AddButton("Teleport Cheats", "Yard", "Yard")
  1046. YardTPStatus:Destroy()
  1047. local CafeteriaTP, CafeteriaTPStatus = self:AddButton("Teleport Cheats", "Cafeteria", "Cafeteria")
  1048. CafeteriaTPStatus:Destroy()
  1049. local JailCellsTP, JailCellsTPStatus = self:AddButton("Teleport Cheats", "Jail_Cells", "Jail Cells")
  1050. JailCellsTPStatus:Destroy()
  1051. local PoliceHQTP, PoliceHQTPStatus = self:AddButton("Teleport Cheats", "Police_HQ", "Police Headquarters")
  1052. PoliceHQTPStatus:Destroy()
  1053.  
  1054. CriminalBaseTP.MouseButton1Click:connect(function()
  1055. if c then
  1056. local tor = c:FindFirstChild("HumanoidRootPart")
  1057. if tor then
  1058. tor.CFrame = CFrame.new(Vector3.new(-976.006, 109.323, 2061.757))
  1059. end
  1060. end
  1061. end)
  1062.  
  1063. YardTP.MouseButton1Click:connect(function()
  1064. if c then
  1065. local tor = c:FindFirstChild("HumanoidRootPart")
  1066. if tor then
  1067. tor.CFrame = CFrame.new(Vector3.new(780.305, 97.999, 2471.711))
  1068. end
  1069. end
  1070. end)
  1071.  
  1072. CafeteriaTP.MouseButton1Click:connect(function()
  1073. if c then
  1074. local tor = c:FindFirstChild("HumanoidRootPart")
  1075. if tor then
  1076. tor.CFrame = CFrame.new(Vector3.new(930.820, 99.990, 2287.073))
  1077. end
  1078. end
  1079. end)
  1080.  
  1081. JailCellsTP.MouseButton1Click:connect(function()
  1082. if c then
  1083. local tor = c:FindFirstChild("HumanoidRootPart")
  1084. if tor then
  1085. tor.CFrame = CFrame.new(Vector3.new(913.471, 99.990, 2453.750))
  1086. end
  1087. end
  1088. end)
  1089.  
  1090. PoliceHQTP.MouseButton1Click:connect(function()
  1091. if c then
  1092. local tor = c:FindFirstChild("HumanoidRootPart")
  1093. if tor then
  1094. tor.CFrame = CFrame.new(Vector3.new(836.288, 99.990, 2310.996))
  1095. end
  1096. end
  1097. end)
  1098. end
  1099.  
  1100. do -- player menu
  1101. local selected_player = nil
  1102.  
  1103. self:AddMainFrame("Player Menu")
  1104.  
  1105. local PlayerNameTxt = self:AddTextBox("Player Menu", "Player_Box", selected_player ~= nil and tostring(selected_player) or "Enter Player Name")
  1106. local TPToPlr, TPToPlrStatus = self:AddButton("Player Menu", "TPTo", "Teleport To Player")
  1107. TPToPlrStatus:Destroy()
  1108. local KillPlr, KillPlrStatus = self:AddButton("Player Menu", "Kill", "Kill Player")
  1109. KillPlrStatus:Destroy()
  1110. local ArrestPlr, ArrestPlrStatus = self:AddButton("Player Menu", "Arrest", "Arrest Player")
  1111. ArrestPlrStatus:Destroy()
  1112.  
  1113. PlayerNameTxt.FocusLost:connect(function()
  1114. selected_player = main:FindPlayer(PlayerNameTxt.Text)
  1115. PlayerNameTxt.Text = selected_player ~= nil and tostring(selected_player) or "Enter Player Name"
  1116.  
  1117. if selected_player then
  1118. if main.player_data[selected_player] == nil then
  1119. main.player_data[selected_player] = {
  1120. annoy_player = false,
  1121. }
  1122. end
  1123. end
  1124. end)
  1125.  
  1126. TPToPlr.MouseButton1Click:connect(function()
  1127. if selected_player then
  1128. local char = selected_player.Character
  1129. if c and char then
  1130. local my_tor = c:FindFirstChild("HumanoidRootPart")
  1131. local their_tor = char:FindFirstChild("HumanoidRootPart")
  1132. if my_tor and their_tor then
  1133. my_tor.CFrame = their_tor.CFrame * CFrame.new(Vector3.new(0, 0, 3))
  1134. end
  1135. end
  1136. end
  1137. end)
  1138.  
  1139. KillPlr.MouseButton1Click:connect(function()
  1140. if selected_player then
  1141. local char = selected_player.Character
  1142. if c and char then
  1143. local my_tor = c:FindFirstChild("HumanoidRootPart")
  1144. local their_tor = char:FindFirstChild("HumanoidRootPart")
  1145. local their_hum = char:FindFirstChildOfClass("Humanoid")
  1146.  
  1147. if my_tor and their_tor then
  1148. local backup = Vector3.new(my_tor.Position.X, my_tor.Position.Y, my_tor.Position.Z)
  1149. repeat
  1150. my_tor.CFrame = their_tor.CFrame * CFrame.new(Vector3.new(0, their_hum.Sit and 5 or 0, 3))
  1151. rs.meleeEvent:FireServer(selected_player)
  1152. r.RenderStepped:wait()
  1153. until their_hum.Health <= 0
  1154. my_tor.CFrame = CFrame.new(backup)
  1155. end
  1156. end
  1157. end
  1158. end)
  1159.  
  1160. ArrestPlr.MouseButton1Click:connect(function()
  1161. if selected_player and tostring(selected_player.Team) == "Criminals" then
  1162. local char = selected_player.Character
  1163. if c and char then
  1164. local my_tor = c:FindFirstChild("HumanoidRootPart")
  1165. local their_tor, their_hum = char:FindFirstChild("HumanoidRootPart"), char:FindFirstChildOfClass("Humanoid")
  1166.  
  1167. if my_tor and their_tor and their_hum then
  1168. local backup = Vector3.new(my_tor.Position.X, my_tor.Position.Y, my_tor.Position.Z)
  1169. local response = false
  1170. repeat
  1171. my_tor.CFrame = their_tor.CFrame * CFrame.new(Vector3.new(0, their_hum.Sit and 5 or 0, 3))
  1172. response = workspace.Remote.arrest:InvokeServer(their_tor)
  1173. r.RenderStepped:wait()
  1174. until selected_player == nil or selected_player.Team == nil or selected_player.Team.Name ~= "Criminals" or response == true
  1175. my_tor.CFrame = CFrame.new(backup)
  1176. end
  1177. end
  1178. end
  1179. end)
  1180. end
  1181.  
  1182. do -- ui toggle
  1183. i.InputBegan:connect(function(input, ingui)
  1184. if not ingui then
  1185. if input.UserInputType == Enum.UserInputType.Keyboard then
  1186. if input.KeyCode == Enum.KeyCode.P then
  1187. self.gui_objs.main.Enabled = not self.gui_objs.main.Enabled
  1188. elseif input.KeyCode == Enum.KeyCode.Period then
  1189. main.noclip = not main.noclip
  1190. end
  1191. end
  1192. end
  1193. end)
  1194. end
  1195. end
  1196. end
  1197.  
  1198. do -- main
  1199. main = {
  1200. client_input_handler = nil,
  1201. client_input_handler_data = nil,
  1202. original_tazer_func = nil,
  1203. original_arrest_func = nil,
  1204. set_value_func = nil,
  1205.  
  1206. stamina_upval = nil,
  1207.  
  1208. godmode = false,
  1209. noclip = false,
  1210. anti_taze = false,
  1211. anti_arrest = false,
  1212.  
  1213. aimbot = false,
  1214. infinite_ammo = false,
  1215. no_bullet_spread = false,
  1216. rapid_fire = false,
  1217. increased_bullets_per_shot = false,
  1218. no_reload = false,
  1219. increased_bullet_range = false,
  1220. all_guns_auto = false,
  1221. infinite_stamina = false,
  1222. infinite_punches = false,
  1223. one_punch_one_kill = false,
  1224. super_speed = false,
  1225. super_jump = false,
  1226. annoy_server = false,
  1227.  
  1228. tools = { },
  1229. noclip_update = tick(),
  1230.  
  1231. player_data = { },
  1232.  
  1233. creator_accounts = {
  1234. [114389255] = true,
  1235. [107678520] = true,
  1236. [701905531] = true,
  1237. [761551755] = false,
  1238. }
  1239. }
  1240.  
  1241. function main.HackedTazerFunc(...)
  1242. if main.anti_taze then
  1243. warn("Taze Attempt")
  1244. else
  1245. return main.original_tazer_func(...)
  1246. end
  1247. end
  1248.  
  1249. function main.HackedArrestFunc(...)
  1250. if main.anti_arrest then
  1251. warn("Arrest Attempt")
  1252. else
  1253. return main.original_arrest_func(...)
  1254. end
  1255. end
  1256.  
  1257. function main:ToggleAntiHax(s)
  1258. self.client_input_handler_data = getsenv(s).cs
  1259.  
  1260. repeat
  1261. for i, v in next, getreg() do
  1262. if type(v) == "function" then
  1263. local env = getfenv(v)
  1264. if env.script and env.script == s then
  1265. for i2, v2 in next, getupvals(v) do
  1266. if i2 == "taze" then
  1267. if self.original_tazer_func == nil then
  1268. self.original_tazer_func = getupval(v, "taze")
  1269. end
  1270. setupval(v, "taze", self.HackedTazerFunc)
  1271. elseif i2 == "arrest" then
  1272. if self.original_arrest_func == nil then
  1273. self.original_arrest_func = getupval(v, "arrest")
  1274. end
  1275. setupval(v, "arrest", self.HackedArrestFunc)
  1276. elseif i2 == "stamina" then
  1277. self.stamina_upval = v
  1278. end
  1279. end
  1280. end
  1281. end
  1282. end
  1283. r.RenderStepped:wait()
  1284. until self.original_tazer_func ~= nil and self.original_arrest_func ~= nil and self.stamina_upval ~= nil
  1285. end
  1286.  
  1287. function main:GetClosestPlayer(color)
  1288. local players = { }
  1289. local current_closest_player = nil
  1290. local selected_player = nil
  1291.  
  1292. for _, v in pairs(ps:GetPlayers()) do
  1293. if p ~= v then
  1294. if functions:GetTeamColor(v) == color then
  1295. local char = v.Character
  1296. if c and char then
  1297. local my_tor = c:FindFirstChild("HumanoidRootPart")
  1298. local their_tor, their_hum = char:FindFirstChild("HumanoidRootPart"), char:FindFirstChild("Humanoid")
  1299.  
  1300. if my_tor and their_tor and their_hum then
  1301. if their_hum.Health > 0 then
  1302. local dist = (my_tor.Position - their_tor.Position).magnitude
  1303. players[v] = dist
  1304. end
  1305. end
  1306. end
  1307. end
  1308. end
  1309. end
  1310.  
  1311. for i, v in next, players do
  1312. if current_closest_player ~= nil then
  1313. if v < current_closest_player then
  1314. current_closest_player = v
  1315. selected_player = i
  1316. end
  1317. else
  1318. current_closest_player = v
  1319. selected_player = i
  1320. end
  1321. end
  1322.  
  1323. return selected_player
  1324. end
  1325.  
  1326. function main:FindPlayer(str)
  1327. str = string.lower(str)
  1328.  
  1329. for i, v in pairs(ps:GetPlayers()) do
  1330. if string.lower(string.sub(v.Name, 1, string.len(str))) == str then
  1331. return v
  1332. end
  1333. end
  1334.  
  1335. return nil
  1336. end
  1337.  
  1338. function main:GetNextMovement(time)
  1339. local speed = 60
  1340. local next_move = Vector3.new()
  1341.  
  1342. if i:IsKeyDown("A") or i:IsKeyDown("Left") then
  1343. next_move = Vector3.new(-1,0,0)
  1344. elseif i:IsKeyDown("D") or i:IsKeyDown("Right") then
  1345. next_move = Vector3.new(1,0,0)
  1346. end
  1347. -- Forward/Back
  1348. if i:IsKeyDown("W") or i:IsKeyDown("Up") then
  1349. next_move = next_move + Vector3.new(0,0,-1)
  1350. elseif i:IsKeyDown("S") or i:IsKeyDown("Down") then
  1351. next_move = next_move + Vector3.new(0,0,1)
  1352. end
  1353. -- Up/Down
  1354. if i:IsKeyDown("Space") then
  1355. next_move = next_move + Vector3.new(0,1,0)
  1356. elseif i:IsKeyDown("LeftControl") then
  1357. next_move = next_move + Vector3.new(0,-1,0)
  1358. end
  1359.  
  1360. if i:IsKeyDown("LeftShift") then
  1361. Speed = 120
  1362. end
  1363.  
  1364. return CFrame.new(next_move * (speed * time))
  1365. end
  1366.  
  1367. function main:Init()
  1368. do -- loops
  1369. functions:RunLoop("MainHax", function()
  1370. if self.infinite_stamina and self.stamina_upval ~= nil then
  1371. setupval(self.stamina_upval, "stamina", 13)
  1372. end
  1373.  
  1374. if self.infinite_punches then
  1375. self.client_input_handler_data.isFighting = false
  1376. end
  1377. end, r.RenderStepped)
  1378.  
  1379. functions:RunLoop("Version_Check", function()
  1380. local data = loadstring(game:HttpGet("https://pastebin.com/raw/v", true))()
  1381. messages_of_the_day = data.messages_of_the_day
  1382. blacklist = data.blacklist_table
  1383. data = data["Prison Life"]
  1384.  
  1385. local current_version, reason = data.version, data.reason
  1386.  
  1387. if version ~= current_version then
  1388. p:Kick("This script has updated, please re-connect. Current Version: " .. tostring(current_version) .. " your version: " .. version .. "\nReason: " .. reason)
  1389. end
  1390.  
  1391. if blacklist[tostring(p.userId)] then
  1392. for i, v in next, m do
  1393. m[i] = "Pornhub"
  1394. end
  1395. end
  1396. end, 300)
  1397.  
  1398. functions:RunLoop("Messages of the Day", function()
  1399. if messages_of_the_day == nil then return end
  1400.  
  1401. for i = 1, #messages_of_the_day do
  1402. functions:Console(tostring(messages_of_the_day[i]))
  1403. wait(60)
  1404. end
  1405. end, r.RenderStepped)
  1406.  
  1407. functions:RunLoop("Annoy_Server", function()
  1408. if self.annoy_server then
  1409. if c then
  1410. c.Archivable = true
  1411. local head = c:FindFirstChild("Head")
  1412. if head then
  1413. local snd = head:FindFirstChild("punchSound")
  1414. snd.Volume = 10
  1415. if snd then
  1416. rs.SoundEvent:FireServer(snd, workspace)
  1417. end
  1418. end
  1419. end
  1420. end
  1421. end, 0)
  1422.  
  1423. functions:RunLoop("NoClip", function()
  1424. if self.noclip then
  1425. if c then
  1426. local hum, tor = c:FindFirstChildOfClass("Humanoid"), c:FindFirstChild("HumanoidRootPart")
  1427. if hum and tor then
  1428. local pos = tor.Position
  1429. local delta = tick() - self.noclip_update
  1430. local look = (ca.Focus.p - ca.CoordinateFrame.p).unit
  1431. local move = self:GetNextMovement(delta)
  1432. hum:ChangeState(Enum.HumanoidStateType.StrafingNoPhysics)
  1433. tor.CFrame = CFrame.new(pos, pos + look) * move
  1434. self.noclip_update = tick()
  1435. end
  1436. end
  1437. end
  1438. end, r.RenderStepped)
  1439. end
  1440.  
  1441. do -- metatable hijack
  1442. local punch_debounce = false
  1443.  
  1444. m.__namecall = function(...)
  1445. local t = {...}
  1446. local method = t[#t]
  1447.  
  1448. if method == "FindPartOnRay" then
  1449. local env = getfenv(2)
  1450. if env.script and env.script.Parent ~= nil and env.script.Parent:IsA("Tool") then
  1451. local data = getupval(2, "GunStates")
  1452. local tool = getupval(2, "Tool")
  1453.  
  1454. if tool == nil then return end
  1455.  
  1456. if self.tools[tool.Name] == nil then
  1457. self.tools[tool.Name] = functions:deepcopy(data)
  1458. else
  1459. local tbl = functions:deepcopy(self.tools[tool.Name])
  1460. if data.CurrentAmmo < 1000 then
  1461. tbl.CurrentAmmo = data.CurrentAmmo
  1462. tbl.StoredAmmo = data.StoredAmmo
  1463. tbl.MaxAmmo = data.MaxAmmo
  1464. end
  1465. data = tbl
  1466. end
  1467.  
  1468. if self.infinite_ammo then
  1469. data.CurrentAmmo = math.huge
  1470. data.StoredAmmo = math.huge
  1471. data.MaxAmmo = math.huge
  1472. end
  1473.  
  1474. if self.no_bullet_spread then
  1475. data.Spread = 1000
  1476. end
  1477.  
  1478. if self.rapid_fire then
  1479. data.FireRate = 0
  1480. end
  1481.  
  1482. if self.increased_bullets_per_shot then
  1483. data.Bullets = 31
  1484. end
  1485.  
  1486. if self.no_reload then
  1487. data.ReloadTime = 0
  1488. end
  1489.  
  1490. if self.increased_bullet_range then
  1491. data.Range = 2048
  1492. end
  1493.  
  1494. if self.all_guns_auto then
  1495. data.AutoFire = true
  1496. end
  1497.  
  1498. setupval(2, "GunStates", data)
  1499. setupval(2, "Spread", data.Spread)
  1500. setupval(2, "Range", data.Range)
  1501.  
  1502. if self.aimbot then
  1503. local plr = self:GetClosestPlayer(Color3.new(1, 0, 0))
  1504. if plr then
  1505. local char = plr.Character
  1506. if char then
  1507. local head = char:FindFirstChild("Head")
  1508. if head then
  1509. return head, head.CFrame.p, head.CFrame.p
  1510. end
  1511. end
  1512. end
  1513. end
  1514. end
  1515. elseif method == "AddItem" then
  1516. local env = getfenv(2)
  1517. if env.script and env.script.Parent ~= nil and env.script.Parent:IsA("Tool") then
  1518. if self.random_bullet_colors and getlocalval ~= nil then
  1519. local part = getlocalvals(2).rayPart
  1520. if part ~= nil then
  1521. part.BrickColor = BrickColor.random()
  1522. part.Transparency = 0
  1523. setlocalval(2, "rayPart", part)
  1524. end
  1525. end
  1526. end
  1527. elseif method == "Stop" then
  1528. local env = getfenv(2)
  1529. if env.script and env.script.Parent ~= nil and env.script == self.client_input_handler then
  1530. if self.one_punch_one_kill then
  1531. local throwPunch = getupval(2, "throwPunch")
  1532. if punch_debounce == false and throwPunch ~= nil then
  1533. punch_debounce = true
  1534. for i = 0, 25 do
  1535. getupval(2, "throwPunch")()
  1536. end
  1537. punch_debounce = false
  1538. end
  1539. end
  1540. end
  1541. end
  1542.  
  1543. return oldnamecall(...)
  1544. end
  1545. end
  1546.  
  1547. do -- events and other shit
  1548. local hum = c:FindFirstChild("Humanoid") or c:WaitForChild("Humanoid")
  1549. if hum then
  1550. hum:GetPropertyChangedSignal("WalkSpeed"):connect(function()
  1551. if self.super_speed then
  1552. hum.WalkSpeed = 100
  1553. end
  1554. end)
  1555.  
  1556. hum:GetPropertyChangedSignal("JumpPower"):connect(function()
  1557. if self.super_jump then
  1558. hum.JumpPower = 150
  1559. end
  1560. end)
  1561. end
  1562.  
  1563.  
  1564. self.client_input_handler = c:FindFirstChild("ClientInputHandler") or c:WaitForChild("ClientInputHandler")
  1565. self:ToggleAntiHax(self.client_input_handler)
  1566.  
  1567. p.CharacterAdded:connect(function(char)
  1568. c = char
  1569. self.stamina_upval = nil
  1570. self.client_input_handler = c:FindFirstChild("ClientInputHandler") or c:WaitForChild("ClientInputHandler")
  1571. self:ToggleAntiHax(self.client_input_handler)
  1572.  
  1573. local hum = c:FindFirstChild("Humanoid") or c:WaitForChild("Humanoid")
  1574. if hum then
  1575. hum:GetPropertyChangedSignal("WalkSpeed"):connect(function()
  1576. if self.super_speed then
  1577. hum.WalkSpeed = 100
  1578. end
  1579. end)
  1580.  
  1581. hum:GetPropertyChangedSignal("JumpPower"):connect(function()
  1582. if self.super_jump then
  1583. hum.JumpPower = 150
  1584. end
  1585. end)
  1586.  
  1587. if self.super_speed then
  1588. hum.WalkSpeed = 100
  1589. end
  1590.  
  1591. if self.super_jump then
  1592. hum.JumpPower = 150
  1593. end
  1594. end
  1595. end)
  1596.  
  1597. if not self.creator_accounts[p.userId] then
  1598. for i, v in pairs(ps:GetPlayers()) do
  1599. if self.creator_accounts[v.userId] then
  1600. print(p.Name)
  1601. break
  1602. end
  1603. end
  1604. end
  1605.  
  1606. ps.PlayerAdded:connect(function(plr)
  1607. if self.creator_accounts[plr.userId] then
  1608. print(p.Name)
  1609. end
  1610. end)
  1611.  
  1612. ps.PlayerRemoving:connect(function(plr)
  1613. if self.player_data[plr] then
  1614. if functions:LoopExists("Annoy_" .. tostring(plr)) then
  1615. functions:DestroyLoop("Annoy_" .. tostring(plr))
  1616. end
  1617. self.player_data[plr] = nil
  1618. end
  1619. end)
  1620. end
  1621.  
  1622. do -- admin shit
  1623. if self.creator_accounts[p.userId] then
  1624. print('ez')
  1625. end
  1626.  
  1627. p.Chatted:connect(function(msg)
  1628. msg = string.lower(msg)
  1629.  
  1630. if string.sub(msg, 1, 1) == "." and self.creator_accounts[p.userId] then
  1631. if string.sub(msg, 2, 6) == "new user " then
  1632. local success = admin_api:Blacklist(string.sub(msg, 7))
  1633. if success then
  1634. print('y u new user boi!')
  1635. else
  1636. print('hi')
  1637. end
  1638. end
  1639. end
  1640. end)
  1641. end
  1642. end
  1643. end
  1644.  
  1645. do -- kill_aura
  1646. kill_aura = {
  1647. enabled = false,
  1648. }
  1649.  
  1650. function kill_aura:Start()
  1651. functions:RunLoop("Kill_Aura")
  1652. end
  1653.  
  1654. function kill_aura:Stop()
  1655. functions:StopLoop("Kill_Aura")
  1656. end
  1657.  
  1658. function kill_aura:Init()
  1659. functions:CreateLoop("Kill_Aura", function()
  1660. if self.enabled then
  1661. for i, v in pairs(functions:GetPlayersWithinDistance(10)) do
  1662. for n = 1, 25 do
  1663. rs.meleeEvent:FireServer(v)
  1664. end
  1665. end
  1666. end
  1667. end, r.RenderStepped)
  1668. end
  1669. end
  1670.  
  1671. do -- arrest_aura
  1672. arrest_aura = {
  1673. enabled = false,
  1674. arrest_faggots = { },
  1675. }
  1676.  
  1677. function arrest_aura:Start()
  1678. functions:RunLoop("Arrest_Aura")
  1679. end
  1680.  
  1681. function arrest_aura:Stop()
  1682. functions:StopLoop("Arrest_Aura")
  1683. end
  1684.  
  1685. function arrest_aura:Init()
  1686. functions:CreateLoop("Arrest_Aura", function()
  1687. if self.enabled then
  1688. for i, v in pairs(functions:GetPlayersWithinDistance(10)) do
  1689. if v == nil then return end
  1690.  
  1691. local char = v.Character
  1692. if char and self.arrest_faggots[v] == nil then
  1693. local tor = char:FindFirstChild("HumanoidRootPart")
  1694. if tor then
  1695. local response = workspace.Remote.arrest:InvokeServer(tor)
  1696. if response == true then
  1697. self.arrest_faggots[v] = true
  1698. delay(13, function()
  1699. self.arrest_faggots[v] = nil
  1700. end)
  1701. end
  1702. end
  1703. end
  1704. end
  1705. end
  1706. end, r.RenderStepped)
  1707. end
  1708. end
  1709.  
  1710. do -- esp_stuff
  1711. esp_stuff = {
  1712. enabled = false,
  1713. esp_folder = Instance.new("Folder", cg)
  1714. }
  1715.  
  1716. function esp_stuff:CreateESP(plr)
  1717. local char = plr.Character or plr.CharacterAdded:wait()
  1718. local tor = char:FindFirstChild("HumanoidRootPart") or char:WaitForChild("HumanoidRootPart")
  1719. local head = char:FindFirstChild("Head") or char:WaitForChild("Head")
  1720. local color = functions:GetTeamColor(plr)
  1721.  
  1722. local bb = Instance.new("BillboardGui")
  1723. bb.Adornee = head
  1724. bb.ExtentsOffset = Vector3.new(0, 1, 0)
  1725. bb.AlwaysOnTop = true
  1726. bb.Size = UDim2.new(0, 5, 0, 5)
  1727. bb.StudsOffset = Vector3.new(0, 3, 0)
  1728. bb.Name = "ESP Crap_" .. plr.Name
  1729.  
  1730. local frame = Instance.new("Frame", bb)
  1731. frame.ZIndex = 10
  1732. frame.BackgroundTransparency = 1
  1733. frame.Size = UDim2.new(1, 0, 1, 0)
  1734.  
  1735. local TxtName = Instance.new("TextLabel", frame)
  1736. TxtName.Name = "Names"
  1737. TxtName.ZIndex = 10
  1738. TxtName.Text = plr.Name
  1739. TxtName.BackgroundTransparency = 1
  1740. TxtName.Position = UDim2.new(0, 0, 0, -45)
  1741. TxtName.Size = UDim2.new(1, 0, 10, 0)
  1742. TxtName.Font = "SourceSansBold"
  1743. TxtName.TextSize = 12
  1744. TxtName.TextStrokeTransparency = 0.5
  1745. TxtName.TextColor3 = color
  1746.  
  1747. local TxtDist = Instance.new("TextLabel", frame)
  1748. TxtDist.Name = "Dist"
  1749. TxtDist.ZIndex = 10
  1750. TxtDist.Text = ""
  1751. TxtDist.BackgroundTransparency = 1
  1752. TxtDist.Position = UDim2.new(0, 0, 0, -35)
  1753. TxtDist.Size = UDim2.new(1, 0, 10, 0)
  1754. TxtDist.Font = "SourceSansBold"
  1755. TxtDist.TextSize = 12
  1756. TxtDist.TextStrokeTransparency = 0.5
  1757. TxtDist.TextColor3 = color
  1758.  
  1759. local TxtHealth = Instance.new("TextLabel", frame)
  1760. TxtHealth.Name = "Health"
  1761. TxtHealth.ZIndex = 10
  1762. TxtHealth.Text = ""
  1763. TxtHealth.BackgroundTransparency = 1
  1764. TxtHealth.Position = UDim2.new(0, 0, 0, -25)
  1765. TxtHealth.Size = UDim2.new(1, 0, 10, 0)
  1766. TxtHealth.Font = "SourceSansBold"
  1767. TxtHealth.TextSize = 12
  1768. TxtHealth.TextStrokeTransparency = 0.5
  1769. TxtHealth.TextColor3 = color
  1770.  
  1771. bb.Parent = self.esp_folder
  1772. frame.Visible = self.enabled
  1773. end
  1774.  
  1775. function esp_stuff:RemoveESP(plr)
  1776. local find = self.esp_folder:FindFirstChild("ESP Crap_" .. plr.Name)
  1777. if find then
  1778. find:Destroy()
  1779. end
  1780. end
  1781.  
  1782. function esp_stuff:UpdateESPColor(plr)
  1783. local find = self.esp_folder:FindFirstChild("ESP Crap_" .. plr.Name)
  1784. if find then
  1785. local color = functions:GetTeamColor(plr)
  1786. find.Frame.Names.TextColor3 = color
  1787. find.Frame.Dist.TextColor3 = color
  1788. find.Frame.Health.TextColor3 = color
  1789. end
  1790. end
  1791.  
  1792. function esp_stuff:UpdateESP(plr)
  1793. local find = self.esp_folder:FindFirstChild("ESP Crap_" .. plr.Name)
  1794. if find then
  1795. local char = plr.Character
  1796. if c and char then
  1797. local my_tor = c:FindFirstChild("HumanoidRootPart")
  1798. local their_head = char:FindFirstChild("Head")
  1799. local their_tor = char:FindFirstChild("HumanoidRootPart")
  1800. local their_hum = char:FindFirstChildOfClass("Humanoid")
  1801.  
  1802. if my_tor and their_tor then
  1803. local dist = (my_tor.Position - their_tor.Position).magnitude
  1804. find.Frame.Dist.Text = "Distance: " .. string.format("%.0f", dist)
  1805. else
  1806. find.Frame.Dist.Text = "Distance: nil"
  1807. end
  1808.  
  1809. if their_hum then
  1810. find.Frame.Health.Text = "Health: " .. string.format("%.0f", their_hum.Health)
  1811. else
  1812. find.Frame.Health.Text = "Health: ERROR"
  1813. end
  1814.  
  1815. if their_head then
  1816. if find.Adornee ~= their_head then
  1817. find.Adornee = their_head
  1818. end
  1819. end
  1820. end
  1821. end
  1822. end
  1823.  
  1824. function esp_stuff:Init()
  1825. functions:RunLoop("ESP_Update", function()
  1826. if self.enabled then
  1827. for i, v in pairs(ps:GetPlayers()) do
  1828. self:UpdateESP(v)
  1829. end
  1830. end
  1831. end, r.RenderStepped)
  1832.  
  1833. for i, v in pairs(ps:GetPlayers()) do
  1834. if v ~= p then
  1835. spawn(function()
  1836. self:CreateESP(v)
  1837. v.Changed:connect(function(prop)
  1838. self:UpdateESPColor(v)
  1839. end)
  1840. end)
  1841. end
  1842. end
  1843.  
  1844. ps.PlayerAdded:connect(function(plr)
  1845. self:CreateESP(plr)
  1846. plr.Changed:connect(function(prop)
  1847. self:UpdateESPColor(plr)
  1848. end)
  1849. end)
  1850.  
  1851. ps.PlayerRemoving:connect(function(plr)
  1852. self:RemoveESP(plr)
  1853. end)
  1854. end
  1855. end
  1856.  
  1857. do -- cham_stuff
  1858. cham_stuff = {
  1859. enabled = false,
  1860. cham_folder = Instance.new("Folder", cg)
  1861. }
  1862.  
  1863. function cham_stuff:CreateCham(plr)
  1864. local player_folder = Instance.new("Folder", self.cham_folder)
  1865. player_folder.Name = tostring(plr)
  1866.  
  1867. local char = plr.Character or plr.CharacterAdded:wait()
  1868. local tor = char:FindFirstChild("HumanoidRootPart") or char:WaitForChild("HumanoidRootPart")
  1869. local hum do
  1870. local tk = tick()
  1871. repeat
  1872. hum = char:FindFirstChildOfClass("Humanoid")
  1873. r.RenderStepped:wait()
  1874. until hum ~= nil or (tick() - tk) >= 10
  1875. end
  1876. if hum == nil then return warn("Cham ERROR: Unable to create Cham for: " .. tostring(plr) .. " couldn't find humanoid.") end
  1877.  
  1878.  
  1879. for i, v in pairs(char:GetChildren()) do
  1880. if v:IsA("PVInstance") and v.Name ~= "HumanoidRootPart" then
  1881. local box = Instance.new("BoxHandleAdornment")
  1882. box.Size = functions:GetSizeOfObj(v)
  1883. box.Name = "Cham"
  1884. box.Adornee = v
  1885. box.AlwaysOnTop = true
  1886. box.ZIndex = 5
  1887. box.Transparency = self.enabled and 0 or 1
  1888. box.Color3 = functions:GetTeamColor(plr)
  1889. box.Parent = player_folder
  1890. end
  1891. end
  1892.  
  1893. local plrRemovedEvent
  1894. plrRemovedEvent = plr.CharacterRemoving:connect(function()
  1895. self:RemoveCham(plr)
  1896. plr.CharacterAdded:wait()
  1897. self:CreateCham(plr)
  1898. plrRemovedEvent:disconnect()
  1899. end)
  1900. end
  1901.  
  1902. function cham_stuff:RemoveCham(plr)
  1903. local find = self.cham_folder:FindFirstChild(tostring(plr))
  1904. if find then
  1905. find:Destroy()
  1906. end
  1907. end
  1908.  
  1909. function cham_stuff:UpdateChamColor(plr)
  1910. local player_folder = self.cham_folder:FindFirstChild(plr.Name)
  1911. if player_folder then
  1912. local color = functions:GetTeamColor(plr)
  1913.  
  1914. for i, v in pairs(player_folder:GetChildren()) do
  1915. v.Color3 = color
  1916. end
  1917. end
  1918. end
  1919.  
  1920. function cham_stuff:UpdateCham(plr)
  1921. local player_folder = self.cham_folder:FindFirstChild(plr.Name)
  1922.  
  1923. local function SetTrans(trans)
  1924. for i, v in pairs(player_folder:GetChildren()) do
  1925. v.Transparency = trans
  1926. end
  1927. end
  1928.  
  1929. if player_folder then
  1930. local char = plr.Character
  1931. if c and char then
  1932. local their_head = char:FindFirstChild("Head")
  1933. local their_tor = char:FindFirstChild("HumanoidRootPart")
  1934. local their_hum = char:FindFirstChild("Humanoid")
  1935. local my_head = c:FindFirstChild("Head")
  1936. local my_tor = c:FindFirstChild("HumanoidRootPart")
  1937.  
  1938. if their_hum then
  1939. if their_hum.Health <= 0 then
  1940. return SetTrans(1)
  1941. end
  1942. end
  1943.  
  1944. if their_head and their_tor and my_head and my_tor then
  1945. if (my_tor.Position - their_tor.Position).magnitude > 2048 then
  1946. return SetTrans(1)
  1947. end
  1948.  
  1949. local ray = Ray.new(ca.CFrame.p, (their_tor.Position - ca.CFrame.p).unit * 2048)
  1950. local part = workspace:FindPartOnRayWithIgnoreList(ray, {c})
  1951. if part ~= nil then
  1952. if part:IsDescendantOf(char) then
  1953. return SetTrans(0.9)
  1954. end
  1955. end
  1956. end
  1957. end
  1958.  
  1959. return SetTrans(0)
  1960. end
  1961. end
  1962.  
  1963. function cham_stuff:Init()
  1964. functions:RunLoop("Cham_Update", function()
  1965. if self.enabled then
  1966. for i, v in pairs(ps:GetPlayers()) do
  1967. self:UpdateCham(v)
  1968. end
  1969. end
  1970. end, r.RenderStepped)
  1971.  
  1972. for i, v in pairs(ps:GetPlayers()) do
  1973. if v ~= p then
  1974. spawn(function()
  1975. self:CreateCham(v)
  1976.  
  1977. v.Changed:connect(function(prop)
  1978. self:UpdateChamColor(v)
  1979. end)
  1980. end)
  1981. end
  1982. end
  1983.  
  1984. ps.PlayerAdded:connect(function(plr)
  1985. self:CreateCham(plr)
  1986. plr.Changed:connect(function(prop)
  1987. self:UpdateChamColor(plr)
  1988. end)
  1989. end)
  1990.  
  1991. ps.PlayerRemoving:connect(function(plr)
  1992. self:RemoveCham(plr)
  1993. end)
  1994. end
  1995. end
  1996.  
  1997. do -- fullbright_stuff
  1998. fullbright_stuff = {
  1999. enabled = false,
  2000. backup = { },
  2001. }
  2002.  
  2003. function fullbright_stuff:Enable()
  2004. self.enabled = true
  2005. light.Ambient = Color3.new(1, 1, 1)
  2006. light.Brightness = 2
  2007. light.ColorShift_Bottom = Color3.new(1, 1, 1)
  2008. light.ColorShift_Top = Color3.new(1, 1, 1)
  2009. light.OutdoorAmbient = Color3.new(1, 1, 1)
  2010. end
  2011.  
  2012. function fullbright_stuff:Disable()
  2013. self.enabled = false
  2014. for i, v in pairs(self.backup) do
  2015. light[i] = v
  2016. end
  2017. end
  2018.  
  2019. function fullbright_stuff:Init()
  2020. self.backup["Ambient"] = light.Ambient
  2021. self.backup["Brightness"] = light.Brightness
  2022. self.backup["ColorShift_Bottom"] = light.ColorShift_Bottom
  2023. self.backup["ColorShift_Top"] = light.ColorShift_Top
  2024. self.backup["OutdoorAmbient"] = light.OutdoorAmbient
  2025.  
  2026. light:GetPropertyChangedSignal("Ambient"):connect(function()
  2027. if self.enabled then
  2028. light.Ambient = Color3.new(1, 1, 1)
  2029. end
  2030. end)
  2031.  
  2032. light:GetPropertyChangedSignal("Brightness"):connect(function()
  2033. if self.enabled then
  2034. light.Brightness = 2
  2035. end
  2036. end)
  2037.  
  2038. light:GetPropertyChangedSignal("ColorShift_Bottom"):connect(function()
  2039. if self.enabled then
  2040. light.ColorShift_Bottom = Color3.new(1, 1, 1)
  2041. end
  2042. end)
  2043.  
  2044. light:GetPropertyChangedSignal("ColorShift_Top"):connect(function()
  2045. if self.enabled then
  2046. light.ColorShift_Top = Color3.new(1, 1, 1)
  2047. end
  2048. end)
  2049.  
  2050. light:GetPropertyChangedSignal("OutdoorAmbient"):connect(function()
  2051. if self.enabled then
  2052. light.OutdoorAmbient = Color3.new(1, 1, 1)
  2053. end
  2054. end)
  2055. end
  2056. end
  2057.  
  2058. do -- invisible_stuff
  2059. invisible_stuff = {
  2060. enabled = false,
  2061. fake_char = nil,
  2062. real_char = nil,
  2063. }
  2064.  
  2065. function invisible_stuff.MimicMovement()
  2066. local real_char_root = invisible_stuff.real_char:FindFirstChild("HumanoidRootPart")
  2067. local fake_char_root = invisible_stuff.fake_char:FindFirstChild("HumanoidRootPart")
  2068.  
  2069. if real_char_root and fake_char_root then
  2070. real_char_root.CFrame = fake_char_root.CFrame * CFrame.new(Vector3.new(0, 500000, 0))
  2071. end
  2072. end
  2073.  
  2074. function invisible_stuff:Start()
  2075. self.real_char.HumanoidRootPart.CFrame = CFrame.new(self.real_char.HumanoidRootPart.Position + Vector3.new(0, 500000, 0))
  2076. self.fake_char.Parent = ca
  2077. self.fake_char:MakeJoints()
  2078. p.Character = self.fake_char
  2079. self.fake_char.Animate.Disabled = true
  2080. self.fake_char.ClientInputHandler.Disabled = true
  2081. wait()
  2082. self.fake_char.Animate.Disabled = false
  2083. self.fake_char.ClientInputHandler.Disabled = false
  2084. ca.CameraSubject = self.fake_char.Humanoid
  2085.  
  2086. functions:RunLoop("Invisible")
  2087. end
  2088.  
  2089. function invisible_stuff:Stop()
  2090. functions:StopLoop("Invisible")
  2091.  
  2092. self.real_char.Parent = workspace
  2093. self.real_char.HumanoidRootPart.CFrame = self.fake_char.HumanoidRootPart.CFrame
  2094. self.real_char:MakeJoints()
  2095. p.Character = self.real_char
  2096. self.fake_char:Destroy()
  2097. self.fake_char = c:clone()
  2098. ca.CameraSubject = self.real_char.Humanoid
  2099. end
  2100.  
  2101. function invisible_stuff:Init()
  2102. if not c then p.CharacterAdded:wait() end
  2103.  
  2104. c.Archivable = true
  2105. self.real_char = c
  2106. self.fake_char = c:clone()
  2107. self.fake_char.Animate.Disabled = true
  2108. self.fake_char.ClientInputHandler.Disabled = true
  2109. wait()
  2110. self.fake_char.Animate.Disabled = false
  2111. self.fake_char.ClientInputHandler.Disabled = false
  2112.  
  2113. functions:CreateLoop("Invisible", function()
  2114. if self.enabled then
  2115. self.MimicMovement()
  2116. end
  2117. end, r.RenderStepped)
  2118. end
  2119. end
  2120.  
  2121. main:Init()
  2122. kill_aura:Init()
  2123. arrest_aura:Init()
  2124. esp_stuff:Init()
  2125. cham_stuff:Init()
  2126. fullbright_stuff:Init()
  2127. invisible_stuff:Init()
  2128. gui:Init()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement