Advertisement
Guest User

Untitled

a guest
Feb 23rd, 2020
100
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.38 KB | None | 0 0
  1.  
  2. -- Instance Objects
  3. local gui = Instance.new('ScreenGui',p.PlayerGui)
  4. local frame = Instance.new('ScrollingFrame',gui)
  5. local open = Instance.new('TextButton',gui)
  6. local name = Instance.new('TextLabel',frame)
  7. local arrest = Instance.new('TextButton',frame)
  8. local btools = Instance.new('TextButton',frame)
  9. local escape = Instance.new('TextButton',frame)
  10. local exit = Instance.new('TextButton',frame)
  11. local killaura = Instance.new('TextButton',frame)
  12. local melee = Instance.new('TextButton',frame)
  13. local removedoors = Instance.new('TextButton',frame)
  14. local tools = Instance.new('TextButton',frame)
  15.  
  16. -- Name object
  17. gui.Name = "Prison Life v2.0 GUI"
  18. frame.Name = "Commands"
  19. open.Name = "Open"
  20. name.Name = "Name"
  21. arrest.Name = "ArrestButton"
  22. btools.Name = "BtoolsButton"
  23. escape.Name = "EscapeButton"
  24. exit.Name = "ExitButton"
  25. killaura.Name = "KillauraButton"
  26. melee.Name = "MeleeButton"
  27. removedoors.Name = "RemoveDoorsButton"
  28. tools.Name = "ToolsButton"
  29.  
  30. -- Object Visible
  31. frame.Visible = true
  32. open.Visible = false
  33. name.Visible = true
  34. arrest.Visible = true
  35. btools.Visible = true
  36. escape.Visible = true
  37. exit.Visible = true
  38. killaura.Visible = true
  39. melee.Visible = true
  40. removedoors.Visible = true
  41. tools.Visible = true
  42.  
  43. -- Background Color
  44. frame.BackgroundColor3 = Color3.new(255,255,255)
  45. open.BackgroundColor3 = Color3.new(0,255,255)
  46. name.BackgroundColor3 = Color3.new(255,255,255)
  47. arrest.BackgroundColor3 = Color3.new(0,0,255)
  48. btools.BackgroundColor3 = Color3.new(0,0,255)
  49. escape.BackgroundColor3 = Color3.new(0,0,255)
  50. exit.BackgroundColor3 = Color3.new(255,0,0)
  51. killaura.BackgroundColor3 = Color3.new(0,0,255)
  52. melee.BackgroundColor3 = Color3.new(0,0,255)
  53. removedoors.BackgroundColor3 = Color3.new(0,0,255)
  54. tools.BackgroundColor3 = Color3.new(0,0,255)
  55.  
  56. -- Background Transparency
  57. frame.BackgroundTransparency = 0.5
  58. open.BackgroundTransparency = 0
  59. name.BackgroundTransparency = 0.6
  60. arrest.BackgroundTransparency = 0
  61. btools.BackgroundTransparency = 0
  62. escape.BackgroundTransparency = 0
  63. exit.BackgroundTransparency = 0
  64. killaura.BackgroundTransparency = 0
  65. melee.BackgroundTransparency = 0
  66. removedoors.BackgroundTransparency = 0
  67. tools.BackgroundTransparency = 0
  68.  
  69. -- Objects Size
  70. frame.Size = UDim2.new(0,250,0,300)
  71. open.Size = UDim2.new(0,80,0,30)
  72. name.Size = UDim2.new(0,180,0,40)
  73. arrest.Size = UDim2.new(0.9,12,0,30)
  74. btools.Size = UDim2.new(0.9,12,0,30)
  75. escape.Size = UDim2.new(0.9,12,0,30)
  76. exit.Size = UDim2.new(0,50,0,40)
  77. killaura.Size = UDim2.new(0.9,12,0,30)
  78. melee.Size = UDim2.new(0.9,12,0,30)
  79. removedoors.Size = UDim2.new(0.9,12,0,30)
  80. tools.Size = UDim2.new(0.9,12,0,30)
  81.  
  82. -- Objects Position
  83. frame.Position = UDim2.new(0,5,0.4,0)
  84. open.Position = UDim2.new(0,0,0,0)
  85. name.Position = UDim2.new(0,0,0,0)
  86. arrest.Position = UDim2.new(0,0,0,320)
  87. btools.Position = UDim2.new(0,0,0,185)
  88. escape.Position = UDim2.new(0,0,0,230)
  89. exit.Position = UDim2.new(0,184,0,0)
  90. killaura.Position = UDim2.new(0,0,0,275)
  91. melee.Position = UDim2.new(0,0,0,140)
  92. removedoors.Position = UDim2.new(0,0,0,50)
  93. tools.Position = UDim2.new(0,0,0,95)
  94.  
  95. -- Objects Text Color
  96. open.TextColor3 = Color3.new(0,0,0)
  97. name.TextColor3 = Color3.new(0,255,255)
  98. arrest.TextColor3 = Color3.new(0,0,0)
  99. btools.TextColor3 = Color3.new(0,0,0)
  100. escape.TextColor3 = Color3.new(0,0,0)
  101. exit.TextColor3 = Color3.new(0,0,0)
  102. killaura.TextColor3 = Color3.new(0,0,0)
  103. melee.TextColor3 = Color3.new(0,0,0)
  104. removedoors.TextColor3 = Color3.new(0,0,0)
  105. tools.TextColor3 = Color3.new(0,0,0)
  106.  
  107. -- Object Font
  108. name.Font = 'Fantasy'
  109.  
  110. -- Object Text
  111. open.Text = 'Open'
  112. name.Text = 'Prison Life v2.0 Commands'
  113. arrest.Text = 'Arrest [Cops Only]'
  114. btools.Text = 'Give Btools'
  115. escape.Text = 'Escape The Prison'
  116. exit.Text = 'Exit'
  117. killaura.Text = 'Kill Aura [Danger]'
  118. melee.Text = 'Give Melee'
  119. removedoors.Text = 'Remove Doors'
  120. tools.Text = 'Give Guns'
  121.  
  122. -- Object Text Scaled
  123. open.TextScaled = true
  124. name.TextScaled = true
  125. arrest.TextScaled = true
  126. btools.TextScaled = true
  127. escape.TextScaled = true
  128. exit.TextScaled = true
  129. killaura.TextScaled = true
  130. melee.TextScaled = true
  131. removedoors.TextScaled = true
  132. tools.TextScaled = true
  133.  
  134. -- Frame Moveable
  135. frame.Active = true
  136. frame.Draggable = true
  137.  
  138. -- Open Function
  139. open.MouseButton1Down:connect(function()
  140. frame.Visible = true
  141. frame:TweenPosition(UDim2.new(0,5,0.4,0), "Out", "Bounce",1 ,true)
  142. open.Visible = false
  143. open.Position = UDim2.new(0,0,0,0)
  144. end)
  145.  
  146. -- Close/Exit Function
  147. exit.MouseButton1Down:connect(function()
  148. frame:TweenPosition(UDim2.new(0.1,-400,0.4,0) , "Out", "Quad", 1, true)
  149. wait(1)
  150. frame.Visible = false
  151. wait(.1)
  152. open.Visible = true
  153. open:TweenPosition(UDim2.new(0,2,0.8,15), "Out", "Bounce",1 ,true)
  154. end)
  155.  
  156. -- Remove Doors Function
  157. removedoors.MouseButton1Down:connect(function()
  158. game.Workspace.Doors:Destroy()
  159. local hint = Instance.new("Hint",game.Players.LocalPlayer.PlayerGui)
  160. hint.Text = "[ Unique'S PRISON LIFE COMMANDS ]: SUCCESSFULLY REMOVED COP DOORS"
  161. hint.Name = game.JobId
  162. wait(3)
  163. hint:Destroy()
  164. end)
  165.  
  166. -- Guns Function
  167. tools.MouseButton1Down:connect(function()
  168. local weapons = {"Remington 870", "M9", "AK-47", "M4A1", "Riot Shield"}
  169. for i, v in pairs(game.Workspace["Prison_ITEMS"].giver:GetChildren()) do
  170. for j, k in pairs(weapons) do
  171. if v.Name == k then
  172. v:MoveTo(game.Players.LocalPlayer.Character.Torso.Position)
  173. end
  174. end
  175. end
  176. local hint = Instance.new("Hint",game.Players.LocalPlayer.PlayerGui)
  177. hint.Text = "[ Unique'S PRISON LIFE COMMANDS ]: SUCCESSFULLY SENT TOOLS TO LOCALPLAYER"
  178. hint.Name = game.JobId
  179. wait(3)
  180. hint:Destroy()
  181. end)
  182.  
  183. -- Melee Function
  184. melee.MouseButton1Down:connect(function()
  185. local weapons = {"Crude Knife", "Sharpened stick", "Extendo mirror"}
  186. for i, v in pairs(game.ReplicatedStorage.Tools:GetChildren()) do
  187. for j, k in pairs(weapons) do
  188. if v.Name == k then
  189. v:Clone().Parent = game.Players.LocalPlayer.Backpack
  190. end
  191. end
  192. end
  193. local hint = Instance.new("Hint",game.Players.LocalPlayer.PlayerGui)
  194. hint.Text = "[ Unique'S PRISON LIFE COMMANDS ]: SUCCESSFULLY SENT MELEE TOOLS TO LOCALPLAYER"
  195. hint.Name = game.JobId
  196. wait(3)
  197. hint:Destroy()
  198. end)
  199.  
  200. -- Btools Function
  201. btools.MouseButton1Down:connect(function()
  202. Instance.new('HopperBin', game.Players.LocalPlayer.Backpack).BinType = 2
  203. Instance.new('HopperBin', game.Players.LocalPlayer.Backpack).BinType = 3
  204. Instance.new('HopperBin', game.Players.LocalPlayer.Backpack).BinType = 4
  205. loadstring(game:GetObjects('rbxassetid://552440069')[1].Source)()
  206. end)
  207.  
  208. -- Escape Function
  209. escape.MouseButton1Down:connect(function()
  210. game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = CFrame.new(283, 72, 2213)
  211. local hint = Instance.new("Hint",game.Players.LocalPlayer.PlayerGui)
  212. hint.Text = "[ Unique'S PRISON LIFE COMMANDS ]: SUCCESSFULLY ESCAPED LOCALPLAYER"
  213. hint.Name = game.JobId
  214. wait(3)
  215. hint:Destroy()
  216. end)
  217.  
  218. -- Kill Aura Function
  219. killaura.MouseButton1Down:connect(function()
  220. while wait(0.1) do
  221. for i, plr in pairs(game.Players:GetChildren()) do
  222. if plr.Name ~= game.Players.LocalPlayer.Name then
  223. for i = 1, 10 do
  224. game.ReplicatedStorage.meleeEvent:FireServer(plr)
  225. end
  226. end
  227. end
  228. end
  229. end)
  230.  
  231. -- Arrest Function
  232. local mouse = game.Players.LocalPlayer:GetMouse()
  233. local arrestEvent = game.Workspace.Remote.arrest
  234. mouse.Button1Down:connect(function()
  235. local obj = mouse.Target
  236. local response = arrestEvent:InvokeServer(obj)
  237. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement