Upscalefanatic3

Prison Royal GUI

Jan 26th, 2018
215
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.84 KB | None | 0 0
  1. function onKeyPress(inputObject, gameProcessedEvent)
  2. if inputObject.KeyCode == Enum.KeyCode[centertp] then
  3. game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = game.Workspace.Wall.Center.CFrame * CFrame.new(0, 100, 0)
  4. end
  5. end
  6.  
  7. game:GetService("UserInputService").InputBegan:connect(onKeyPress)
  8.  
  9. function onKeyPress(inputObject, gameProcessedEvent)
  10. if inputObject.KeyCode == Enum.KeyCode[lootbind] then
  11. for i,v in pairs(game.Workspace.Loot:GetChildren()) do
  12. v:MoveTo(game.Players.LocalPlayer.Character.HumanoidRootPart.Position)
  13. end
  14. end
  15. end
  16.  
  17. game:GetService("UserInputService").InputBegan:connect(onKeyPress)
  18.  
  19. function onKeyPress(inputObject, gameProcessedEvent)
  20. if inputObject.KeyCode == Enum.KeyCode[vehbind] then
  21. local randomPlayer = game.Workspace.Vehicles:GetChildren()[math.random(1,#game.Workspace.Vehicles:GetChildren())]
  22. if randomPlayer ~= nil then
  23. game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = randomPlayer.Driver.CFrame
  24. print("TP'd to buggy")
  25. end
  26. end
  27. end
  28.  
  29. game:GetService("UserInputService").InputBegan:connect(onKeyPress)
  30.  
  31.  
  32.  
  33. -- Objects
  34.  
  35. local PUBGui = Instance.new("ScreenGui")
  36. local Main = Instance.new("Frame")
  37. local Keybinds = Instance.new("TextLabel")
  38. local gunbind = Instance.new("TextBox")
  39. local vehiclebind = Instance.new("TextBox")
  40. local TPtocriminal = Instance.new("TextLabel")
  41. local centerbind = Instance.new("TextBox")
  42. local Bringallloot = Instance.new("TextLabel")
  43. local TPtojewelry = Instance.new("TextLabel")
  44. local Sethplimit = Instance.new("TextLabel")
  45. local hpbind = Instance.new("TextLabel")
  46. local plus = Instance.new("TextButton")
  47. local minus = Instance.new("TextButton")
  48. local CLOSE = Instance.new("Frame")
  49. local OpenClose = Instance.new("TextButton")
  50.  
  51. -- Properties
  52.  
  53. PUBGui.Name = "PUBGui"
  54. PUBGui.Parent = game.CoreGui
  55.  
  56. Main.Name = "Main"
  57. Main.Parent = PUBGui
  58. Main.BackgroundColor3 = Color3.new(1, 1, 1)
  59. Main.Position = UDim2.new(0.813616991, 0, 0.657933056, 0)
  60. Main.Size = UDim2.new(0.0489999987, 100, 0.157000005, 150)
  61.  
  62. Keybinds.Name = "Keybinds"
  63. Keybinds.Parent = Main
  64. Keybinds.BackgroundColor3 = Color3.new(1, 1, 1)
  65. Keybinds.BackgroundTransparency = 1
  66. Keybinds.Size = UDim2.new(-0.148571432, 200, 0, 50)
  67. Keybinds.Font = Enum.Font.SciFi
  68. Keybinds.FontSize = Enum.FontSize.Size24
  69. Keybinds.Text = "Keybinds:"
  70. Keybinds.TextSize = 24
  71.  
  72. gunbind.Name = "gunbind"
  73. gunbind.Parent = Main
  74. gunbind.BackgroundColor3 = Color3.new(1, 1, 1)
  75. gunbind.Position = UDim2.new(0.702857137, 0, 0.41921398, 0)
  76. gunbind.Size = UDim2.new(-0.908999979, 230, -0.0829999968, 50)
  77. gunbind.Font = Enum.Font.SourceSans
  78. gunbind.FontSize = Enum.FontSize.Size14
  79. gunbind.Text = "B"
  80. gunbind.TextSize = 14
  81.  
  82. vehiclebind.Name = "vehiclebind"
  83. vehiclebind.Parent = Main
  84. vehiclebind.BackgroundColor3 = Color3.new(1, 1, 1)
  85. vehiclebind.Position = UDim2.new(0.702857137, 0, 0.61572051, 0)
  86. vehiclebind.Size = UDim2.new(-0.908999979, 230, -0.0829999968, 50)
  87. vehiclebind.Font = Enum.Font.SourceSans
  88. vehiclebind.FontSize = Enum.FontSize.Size14
  89. vehiclebind.Text = "J"
  90. vehiclebind.TextSize = 14
  91.  
  92. TPtocriminal.Name = "TP to criminal"
  93. TPtocriminal.Parent = Main
  94. TPtocriminal.BackgroundColor3 = Color3.new(1, 1, 1)
  95. TPtocriminal.BackgroundTransparency = 1
  96. TPtocriminal.Position = UDim2.new(-0.0632911399, 0, 0.235576898, 0)
  97. TPtocriminal.Size = UDim2.new(-0.5, 200, -0.11057692, 50)
  98. TPtocriminal.Font = Enum.Font.SourceSans
  99. TPtocriminal.FontSize = Enum.FontSize.Size14
  100. TPtocriminal.Text = "TP to center"
  101. TPtocriminal.TextSize = 14
  102.  
  103. centerbind.Name = "centerbind"
  104. centerbind.Parent = Main
  105. centerbind.BackgroundColor3 = Color3.new(1, 1, 1)
  106. centerbind.Position = UDim2.new(0.702857137, 0, 0.227074236, 0)
  107. centerbind.Size = UDim2.new(-0.908999979, 230, -0.0829999968, 50)
  108. centerbind.ZIndex = 2
  109. centerbind.Font = Enum.Font.SourceSans
  110. centerbind.FontSize = Enum.FontSize.Size14
  111. centerbind.Text = "Z"
  112. centerbind.TextSize = 14
  113.  
  114. Bringallloot.Name = "Bring all loot"
  115. Bringallloot.Parent = Main
  116. Bringallloot.BackgroundColor3 = Color3.new(1, 1, 1)
  117. Bringallloot.BackgroundTransparency = 1
  118. Bringallloot.Position = UDim2.new(-0.0696202591, 0, 0.432692289, 0)
  119. Bringallloot.Size = UDim2.new(-0.5, 200, -0.11057692, 50)
  120. Bringallloot.Font = Enum.Font.SourceSans
  121. Bringallloot.FontSize = Enum.FontSize.Size14
  122. Bringallloot.Text = "Bring all loot"
  123. Bringallloot.TextSize = 14
  124.  
  125. TPtojewelry.Name = "TP to jewelry"
  126. TPtojewelry.Parent = Main
  127. TPtojewelry.BackgroundColor3 = Color3.new(1, 1, 1)
  128. TPtojewelry.BackgroundTransparency = 1
  129. TPtojewelry.Position = UDim2.new(-0.0727848113, 0, 0.627403855, 0)
  130. TPtojewelry.Size = UDim2.new(-0.5, 200, -0.11057692, 50)
  131. TPtojewelry.Font = Enum.Font.SourceSans
  132. TPtojewelry.FontSize = Enum.FontSize.Size14
  133. TPtojewelry.Text = "TP to vehicle"
  134. TPtojewelry.TextSize = 14
  135.  
  136. Sethplimit.Name = "Set hp limit"
  137. Sethplimit.Parent = Main
  138. Sethplimit.BackgroundColor3 = Color3.new(1, 1, 1)
  139. Sethplimit.BackgroundTransparency = 1
  140. Sethplimit.Position = UDim2.new(-0.0729999989, 0, 0.816999972, 0)
  141. Sethplimit.Size = UDim2.new(-0.5, 200, -0.11057692, 50)
  142. Sethplimit.Font = Enum.Font.SourceSans
  143. Sethplimit.FontSize = Enum.FontSize.Size14
  144. Sethplimit.Text = "Set hp limit"
  145. Sethplimit.TextSize = 14
  146.  
  147. hpbind.Name = "hpbind"
  148. hpbind.Parent = Main
  149. hpbind.BackgroundColor3 = Color3.new(1, 1, 1)
  150. hpbind.Position = UDim2.new(0.703000009, 0, 0.815999985, 0)
  151. hpbind.Size = UDim2.new(-0.908999979, 230, -0.0829999968, 50)
  152. hpbind.Font = Enum.Font.SourceSans
  153. hpbind.FontSize = Enum.FontSize.Size14
  154. hpbind.Text = "50"
  155. hpbind.TextSize = 14
  156.  
  157. plus.Name = "plus"
  158. plus.Parent = Main
  159. plus.BackgroundColor3 = Color3.new(1, 1, 1)
  160. plus.Position = UDim2.new(0.704999983, 0, 0.916000009, 0)
  161. plus.Size = UDim2.new(-0.908999979, 190, -0.103, 50)
  162. plus.Font = Enum.Font.SourceSans
  163. plus.FontSize = Enum.FontSize.Size14
  164. plus.Text = "+"
  165. plus.TextSize = 14
  166.  
  167. minus.Name = "minus"
  168. minus.Parent = Main
  169. minus.BackgroundColor3 = Color3.new(1, 1, 1)
  170. minus.Position = UDim2.new(0.819999993, 0, 0.916000009, 0)
  171. minus.Size = UDim2.new(-0.908999979, 190, -0.103, 50)
  172. minus.Font = Enum.Font.SourceSans
  173. minus.FontSize = Enum.FontSize.Size14
  174. minus.Text = "-"
  175. minus.TextSize = 14
  176.  
  177. CLOSE.Name = "CLOSE"
  178. CLOSE.Parent = PUBGui
  179. CLOSE.BackgroundColor3 = Color3.new(1, 1, 1)
  180. CLOSE.BackgroundTransparency = 1
  181. CLOSE.Position = UDim2.new(0.00457815826, 0, 0.937652767, 0)
  182. CLOSE.Size = UDim2.new(0.00130804442, 100, -0.0770171136, 100)
  183.  
  184. OpenClose.Name = "OpenClose"
  185. OpenClose.Parent = CLOSE
  186. OpenClose.BackgroundColor3 = Color3.new(1, 1, 1)
  187. OpenClose.Position = UDim2.new(0, 0, 0.0135135138, 0)
  188. OpenClose.Size = UDim2.new(-0.960784316, 200, -0.351351351, 50)
  189. OpenClose.Font = Enum.Font.SourceSans
  190. OpenClose.FontSize = Enum.FontSize.Size14
  191. OpenClose.Text = "Open/Close"
  192. OpenClose.TextSize = 14
  193.  
  194. function click()
  195. if game.CoreGui.PUBGui.Main.Visible == true then
  196. game.CoreGui.PUBGui.Main.Visible = false else
  197. game.CoreGui.PUBGui.Main.Visible = true
  198. end
  199. end
  200. game.CoreGui.PUBGui.CLOSE.OpenClose.MouseButton1Down:connect(click)
  201.  
  202. function click()
  203. hpmeme1 = tonumber(game.CoreGui.PUBGui.Main.hpbind.Text)
  204. game.CoreGui.PUBGui.Main.hpbind.Text = hpmeme1 + 10
  205. end
  206. game.CoreGui.PUBGui.Main.plus.MouseButton1Down:connect(click)
  207.  
  208. function click()
  209. hpmeme2 = tonumber(game.CoreGui.PUBGui.Main.hpbind.Text)
  210. game.CoreGui.PUBGui.Main.hpbind.Text = hpmeme2 - 10
  211. end
  212. game.CoreGui.PUBGui.Main.minus.MouseButton1Down:connect(click)
  213.  
  214.  
  215.  
  216. while true do
  217. wait()
  218. nicememe = tonumber(game.CoreGui.PUBGui.Main.hpbind.Text)
  219. vehnum = math.random(20)
  220. vehbind = game.CoreGui.PUBGui.Main.vehiclebind.Text
  221. lootbind = game.CoreGui.PUBGui.Main.gunbind.Text
  222. centertp = game.CoreGui.PUBGui.Main.centerbind.Text
  223. --kek(game.Players.LocalPlayer.PlayerGui.ScreenGui.Game.UI.Health.PressQText.Text, "%")
  224. if game.Players.LocalPlayer.Character.Humanoid.Health <= nicememe then
  225. game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = game.Workspace.Wall.Center.CFrame * CFrame.new(0, 100, 0)
  226. end
  227. end
Add Comment
Please, Sign In to add comment