Trunkselpro

Prison life Gui c:

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