ItzPartapika

Prison Life Ui

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