Advertisement
Guest User

Untitled

a guest
Feb 23rd, 2020
96
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 9.67 KB | None | 0 0
  1. local gui = Instance.new('ScreenGui',p.PlayerGui)
  2. local frame = Instance.new('ScrollingFrame',gui)
  3. local open = Instance.new('TextButton',gui)
  4. local name = Instance.new('TextLabel',frame)
  5. local arrest = Instance.new('TextButton',frame)
  6. local btools = Instance.new('TextButton',frame)
  7. local escape = Instance.new('TextButton',frame)
  8. local exit = Instance.new('TextButton',frame)
  9. local killaura = Instance.new('TextButton',frame)
  10. local melee = Instance.new('TextButton',frame)
  11. local removedoors = Instance.new('TextButton',frame)
  12. local tools = Instance.new('TextButton',frame)
  13. local speedplus = Instance.new('TextButton',frame)
  14. local speedminus = Instance.new('TextButton',frame)
  15. local jumpplus = Instance.new('TextButton',frame)
  16. local jumpminus = Instance.new('TextButton',frame)
  17. local sedan = Instance.new('TextButton',frame)
  18. local squad = Instance.new('TextButton',frame)
  19. local bypass = Instance.new('TextButton',frame)
  20. local db = Instance.new('TextButton',frame)
  21. local floor = Instance.new('TextButton',frame)
  22.  
  23. -- Name object
  24. gui.Name = "Prison Life v2.0 GUI"
  25. frame.Name = "Commands"
  26. open.Name = "Open"
  27. name.Name = "Name"
  28. arrest.Name = "ArrestButton"
  29. btools.Name = "BtoolsButton"
  30. escape.Name = "EscapeButton"
  31. exit.Name = "ExitButton"
  32. killaura.Name = "KillauraButton"
  33. melee.Name = "MeleeButton"
  34. removedoors.Name = "RemoveDoorsButton"
  35. tools.Name = "ToolsButton"
  36. speedplus.Name = "SpeedAdd"
  37. speedminus.Name = "SpeedReduce"
  38. jumpplus.Name = "JumpAdd"
  39. jumpminus.Name = "JumpReduce"
  40. sedan.Name = "SedanCar"
  41. squad.Name = "SquadCar"
  42. bypass.Name = "Bypass"
  43. db.Name = "DisableBypass"
  44. floor.Name = "Floor"
  45.  
  46. -- Object Visible
  47. frame.Visible = true
  48. open.Visible = false
  49. name.Visible = true
  50. arrest.Visible = true
  51. btools.Visible = true
  52. escape.Visible = true
  53. exit.Visible = true
  54. killaura.Visible = true
  55. melee.Visible = true
  56. removedoors.Visible = true
  57. tools.Visible = true
  58. speedplus.Visible = true
  59. speedminus.Visible = true
  60. jumpplus.Visible = true
  61. jumpminus.Visible = true
  62. sedan.Visible = true
  63. squad.Visible = true
  64. bypass.Visible = true
  65. db.Visible = true
  66. floor.Visible = true
  67.  
  68. -- Background Color
  69. frame.BackgroundColor3 = Color3.new(255,255,255)
  70. open.BackgroundColor3 = Color3.new(0,255,255)
  71. name.BackgroundColor3 = Color3.new(255,255,255)
  72. arrest.BackgroundColor3 = Color3.new(0,0,255)
  73. btools.BackgroundColor3 = Color3.new(0,0,255)
  74. escape.BackgroundColor3 = Color3.new(0,0,255)
  75. exit.BackgroundColor3 = Color3.new(255,0,0)
  76. killaura.BackgroundColor3 = Color3.new(0,0,255)
  77. melee.BackgroundColor3 = Color3.new(0,0,255)
  78. removedoors.BackgroundColor3 = Color3.new(0,0,255)
  79. tools.BackgroundColor3 = Color3.new(0,0,255)
  80. speedplus.BackgroundColor3 = Color3.new(0,0,255)
  81. speedminus.BackgroundColor3 = Color3.new(0,0,255)
  82. jumpplus.BackgroundColor3 = Color3.new(0,0,255)
  83. jumpminus.BackgroundColor3 = Color3.new(0,0,255)
  84. sedan.BackgroundColor3 = Color3.new(0,0,255)
  85. squad.BackgroundColor3 = Color3.new(0,0,255)
  86. bypass.BackgroundColor3 = Color3.new(0,0,255)
  87. db.BackgroundColor3 = Color3.new(0,0,255)
  88. floor.BackgroundColor3 = Color3.new(0,0,255)
  89.  
  90. -- Background Transparency
  91. frame.BackgroundTransparency = 0.5
  92. open.BackgroundTransparency = 0
  93. name.BackgroundTransparency = 0.6
  94. arrest.BackgroundTransparency = 0
  95. btools.BackgroundTransparency = 0
  96. escape.BackgroundTransparency = 0
  97. exit.BackgroundTransparency = 0
  98. killaura.BackgroundTransparency = 0
  99. melee.BackgroundTransparency = 0
  100. removedoors.BackgroundTransparency = 0
  101. tools.BackgroundTransparency = 0
  102. speedplus.BackgroundTransparency = 0
  103. speedminus.BackgroundTransparency = 0
  104. jumpplus.BackgroundTransparency = 0
  105. jumpminus.BackgroundTransparency = 0
  106. sedan.BackgroundTransparency = 0
  107. bypass.BackgroundTransparency = 0
  108. db.BackgroundTransparency = 0
  109. floor.BackgroundTransparency = 0
  110.  
  111. -- Objects Size
  112. frame.Size = UDim2.new(0,250,0,300)
  113. open.Size = UDim2.new(0,80,0,30)
  114. name.Size = UDim2.new(0,180,0,40)
  115. arrest.Size = UDim2.new(0.9,12,0,30)
  116. btools.Size = UDim2.new(0.9,12,0,30)
  117. escape.Size = UDim2.new(0.9,12,0,30)
  118. exit.Size = UDim2.new(0,50,0,40)
  119. killaura.Size = UDim2.new(0.9,12,0,30)
  120. melee.Size = UDim2.new(0.9,12,0,30)
  121. removedoors.Size = UDim2.new(0.9,12,0,30)
  122. tools.Size = UDim2.new(0.9,12,0,30)
  123. speedplus.Size = UDim2.new(0.9,12,0,30)
  124. speedminus.Size = UDim2.new(0.9,12,0,30)
  125. jumpplus.Size = UDim2.new(0.9,12,0,30)
  126. jumpminus.Size = UDim2.new(0.9,12,0,30)
  127. sedan.Size = UDim2.new(0.9,12,0,30)
  128. squad.Size = UDim2.new(0.9,12,0,30)
  129. bypass.Size = UDim2.new(0.9,12,0,30)
  130. db.Size = UDim2.new(0.9,12,0,30)
  131. floor.Size = UDim2.new(0.9,12,0,30)
  132.  
  133. -- Objects Position
  134. frame.Position = UDim2.new(0,5,0.4,0)
  135. open.Position = UDim2.new(0,0,0,0)
  136. name.Position = UDim2.new(0,0,0,0)
  137. arrest.Position = UDim2.new(0,0,0,320)
  138. btools.Position = UDim2.new(0,0,0,185)
  139. escape.Position = UDim2.new(0,0,0,230)
  140. exit.Position = UDim2.new(0,184,0,0)
  141. killaura.Position = UDim2.new(0,0,0,275)
  142. melee.Position = UDim2.new(0,0,0,140)
  143. removedoors.Position = UDim2.new(0,0,0,50)
  144. tools.Position = UDim2.new(0,0,0,95)
  145. speedplus.Position = UDim2.new(0,0,0,365)
  146. speedminus.Position = UDim2.new(0,0,0,410)
  147. jumpplus.Position = UDim2.new(0,0,0,455)
  148. jumpminus.Position = UDim2.new(0,0,0,500)
  149. sedan.Position = UDim2.new(0,0,0,545)
  150. squad.Position = UDim2.new(0,0,0,590)
  151. bypass.Position = UDim2.new(0,0,0,635)
  152. db.Position = UDim2.new(0,0,0,680)
  153. floor.Position = UDim2.new(0,0,0,725)
  154.  
  155. -- Objects Text Color
  156. open.TextColor3 = Color3.new(0,0,0)
  157. name.TextColor3 = Color3.new(0,255,255)
  158. arrest.TextColor3 = Color3.new(0,0,0)
  159. btools.TextColor3 = Color3.new(0,0,0)
  160. escape.TextColor3 = Color3.new(0,0,0)
  161. exit.TextColor3 = Color3.new(0,0,0)
  162. killaura.TextColor3 = Color3.new(0,0,0)
  163. melee.TextColor3 = Color3.new(0,0,0)
  164. removedoors.TextColor3 = Color3.new(0,0,0)
  165. tools.TextColor3 = Color3.new(0,0,0)
  166. speedplus.TextColor3 = Color3.new(0,0,0)
  167. speedminus.TextColor3 = Color3.new(0,0,0)
  168. jumpplus.TextColor3 = Color3.new(0,0,0)
  169. jumpminus.TextColor3 = Color3.new(0,0,0)
  170. sedan.TextColor3 = Color3.new(0,0,0)
  171. squad.TextColor3 = Color3.new(0,0,0)
  172. bypass.TextColor3 = Color3.new(0,0,0)
  173. db.TextColor3 = Color3.new(0,0,0)
  174. floor.TextColor3 = Color3.new(0,0,0)
  175.  
  176. -- Object Font
  177. name.Font = 'Fantasy'
  178.  
  179. -- Object Text
  180. open.Text = 'Open'
  181. name.Text = 'Prison Life v2.0 Commands'
  182. arrest.Text = 'Arrest [Cops Only]'
  183. btools.Text = 'Give Btools'
  184. escape.Text = 'Escape The Prison'
  185. exit.Text = 'Exit'
  186. killaura.Text = 'Kill Aura [Danger]'
  187. melee.Text = 'Give Melee'
  188. removedoors.Text = 'Remove Doors'
  189. tools.Text = 'Give Guns'
  190. speedplus.Text = 'WalkSpeed + 10'
  191. speedminus.Text = 'WalkSpeed - 10'
  192. jumpplus.Text = 'JumpPower + 10'
  193. jumpminus.Text = 'JumpPower - 10'
  194. sedan.Text = 'Teleport Seden [If got]'
  195. squad.Text = 'Teleport Squad [If got]'
  196. bypass.Text = 'Bypass Taser, Arrest [Cannot Punch]'
  197. db.Text = 'Disable Bypass Taser, Arrest'
  198. floor.Text = 'Get Tools on the floor'
  199.  
  200. -- Object Text Scaled
  201. open.TextScaled = true
  202. name.TextScaled = true
  203. arrest.TextScaled = true
  204. btools.TextScaled = true
  205. escape.TextScaled = true
  206. exit.TextScaled = true
  207. killaura.TextScaled = true
  208. melee.TextScaled = true
  209. removedoors.TextScaled = true
  210. tools.TextScaled = true
  211. speedplus.TextScaled = true
  212. speedminus.TextScaled = true
  213. jumpplus.TextScaled = true
  214. jumpminus.TextScaled = true
  215. sedan.TextScaled = true
  216. squad.TextScaled = true
  217. bypass.TextScaled = true
  218. db.TextScaled = true
  219. floor.TextScaled = true
  220.  
  221. -- Frame Moveable
  222. frame.Active = true
  223. frame.Draggable = true
  224.  
  225. -- Open Function
  226. open.MouseButton1Down:connect(function()
  227. frame.Visible = true
  228. frame:TweenPosition(UDim2.new(0,5,0.4,0), "Out", "Bounce",1 ,true)
  229. open.Visible = false
  230. open.Position = UDim2.new(0,0,0,0)
  231. end)
  232.  
  233. -- Close/Exit Function
  234. exit.MouseButton1Down:connect(function()
  235. frame:TweenPosition(UDim2.new(0.1,-400,0.4,0) , "Out", "Quad", 1, true)
  236. wait(1)
  237. frame.Visible = false
  238. wait(.1)
  239. open.Visible = true
  240. open:TweenPosition(UDim2.new(0,2,0.8,15), "Out", "Bounce",1 ,true)
  241. end)
  242.  
  243. -- Remove Doors Function
  244. removedoors.MouseButton1Down:connect(function()
  245. game.Workspace.Doors:Destroy()
  246. end)
  247.  
  248. -- Guns Function
  249. tools.MouseButton1Down:connect(function()
  250. local weapons = {"Remington 870", "M9", "AK-47", "M4A1", "Riot Shield"}
  251. for i, v in pairs(game.Workspace["Prison_ITEMS"].giver:GetChildren()) do
  252. for j, k in pairs(weapons) do
  253. if v.Name == k then
  254. v:MoveTo(game.Players.LocalPlayer.Character.Torso.Position)
  255. end
  256. end
  257. end
  258. end)
  259.  
  260. -- Melee Function
  261. melee.MouseButton1Down:connect(function()
  262. local weapons = {"Crude Knife", "Sharpened stick", "Extendo mirror"}
  263. for i, v in pairs(game.ReplicatedStorage.Tools:GetChildren()) do
  264. for j, k in pairs(weapons) do
  265. if v.Name == k then
  266. v:Clone().Parent = game.Players.LocalPlayer.Backpack
  267. end
  268. end
  269. end
  270. end)
  271.  
  272. -- Btools Function
  273. btools.MouseButton1Down:connect(function()
  274. Instance.new('HopperBin', game.Players.LocalPlayer.Backpack).BinType = 2
  275. Instance.new('HopperBin', game.Players.LocalPlayer.Backpack).BinType = 3
  276. Instance.new('HopperBin', game.Players.LocalPlayer.Backpack).BinType = 4
  277. loadstring(game:GetObjects('rbxassetid://552440069')[1].Source)()
  278. end)
  279.  
  280. -- Escape Function
  281. escape.MouseButton1Down:connect(function()
  282. game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = CFrame.new(283, 72, 2213)
  283. end)
  284.  
  285. -- Kill Aura Function
  286. killaura.MouseButton1Down:connect(function()
  287. while wait(0.1) do
  288. for i, plr in pairs(game.Players:GetChildren()) do
  289. if plr.Name ~= game.Players.LocalPlayer.Name then
  290. for i = 1, 10 do
  291. game.ReplicatedStorage.meleeEvent:FireServer(plr)
  292. end
  293. end
  294. end
  295. end
  296. end)
  297.  
  298. -- Arrest Function
  299. local mouse = game.Players.LocalPlayer:GetMouse()
  300. local arrestEvent = game.Workspace.Remote.arrest
  301. mouse.Button1Down:connect(function()
  302. local obj = mouse.Target
  303. local response = arrestEvent:InvokeServer(obj)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement