-- Variables.

local loadingScreen = script.LoadingScreen
local player = game.Players.LocalPlayer

local clonedLoadingScreen = loadingScreen:Clone()
clonedLoadingScreen.Parent = player:WaitForChild("PlayerGui")

local frame = clonedLoadingScreen.Frame
local bar = frame.LoadingBar
local inside = bar.BarInfill
local skipButton = frame.SkipFrame.SkipButton
local loadingPercentage = frame.DisplayPercentage

local screenVisible = true
local hideAfter = 30
