Prison life OPP
Key RequiredUniversal

Prison life OPP

Universal ScriptDeveloperBRDeveloperBR 847 views 1.3K executesUpdated Jan 30, 2026
5.0/ 5(1 votes)
10100% Positive
Lua Script•123 lines (4737 chars)
task.wait()

local Players = game:GetService("Players")
local RunService = game:GetService("RunService")
local ReplicatedStorage = game:GetService("ReplicatedStorage")
local localPlayer = Players.LocalPlayer
local camera = workspace.CurrentCamera

local aimLigado = false
local espLigado = false
local shootRemote = ReplicatedStorage:WaitForChild("GunRemotes"):WaitForChild("ShootEvent")

-- Posição da Base dos Criminosos no Prison Life
local baseCriminosos = Vector3.new(-940, 94, 2060)

local function criarInterface()
    if localPlayer.PlayerGui:FindFirstChild("PrisonHubV4") then return end

    local sg = Instance.new("ScreenGui")
    sg.Name = "PrisonHubV4"
    sg.ResetOnSpawn = false
    sg.DisplayOrder = 9999
    sg.Parent = localPlayer:WaitForChild("PlayerGui")

    local function criarBotao(nome, texto, pos, cor)
        local btn = Instance.new("TextButton")
        btn.Name = nome
        btn.Size = UDim2.new(0, 100, 0, 50) -- Tamanho original 100x50
        btn.Position = pos
        btn.BackgroundColor3 = cor
        btn.Text = texto
        btn.TextColor3 = Color3.new(1, 1, 1)
        btn.Font = Enum.Font.SourceSansBold
        btn.TextSize = 12
        btn.Draggable = true
        btn.Active = true
        btn.Parent = sg
        local stroke = Instance.new("UIStroke")
        stroke.Thickness = 1.5
        stroke.Parent = btn
        return btn
    end

    -- Botões
    local btnAim = criarBotao("AimBtn", "AIM/KILL: OFF", UDim2.new(0.5, -155, 0.15, 0), Color3.fromRGB(150, 0, 0))
    local btnEsp = criarBotao("EspBtn", "ESP: OFF", UDim2.new(0.5, -50, 0.15, 0), Color3.fromRGB(40, 40, 40))
    local btnTp = criarBotao("TpBtn", "TP CRIMINOSOS", UDim2.new(0.5, 55, 0.15, 0), Color3.fromRGB(0, 120, 0))

    -- Lógica Aim
    btnAim.MouseButton1Click:Connect(function()
        aimLigado = not aimLigado
        btnAim.Text = aimLigado and "AIM/KILL: ON" or "AIM/KILL: OFF"
        btnAim.BackgroundColor3 = aimLigado and Color3.fromRGB(0, 150, 0) or Color3.fromRGB(150, 0, 0)
    end)

    -- Lógica ESP
    btnEsp.MouseButton1Click:Connect(function()
        espLigado = not espLigado
        btnEsp.Text = espLigado and "ESP: ON" or "ESP: OFF"
        btnEsp.BackgroundColor3 = espLigado and Color3.fromRGB(0, 100, 255) or Color3.fromRGB(40, 40, 40)
    end)

    -- Lógica Teleporte (Anti-Kick)
    btnTp.MouseButton1Click:Connect(function()
        if localPlayer.Character and localPlayer.Character:FindFirstChild("HumanoidRootPart") then
            localPlayer.Character.HumanoidRootPart.CFrame = CFrame.new(baseCriminosos)
        end
    end)
end

local function atualizarESP()
    for _, v in pairs(Players:GetPlayers()) do
        if v ~= localPlayer and v.Character then
            local isPolice = (v.TeamColor.Name == "Bright blue" or v.Team.Name == "Guards")
            local h = v.Character:FindFirstChild("HighlightPolice")
            if espLigado and isPolice and v.Character:FindFirstChild("Humanoid") and v.Character.Humanoid.Health > 0 then
                if not h then
                    h = Instance.new("Highlight")
                    h.Name = "HighlightPolice"
                    h.FillColor = Color3.fromRGB(0, 100, 255)
                    h.Parent = v.Character
                end
            else
                if h then h:Destroy() end
            end
        end
    end
end

local function main()
    RunService.RenderStepped:Connect(function()
        criarInterface()
        atualizarESP()

        if aimLigado and localPlayer.Character and localPlayer.Character:FindFirstChild("Head") then
            local alvoHead = nil
            local distMin = math.huge
            
            for _, v in pairs(Players:GetPlayers()) do
                if v ~= localPlayer and v.Character and v.Character:FindFirstChild("Head") then
                    if v.TeamColor.Name == "Bright blue" and v.Character.Humanoid.Health > 0 then
                        local d = (v.Character.Head.Position - localPlayer.Character.Head.Position).Magnitude
                        if d < distMin then
                            distMin = d
                            alvoHead = v.Character.Head
                        end
                    end
                end
            end

            if alvoHead then
                camera.CFrame = CFrame.new(camera.CFrame.Position, alvoHead.Position)
                local arma = localPlayer.Character:FindFirstChildOfClass("Tool")
                if arma and arma:FindFirstChild("ShootEvent") then
                    local args = {{{localPlayer.Character.Head.Position, alvoHead.Position, alvoHead}}}
                    shootRemote:FireServer(unpack(args))
                end
            end
        end
    end)
end

main()

Features & Information

Prison life script OP
#prison life

Community Comments (0)

No comments yet for this script.

More Scripts for Universal Scripts