I'm trying to make an intro with a black screen, then wait 5 seconds and the screen disappears revealing the game. Why doesn't this script work?
wait(5) game.StarterGui:WaitForChild("ScreenGui").Enabled = false end
The black screen is a frame set inside of the ScreenGui.
You need to access the PlayerGui
, and make sure you do it in a LocalScript.
-- localscript local player = game.Players.LocalPlayer local playerGui = player:WaitForChild("PlayerGui") local screenGui = playerGui:WaitForChild("ScreenGui") wait(5) screenGui.Enabled = false
Hope this helps! :)