Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --PRISON LIFE ARREST SCRIPT
- print("BRACK'S PRISON LIFE COMMANDS")
- print("MADE BY BRACK4712")
- local teleporttolastpost = true --After you arrest, do you want to go to your previous position?
- --[[
- COMMANDS
- /e arrest PLR :: MUST BE COP, TARGET MUST BE BREAKING RULES :: /e arrest brac
- /e tools :: SENDS ALL TOOLS FROM ARMORY TO LOCALPLAYER :: /e tools
- /e removedoors :: REMOVES ALL THE COP DOORS :: /e removedoors
- /e escape :: MAKES YOU ESCAPE IF YOU ARE A PRISONER :: /e escape
- --]]
- --- SCRIPT BEGINS HERE ---
- local commands = {
- ["/e arrest PLR"] = "TARGET MUST BE BREAKING RULES",
- ["/e tools"] = "SENDS ALL TOOLS FROM ARMORY TO LOCALPLAYER",
- ["/e removedoors"] = "REMOVES ALL COP DOORS",
- ["/e escape"] = "MAKES LOCALPLAYER ESCAPE IF YOU ARE A PRISONER",
- ["/e btools"] = "GIVES BTOOLS TO LOCALPLAYER",
- }
- local function FindPlayer(name)
- name = name:lower()
- for k,v in pairs(game:GetService("Players"):GetPlayers()) do
- if v.Name:lower():sub(1,#name) == name then
- return v
- end
- end
- end
- game.Players.LocalPlayer.Chatted:connect(function(msg)
- if msg:sub(1,10) == "/e arrest " then
- local backupcframe = game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame
- local player = FindPlayer(msg:sub(11))
- game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = player.Character.HumanoidRootPart.CFrame
- wait(0.1)
- game.Workspace.Remote.arrest:InvokeServer(player.Character["Left Leg"])
- wait(0.5)
- if teleporttolastpost == true then
- game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = backupcframe
- else
- end
- local hint = Instance.new("Hint",game.Players.LocalPlayer.PlayerGui)
- hint.Text = "[ BRACK'S PRISON LIFE COMMANDS ]: SUCCESSFULLY ARRESTED "..player.Name
- hint.Name = game.JobId
- wait(3)
- hint:Destroy()
- elseif msg:sub(1, 8) == "/e tools" then
- local weapons = {"Remington 870", "M9", "AK-47", "M4A1", "Riot Shield"}
- 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
- local hint = Instance.new("Hint",game.Players.LocalPlayer.PlayerGui)
- hint.Text = "[ BRACK'S PRISON LIFE COMMANDS ]: SUCCESSFULLY SENT TOOLS TO LOCALPLAYER"
- hint.Name = game.JobId
- wait(3)
- hint:Destroy()
- elseif msg:sub(1, 14) == "/e removedoors" then
- game.Workspace.Doors:Destroy()
- local hint = Instance.new("Hint",game.Players.LocalPlayer.PlayerGui)
- hint.Text = "[ BRACK'S PRISON LIFE COMMANDS ]: SUCCESSFULLY REMOVED COP DOORS"
- hint.Name = game.JobId
- wait(3)
- hint:Destroy()
- elseif msg:sub(1, 9) == "/e escape" then
- game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = CFrame.new(283, 72, 2213)
- local hint = Instance.new("Hint",game.Players.LocalPlayer.PlayerGui)
- hint.Text = "[ BRACK'S PRISON LIFE COMMANDS ]: SUCCESSFULLY ESCAPED LOCALPLAYER"
- hint.Name = game.JobId
- wait(3)
- hint:Destroy()
- elseif msg:sub(1, 9) == "/e btools" then
- Instance.new('HopperBin', game.Players.LocalPlayer.Backpack).BinType = 2
- Instance.new('HopperBin', game.Players.LocalPlayer.Backpack).BinType = 3
- Instance.new('HopperBin', game.Players.LocalPlayer.Backpack).BinType = 4
- loadstring(game:GetObjects('rbxassetid://552440069')[1].Source)()
- end
- end)
- local msg = Instance.new("Message",game.CoreGui)
- msg.Name = game.JobId
- msg.Text = "[ BRACK'S PL COMMANDS LOADED! ]"
- wait(5)
- msg:Destroy()
Add Comment
Please, Sign In to add comment