I have a script that should disable the topbar and then display a loading screen. GUI itself works fine but when I try to us it as a loading screen, nothing happens. Why won't it work? Thanks for any help in advance!
PlayerGui:SetTopbarTransparency(0)
local screen = game.ReplicatedStorage.LoadingGui:Clone()
screen.Parent = PlayerGui
script.Parent:RemoveDefaultLoadingScreen()
screen.Parent = nil

1 comment
Try moving LoadingGui to ReplicatedFirst and add an extra WaitForChild for good measure? You may want to make sure that PlayerGui is loaded before setting the parent, too. Also, why are you setting the parent of screen to nil right after removing the default loading screen?