So in my local script I used WaitForChild, but for some reason it’s infinte yeild even though it shouldn’t be. I also tried without WaitForChild and it still doesn’t work for some reason.
(CameraPart is the name).
Output:
Infinite yield possible on 'Workspace:WaitForChild("CameraPart")'
It is done locally. Therefore, the local player isn’t loading it in, causing it to be taking forever to find it. It is likely the way the Roblox rendering system is set up - the client cannot find the part, causing the script to error.
The fix? You can do a repeat loop until it loads (I don’t recommend). If this functionality can be moved to the server, then that would be even better. Best of luck!
Is it? I don’t see where he mentions it. @SilentSuprion is this a LocalScrpt? Where is this located? And definitely send us a screenshot of your explorer view. Does camera part exist at the start of the game, or is it created by a script?
It does, seeing it is defined in the image in the post.
@SilentSurprion, a screenshot of explorer would be greatly appreciated. I had a new thought, which may solve your problem - is the part anchored? If not, it may be falling out of the world, breaking the script.