Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- Gui to Lua
- -- Version: 3.2
- -- Instances:
- local plGamingChar = Instance.new("ScreenGui")
- local main = Instance.new("Frame")
- local titleLabel = Instance.new("TextLabel")
- local mainPage = Instance.new("Frame")
- local gunMode = Instance.new("TextButton")
- local onoff = Instance.new("TextButton")
- local sideBar = Instance.new("Frame")
- local home = Instance.new("TextButton")
- local UIListLayout = Instance.new("UIListLayout")
- local main_2 = Instance.new("TextButton")
- local settings = Instance.new("TextButton")
- local sideBarHover = Instance.new("ImageLabel")
- --Properties:
- plGamingChar.Name = "plGamingChar"
- plGamingChar.Parent = game.Players.LocalPlayer:WaitForChild("PlayerGui")
- plGamingChar.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
- main.Name = "main"
- main.Parent = plGamingChar
- main.BackgroundColor3 = Color3.fromRGB(90, 90, 90)
- main.BorderSizePixel = 0
- main.Position = UDim2.new(0.565573812, 0, 0.276942343, 0)
- main.Size = UDim2.new(0, 313, 0, 232)
- titleLabel.Name = "titleLabel"
- titleLabel.Parent = main
- titleLabel.BackgroundColor3 = Color3.fromRGB(95, 95, 95)
- titleLabel.BorderSizePixel = 0
- titleLabel.Size = UDim2.new(0, 313, 0, 24)
- titleLabel.Font = Enum.Font.Gotham
- titleLabel.Text = "Prison Life Gaming Chair"
- titleLabel.TextColor3 = Color3.fromRGB(255, 255, 255)
- titleLabel.TextSize = 14.000
- mainPage.Name = "mainPage"
- mainPage.Parent = main
- mainPage.BackgroundColor3 = Color3.fromRGB(90, 90, 90)
- mainPage.BorderSizePixel = 0
- mainPage.Position = UDim2.new(0, 0, 0.103448279, 0)
- mainPage.Size = UDim2.new(0, 313, 0, 207)
- gunMode.Name = "gunMode"
- gunMode.Parent = mainPage
- gunMode.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- gunMode.BackgroundTransparency = 1.000
- gunMode.BorderSizePixel = 0
- gunMode.Size = UDim2.new(0, 100, 0, 40)
- gunMode.Font = Enum.Font.Gotham
- gunMode.Text = "Gun Mode"
- gunMode.TextColor3 = Color3.fromRGB(255, 255, 255)
- gunMode.TextSize = 14.000
- gunMode.TextXAlignment = Enum.TextXAlignment.Left
- onoff.Name = "on/off"
- onoff.Parent = gunMode
- onoff.BackgroundColor3 = Color3.fromRGB(100, 100, 100)
- onoff.BorderColor3 = Color3.fromRGB(255, 255, 255)
- onoff.BorderSizePixel = 0
- onoff.Position = UDim2.new(0.800000012, 0, 0.230000004, 0)
- onoff.Size = UDim2.new(0, 20, 0, 20)
- onoff.Font = Enum.Font.Gotham
- onoff.Text = ""
- onoff.TextColor3 = Color3.fromRGB(255, 255, 255)
- onoff.TextScaled = true
- onoff.TextSize = 14.000
- onoff.TextWrapped = true
- onoff.TextYAlignment = Enum.TextYAlignment.Top
- sideBar.Name = "sideBar"
- sideBar.Parent = main
- sideBar.BackgroundColor3 = Color3.fromRGB(95, 95, 95)
- sideBar.BorderSizePixel = 0
- sideBar.Position = UDim2.new(0, 0, 0.103448279, 0)
- sideBar.Size = UDim2.new(0, 60, 0, 208)
- sideBar.Visible = false
- home.Name = "home"
- home.Parent = sideBar
- home.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- home.BackgroundTransparency = 1.000
- home.BorderSizePixel = 0
- home.Size = UDim2.new(0, 60, 0, 69)
- home.Font = Enum.Font.Gotham
- home.Text = "Home"
- home.TextColor3 = Color3.fromRGB(255, 255, 255)
- home.TextSize = 14.000
- UIListLayout.Parent = sideBar
- UIListLayout.SortOrder = Enum.SortOrder.LayoutOrder
- main_2.Name = "main"
- main_2.Parent = sideBar
- main_2.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- main_2.BackgroundTransparency = 1.000
- main_2.BorderSizePixel = 0
- main_2.Position = UDim2.new(0, 0, 0.666666746, 0)
- main_2.Size = UDim2.new(0, 60, 0, 69)
- main_2.Font = Enum.Font.Gotham
- main_2.Text = "Main"
- main_2.TextColor3 = Color3.fromRGB(255, 255, 255)
- main_2.TextSize = 14.000
- settings.Name = "settings"
- settings.Parent = sideBar
- settings.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- settings.BackgroundTransparency = 1.000
- settings.BorderSizePixel = 0
- settings.Position = UDim2.new(0, 0, 0.333333373, 0)
- settings.Size = UDim2.new(0, 60, 0, 69)
- settings.Font = Enum.Font.Gotham
- settings.Text = "Settings"
- settings.TextColor3 = Color3.fromRGB(255, 255, 255)
- settings.TextSize = 14.000
- sideBarHover.Name = "sideBarHover"
- sideBarHover.Parent = main
- sideBarHover.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- sideBarHover.BackgroundTransparency = 1.000
- sideBarHover.BorderSizePixel = 0
- sideBarHover.Position = UDim2.new(0, 0, 0.103448279, 0)
- sideBarHover.Size = UDim2.new(0, 30, 0, 208)
- sideBarHover.Image = "rbxasset://textures/ui/GuiImagePlaceholder.png"
- sideBarHover.ImageTransparency = 1.000
- -- Scripts:
- local function CWHP_fake_script() -- onoff.gunmode
- local script = Instance.new('LocalScript', onoff)
- local tweenService = game:GetService("TweenService")
- local on = false
- local plr = game:GetService("Players").LocalPlayer
- repeat wait() until plr.Character
- local function gunMode()
- local function mod(guninfo)
- guninfo.Damage = math.huge
- guninfo.MaxAmmo = math.huge
- guninfo.CurrentAmmo = math.huge
- guninfo.StoredAmmo = math.huge
- guninfo.FireRate = .00000000001
- guninfo.Spread = .000000000001
- guninfo.Range = math.huge
- guninfo.AutoFire = true
- end
- for a,gun in pairs(plr.Backpack:GetChildren()) do
- if gun:FindFirstChild('GunStates') then
- local guninfo = require(gun.GunStates)
- mod(guninfo)
- end
- end
- for a,gun in pairs(plr.Character:GetChildren()) do
- if gun:FindFirstChild('GunStates') then
- local guninfo = require(gun.GunStates)
- mod(guninfo)
- end
- end
- end
- local function unGunMode()
- local function unmod(guninfo,gun)
- if gun.Name == 'Remington 870' then
- guninfo.Damage = 15
- guninfo.MaxAmmo = 6
- guninfo.CurrentAmmo = 6
- guninfo.StoredAmmo = 600
- guninfo.FireRate = 0.8
- guninfo.AutoFire = false
- guninfo.Range = 400
- guninfo.Spread = 3
- end
- if gun.Name == 'AK-47' then
- guninfo.Damage = 11
- guninfo.MaxAmmo = 30
- guninfo.CurrentAmmo = 30
- guninfo.StoredAmmo = 600
- guninfo.FireRate = 0.1
- guninfo.AutoFire = true
- guninfo.Range = 800
- guninfo.Spread = 14
- end
- end
- for a,gun in pairs(plr.Backpack:GetChildren()) do
- if gun:FindFirstChild('GunStates') then
- local guninfo = require(gun.GunStates)
- unmod(guninfo,gun)
- end
- end
- for a,gun in pairs(plr.Character:GetChildren()) do
- if gun:FindFirstChild('GunStates') then
- local guninfo = require(gun.GunStates)
- unmod(guninfo,gun)
- end
- end
- end
- script.Parent.MouseButton1Click:Connect(function()
- if on == false then
- on = true
- tweenService:Create(script.Parent,TweenInfo.new(.3),{BackgroundColor3=Color3.fromRGB(36, 199, 0)}):Play()
- else
- on = false
- tweenService:Create(script.Parent,TweenInfo.new(.3),{BackgroundColor3=Color3.fromRGB(90,90,90)}):Play()
- end
- while wait() do
- if on == true then
- gunMode()
- else
- unGunMode()
- end
- end
- end)
- end
- coroutine.wrap(CWHP_fake_script)()
- local function QGOTUMH_fake_script() -- main.tweenHandler
- local script = Instance.new('LocalScript', main)
- local tweenS = game:GetService("TweenService")
- local main = script.Parent.mainPage
- local sidebar = script.Parent.sideBar
- local sidebarHover = script.Parent.sideBarHover
- local function hasProperty(object, prop)
- local t = object[prop]
- end
- local function tween(obj,timee,property,value,doChildren,onlyChildren)
- if property == 'size' then
- if onlyChildren then
- for a,b in pairs(obj:GetChildren()) do
- local hasProp = pcall(function() hasProperty(b,'Size') end)
- if hasProp then
- tweenS:Create(b,TweenInfo.new(timee),{Size=value}):Play()
- end
- end
- else
- if doChildren then
- for a,b in pairs(obj:GetChildren()) do
- local hasProp = pcall(function() hasProperty(b,'Size') end)
- if hasProp then
- tweenS:Create(b,TweenInfo.new(timee),{Size=value}):Play()
- end
- end
- end
- tweenS:Create(obj,TweenInfo.new(timee),{Size=value}):Play()
- end
- end
- if property == 'position' then
- if onlyChildren then
- for a,b in pairs(obj:GetChildren()) do
- local hasProp = pcall(function() hasProperty(b,'Position') end)
- if hasProp then
- tweenS:Create(b,TweenInfo.new(timee),{Position=value}):Play()
- end
- end
- else
- if doChildren then
- for a,b in pairs(obj:GetChildren()) do
- local hasProp = pcall(function() hasProperty(b,'Position') end)
- if hasProp then
- tweenS:Create(b,TweenInfo.new(timee),{Position=value}):Play()
- end
- end
- end
- tweenS:Create(obj,TweenInfo.new(timee),{Position=value}):Play()
- end
- end
- if property == 'textTransparency' then
- if onlyChildren then
- for a,b in pairs(obj:GetChildren()) do
- local hasSize = pcall(function() hasProperty(b,'TextTransparency') end)
- if hasSize then
- tweenS:Create(b,TweenInfo.new(timee),{TextTransparency=value}):Play()
- end
- end
- else
- if doChildren then
- for a,b in pairs(obj:GetChildren()) do
- local hasSize = pcall(function() hasProperty(b,'TextTransparency') end)
- if hasSize then
- tweenS:Create(b,TweenInfo.new(timee),{TextTransparency=value}):Play()
- end
- end
- end
- tweenS:Create(obj,TweenInfo.new(timee),{TextTransparency=value}):Play()
- end
- end
- end
- sidebarHover.MouseEnter:Connect(function()
- tween(sidebar,.5,'size',UDim2.new(0,60,0,208),false,false)
- tween(sidebar,.5,'size',UDim2.new(0,60,0,69),true,true)
- tween(sidebar,.5,'textTransparency',0,true,true)
- end)
- sidebar.MouseLeave:Connect(function()
- tween(sidebar,.5,'size',UDim2.new(0,0,0,208),false,false)
- tween(sidebar,.5,'size',UDim2.new(0,0,0,69),true,true)
- tween(sidebar,.5,'textTransparency',1,true,true)
- end)
- for a,b in pairs(sidebar:GetChildren()) do
- if b:IsA("TextButton") then
- b.MouseButton1Click:connect(function()
- tween(sidebar,.5,'size',UDim2.new(0,0,0,208),false,false)
- tween(sidebar,.5,'size',UDim2.new(0,0,0,69),true,true)
- tween(sidebar,.5,'textTransparency',1,true,true)
- end)
- end
- end
- end
- coroutine.wrap(QGOTUMH_fake_script)()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement