Prison Life Admin Commands
Prison Life Admin Commands
new("ScreenGui")
local CommandsGUI = Instance.new("Frame")
local drag2 = Instance.new("Frame")
local submit_btn = Instance.new("TextButton")
local cmd_txt = Instance.new("TextBox")
local title = Instance.new("TextLabel")
local credit = Instance.new("TextLabel")
local toggle_button = Instance.new("TextButton")
local CommandsList = Instance.new("Frame")
local cmds = Instance.new("TextLabel")
--Properties:
PLCmds.Name = "PLCmds"
PLCmds.Parent = game.Players.LocalPlayer:WaitForChild("PlayerGui")
CommandsGUI.Name = "CommandsGUI"
CommandsGUI.Parent = PLCmds
CommandsGUI.BackgroundColor3 = Color3.new(1, 1, 1)
CommandsGUI.BorderSizePixel = 0
CommandsGUI.Position = UDim2.new(0.0795125365, 0, 0.306309283, 0)
CommandsGUI.Size = UDim2.new(0, 385, 0, 328)
drag2.Name = "drag2"
drag2.Parent = CommandsGUI
drag2.BackgroundColor3 = Color3.new(0, 0.666667, 1)
drag2.BorderSizePixel = 0
drag2.Position = UDim2.new(0, 0, -0.00202620029, 0)
drag2.Size = UDim2.new(0, 385, 0, 48)
submit_btn.Name = "submit_btn"
submit_btn.Parent = CommandsGUI
submit_btn.BackgroundColor3 = Color3.new(0, 0.666667, 1)
submit_btn.BorderSizePixel = 0
submit_btn.Position = UDim2.new(0.236363634, 0, 0.48216176, 0)
submit_btn.Size = UDim2.new(0, 200, 0, 50)
submit_btn.Font = Enum.Font.Code
submit_btn.Text = "Submit"
submit_btn.TextColor3 = Color3.new(0, 0, 0)
submit_btn.TextScaled = true
submit_btn.TextSize = 14
submit_btn.TextWrapped = true
cmd_txt.Name = "cmd_txt"
cmd_txt.Parent = CommandsGUI
cmd_txt.BackgroundColor3 = Color3.new(0, 0.666667, 1)
cmd_txt.BorderSizePixel = 0
cmd_txt.Position = UDim2.new(0.132467538, 0, 0.264940917, 0)
cmd_txt.Size = UDim2.new(0, 280, 0, 50)
cmd_txt.Font = Enum.Font.Code
cmd_txt.MultiLine = true
cmd_txt.Text = ""
cmd_txt.TextColor3 = Color3.new(0, 0, 0)
cmd_txt.TextSize = 20
cmd_txt.TextWrapped = true
title.Name = "title"
title.Parent = CommandsGUI
title.BackgroundColor3 = Color3.new(0, 0, 0)
title.BackgroundTransparency = 1
title.BorderColor3 = Color3.new(0, 0, 0)
title.BorderSizePixel = 0
title.Position = UDim2.new(0, 0, -0.00202620891, 0)
title.Size = UDim2.new(0, 385, 0, 48)
title.Font = Enum.Font.Code
title.Text = "Prison Life Admin Commands"
title.TextColor3 = Color3.new(0, 0, 0)
title.TextScaled = true
title.TextSize = 14
title.TextStrokeTransparency = 0
title.TextTransparency = 1
title.TextWrapped = true
credit.Name = "credit"
credit.Parent = CommandsGUI
credit.BackgroundColor3 = Color3.new(1, 0, 0)
credit.BackgroundTransparency = 1
credit.Position = UDim2.new(0.28831169, 0, 0.125435546, 0)
credit.Size = UDim2.new(0, 162, 0, 46)
credit.Font = Enum.Font.SourceSansItalic
credit.Text = "Made by Thommo#6200"
credit.TextColor3 = Color3.new(0, 0, 0)
credit.TextScaled = true
credit.TextSize = 14
credit.TextWrapped = true
toggle_button.Name = "toggle_button"
toggle_button.Parent = CommandsGUI
toggle_button.BackgroundColor3 = Color3.new(0, 0.666667, 1)
toggle_button.BackgroundTransparency = 1
toggle_button.BorderColor3 = Color3.new(0, 0.666667, 1)
toggle_button.Position = UDim2.new(-0.00259740255, 0, 0.865853667, 0)
toggle_button.Size = UDim2.new(0, 385, 0, 44)
toggle_button.Font = Enum.Font.Code
toggle_button.Text = " "
toggle_button.TextColor3 = Color3.new(0, 0, 0)
toggle_button.TextScaled = true
toggle_button.TextSize = 14
toggle_button.TextWrapped = true
CommandsList.Name = "CommandsList"
CommandsList.Parent = CommandsGUI
CommandsList.BackgroundColor3 = Color3.new(1, 1, 1)
CommandsList.BackgroundTransparency = 1
CommandsList.Size = UDim2.new(0, 79, 0, 100)
cmds.Name = "cmds"
cmds.Parent = CommandsGUI
cmds.BackgroundColor3 = Color3.new(1, 0, 0)
cmds.BackgroundTransparency = 1
cmds.Position = UDim2.new(0.00259740255, 0, 0.704703927, 0)
cmds.Size = UDim2.new(0, 384, 0, 46)
cmds.Font = Enum.Font.Code
cmds.Text = "Commands: infammo, criminalbase, yard, prison, guardroom, killaura,
giveguns"
cmds.TextColor3 = Color3.new(0, 0, 0)
cmds.TextScaled = true
cmds.TextSize = 14
cmds.TextWrapped = true
CommandsGUI.Draggable = true
CommandsGUI.Active = true
CommandsGUI.Selectable = true
submit_btn.MouseButton1Click:connect(function()
if cmd_txt.Text == "criminalbase" then
game.Players.LocalPlayer.Character:MoveTo(Vector3.new(-943.463379,
94.21287842, 2055.95166))
end
end)
submit_btn.MouseButton1Click:connect(function()
if cmd_txt.Text == "yard" then
game.Players.LocalPlayer.Character:MoveTo(Vector3.new(798.373779,
97.9999466, 2469.84595))
end
end)
submit_btn.MouseButton1Click:connect(function()
if cmd_txt.Text == "guardroom" then
game.Players.LocalPlayer.Character:MoveTo(Vector3.new(836.047119,
99.9900055, 2270.11987))
end
end)
submit_btn.MouseButton1Click:connect(function()
if cmd_txt.Text == "killaura" then
mainRemotes = game.ReplicatedStorage
meleeRemote = mainRemotes['meleeEvent']
killAura = true
contextactionservice = game.ContextActionService
while wait() do
if killAura == true then
for _, plr in pairs (game:GetService('Players'):GetChildren()) do
if plr.Name ~= game.Players.LocalPlayer.Name then
meleeRemote:FireServer(plr)
end
end
end
end
end
end)
submit_btn.MouseButton1Click:connect(function()
if cmd_txt.Text == "infammo" then
local newcclosure = newcclosure or function(f)
return f
end
function hax()
for _,o in pairs(getreg()) do
if typeof(o) == "table" then
make_writeable(o,false)
o.FireRate = 0
o.AutoFire = true
o.Range = 10000
o.ReloadTime = 0
o.Damage = 500
o.MaxAmmo = math.huge
o.CurrentAmmo = math.huge
o.StoredAmmo = math.huge
end
end
end
hax()
game.Players.LocalPlayer.CharacterAdded:Connect(function(char)
hax()
end)
end
end)
submit_btn.MouseButton1Click:connect(function()
if cmd_txt.Text == "getguns" then
-- Weapon Spawner
local weapons = {"Remington 870", "M9", "AK-47"}
for i, v in pairs(game.Workspace["Prison_ITEMS"].giver:GetChildren()) do
for j, k in pairs(weapons) do
if v.Name == k then
v:MoveTo(game.Players.LocalPlayer.Character.Torso.Position)
end
end
end
end
end)