I have the following script:
(Of course, it’s pretty obvious what the variables are)
if Timer ~= 0 then
wait(Timer)
ReadyToFade = true
wait(1)
ScreenGui:Destroy()
else
if not game:IsLoaded() then
game.Loaded:Wait()
end
ReadyToFade = true
wait(1)
ScreenGui:Destroy()
end
However, the problem is that if the timer is 0, it should wait for the game to load and destroy the ScreenGui. But, it doesn’t. I did this in the CommandBar: print(game:IsLoaded()) and it printed true. Can anyone help me?
You can put it on top of the if statement if you want. The placement doesn’t matter as long as anything beyond isn’t looking for / changing something that wouldn’t yet be loaded at that time.