Infinite yield possible error - workspace:WaitForChild

Hello, i try to make custom camera for cutscene, my camera is “fixed” so i look for part to look at while cutscene is going to take place. My script to scope this part it:

local focuspart = game.Workspace:WaitForChild("focuspart")

everything i scoped fine, when i write “f” it reads whole part name so it’s in good place for sure, it is anchored, cancollide is true, everything sounds fine. I tried making another part and it didnt work neither. What can cause the problem?

1 Like

Firstly check that that is indeed the correct name.

Secondly, have you got streaming enabled? If so, it’s likely that the object is unloaded, and hence not accessible by the player. This means the script will be unable to access the part.

1 Like

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