Okay, so this script is supposed to basically wait until the Gui is visible, then wait 1 sec, and if the gui is still visible (this part will be critical eventually) close it and open the next one. It doesn't do anything. Please help me!
Here is the script:
player = game.Players.LocalPlayer
gui = player.PlayerGui.ScreenGui
loading = gui.loading
results = gui.results
while true do
if loading.Visible == true then
wait(1)
if loading.Visible == true then
loading.Visible = false
results.Visible = true
else
script:Destroy()
end
else
wait (1)
end
end

2 comments
Hey, I just tried this in-game and it didn't work. Did it work for you?
Try checking your hierarchies, they might be incorrect.