Advertisement
9_cVv

PL Gaming Chair

Sep 7th, 2020
206
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 9.81 KB | None | 0 0
  1. -- Gui to Lua
  2. -- Version: 3.2
  3.  
  4. -- Instances:
  5.  
  6. local plGamingChar = Instance.new("ScreenGui")
  7. local main = Instance.new("Frame")
  8. local titleLabel = Instance.new("TextLabel")
  9. local mainPage = Instance.new("Frame")
  10. local gunMode = Instance.new("TextButton")
  11. local onoff = Instance.new("TextButton")
  12. local sideBar = Instance.new("Frame")
  13. local home = Instance.new("TextButton")
  14. local UIListLayout = Instance.new("UIListLayout")
  15. local main_2 = Instance.new("TextButton")
  16. local settings = Instance.new("TextButton")
  17. local sideBarHover = Instance.new("ImageLabel")
  18.  
  19. --Properties:
  20.  
  21. plGamingChar.Name = "plGamingChar"
  22. plGamingChar.Parent = game.Players.LocalPlayer:WaitForChild("PlayerGui")
  23. plGamingChar.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
  24.  
  25. main.Name = "main"
  26. main.Parent = plGamingChar
  27. main.BackgroundColor3 = Color3.fromRGB(90, 90, 90)
  28. main.BorderSizePixel = 0
  29. main.Position = UDim2.new(0.565573812, 0, 0.276942343, 0)
  30. main.Size = UDim2.new(0, 313, 0, 232)
  31.  
  32. titleLabel.Name = "titleLabel"
  33. titleLabel.Parent = main
  34. titleLabel.BackgroundColor3 = Color3.fromRGB(95, 95, 95)
  35. titleLabel.BorderSizePixel = 0
  36. titleLabel.Size = UDim2.new(0, 313, 0, 24)
  37. titleLabel.Font = Enum.Font.Gotham
  38. titleLabel.Text = "Prison Life Gaming Chair"
  39. titleLabel.TextColor3 = Color3.fromRGB(255, 255, 255)
  40. titleLabel.TextSize = 14.000
  41.  
  42. mainPage.Name = "mainPage"
  43. mainPage.Parent = main
  44. mainPage.BackgroundColor3 = Color3.fromRGB(90, 90, 90)
  45. mainPage.BorderSizePixel = 0
  46. mainPage.Position = UDim2.new(0, 0, 0.103448279, 0)
  47. mainPage.Size = UDim2.new(0, 313, 0, 207)
  48.  
  49. gunMode.Name = "gunMode"
  50. gunMode.Parent = mainPage
  51. gunMode.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  52. gunMode.BackgroundTransparency = 1.000
  53. gunMode.BorderSizePixel = 0
  54. gunMode.Size = UDim2.new(0, 100, 0, 40)
  55. gunMode.Font = Enum.Font.Gotham
  56. gunMode.Text = "Gun Mode"
  57. gunMode.TextColor3 = Color3.fromRGB(255, 255, 255)
  58. gunMode.TextSize = 14.000
  59. gunMode.TextXAlignment = Enum.TextXAlignment.Left
  60.  
  61. onoff.Name = "on/off"
  62. onoff.Parent = gunMode
  63. onoff.BackgroundColor3 = Color3.fromRGB(100, 100, 100)
  64. onoff.BorderColor3 = Color3.fromRGB(255, 255, 255)
  65. onoff.BorderSizePixel = 0
  66. onoff.Position = UDim2.new(0.800000012, 0, 0.230000004, 0)
  67. onoff.Size = UDim2.new(0, 20, 0, 20)
  68. onoff.Font = Enum.Font.Gotham
  69. onoff.Text = ""
  70. onoff.TextColor3 = Color3.fromRGB(255, 255, 255)
  71. onoff.TextScaled = true
  72. onoff.TextSize = 14.000
  73. onoff.TextWrapped = true
  74. onoff.TextYAlignment = Enum.TextYAlignment.Top
  75.  
  76. sideBar.Name = "sideBar"
  77. sideBar.Parent = main
  78. sideBar.BackgroundColor3 = Color3.fromRGB(95, 95, 95)
  79. sideBar.BorderSizePixel = 0
  80. sideBar.Position = UDim2.new(0, 0, 0.103448279, 0)
  81. sideBar.Size = UDim2.new(0, 60, 0, 208)
  82. sideBar.Visible = false
  83.  
  84. home.Name = "home"
  85. home.Parent = sideBar
  86. home.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  87. home.BackgroundTransparency = 1.000
  88. home.BorderSizePixel = 0
  89. home.Size = UDim2.new(0, 60, 0, 69)
  90. home.Font = Enum.Font.Gotham
  91. home.Text = "Home"
  92. home.TextColor3 = Color3.fromRGB(255, 255, 255)
  93. home.TextSize = 14.000
  94.  
  95. UIListLayout.Parent = sideBar
  96. UIListLayout.SortOrder = Enum.SortOrder.LayoutOrder
  97.  
  98. main_2.Name = "main"
  99. main_2.Parent = sideBar
  100. main_2.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  101. main_2.BackgroundTransparency = 1.000
  102. main_2.BorderSizePixel = 0
  103. main_2.Position = UDim2.new(0, 0, 0.666666746, 0)
  104. main_2.Size = UDim2.new(0, 60, 0, 69)
  105. main_2.Font = Enum.Font.Gotham
  106. main_2.Text = "Main"
  107. main_2.TextColor3 = Color3.fromRGB(255, 255, 255)
  108. main_2.TextSize = 14.000
  109.  
  110. settings.Name = "settings"
  111. settings.Parent = sideBar
  112. settings.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  113. settings.BackgroundTransparency = 1.000
  114. settings.BorderSizePixel = 0
  115. settings.Position = UDim2.new(0, 0, 0.333333373, 0)
  116. settings.Size = UDim2.new(0, 60, 0, 69)
  117. settings.Font = Enum.Font.Gotham
  118. settings.Text = "Settings"
  119. settings.TextColor3 = Color3.fromRGB(255, 255, 255)
  120. settings.TextSize = 14.000
  121.  
  122. sideBarHover.Name = "sideBarHover"
  123. sideBarHover.Parent = main
  124. sideBarHover.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  125. sideBarHover.BackgroundTransparency = 1.000
  126. sideBarHover.BorderSizePixel = 0
  127. sideBarHover.Position = UDim2.new(0, 0, 0.103448279, 0)
  128. sideBarHover.Size = UDim2.new(0, 30, 0, 208)
  129. sideBarHover.Image = "rbxasset://textures/ui/GuiImagePlaceholder.png"
  130. sideBarHover.ImageTransparency = 1.000
  131.  
  132. -- Scripts:
  133.  
  134. local function CWHP_fake_script() -- onoff.gunmode
  135.     local script = Instance.new('LocalScript', onoff)
  136.  
  137.     local tweenService = game:GetService("TweenService")
  138.     local on = false
  139.     local plr = game:GetService("Players").LocalPlayer
  140.    
  141.     repeat wait() until plr.Character
  142.    
  143.     local function gunMode()
  144.         local function mod(guninfo)
  145.             guninfo.Damage = math.huge
  146.             guninfo.MaxAmmo = math.huge
  147.             guninfo.CurrentAmmo = math.huge
  148.             guninfo.StoredAmmo = math.huge
  149.             guninfo.FireRate = .00000000001
  150.             guninfo.Spread = .000000000001
  151.             guninfo.Range = math.huge
  152.             guninfo.AutoFire = true
  153.         end
  154.        
  155.         for a,gun in pairs(plr.Backpack:GetChildren()) do
  156.             if gun:FindFirstChild('GunStates') then
  157.                 local guninfo = require(gun.GunStates)
  158.                 mod(guninfo)
  159.             end
  160.         end
  161.         for a,gun in pairs(plr.Character:GetChildren()) do
  162.             if gun:FindFirstChild('GunStates') then
  163.                 local guninfo = require(gun.GunStates)
  164.                 mod(guninfo)
  165.             end
  166.         end
  167.     end
  168.    
  169.     local function unGunMode()
  170.         local function unmod(guninfo,gun)
  171.             if gun.Name == 'Remington 870' then
  172.                 guninfo.Damage = 15
  173.                 guninfo.MaxAmmo = 6
  174.                 guninfo.CurrentAmmo = 6
  175.                 guninfo.StoredAmmo = 600
  176.                 guninfo.FireRate = 0.8
  177.                 guninfo.AutoFire = false
  178.                 guninfo.Range = 400
  179.                 guninfo.Spread = 3
  180.             end
  181.             if gun.Name == 'AK-47' then
  182.                 guninfo.Damage = 11
  183.                 guninfo.MaxAmmo = 30
  184.                 guninfo.CurrentAmmo = 30
  185.                 guninfo.StoredAmmo = 600
  186.                 guninfo.FireRate = 0.1
  187.                 guninfo.AutoFire = true
  188.                 guninfo.Range = 800
  189.                 guninfo.Spread = 14
  190.             end
  191.         end
  192.        
  193.         for a,gun in pairs(plr.Backpack:GetChildren()) do
  194.             if gun:FindFirstChild('GunStates') then
  195.                 local guninfo = require(gun.GunStates)
  196.                 unmod(guninfo,gun)
  197.             end
  198.         end
  199.         for a,gun in pairs(plr.Character:GetChildren()) do
  200.             if gun:FindFirstChild('GunStates') then
  201.                 local guninfo = require(gun.GunStates)
  202.                 unmod(guninfo,gun)
  203.             end
  204.         end
  205.     end
  206.    
  207.     script.Parent.MouseButton1Click:Connect(function()
  208.         if on == false then
  209.             on = true
  210.             tweenService:Create(script.Parent,TweenInfo.new(.3),{BackgroundColor3=Color3.fromRGB(36, 199, 0)}):Play()
  211.         else
  212.             on = false
  213.             tweenService:Create(script.Parent,TweenInfo.new(.3),{BackgroundColor3=Color3.fromRGB(90,90,90)}):Play()
  214.         end
  215.         while wait() do
  216.             if on == true then
  217.                 gunMode()
  218.             else
  219.                 unGunMode()
  220.             end
  221.         end
  222.     end)
  223. end
  224. coroutine.wrap(CWHP_fake_script)()
  225. local function QGOTUMH_fake_script() -- main.tweenHandler
  226.     local script = Instance.new('LocalScript', main)
  227.  
  228.     local tweenS = game:GetService("TweenService")
  229.     local main = script.Parent.mainPage
  230.     local sidebar = script.Parent.sideBar
  231.     local sidebarHover = script.Parent.sideBarHover
  232.    
  233.     local function hasProperty(object, prop)
  234.         local t = object[prop]
  235.     end
  236.    
  237.     local function tween(obj,timee,property,value,doChildren,onlyChildren)
  238.         if property == 'size' then
  239.             if onlyChildren then
  240.                 for a,b in pairs(obj:GetChildren()) do
  241.                     local hasProp = pcall(function() hasProperty(b,'Size') end)
  242.                     if hasProp then
  243.                         tweenS:Create(b,TweenInfo.new(timee),{Size=value}):Play()
  244.                     end
  245.                 end
  246.             else
  247.                 if doChildren then
  248.                     for a,b in pairs(obj:GetChildren()) do
  249.                         local hasProp = pcall(function() hasProperty(b,'Size') end)
  250.                         if hasProp then
  251.                             tweenS:Create(b,TweenInfo.new(timee),{Size=value}):Play()
  252.                         end
  253.                     end
  254.                 end
  255.                 tweenS:Create(obj,TweenInfo.new(timee),{Size=value}):Play()
  256.             end
  257.         end
  258.         if property == 'position' then
  259.             if onlyChildren then
  260.                 for a,b in pairs(obj:GetChildren()) do
  261.                     local hasProp = pcall(function() hasProperty(b,'Position') end)
  262.                     if hasProp then
  263.                         tweenS:Create(b,TweenInfo.new(timee),{Position=value}):Play()
  264.                     end
  265.                 end
  266.             else
  267.                 if doChildren then
  268.                     for a,b in pairs(obj:GetChildren()) do
  269.                         local hasProp = pcall(function() hasProperty(b,'Position') end)
  270.                         if hasProp then
  271.                             tweenS:Create(b,TweenInfo.new(timee),{Position=value}):Play()
  272.                         end
  273.                     end
  274.                 end
  275.                 tweenS:Create(obj,TweenInfo.new(timee),{Position=value}):Play()
  276.             end
  277.         end
  278.         if property == 'textTransparency' then
  279.             if onlyChildren then
  280.                 for a,b in pairs(obj:GetChildren()) do
  281.                     local hasSize = pcall(function() hasProperty(b,'TextTransparency') end)
  282.                     if hasSize then
  283.                         tweenS:Create(b,TweenInfo.new(timee),{TextTransparency=value}):Play()
  284.                     end
  285.                 end
  286.             else
  287.                 if doChildren then
  288.                     for a,b in pairs(obj:GetChildren()) do
  289.                         local hasSize = pcall(function() hasProperty(b,'TextTransparency') end)
  290.                         if hasSize then
  291.                             tweenS:Create(b,TweenInfo.new(timee),{TextTransparency=value}):Play()
  292.                         end
  293.                     end
  294.                 end
  295.                 tweenS:Create(obj,TweenInfo.new(timee),{TextTransparency=value}):Play()
  296.             end
  297.         end
  298.     end
  299.    
  300.     sidebarHover.MouseEnter:Connect(function()
  301.         tween(sidebar,.5,'size',UDim2.new(0,60,0,208),false,false)
  302.         tween(sidebar,.5,'size',UDim2.new(0,60,0,69),true,true)
  303.         tween(sidebar,.5,'textTransparency',0,true,true)
  304.     end)
  305.    
  306.     sidebar.MouseLeave:Connect(function()
  307.         tween(sidebar,.5,'size',UDim2.new(0,0,0,208),false,false)
  308.         tween(sidebar,.5,'size',UDim2.new(0,0,0,69),true,true)
  309.         tween(sidebar,.5,'textTransparency',1,true,true)
  310.     end)
  311.    
  312.     for a,b in pairs(sidebar:GetChildren()) do
  313.         if b:IsA("TextButton") then
  314.             b.MouseButton1Click:connect(function()
  315.                 tween(sidebar,.5,'size',UDim2.new(0,0,0,208),false,false)
  316.                 tween(sidebar,.5,'size',UDim2.new(0,0,0,69),true,true)
  317.                 tween(sidebar,.5,'textTransparency',1,true,true)
  318.             end)
  319.         end
  320.     end
  321. end
  322. coroutine.wrap(QGOTUMH_fake_script)()
  323.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement