-- Dont touch anything here


local PGui = game.Players.LocalPlayer:WaitForChild("PlayerGui")

local StarterGui = game:GetService("StarterGui")
StarterGui:SetCore("TopbarEnabled",false)

repeat wait() until script.Parent.Parent == game.Players.LocalPlayer:WaitForChild("PlayerGui")

while wait() do
	local Load = game:GetService("ContentProvider").RequestQueueSize
	print('Loading game ('..Load..')')
	if Load == 0 then
		wait(3)
		script.Parent.BackGround.LoadIcon.Visible = false
		script.Parent.BackGround.Text.LocalScript:Destroy()
		script.Parent.BackGround.Text.Text = "Game Loaded!"
		for i=1, 100 do
			script.Parent.BackGround.BackgroundTransparency = i/100
			script.Parent.BackGround.Text.TextTransparency = i/100
			script.Parent.TopBar.BackgroundTransparency = i/100
			wait(.01)
		end
		local StarterGui = game:GetService("StarterGui")
        StarterGui:SetCore("TopbarEnabled",true)
		script.Parent:Destroy()
		break
	end
end
