acctually why do i have to use waitforchild in ReplicatedStorage?
COMMUNITY QUESTION
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.
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.

2 comments
For more info: https://developer.roblox.com/en-us/api-reference/class/ReplicatedStorage
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