Yield until expected instances (Descending from StarterGui) load

My whole question in short (you can just answer this tysm):
:WaitForAllChildren()?, is this already supported by :WaitForChild()?
Read on if you would like to understand my full situation.

The long explanation:
Essentially, I would like to yield some code before it runs up until something that I am 100% sure will load (or the entire game would be completely useless so it’s fine otherwise) instances. I tried to use the Service ContentProvider to no avail as it only supports loading assets. Suppose I have things that I am waiting for some Instances in StarterGui that I set in the Studio explorer before runtime, how can I wait for instances here to load and especially how can I wait for all of the instances to load so I know I am safe to call all my functions and the game can work without having to go mad by creating some crazy large enumeration table or something else stupid that I am known for doing.

I have tried searching like mad, taking a lovely 1 hour long amble down google and the devforum tracking down this information. It would be nice if this post was present so it could appear for any other people suffering to find the solution.
Would be especially nice if Instance | Roblox Creator Documentation elaborated on something else related to my question for those who are lost I guess? Effectively I’m trying to say I’m lost and kind of incompetent lol.

Sorry for being dumb I’ve been:using:SomeInstanceThatRobloxHates:WaitForChild("yada"):WaitForChild("yada"):WaitForChild("yada") for some time now…

Thanks a lot for reading my post I greatly appreciate it :slight_smile: :slight_smile: :slight_smile:

1 Like

I found this thread that should answer your question.

2 Likes