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

Does WaitForChild() ever break after X amount of time?

WaitForChild() -- Does this break after X amount of time? 

brick = WaitForChild(game.Workspace.Brick) -- Would this ever break or would it sit there and wait for something that's named Brick to show up in the Workspace?

2 comments

1

This isn't how you use the WaitForChild method -- though. brick = game.Workspace:WaitForChild("Brick")

0

I'm sure you could do that though, right? I wouldn't see why it wouldn't work like that :D

1 answer

✓ Accepted answer

Howdy!

WaitForChild waits for the object just until it's found. It will not break if it's not found; it will continue waiting.

Have a good day!

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