Will :Clone() wait until all Descendants are inside?

Do i need to use WaitForChild() for cloned GUIs or is the Clone() finished after all Children/Descendants are inside?

1 Like

You have to use :WaitForChild(), because :Clone() doesn’t know which children/descendants still need to be added.

1 Like

I read that Clone() will wait for all Parts to be added, so does that mean Clone() will not wait for GUIs until its added?

Where did you read that?

30

And in my game it looks like its really waiting for like 5 seconds for my Vehicle

In the post you send they say that :Clone() will wait until all of the cloned instances have been replicated to the server, but that doesn’t affect ui.

They also said that :Clone() will wait until a model has finished loading, if it hasn’t yet because of StreamingEnabled.
Your car will be affected if you have it enabled, but StreamingEnabled has no affect on ui.

2 Likes