I discovered a few warnings in my game. The issue is self-explanatory, but I’m confused on how I can fix this. I’m unable to find any solutions. My game uses a lot of WaitForChild is there any way to fix all the infinite yields?
1 Like
You can silence them by adding a timeout. If you really want to yield forever, it’ll be :WaitForChild("name", math.huge)
It’s best to actually resolve the infinite yields though.
1 Like
Just set it to nil instead of math.huge, also math.huge returns a really really really big number.
1 Like
you could make scripts run after game is loaded by doing something like this
repeat task.wait() until game:IsLoaded()
one thing i would also suggest is avoiding using WaitForChild() for everything
1 Like
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.