Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

Why do i have to use waitforchild in replicatedStorage?

acctually why do i have to use waitforchild in ReplicatedStorage?

2 answers

It is because the contents in ReplicatedStorage are being replicated or copied to both the client and the server I think.

2 comments

0

And also, replication takes time. That is why you need to use :WaitForChild(). Here too (See whats in "What is Replication?"): https://devforum.roblox.com/t/working-with-the-replication-boundary/498521

It is because ReplicatedStorage is (unlike server storage), replicated to the client. And it takes some time for it to replicate to the client, therefore you use waitforchild in local scripts, since it takes some time to replicate. This is also true to stuff like Workspace.

This discussion is preserved as it was. New answers, comments, and votes are closed.