Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
1

In which order does the server send information in replicated storage to the client?

Asked by 4 years ago

The reason why I'd like to know this is because let's say I have a folder with remoteevent instances in it and I call WaitForChild("folder") on replicated storage, would I have to then use WaitForChild("remoteevent") on the folder or does the server send the entire folder at once?

1 answer

Log in to vote
0
Answered by 4 years ago

A good read

As outlined in the link, when the parent becomes available, so too do its children. You'll only need to do one WaitForChild on the folder. (Only works for pre-built remotes; That is, remotes not created by code)

Be careful doing it this way as you may find yourself needing to create the remote events through code from a server script. If you do need to do this, then using WaitForChild on the folder will pass, even though the new remote event may or may not have been created yet.

The second method of creating the remote by the server, then parenting it is what I use and is a great way to know for sure that the remote is ready to be fired.

Ad

Answer this question