Advertisement
Aquafinur

Untitled

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