Prison life script.lua

View and share code snippets on Pastefy.

-- Prison Life Admin Tools (FE Compatible)

-- Works with KRNL, Synapse, Delta, etc.

-- Made for Prison Life but may work in other games

 

local Player = game:GetService("Players").LocalPlayer

local Mouse = Player:GetMouse()

local UIS = game:GetService("UserInputService")

local RunService = game:GetService("RunService")

 

-- GUI Setup (for admin panel)

local ScreenGui = Instance.new("ScreenGui")

ScreenGui.Name = "PrisonLifeAdminTools"

ScreenGui.Parent = game.CoreGui

 

local Frame = Instance.new("Frame")

Frame.Size = UDim2.new(0.25, 0, 0.5, 0)

Frame.Position = UDim2.new(0.75, 0, 0.25, 0)

Frame.BackgroundTransparency = 0.7

Frame.BackgroundColor3 = Color3.fromRGB(30, 30, 30)

Frame.Parent = ScreenGui

 

local Title = Instance.new("TextLabel")

Title.Text = "PRISON LIFE ADMIN TOOLS"

Title.Size = UDim2.new(1, 0, 0.1, 0)

Title.Font = Enum.Font.SourceSansBold

Title.TextColor3 = Color3.fromRGB(255, 50, 50)

Title.BackgroundTransparency = 1

Title.Parent = Frame

 

local KillButton = Instance.new("TextButton")

KillButton.Text = "KILL TARGET (CLICK PLAYER)"

KillButton.Size = UDim2.new(0.9, 0, 0.1, 0)

KillButton.Position = UDim2.new(0.05, 0, 0.15, 0)

KillButton.Parent = Frame

 

local BringButton = Instance.new("TextButton")

BringButton.Text = "BRING PLAYER (CLICK)"

BringButton.Size = UDim2.new(0.9, 0, 0.1, 0)

BringButton.Position = UDim2.new(0.05, 0, 0.3, 0)

BringButton.Parent = Frame

 

local TeleportButton = Instance.new("TextButton")

TeleportButton.Text = "TELEPORT TO PLAYER (CLICK)"

TeleportButton.Size = UDim2.new(0.9, 0, 0.1, 0)

TeleportButton.Position = UDim2.new(0.05, 0, 0.45, 0)

TeleportButton.Parent = Frame

 

local GodButton = Instance.new("TextButton")

GodButton.Text = "TOGGLE GOD MODE"

GodButton.Size = UDim2.new(0.9, 0, 0.1, 0)

GodButton.Position = UDim2.new(0.05, 0, 0.6, 0)

GodButton.Parent = Frame

 

local SpeedButton = Instance.new("TextButton")

SpeedButton.Text = "TOGGLE SPEED (SHIFT)"

SpeedButton.Size = UDim2.new(0.9, 0, 0.1, 0)

SpeedButton.Position = UDim2.new(0.05, 0, 0.75, 0)

SpeedButton.Parent = Frame

 

local InvisButton = Instance.new("TextButton")

InvisButton.Text = "TOGGLE INVISIBLE"

InvisButton.Size = UDim2.new(0.9, 0, 0.1, 0)

InvisButton.Position = UDim2.new(0.05, 0, 0.9, 0)

InvisButton.Parent = Frame

 

-- Functions

local function KillTarget(Target)

    if Target and Target.Character and Target.Character:FindFirstChild("Humanoid") then

        Target.Character.Humanoid.Health = 0

    end

end

 

local function BringPlayer(Target)

    if Target and Target.Character and Target.Character:FindFirstChild("HumanoidRootPart") then

        Player.Character.HumanoidRootPart.CFrame = Target.Character.HumanoidRootPart.CFrame * CFrame.new(0, 0, -3)

    end

end

 

local function TeleportToPlayer(Target)

    if Target and Target.Character and Target.Character:FindFirstChild("HumanoidRootPart") then

        Player.Character.HumanoidRootPart.CFrame = Target.Character.HumanoidRootPart.CFrame

    end

end

 

local GodMode = false

local function ToggleGodMode()

    GodMode = not GodMode

    if Player.Character and Player.Character:FindFirstChild("Humanoid") then

        Player.Character.Humanoid.MaxHealth = GodMode and math.huge or 100

        Player.Character.Humanoid.Health = GodMode and math.huge or 100

    end

end

 

local SpeedBoost = false

local function ToggleSpeed()

    SpeedBoost = not SpeedBoost

    if SpeedBoost then

        Player.Character.Humanoid.WalkSpeed = 50

    else

        Player.Character.Humanoid.WalkSpeed = 16

    end

end

 

local Invisible = false

local function ToggleInvisible()

    Invisible = not Invisible

    for _, part in pairs(Player.Character:GetDescendants()) do

        if part:IsA("BasePart") then

            part.Transparency = Invisible and 1 or 0

        end

    end

end

 

-- Button Clicks

KillButton.MouseButton1Click:Connect(function()

    local Target = Mouse.Target and game.Players:GetPlayerFromCharacter(Mouse.Target.Parent)

    if Target then KillTarget(Target) end

end)

 

BringButton.M

Tags

admin-tools game-automation lang-lua prison-life roblox

Description

A Lua script for the Roblox game Prison Life, providing admin tools. It is designed to be FE (Filtered Enabled) compatible and works with various exploit executors like KRNL, Synapse, and Delta. The script includes a GUI for the admin panel.