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

"Error"? In script. Infinite yield possible on 'Workspace:WaitForChild("Camera")' ?

Infinite yield possible on 'Workspace:WaitForChild("Camera")'

Got this in yellow text. Confused to what it means. Or what to do.

1 answer

The error means that using the WaitForChild function caused the script to yield more than 5 seconds.

This just means the object isn't there.

If you're trying to retrieve the Camera from a server script then switch to a LocalScript, because the camera can only be accessed by the client.

1 comment

0

Don't forget the "CurrentCamera" object/ child w/in the Workspace. :P

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