"ScreenGui is not a valid member of PlayerGui "Players.winner394747.PlayerGui"

For some reason I got an error that says the screenGui is not a member of playerGui even though it is a member.

The script possibly starts before ScreenGui is cloned, use WaitForChild to make sure it gets the object.

2 Likes

It now says “Infinite yield possible on ‘Players.winner394747:WaitForChild(“ScreenGui”)’”

When the game is run, “ScreenGui” will be cloned to “PlayerGui” which is a folder located in a player.

oh wait I accidently deleted the “PlayerGui” part in my code.
Nvm it works now.