Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --Prison Life GUI
- -- Instances:
- local ScreenGui = Instance.new("ScreenGui")
- local OpenAndClose = Instance.new("TextButton")
- local Box = Instance.new("Frame")
- local TextLabel = Instance.new("TextLabel")
- local Police = Instance.new("TextButton")
- local Prisoner = Instance.new("TextButton")
- local Btools = Instance.new("TextButton")
- local RemoveDoors = Instance.new("TextButton")
- local Weapons = Instance.new("TextButton")
- local Neutral = Instance.new("TextButton")
- local Sedan = Instance.new("TextButton")
- local Squad = Instance.new("TextButton")
- local IY = Instance.new("TextButton")
- local BracksCMDS = Instance.new("TextButton")
- local OP_Shotgun = Instance.new("TextButton")
- local OP_Taser = Instance.new("TextButton")
- local Frame = Instance.new("Frame")
- local Frame_2 = Instance.new("Frame")
- local Frame_3 = Instance.new("Frame")
- --Properties:
- ScreenGui.Parent = game.Players.LocalPlayer:WaitForChild("PlayerGui")
- OpenAndClose.Name = "OpenAndClose"
- OpenAndClose.Parent = ScreenGui
- OpenAndClose.BackgroundColor3 = Color3.new(0, 0, 0)
- OpenAndClose.BorderSizePixel = 2
- OpenAndClose.Position = UDim2.new(0.0148221347, 0, 0.858757138, 0)
- OpenAndClose.Size = UDim2.new(0, 90, 0, 50)
- OpenAndClose.Font = Enum.Font.SciFi
- OpenAndClose.Text = "Open"
- OpenAndClose.TextColor3 = Color3.new(1, 0, 1)
- OpenAndClose.TextSize = 30
- Box.Name = "Box"
- Box.Parent = ScreenGui
- Box.BackgroundColor3 = Color3.new(0.117647, 0.117647, 0.117647)
- Box.BorderSizePixel = 2
- Box.Position = UDim2.new(0.0316205546, 0, 0.165725052, 0)
- Box.Size = UDim2.new(0, 251, 0, 354)
- Box.Visible = false
- Box.Active = true
- Box.Draggable = true
- TextLabel.Parent = Box
- TextLabel.BackgroundColor3 = Color3.new(0.0588235, 0.0588235, 0.0588235)
- TextLabel.BorderSizePixel = 3
- TextLabel.Size = UDim2.new(0, 251, 0, 33)
- TextLabel.Font = Enum.Font.SciFi
- TextLabel.Text = "Prison Life GUI"
- TextLabel.TextColor3 = Color3.new(1, 0, 1)
- TextLabel.TextSize = 25
- Police.Name = "Police"
- Police.Parent = Box
- Police.BackgroundColor3 = Color3.new(0.0588235, 0.0588235, 0.0588235)
- Police.BorderSizePixel = 2
- Police.Position = UDim2.new(0.0557768941, 0, 0.146892667, 0)
- Police.Size = UDim2.new(0, 59, 0, 50)
- Police.Font = Enum.Font.SciFi
- Police.Text = "Police"
- Police.TextColor3 = Color3.new(0, 0, 1)
- Police.TextSize = 24
- Police.MouseButton1Down:connect(function()
- Workspace.Remote.TeamEvent:FireServer("Bright blue")
- end)
- Prisoner.Name = "Prisoner"
- Prisoner.Parent = Box
- Prisoner.BackgroundColor3 = Color3.new(0.0588235, 0.0588235, 0.0588235)
- Prisoner.BorderSizePixel = 2
- Prisoner.Position = UDim2.new(0.382470131, 0, 0.146892667, 0)
- Prisoner.Size = UDim2.new(0, 59, 0, 50)
- Prisoner.Font = Enum.Font.SciFi
- Prisoner.Text = "Prisoner"
- Prisoner.TextColor3 = Color3.new(1, 0.635294, 0)
- Prisoner.TextSize = 14
- Prisoner.MouseButton1Down:connect(function()
- Workspace.Remote.TeamEvent:FireServer("Bright orange")
- end)
- Btools.Name = "Btools"
- Btools.Parent = Box
- Btools.BackgroundColor3 = Color3.new(0.0588235, 0.0588235, 0.0588235)
- Btools.BorderSizePixel = 2
- Btools.Position = UDim2.new(0.0557769537, 0, 0.355932236, 0)
- Btools.Size = UDim2.new(0, 59, 0, 50)
- Btools.Font = Enum.Font.SciFi
- Btools.Text = "Btools"
- Btools.TextColor3 = Color3.new(1, 0, 1)
- Btools.TextSize = 22
- Btools.MouseButton1Down:connect(function()
- local tool1 = Instance.new("HopperBin",game.Players.LocalPlayer.Backpack)
- local tool2 = Instance.new("HopperBin",game.Players.LocalPlayer.Backpack)
- local tool3 = Instance.new("HopperBin",game.Players.LocalPlayer.Backpack)
- local tool4 = Instance.new("HopperBin",game.Players.LocalPlayer.Backpack)
- local tool5 = Instance.new("HopperBin",game.Players.LocalPlayer.Backpack)
- tool1.BinType = "Clone"
- tool2.BinType = "GameTool"
- tool3.BinType = "Hammer"
- tool4.BinType = "Script"
- tool5.BinType = "Grab"
- end)
- RemoveDoors.Name = "RemoveDoors"
- RemoveDoors.Parent = Box
- RemoveDoors.BackgroundColor3 = Color3.new(0.0588235, 0.0588235, 0.0588235)
- RemoveDoors.BorderSizePixel = 2
- RemoveDoors.Position = UDim2.new(0.382470131, 0, 0.355932236, 0)
- RemoveDoors.Size = UDim2.new(0, 59, 0, 50)
- RemoveDoors.Font = Enum.Font.SciFi
- RemoveDoors.Text = "R Doors"
- RemoveDoors.TextColor3 = Color3.new(1, 0, 1)
- RemoveDoors.TextSize = 17
- RemoveDoors.MouseButton1Down:connect(function()
- game.Workspace.Doors:Destroy()
- end)
- Weapons.Name = "Weapons"
- Weapons.Parent = Box
- Weapons.BackgroundColor3 = Color3.new(0.0588235, 0.0588235, 0.0588235)
- Weapons.BorderSizePixel = 2
- Weapons.Position = UDim2.new(0.713147402, 0, 0.355932236, 0)
- Weapons.Size = UDim2.new(0, 59, 0, 50)
- Weapons.Font = Enum.Font.SciFi
- Weapons.Text = "Weapons"
- Weapons.TextColor3 = Color3.new(1, 0, 1)
- Weapons.TextSize = 14
- Weapons.MouseButton1Down:connect(function()
- -- Weapon Spawner
- 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
- end)
- Neutral.Name = "Neutral"
- Neutral.Parent = Box
- Neutral.BackgroundColor3 = Color3.new(0.0588235, 0.0588235, 0.0588235)
- Neutral.BorderSizePixel = 2
- Neutral.Position = UDim2.new(0.713147402, 0, 0.146892667, 0)
- Neutral.Size = UDim2.new(0, 59, 0, 50)
- Neutral.Font = Enum.Font.SciFi
- Neutral.Text = "Neutral"
- Neutral.TextColor3 = Color3.new(0.670588, 0.670588, 0.670588)
- Neutral.TextSize = 18
- Neutral.MouseButton1Down:connect(function()
- Workspace.Remote.TeamEvent:FireServer("Medium stone grey")
- end)
- Sedan.Name = "Sedan"
- Sedan.Parent = Box
- Sedan.BackgroundColor3 = Color3.new(0.0588235, 0.0588235, 0.0588235)
- Sedan.BorderSizePixel = 2
- Sedan.Position = UDim2.new(0.0557768941, 0, 0.562146902, 0)
- Sedan.Size = UDim2.new(0, 59, 0, 50)
- Sedan.Font = Enum.Font.SciFi
- Sedan.Text = "Sedan"
- Sedan.TextColor3 = Color3.new(0.333333, 1, 0)
- Sedan.TextSize = 22
- Sedan.MouseButton1Down:connect(function()
- -- Sedan
- local Cars = {"Sedan"}
- for i, v in pairs(game.Workspace["CarContainer"]:GetChildren()) do
- for j, k in pairs(Cars) do
- if v.Name == k then
- v:MoveTo(game.Players.LocalPlayer.Character.Torso.Position)
- wait(.1)
- v.Parent = game.Workspace
- end
- end
- end
- end)
- Squad.Name = "Squad"
- Squad.Parent = Box
- Squad.BackgroundColor3 = Color3.new(0.0588235, 0.0588235, 0.0588235)
- Squad.BorderSizePixel = 2
- Squad.Position = UDim2.new(0.382470131, 0, 0.562146902, 0)
- Squad.Size = UDim2.new(0, 59, 0, 50)
- Squad.Font = Enum.Font.SciFi
- Squad.Text = "Squad"
- Squad.TextColor3 = Color3.new(0, 0, 1)
- Squad.TextSize = 23
- Squad.MouseButton1Down:connect(function()
- -- Squad
- local Cars = {"Squad"}
- for i, v in pairs(game.Workspace["CarContainer"]:GetChildren()) do
- for j, k in pairs(Cars) do
- if v.Name == k then
- v:MoveTo(game.Players.LocalPlayer.Character.Torso.Position)
- wait(.1)
- v.Parent = game.Workspace
- end
- end
- end
- end)
- IY.Name = "IY"
- IY.Parent = Box
- IY.BackgroundColor3 = Color3.new(0.0588235, 0.0588235, 0.0588235)
- IY.BorderSizePixel = 2
- IY.Position = UDim2.new(0.713147402, 0, 0.562146902, 0)
- IY.Size = UDim2.new(0, 59, 0, 50)
- IY.Font = Enum.Font.SciFi
- IY.Text = "IY"
- IY.TextColor3 = Color3.new(1, 0, 0)
- IY.TextSize = 50
- IY.MouseButton1Down:connect(function()
- loadstring(game:HttpGet(('https://pastebin.com/raw/MjBzRjmT'),true))()
- end)
- BracksCMDS.Name = "BracksCMDS"
- BracksCMDS.Parent = Box
- BracksCMDS.BackgroundColor3 = Color3.new(0.0588235, 0.0588235, 0.0588235)
- BracksCMDS.BorderSizePixel = 2
- BracksCMDS.Position = UDim2.new(0.0557768941, 0, 0.779661059, 0)
- BracksCMDS.Size = UDim2.new(0, 59, 0, 50)
- BracksCMDS.Font = Enum.Font.SciFi
- BracksCMDS.Text = "BracksCMDS"
- BracksCMDS.TextColor3 = Color3.new(0.333333, 1, 0)
- BracksCMDS.TextSize = 10
- BracksCMDS.MouseButton1Down:connect(function()
- --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()
- end)
- OP_Shotgun.Name = "OP_Shotgun"
- OP_Shotgun.Parent = Box
- OP_Shotgun.BackgroundColor3 = Color3.new(0.0588235, 0.0588235, 0.0588235)
- OP_Shotgun.BorderSizePixel = 2
- OP_Shotgun.Position = UDim2.new(0.382470131, 0, 0.779661059, 0)
- OP_Shotgun.Size = UDim2.new(0, 59, 0, 50)
- OP_Shotgun.Font = Enum.Font.SciFi
- OP_Shotgun.Text = "OP_Shotgun"
- OP_Shotgun.TextColor3 = Color3.new(1, 1, 0)
- OP_Shotgun.TextSize = 11
- OP_Shotgun.MouseButton1Down:connect(function()
- local Player = game.Players.LocalPlayer.Name
- local Gun = "Remington 870" -- < -- Gun Name
- local Run = game:GetService("RunService")
- Gun = game.Players[Player].Character[Gun]
- local Mouse = game.Players.LocalPlayer:GetMouse()
- local Down = false
- local Sound = Gun.Handle.FireSound
- function CreateRay(Point_A, Point_B)
- local Ray = Ray.new(Point_A, (Point_B - Point_A).Unit * (2 ^ 31 - 1))
- local Part, Pos = workspace:FindPartOnRay(Ray, game.Players.LocalPlayer.Character)
- local Dist = (Point_A - Pos).Magnitude
- local CFrame = CFrame.new(Point_A, Pos) * CFrame.new(0, 0, -Dist / 2)
- return CFrame, Dist, Ray
- end
- function FireLaser(target)
- coroutine.resume(coroutine.create(function()
- local C, D, R = CreateRay(Gun.Muzzle.CFrame.p, target.CFrame.p)
- local Bullet = Instance.new("Part", Gun)
- Bullet.BrickColor = BrickColor.Yellow()
- Bullet.Material = "Neon"
- Bullet.Anchored = true
- Bullet.CanCollide = false
- Bullet.Size = Vector3.new(0.2, 0.2, D)
- Bullet.CFrame = C
- local bulletTable = {}
- table.insert(bulletTable, {
- Hit = target,
- Distance = D,
- Cframe = C,
- RayObject = R
- })
- game.ReplicatedStorage.ShootEvent:FireServer(bulletTable, Gun)
- local C = Sound:Clone()
- C.Parent = Gun
- C:Play()
- wait(0.05)
- Bullet:Remove()
- end))
- end
- Mouse.Button1Down:Connect(function()
- Down = true
- end)
- Mouse.Button1Up:Connect(function()
- Down = false
- end)
- while Run.Stepped:wait() do
- if Down == true then
- game.ReplicatedStorage.SoundEvent:FireServer(Sound, Gun)
- FireLaser(Mouse.Target)
- end
- end
- end)
- OP_Taser.Name = "OP_Taser"
- OP_Taser.Parent = Box
- OP_Taser.BackgroundColor3 = Color3.new(0.0588235, 0.0588235, 0.0588235)
- OP_Taser.BorderSizePixel = 2
- OP_Taser.Position = UDim2.new(0.713147402, 0, 0.779661059, 0)
- OP_Taser.Size = UDim2.new(0, 59, 0, 50)
- OP_Taser.Font = Enum.Font.SciFi
- OP_Taser.Text = "OP_Taser"
- OP_Taser.TextColor3 = Color3.new(1, 1, 0)
- OP_Taser.TextSize = 13
- OP_Taser.MouseButton1Down:connect(function()
- local Player = game.Players.LocalPlayer.Name
- local Gun = "Taser" -- < -- Gun Name
- local Run = game:GetService("RunService")
- Gun = game.Players[Player].Character[Gun]
- local Mouse = game.Players.LocalPlayer:GetMouse()
- local Down = false
- local Sound = Gun.Handle.FireSound
- function CreateRay(Point_A, Point_B)
- local Ray = Ray.new(Point_A, (Point_B - Point_A).Unit * (2 ^ 31 - 1))
- local Part, Pos = workspace:FindPartOnRay(Ray, game.Players.LocalPlayer.Character)
- local Dist = (Point_A - Pos).Magnitude
- local CFrame = CFrame.new(Point_A, Pos) * CFrame.new(0, 0, -Dist / 2)
- return CFrame, Dist, Ray
- end
- function FireLaser(target)
- coroutine.resume(coroutine.create(function()
- local C, D, R = CreateRay(Gun.Muzzle.CFrame.p, target.CFrame.p)
- local Bullet = Instance.new("Part", Gun)
- Bullet.BrickColor = BrickColor.Yellow()
- Bullet.Material = "Neon"
- Bullet.Anchored = true
- Bullet.CanCollide = false
- Bullet.Size = Vector3.new(0.2, 0.2, D)
- Bullet.CFrame = C
- local bulletTable = {}
- table.insert(bulletTable, {
- Hit = target,
- Distance = D,
- Cframe = C,
- RayObject = R
- })
- game.ReplicatedStorage.ShootEvent:FireServer(bulletTable, Gun)
- local C = Sound:Clone()
- C.Parent = Gun
- C:Play()
- wait(0.05)
- Bullet:Remove()
- end))
- end
- Mouse.Button1Down:Connect(function()
- Down = true
- end)
- Mouse.Button1Up:Connect(function()
- Down = false
- end)
- while Run.Stepped:wait() do
- if Down == true then
- game.ReplicatedStorage.SoundEvent:FireServer(Sound, Gun)
- FireLaser(Mouse.Target)
- end
- end
- end)
- Frame.Parent = Box
- Frame.BackgroundColor3 = Color3.new(0.0588235, 0.0588235, 0.0588235)
- Frame.Position = UDim2.new(0, 0, 0.310734451, 0)
- Frame.Size = UDim2.new(0, 251, 0, 6)
- Frame_2.Parent = Frame
- Frame_2.BackgroundColor3 = Color3.new(0.0588235, 0.0588235, 0.0588235)
- Frame_2.Position = UDim2.new(0, 0, 12.3107347, 0)
- Frame_2.Size = UDim2.new(0, 251, 0, 6)
- Frame_3.Parent = Frame
- Frame_3.BackgroundColor3 = Color3.new(0.0588235, 0.0588235, 0.0588235)
- Frame_3.Position = UDim2.new(0, 0, 25.1440678, 0)
- Frame_3.Size = UDim2.new(0, 251, 0, 6)
- -- Scripts:
- function SCRIPT_IVBF76_FAKESCRIPT() -- ScreenGui.LocalScript
- getfenv().script = Instance.new('LocalScript', ScreenGui)
- Box = script.Parent.Box
- Button = script.Parent.OpenAndClose
- Open = false
- Button.MouseButton1Down : connect (function (open)
- if Open == false then
- Button.Text = "Close"
- Box.Visible = true
- Open = true
- elseif Open == true then
- Button.Text = "Open"
- Box.Visible = false
- Open = false
- end
- end)
- end
- coroutine.resume(coroutine.create(SCRIPT_IVBF76_FAKESCRIPT))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement