:WaitForChild() on server?

I was told that using :WaitForChild() on serverScripts isn’t really needed, but while I was just dot indexing in my server script inside my sword melee tool, it suddenly errored that the thing I was referencing didn’t exist, so should I use :WaitForChild() on server?

Inflict is not a valid member of Folder "Players.obamagremlin.Backpack.Melee.Events" 

If you clone something, consider using WaitForChild().
Actually, as a rule of thumb, anything that is created during runtime will likely need WaitForChild() somewhere.

So that includes: tools, characters, anything you clone, anything that’s streamed in/out.

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.