Advertisement
martinnaj

fgsdgfgsdfg

Jan 10th, 2019
98
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.45 KB | None | 0 0
  1. wait(1)\n\n-- Local Player\nlocal p = game.Players.LocalPlayer\n\n-- Instance Objects\nlocal gui = Instance.new('ScreenGui',p.PlayerGui)\nlocal frame = Instance.new('ScrollingFrame',gui)\nlocal open = Instance.new('TextButton',gui)\nlocal name = Instance.new('TextLabel',frame)\nlocal arrest = Instance.new('TextButton',frame)\nlocal btools = Instance.new('TextButton',frame)\nlocal escape = Instance.new('TextButton',frame)\nlocal exit = Instance.new('TextButton',frame)\nlocal killaura = Instance.new('TextButton',frame)\nlocal melee = Instance.new('TextButton',frame)\nlocal removedoors = Instance.new('TextButton',frame)\nlocal tools = Instance.new('TextButton',frame)\n\n-- Name object\ngui.Name = 'Prison Life v2.0 GUI'\nframe.Name = 'Commands'\nopen.Name = 'Open'\nname.Name = 'Name'\narrest.Name = 'ArrestButton'\nbtools.Name = 'BtoolsButton'\nescape.Name = 'EscapeButton'\nexit.Name = 'ExitButton'\nkillaura.Name = 'KillauraButton'\nmelee.Name = 'MeleeButton'\nremovedoors.Name = 'RemoveDoorsButton'\ntools.Name = 'ToolsButton'\n\n-- Object Visible\nframe.Visible = true\nopen.Visible = false\nname.Visible = true\narrest.Visible = true\nbtools.Visible = true\nescape.Visible = true\nexit.Visible = true\nkillaura.Visible = true\nmelee.Visible = true\nremovedoors.Visible = true\ntools.Visible = true\n\n-- Background Color\nframe.BackgroundColor3 = Color3.new(255,255,255)\nopen.BackgroundColor3 = Color3.new(0,255,255)\nname.BackgroundColor3 = Color3.new(255,255,255)\narrest.BackgroundColor3 = Color3.new(0,0,255)\nbtools.BackgroundColor3 = Color3.new(0,0,255)\nescape.BackgroundColor3 = Color3.new(0,0,255)\nexit.BackgroundColor3 = Color3.new(255,0,0)\nkillaura.BackgroundColor3 = Color3.new(0,0,255)\nmelee.BackgroundColor3 = Color3.new(0,0,255)\nremovedoors.BackgroundColor3 = Color3.new(0,0,255)\ntools.BackgroundColor3 = Color3.new(0,0,255)\n\n-- Background Transparency\nframe.BackgroundTransparency = 0.5\nopen.BackgroundTransparency = 0\nname.BackgroundTransparency = 0.6\narrest.BackgroundTransparency = 0\nbtools.BackgroundTransparency = 0\nescape.BackgroundTransparency = 0\nexit.BackgroundTransparency = 0\nkillaura.BackgroundTransparency = 0\nmelee.BackgroundTransparency = 0\nremovedoors.BackgroundTransparency = 0\ntools.BackgroundTransparency = 0\n\n-- Objects Size\nframe.Size = UDim2.new(0,250,0,300)\nopen.Size = UDim2.new(0,80,0,30)\nname.Size = UDim2.new(0,180,0,40)\narrest.Size = UDim2.new(0.9,12,0,30)\nbtools.Size = UDim2.new(0.9,12,0,30)\nescape.Size = UDim2.new(0.9,12,0,30)\nexit.Size = UDim2.new(0,50,0,40)\nkillaura.Size = UDim2.new(0.9,12,0,30)\nmelee.Size = UDim2.new(0.9,12,0,30)\nremovedoors.Size = UDim2.new(0.9,12,0,30)\ntools.Size = UDim2.new(0.9,12,0,30)\n\n-- Objects Position\nframe.Position = UDim2.new(0,5,0.4,0)\nopen.Position = UDim2.new(0,0,0,0)\nname.Position = UDim2.new(0,0,0,0)\narrest.Position = UDim2.new(0,0,0,320)\nbtools.Position = UDim2.new(0,0,0,185)\nescape.Position = UDim2.new(0,0,0,230)\nexit.Position = UDim2.new(0,184,0,0)\nkillaura.Position = UDim2.new(0,0,0,275)\nmelee.Position = UDim2.new(0,0,0,140)\nremovedoors.Position = UDim2.new(0,0,0,50)\ntools.Position = UDim2.new(0,0,0,95)\n\n-- Objects Text Color\nopen.TextColor3 = Color3.new(0,0,0)\nname.TextColor3 = Color3.new(0,255,255)\narrest.TextColor3 = Color3.new(0,0,0)\nbtools.TextColor3 = Color3.new(0,0,0)\nescape.TextColor3 = Color3.new(0,0,0)\nexit.TextColor3 = Color3.new(0,0,0)\nkillaura.TextColor3 = Color3.new(0,0,0)\nmelee.TextColor3 = Color3.new(0,0,0)\nremovedoors.TextColor3 = Color3.new(0,0,0)\ntools.TextColor3 = Color3.new(0,0,0)\n\n-- Object Font\nname.Font = 'Fantasy'\n\n-- Object Text\nopen.Text = 'Open'\nname.Text = 'Prison Life v2.0 Commands'\narrest.Text = 'Arrest [Cops Only]'\nbtools.Text = 'Give Btools'\nescape.Text = 'Escape The Prison'\nexit.Text = 'Exit'\nkillaura.Text = 'Kill Aura [Danger]'\nmelee.Text = 'Give Melee'\nremovedoors.Text = 'Remove Doors'\ntools.Text = 'Give Guns'\n\n-- Object Text Scaled\nopen.TextScaled = true\nname.TextScaled = true\narrest.TextScaled = true\nbtools.TextScaled = true\nescape.TextScaled = true\nexit.TextScaled = true\nkillaura.TextScaled = true\nmelee.TextScaled = true\nremovedoors.TextScaled = true\ntools.TextScaled = true\n\n-- Frame Moveable\nframe.Active = true\nframe.Draggable = true\n\n-- Open Function\nopen.MouseButton1Down:connect(function()\nframe.Visible = true\nframe:TweenPosition(UDim2.new(0,5,0.4,0), 'Out', 'Bounce',1 ,true)\nopen.Visible = false\nopen.Position = UDim2.new(0,0,0,0)\nend)\n\n-- Close/Exit Function\nexit.MouseButton1Down:connect(function()\nframe:TweenPosition(UDim2.new(0.1,-400,0.4,0) , 'Out', 'Quad', 1, true)\n wait(1)\nframe.Visible = false\n wait(.1)\n open.Visible = true \n open:TweenPosition(UDim2.new(0,2,0.8,15), 'Out', 'Bounce',1 ,true)\nend)\n\n-- Remove Doors Function\nremovedoors.MouseButton1Down:connect(function()\ngame.Workspace.Doors:Destroy()\n local hint = Instance.new('Hint',game.Players.LocalPlayer.PlayerGui)\n hint.Text = '[ Unique'S PRISON LIFE COMMANDS ]: SUCCESSFULLY REMOVED COP DOORS'\n hint.Name = game.JobId\n wait(3)\n hint:Destroy()\nend)\n\n-- Guns Function \ntools.MouseButton1Down:connect(function()\nlocal weapons = {'Remington 870', 'M9', 'AK-47', 'M4A1', 'Riot Shield'}\n for i, v in pairs(game.Workspace['Prison_ITEMS'].giver:GetChildren()) do\n for j, k in pairs(weapons) do\n if v.Name == k then\n v:MoveTo(game.Players.LocalPlayer.Character.Torso.Position)\n end\n end\n end\n local hint = Instance.new('Hint',game.Players.LocalPlayer.PlayerGui)\n hint.Text = '[ Unique'S PRISON LIFE COMMANDS ]: SUCCESSFULLY SENT TOOLS TO LOCALPLAYER'\n hint.Name = game.JobId\n wait(3)\n hint:Destroy()\nend)\n\n-- Melee Function\nmelee.MouseButton1Down:connect(function()\nlocal weapons = {'Crude Knife', 'Sharpened stick', 'Extendo mirror'}\n for i, v in pairs(game.ReplicatedStorage.Tools:GetChildren()) do\n for j, k in pairs(weapons) do\n if v.Name == k then\n v:Clone().Parent = game.Players.LocalPlayer.Backpack\n end\n end\n end\n local hint = Instance.new('Hint',game.Players.LocalPlayer.PlayerGui)\n hint.Text = '[ Unique'S PRISON LIFE COMMANDS ]: SUCCESSFULLY SENT MELEE TOOLS TO LOCALPLAYER'\n hint.Name = game.JobId\n wait(3)\n hint:Destroy()\nend)\n\n-- Btools Function\nbtools.MouseButton1Down:connect(function()\n Instance.new('HopperBin', game.Players.LocalPlayer.Backpack).BinType = 2\n Instance.new('HopperBin', game.Players.LocalPlayer.Backpack).BinType = 3\n Instance.new('HopperBin', game.Players.LocalPlayer.Backpack).BinType = 4\n loadstring(game:GetObjects('rbxassetid://552440069')[1].Source)()\nend)\n\n-- Escape Function\nescape.MouseButton1Down:connect(function()\ngame.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = CFrame.new(283, 72, 2213)\n local hint = Instance.new('Hint',game.Players.LocalPlayer.PlayerGui)\n hint.Text = '[ Unique'S PRISON LIFE COMMANDS ]: SUCCESSFULLY ESCAPED LOCALPLAYER'\n hint.Name = game.JobId\n wait(3)\n hint:Destroy()\nend)\n\n-- Kill Aura Function\nkillaura.MouseButton1Down:connect(function()\nwhile wait(0.1) do\n for i, plr in pairs(game.Players:GetChildren()) do\n if plr.Name ~= game.Players.LocalPlayer.Name then\n for i = 1, 10 do\n game.ReplicatedStorage.meleeEvent:FireServer(plr)\n end\n end\n end\n end\nend)\n\n-- Arrest Function\n local mouse = game.Players.LocalPlayer:GetMouse()\n local arrestEvent = game.Workspace.Remote.arrest\n mouse.Button1Down:connect(function()\n local obj = mouse.Target\n local response = arrestEvent:InvokeServer(obj)\n end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement