Hamburghini

Prison Life GUI

Apr 30th, 2018
5,766
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 8.38 KB | None | 0 0
  1. -- Objects --
  2.  
  3. local gui = Instance.new("ScreenGui")
  4. local holder = Instance.new("Frame")
  5. local welcome = Instance.new("TextLabel")
  6. local menu = Instance.new("Frame")
  7. local ws = Instance.new("TextBox")
  8. local setws = Instance.new("TextButton")
  9. local jp = Instance.new("TextBox")
  10. local setjp = Instance.new("TextButton")
  11. local tptower = Instance.new("TextButton")
  12. local tpgunroom = Instance.new("TextButton")
  13. local tpcrimbaseak = Instance.new("TextButton")
  14. local tpprison = Instance.new("TextButton")
  15. local removedoors = Instance.new("TextButton")
  16. local removefences = Instance.new("TextButton")
  17. local openclose = Instance.new("TextButton")
  18. opened = false
  19.  
  20. -- Objects' Properties --
  21.  
  22. gui.Name = "PrisonLifeGUI"
  23. gui.Parent = game.CoreGui
  24.  
  25. holder.Name = "Holder"
  26. holder.Parent = gui
  27. holder.Active = true
  28. holder.Selectable = true
  29. holder.Draggable = true
  30. holder.BackgroundColor3 = Color3.fromRGB(49, 49, 49)
  31. holder.BorderSizePixel = 0
  32. holder.Position = UDim2.new(-0.25, 0,0.6, 0)
  33. holder.Size = UDim2.new(0, 325,0, 30)
  34.  
  35. welcome.Name = "Welcome"
  36. welcome.Parent = holder
  37. welcome.Text = "Prison Life GUI"
  38. welcome.BackgroundTransparency = 1
  39. welcome.BorderSizePixel = 0
  40. welcome.Position = UDim2.new(0, 0,0, 0)
  41. welcome.Size = UDim2.new(0, 325,0, 30)
  42. welcome.Font = Enum.Font.Fantasy
  43. welcome.FontSize = Enum.FontSize.Size14
  44. welcome.TextSize = 14
  45. welcome.TextScaled = true
  46. welcome.TextWrapped = true
  47. welcome.TextColor3 = Color3.fromRGB(255, 255, 255)
  48. welcome.TextStrokeTransparency = 0
  49.  
  50. menu.Name = "Menu"
  51. menu.Parent = holder
  52. menu.BackgroundColor3 = Color3.fromRGB(86, 86, 86)
  53. menu.BorderSizePixel = 0
  54. menu.BackgroundTransparency = 0.2
  55. menu.Position = UDim2.new(0, 0,1, 0)
  56. menu.Size = UDim2.new(0, 325,0, 193)
  57.  
  58. ws.Name = "WS"
  59. ws.Parent = menu
  60. ws.BackgroundColor3 = Color3.fromRGB(49, 49, 49)
  61. ws.BorderSizePixel = 0
  62. ws.Position = UDim2.new(0.025, 0,0.036, 0)
  63. ws.Size = UDim2.new(0, 136,0, 27)
  64. ws.Font = Enum.Font.Fantasy
  65. ws.FontSize = Enum.FontSize.Size14
  66. ws.TextSize = 14
  67. ws.TextColor3 = Color3.fromRGB(255, 255, 255)
  68. ws.TextScaled = true
  69. ws.TextWrapped = true
  70. ws.TextStrokeTransparency = 0
  71. ws.Text = ""
  72.  
  73. setws.Name = "SetWS"
  74. setws.Parent = menu
  75. setws.BackgroundColor3 = Color3.fromRGB(49, 49, 49)
  76. setws.BorderSizePixel = 0
  77. setws.Position = UDim2.new(0.548, 0,0.036, 0)
  78. setws.Size = UDim2.new(0, 136,0, 27)
  79. setws.Font = Enum.Font.Fantasy
  80. setws.FontSize = Enum.FontSize.Size14
  81. setws.TextSize = 14
  82. setws.TextColor3 = Color3.fromRGB(255, 255, 255)
  83. setws.TextScaled = true
  84. setws.TextWrapped = true
  85. setws.TextStrokeTransparency = 0
  86. setws.Text = "Set WalkSpeed"
  87.  
  88. jp.Name = "JP"
  89. jp.Parent = menu
  90. jp.BackgroundColor3 = Color3.fromRGB(49, 49, 49)
  91. jp.BorderSizePixel = 0
  92. jp.Position = UDim2.new(0.025, 0,0.207, 0)
  93. jp.Size = UDim2.new(0, 136,0, 27)
  94. jp.Font = Enum.Font.Fantasy
  95. jp.FontSize = Enum.FontSize.Size14
  96. jp.TextSize = 14
  97. jp.TextColor3 = Color3.fromRGB(255, 255, 255)
  98. jp.TextScaled = true
  99. jp.TextWrapped = true
  100. jp.TextStrokeTransparency = 0
  101. jp.Text = ""
  102.  
  103. setjp.Name = "SetJP"
  104. setjp.Parent = menu
  105. setjp.BackgroundColor3 = Color3.fromRGB(49, 49, 49)
  106. setjp.BorderSizePixel = 0
  107. setjp.Position = UDim2.new(0.548, 0,0.207, 0)
  108. setjp.Size = UDim2.new(0, 136,0, 27)
  109. setjp.Font = Enum.Font.Fantasy
  110. setjp.FontSize = Enum.FontSize.Size14
  111. setjp.TextSize = 14
  112. setjp.TextColor3 = Color3.fromRGB(255, 255, 255)
  113. setjp.TextScaled = true
  114. setjp.TextWrapped = true
  115. setjp.TextStrokeTransparency = 0
  116. setjp.Text = "Set JumpPower"
  117.  
  118. tptower.Name = "TpOnTower"
  119. tptower.Parent = menu
  120. tptower.BackgroundColor3 = Color3.fromRGB(49, 49, 49)
  121. tptower.BorderSizePixel = 0
  122. tptower.Position = UDim2.new(0.025, 0,0.378, 0)
  123. tptower.Size = UDim2.new(0, 136,0, 31)
  124. tptower.Font = Enum.Font.Fantasy
  125. tptower.FontSize = Enum.FontSize.Size14
  126. tptower.TextSize = 14
  127. tptower.TextColor3 = Color3.fromRGB(255, 255, 255)
  128. tptower.TextScaled = true
  129. tptower.TextWrapped = true
  130. tptower.TextStrokeTransparency = 0
  131. tptower.Text = "TP on the Tower"
  132.  
  133. tpgunroom.Name = "TpGunRoom"
  134. tpgunroom.Parent = menu
  135. tpgunroom.BackgroundColor3 = Color3.fromRGB(49, 49, 49)
  136. tpgunroom.BorderSizePixel = 0
  137. tpgunroom.Position = UDim2.new(0.548, 0,0.378, 0)
  138. tpgunroom.Size = UDim2.new(0, 136,0, 31)
  139. tpgunroom.Font = Enum.Font.Fantasy
  140. tpgunroom.FontSize = Enum.FontSize.Size14
  141. tpgunroom.TextSize = 14
  142. tpgunroom.TextColor3 = Color3.fromRGB(255, 255, 255)
  143. tpgunroom.TextScaled = true
  144. tpgunroom.TextWrapped = true
  145. tpgunroom.TextStrokeTransparency = 0
  146. tpgunroom.Text = "TP in the Gun Room"
  147.  
  148. tpcrimbaseak.Name = "CrimBaseAk"
  149. tpcrimbaseak.Parent = menu
  150. tpcrimbaseak.BackgroundColor3 = Color3.fromRGB(49, 49, 49)
  151. tpcrimbaseak.BorderSizePixel = 0
  152. tpcrimbaseak.Position = UDim2.new(0.025, 0,0.591, 0)
  153. tpcrimbaseak.Size = UDim2.new(0, 136,0, 31)
  154. tpcrimbaseak.Font = Enum.Font.Fantasy
  155. tpcrimbaseak.FontSize = Enum.FontSize.Size14
  156. tpcrimbaseak.TextSize = 14
  157. tpcrimbaseak.TextColor3 = Color3.fromRGB(255, 255, 255)
  158. tpcrimbaseak.TextScaled = true
  159. tpcrimbaseak.TextWrapped = true
  160. tpcrimbaseak.TextStrokeTransparency = 0
  161. tpcrimbaseak.Text = "TP to the Criminal Base / Get AK-47"
  162.  
  163. tpprison.Name = "TpToPrison"
  164. tpprison.Parent = menu
  165. tpprison.BackgroundColor3 = Color3.fromRGB(49, 49, 49)
  166. tpprison.BorderSizePixel = 0
  167. tpprison.Position = UDim2.new(0.548, 0,0.591, 0)
  168. tpprison.Size = UDim2.new(0, 136,0, 31)
  169. tpprison.Font = Enum.Font.Fantasy
  170. tpprison.FontSize = Enum.FontSize.Size14
  171. tpprison.TextSize = 14
  172. tpprison.TextColor3 = Color3.fromRGB(255, 255, 255)
  173. tpprison.TextScaled = true
  174. tpprison.TextWrapped = true
  175. tpprison.TextStrokeTransparency = 0
  176. tpprison.Text = "TP to the Prison"
  177.  
  178. removedoors.Name = "RAllDoors"
  179. removedoors.Parent = menu
  180. removedoors.BackgroundColor3 = Color3.fromRGB(49, 49, 49)
  181. removedoors.BorderSizePixel = 0
  182. removedoors.Position = UDim2.new(0.025, 0,0.793, 0)
  183. removedoors.Size = UDim2.new(0, 136,0, 31)
  184. removedoors.Font = Enum.Font.Fantasy
  185. removedoors.FontSize = Enum.FontSize.Size14
  186. removedoors.TextSize = 14
  187. removedoors.TextColor3 = Color3.fromRGB(255, 255, 255)
  188. removedoors.TextScaled = true
  189. removedoors.TextWrapped = true
  190. removedoors.TextStrokeTransparency = 0
  191. removedoors.Text = "Remove All Doors"
  192.  
  193. removefences.Name = "RAllFences"
  194. removefences.Parent = menu
  195. removefences.BackgroundColor3 = Color3.fromRGB(49, 49, 49)
  196. removefences.BorderSizePixel = 0
  197. removefences.Position = UDim2.new(0.548, 0,0.793, 0)
  198. removefences.Size = UDim2.new(0, 136,0, 31)
  199. removefences.Font = Enum.Font.Fantasy
  200. removefences.FontSize = Enum.FontSize.Size14
  201. removefences.TextSize = 14
  202. removefences.TextColor3 = Color3.fromRGB(255, 255, 255)
  203. removefences.TextScaled = true
  204. removefences.TextWrapped = true
  205. removefences.TextStrokeTransparency = 0
  206. removefences.Text = "Remove All Fences"
  207.  
  208. openclose.Name = "OpenClose"
  209. openclose.Parent = gui
  210. openclose.Text = "Open/Close"
  211. openclose.BackgroundColor3 = Color3.fromRGB(49, 49, 49)
  212. openclose.TextStrokeTransparency = 0
  213. openclose.BorderSizePixel = 0
  214. openclose.Position = UDim2.new(0, 0,0.958, 0)
  215. openclose.Size = UDim2.new(0.066, 0,0.042,0)
  216. openclose.Font = Enum.Font.Fantasy
  217. openclose.TextSize = 16
  218. openclose.TextColor3 = Color3.fromRGB(255, 255, 255)
  219.  
  220. -- Functions --
  221.  
  222. openclose.MouseButton1Down:connect(function()
  223.          if opened == false then
  224.         holder:TweenPosition(UDim2.new(0.034, 0,0.318, 0), "Out", "Quint", 0.5)
  225.         opened = true
  226.     else
  227.         holder:TweenPosition(UDim2.new(-0.25,0, 0.6,0), "Out", "Quint", 0.5)
  228.         opened = false
  229.     end
  230. end)
  231.  
  232. removedoors.MouseButton1Down:connect(function()
  233.          game.Workspace.Doors:Destroy()
  234. end)
  235.  
  236. removefences.MouseButton1Down:connect(function()
  237.          game.Workspace.Prison_Fences:Destroy()
  238. end)
  239.  
  240. setws.MouseButton1Down:connect(function()
  241.          game.Players.LocalPlayer.Character.Humanoid.WalkSpeed = ws.Text
  242. end)
  243.  
  244. setjp.MouseButton1Down:connect(function()
  245.          game.Players.LocalPlayer.Character.Humanoid.JumpPower = jp.Text
  246. end)
  247.  
  248. tptower.MouseButton1Down:connect(function()
  249.          game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = CFrame.new(824.31, 133.95, 2570.69)
  250. end)
  251.  
  252. tpgunroom.MouseButton1Down:connect(function()
  253.           game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = CFrame.new(828.631, 102.887, 2263.73)
  254. end)
  255.  
  256. tpcrimbaseak.MouseButton1Down:connect(function()
  257.           game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = CFrame.new(-943.559, 95.753, 2056.145)
  258. end)
  259.  
  260. tpprison.MouseButton1Down:connect(function()
  261.           game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = CFrame.new(812.67, 105.651, 2454.729)
  262. end)
Add Comment
Please, Sign In to add comment