Sincerate

PL GUI #1

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