I’m really tired of having a ‘:WaitForChild()’ every other line in my scripts. It’s frustrating not knowing what parts of the GUI my client will get first and if the script will run before or after they get them. Because of this pain, I feel like scripts should be added last (at least to PlayerGui). If this is a dumb suggestion or I’m doing something wrong, don’t be afraid to speak up.
[quote] I don’t even know if I’m doing it right.
[/quote]
I didn’t realize that it returned what you were waiting for o.O Well, i just go rid of a bunch of clutter…
You didn’t know you could set variable with a WaitForChild in them?
Yeh you can.
repeat wait(5) until #script.Parent:GetChildren() > [maximum_number_of_children_in_script's_parent] - 1
that should work.
Lol FiniteReality that’s what I did when I was waiting for 20 boat models with a script. It’s a nice hacky piece of code when there’s more than just a few items to wait for
- Write script
- Test script
- If script breaks, insert wait(1) at the beginning
- Goto [2]
And add a “destroy all dem instances and insert them in again” button labeled as “Fix guis”


