Have objects in PlayerGui load before script execution

As a Roblox developer it is currently too hard to have scripts run that reference objects in PlayerGui that loads after it.

Basically, its either I spam :WaitForChild or get an error.

Has loading objects in PlayerGui and its children ever been so slow? I even tried wait(.1) at the beginning of script execution, and it still breaks sometimes.

Have objects in PlayerGui load before script execution.

3 Likes