Advertisement
Guest User

Prison Life Gui

a guest
Jul 27th, 2022
831
-1
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 13.27 KB | None | 0 1
  1. -- Gui to Lua
  2. -- Version: 3.2
  3.  
  4. -- Instances:
  5.  
  6. local ScreenGui = Instance.new("ScreenGui")
  7. local Frame = Instance.new("Frame")
  8. local UICorner = Instance.new("UICorner")
  9. local TextLabel = Instance.new("TextLabel")
  10. local UICorner_2 = Instance.new("UICorner")
  11. local UIGradient = Instance.new("UIGradient")
  12. local ButtonsFrame = Instance.new("ScrollingFrame")
  13. local MainButton = Instance.new("TextButton")
  14. local UICorner_3 = Instance.new("UICorner")
  15. local CreditsButton = Instance.new("TextButton")
  16. local UICorner_4 = Instance.new("UICorner")
  17. local Main = Instance.new("Frame")
  18. local UICorner_5 = Instance.new("UICorner")
  19. local Toggle = Instance.new("TextButton")
  20. local UICorner_6 = Instance.new("UICorner")
  21. local FlyButton = Instance.new("TextButton")
  22. local UICorner_7 = Instance.new("UICorner")
  23. local Credit = Instance.new("Frame")
  24. local UICorner_8 = Instance.new("UICorner")
  25. local TextLabel_2 = Instance.new("TextLabel")
  26. local UICorner_9 = Instance.new("UICorner")
  27. local TextLabel_3 = Instance.new("TextLabel")
  28. local UICorner_10 = Instance.new("UICorner")
  29. local TextLabel_4 = Instance.new("TextLabel")
  30. local UICorner_11 = Instance.new("UICorner")
  31. local TextButton = Instance.new("TextButton")
  32. local UICorner_12 = Instance.new("UICorner")
  33.  
  34. --Properties:
  35.  
  36. ScreenGui.Parent = game.Players.LocalPlayer:WaitForChild("PlayerGui")
  37. ScreenGui.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
  38.  
  39. Frame.Parent = ScreenGui
  40. Frame.BackgroundColor3 = Color3.fromRGB(42, 42, 42)
  41. Frame.Position = UDim2.new(0.372093022, 0, 0.171749592, 0)
  42. Frame.Size = UDim2.new(0, 441, 0, 408)
  43. Frame.Visible = false
  44.  
  45. UICorner.Parent = Frame
  46.  
  47. TextLabel.Parent = Frame
  48. TextLabel.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  49. TextLabel.Position = UDim2.new(0.0544217639, 0, 0.0343137234, 0)
  50. TextLabel.Size = UDim2.new(0, 392, 0, 67)
  51. TextLabel.Font = Enum.Font.FredokaOne
  52. TextLabel.Text = "Prison Life Gui"
  53. TextLabel.TextColor3 = Color3.fromRGB(0, 0, 0)
  54. TextLabel.TextScaled = true
  55. TextLabel.TextSize = 14.000
  56. TextLabel.TextWrapped = true
  57.  
  58. UICorner_2.Parent = TextLabel
  59.  
  60. UIGradient.Color = ColorSequence.new{ColorSequenceKeypoint.new(0.00, Color3.fromRGB(255, 0, 0)), ColorSequenceKeypoint.new(1.00, Color3.fromRGB(255, 179, 0))}
  61. UIGradient.Parent = TextLabel
  62.  
  63. ButtonsFrame.Name = "ButtonsFrame"
  64. ButtonsFrame.Parent = Frame
  65. ButtonsFrame.Active = true
  66. ButtonsFrame.BackgroundColor3 = Color3.fromRGB(184, 184, 184)
  67. ButtonsFrame.Position = UDim2.new(0.0544217676, 0, 0.22794117, 0)
  68. ButtonsFrame.Size = UDim2.new(0, 148, 0, 295)
  69.  
  70. MainButton.Name = "MainButton"
  71. MainButton.Parent = ButtonsFrame
  72. MainButton.BackgroundColor3 = Color3.fromRGB(117, 117, 117)
  73. MainButton.Position = UDim2.new(0.128378376, 0, 0.0277409628, 0)
  74. MainButton.Size = UDim2.new(0, 110, 0, 46)
  75. MainButton.Font = Enum.Font.FredokaOne
  76. MainButton.Text = "Main"
  77. MainButton.TextColor3 = Color3.fromRGB(255, 255, 255)
  78. MainButton.TextScaled = true
  79. MainButton.TextSize = 14.000
  80. MainButton.TextWrapped = true
  81.  
  82. UICorner_3.Parent = MainButton
  83.  
  84. CreditsButton.Name = "CreditsButton"
  85. CreditsButton.Parent = ButtonsFrame
  86. CreditsButton.BackgroundColor3 = Color3.fromRGB(117, 117, 117)
  87. CreditsButton.Position = UDim2.new(0.128378376, 0, 0.107397825, 0)
  88. CreditsButton.Size = UDim2.new(0, 110, 0, 46)
  89. CreditsButton.Font = Enum.Font.FredokaOne
  90. CreditsButton.Text = "Credits"
  91. CreditsButton.TextColor3 = Color3.fromRGB(255, 255, 255)
  92. CreditsButton.TextScaled = true
  93. CreditsButton.TextSize = 14.000
  94. CreditsButton.TextWrapped = true
  95.  
  96. UICorner_4.Parent = CreditsButton
  97.  
  98. Main.Name = "Main"
  99. Main.Parent = Frame
  100. Main.BackgroundColor3 = Color3.fromRGB(184, 184, 184)
  101. Main.Position = UDim2.new(0.419501126, 0, 0.22794117, 0)
  102. Main.Size = UDim2.new(0, 231, 0, 295)
  103. Main.Visible = false
  104.  
  105. UICorner_5.Parent = Main
  106.  
  107. Toggle.Name = "Toggle"
  108. Toggle.Parent = Main
  109. Toggle.BackgroundColor3 = Color3.fromRGB(255, 0, 0)
  110. Toggle.Position = UDim2.new(0.0649350658, 0, 0.0745762736, 0)
  111. Toggle.Size = UDim2.new(0, 200, 0, 50)
  112. Toggle.Font = Enum.Font.FredokaOne
  113. Toggle.Text = "Aimbot: Off"
  114. Toggle.TextColor3 = Color3.fromRGB(0, 0, 0)
  115. Toggle.TextScaled = true
  116. Toggle.TextSize = 14.000
  117. Toggle.TextWrapped = true
  118.  
  119. UICorner_6.Parent = Toggle
  120.  
  121. FlyButton.Name = "FlyButton"
  122. FlyButton.Parent = Main
  123. FlyButton.BackgroundColor3 = Color3.fromRGB(255, 157, 0)
  124. FlyButton.Position = UDim2.new(0.0649350658, 0, 0.291525424, 0)
  125. FlyButton.Size = UDim2.new(0, 200, 0, 50)
  126. FlyButton.Font = Enum.Font.FredokaOne
  127. FlyButton.Text = "Fly(X)"
  128. FlyButton.TextColor3 = Color3.fromRGB(255, 255, 255)
  129. FlyButton.TextScaled = true
  130. FlyButton.TextSize = 14.000
  131. FlyButton.TextWrapped = true
  132.  
  133. UICorner_7.Parent = FlyButton
  134.  
  135. Credit.Name = "Credit"
  136. Credit.Parent = Frame
  137. Credit.BackgroundColor3 = Color3.fromRGB(184, 184, 184)
  138. Credit.Position = UDim2.new(0.419501126, 0, 0.22794117, 0)
  139. Credit.Size = UDim2.new(0, 231, 0, 295)
  140. Credit.Visible = false
  141.  
  142. UICorner_8.Parent = Credit
  143.  
  144. TextLabel_2.Parent = Credit
  145. TextLabel_2.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  146. TextLabel_2.Position = UDim2.new(0.0649350658, 0, 0.108474575, 0)
  147. TextLabel_2.Size = UDim2.new(0, 200, 0, 50)
  148. TextLabel_2.Font = Enum.Font.FredokaOne
  149. TextLabel_2.Text = "Made By @Fysemel"
  150. TextLabel_2.TextColor3 = Color3.fromRGB(0, 0, 0)
  151. TextLabel_2.TextScaled = true
  152. TextLabel_2.TextSize = 14.000
  153. TextLabel_2.TextWrapped = true
  154.  
  155. UICorner_9.Parent = TextLabel_2
  156.  
  157. TextLabel_3.Parent = Credit
  158. TextLabel_3.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  159. TextLabel_3.Position = UDim2.new(0.0649350658, 0, 0.352542371, 0)
  160. TextLabel_3.Size = UDim2.new(0, 200, 0, 50)
  161. TextLabel_3.Font = Enum.Font.FredokaOne
  162. TextLabel_3.Text = "Aimbot By @Fysemel"
  163. TextLabel_3.TextColor3 = Color3.fromRGB(0, 0, 0)
  164. TextLabel_3.TextScaled = true
  165. TextLabel_3.TextSize = 14.000
  166. TextLabel_3.TextWrapped = true
  167.  
  168. UICorner_10.Parent = TextLabel_3
  169.  
  170. TextLabel_4.Parent = Credit
  171. TextLabel_4.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  172. TextLabel_4.Position = UDim2.new(0.0649350658, 0, 0.603389859, 0)
  173. TextLabel_4.Size = UDim2.new(0, 200, 0, 50)
  174. TextLabel_4.Font = Enum.Font.FredokaOne
  175. TextLabel_4.Text = "Fly By @TheDominusGramer_YT3"
  176. TextLabel_4.TextColor3 = Color3.fromRGB(0, 0, 0)
  177. TextLabel_4.TextScaled = true
  178. TextLabel_4.TextSize = 14.000
  179. TextLabel_4.TextWrapped = true
  180.  
  181. UICorner_11.Parent = TextLabel_4
  182.  
  183. TextButton.Parent = ScreenGui
  184. TextButton.BackgroundColor3 = Color3.fromRGB(255, 81, 0)
  185. TextButton.Position = UDim2.new(0, 0, 0.221508831, 0)
  186. TextButton.Size = UDim2.new(0, 122, 0, 40)
  187. TextButton.Font = Enum.Font.Bangers
  188. TextButton.Text = "open"
  189. TextButton.TextColor3 = Color3.fromRGB(0, 0, 0)
  190. TextButton.TextScaled = true
  191. TextButton.TextSize = 14.000
  192. TextButton.TextWrapped = true
  193.  
  194. UICorner_12.Parent = TextButton
  195.  
  196. -- Scripts:
  197.  
  198. local function OICJZ_fake_script() -- TextLabel.LocalScript
  199. local script = Instance.new('LocalScript', TextLabel)
  200.  
  201. local t = script.Parent
  202. local plr = game.Players.LocalPlayer
  203.  
  204. t.Text = t.Text..", User ("..plr.Name..")"
  205. end
  206. coroutine.wrap(OICJZ_fake_script)()
  207. local function JWXQ_fake_script() -- MainButton.LocalScript
  208. local script = Instance.new('LocalScript', MainButton)
  209.  
  210. local b = script.Parent
  211.  
  212. local Show = script.Parent.Parent.Parent.Main
  213. local Disable = script.Parent.Parent.Parent.Credit
  214.  
  215. b.MouseButton1Click:Connect(function()
  216. Show.Visible = true
  217. Disable.Visible = false
  218. end)
  219. end
  220. coroutine.wrap(JWXQ_fake_script)()
  221. local function OUOTPGC_fake_script() -- CreditsButton.LocalScript
  222. local script = Instance.new('LocalScript', CreditsButton)
  223.  
  224. local b = script.Parent
  225.  
  226. local Show = script.Parent.Parent.Parent.Credit
  227. local Disable = script.Parent.Parent.Parent.Main
  228.  
  229. b.MouseButton1Click:Connect(function()
  230. Show.Visible = true
  231. Disable.Visible = false
  232. end)
  233. end
  234. coroutine.wrap(OUOTPGC_fake_script)()
  235. local function GMID_fake_script() -- Toggle.Aimbot
  236. local script = Instance.new('LocalScript', Toggle)
  237.  
  238. _G.aimbot = false
  239. local camera = game.Workspace.CurrentCamera
  240. local player = game:GetService("Players").LocalPlayer
  241.  
  242. ----\\ Made By @Fysemel //----
  243.  
  244. script.Parent.MouseButton1Click:Connect(function()
  245. if _G.aimbot == false then
  246. _G.aimbot = true
  247. script.Parent.BackgroundColor3 = Color3.new(0, 170, 0)
  248. script.Parent.Text = "Aimbot: On"
  249. function closestPlayer()
  250. local dist = math.huge
  251. local target = nil
  252. for i,v in pairs (game:GetService("Players"):GetPlayers()) do
  253. if v ~= localplayer then
  254. if v.Character and v.Character:FindFirstChild("Head") and v.TeamColor ~= localplayer.TeamColor and _G.aimbot then
  255. local magnitude = (v.Character.Head.Position - localplayer.Character.Head.Position).magnitude
  256. if magnitude < dist then
  257. target = v
  258. dist = magnitude
  259. target = v
  260. end
  261. end
  262. end
  263. end
  264. return target
  265. end
  266.  
  267. else
  268. _G.aimbot = false
  269. script.Parent.BackgroundColor3 = Color3.new(255, 0, 0)
  270. script.Parent.Text = "Aimbot: Off"
  271. end
  272. end)
  273.  
  274. local settings = {
  275. KeyBind = Enum.UserInputType.MouseButton2
  276. }
  277.  
  278. local UIS = game:GetService("UserInputService")
  279. local aiming = false
  280.  
  281. UIS.InputBegan:Connect(function(inp)
  282. if inp.UserInputType == settings.KeyBind then
  283. aiming = true
  284. end
  285. end)
  286.  
  287. UIS.InputEnded:Connect(function(inp)
  288. if inp.UserInputType == settings.KeyBind then
  289. aiming = false
  290. end
  291. end)
  292.  
  293. game:GetService("RunService").RenderStepped:Connect(function()
  294. if aiming then
  295. camera.CFrame = CFrame.new(camera.CFrame.Position,closestPlayer().Character.Head.Position)
  296. end
  297. end)
  298. end
  299. coroutine.wrap(GMID_fake_script)()
  300. local function MYKF_fake_script() -- FlyButton.Fly
  301. local script = Instance.new('LocalScript', FlyButton)
  302.  
  303. ----\\ Made By @TheDominusGramer_YT3 //----
  304.  
  305. script.Parent.MouseButton1Click:Connect(function()
  306. repeat wait()
  307. until game.Players.LocalPlayer and game.Players.LocalPlayer.Character and game.Players.LocalPlayer.Character:findFirstChild("Head") and game.Players.LocalPlayer.Character:findFirstChild("Humanoid")
  308. local mouse = game.Players.LocalPlayer:GetMouse()
  309. repeat wait() until mouse
  310. local plr = game.Players.LocalPlayer
  311. local torso = plr.Character.Head
  312. local flying = false
  313. local deb = true
  314. local ctrl = {f = 0, b = 0, l = 0, r = 0}
  315. local lastctrl = {f = 0, b = 0, l = 0, r = 0}
  316. local maxspeed = 50
  317. local speed = 400
  318.  
  319. function Fly()
  320. local bg = Instance.new("BodyGyro", torso)
  321. bg.P = 9e4
  322. bg.maxTorque = Vector3.new(9e9, 9e9, 9e9)
  323. bg.cframe = torso.CFrame
  324. local bv = Instance.new("BodyVelocity", torso)
  325. bv.velocity = Vector3.new(0,0.1,0)
  326. bv.maxForce = Vector3.new(9e9, 9e9, 9e9)
  327. repeat wait()
  328. plr.Character.Humanoid.PlatformStand = true
  329. if ctrl.l + ctrl.r ~= 0 or ctrl.f + ctrl.b ~= 0 then
  330. speed = speed+.5+(speed/maxspeed)
  331. if speed > maxspeed then
  332. speed = maxspeed
  333. end
  334. elseif not (ctrl.l + ctrl.r ~= 0 or ctrl.f + ctrl.b ~= 0) and speed ~= 0 then
  335. speed = speed-1
  336. if speed < 0 then
  337. speed = 0
  338. end
  339. end
  340. if (ctrl.l + ctrl.r) ~= 0 or (ctrl.f + ctrl.b) ~= 0 then
  341. bv.velocity = ((game.Workspace.CurrentCamera.CoordinateFrame.lookVector * (ctrl.f+ctrl.b)) + ((game.Workspace.CurrentCamera.CoordinateFrame * CFrame.new(ctrl.l+ctrl.r,(ctrl.f+ctrl.b)*.2,0).p) - game.Workspace.CurrentCamera.CoordinateFrame.p))*speed
  342. lastctrl = {f = ctrl.f, b = ctrl.b, l = ctrl.l, r = ctrl.r}
  343. elseif (ctrl.l + ctrl.r) == 0 and (ctrl.f + ctrl.b) == 0 and speed ~= 0 then
  344. bv.velocity = ((game.Workspace.CurrentCamera.CoordinateFrame.lookVector * (lastctrl.f+lastctrl.b)) + ((game.Workspace.CurrentCamera.CoordinateFrame * CFrame.new(lastctrl.l+lastctrl.r,(lastctrl.f+lastctrl.b)*.2,0).p) - game.Workspace.CurrentCamera.CoordinateFrame.p))*speed
  345. else
  346. bv.velocity = Vector3.new(0,0.1,0)
  347. end
  348. bg.cframe = game.Workspace.CurrentCamera.CoordinateFrame * CFrame.Angles(-math.rad((ctrl.f+ctrl.b)*50*speed/maxspeed),0,0)
  349. until not flying
  350. ctrl = {f = 0, b = 0, l = 0, r = 0}
  351. lastctrl = {f = 0, b = 0, l = 0, r = 0}
  352. speed = 0
  353. bg:Destroy()
  354. bv:Destroy()
  355. plr.Character.Humanoid.PlatformStand = false
  356. end
  357. mouse.KeyDown:connect(function(key)
  358. if key:lower() == "x" then
  359. if flying then flying = false
  360. else
  361. flying = true
  362. Fly()
  363. end
  364. elseif key:lower() == "w" then
  365. ctrl.f = 1
  366. elseif key:lower() == "s" then
  367. ctrl.b = -1
  368. elseif key:lower() == "a" then
  369. ctrl.l = -1
  370. elseif key:lower() == "d" then
  371. ctrl.r = 1
  372. end
  373. end)
  374. mouse.KeyUp:connect(function(key)
  375. if key:lower() == "w" then
  376. ctrl.f = 0
  377. elseif key:lower() == "s" then
  378. ctrl.b = 0
  379. elseif key:lower() == "a" then
  380. ctrl.l = 0
  381. elseif key:lower() == "d" then
  382. ctrl.r = 0
  383. end
  384. end)
  385. end)
  386. Fly()
  387. end
  388. coroutine.wrap(MYKF_fake_script)()
  389. local function WDPNG_fake_script() -- Frame.LocalScript
  390. local script = Instance.new('LocalScript', Frame)
  391.  
  392. local f = script.Parent
  393.  
  394. f.Selectable = true
  395. f.Active = true
  396. f.Draggable = true
  397. end
  398. coroutine.wrap(WDPNG_fake_script)()
  399. local function EOPZO_fake_script() -- TextButton.LocalScript
  400. local script = Instance.new('LocalScript', TextButton)
  401.  
  402. local b = script.Parent
  403. local frame = script.Parent.Parent.Frame
  404.  
  405. b.MouseButton1Click:Connect(function()
  406.  
  407. if b.Text == "close" then
  408. b.Text = "open"
  409. else
  410. b.Text = "close"
  411. end
  412.  
  413. if frame.Visible == true then
  414. frame.Visible = false
  415. else
  416. frame.Visible = true
  417. end
  418. end)
  419. end
  420. coroutine.wrap(EOPZO_fake_script)()
  421.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement