Infinite Yield, part is too far

Good day.
I’m currenntly working on a open world SCP game and I’ve been getting an issue recently that bugs out the script if the player spawns too far away from other spawn locations (that are actually needed)

This issue fixes itself if I make the player spawn right next to every spawns but i’d still want them to be far away from each others

Important notices:

  • I’ve added “WaitForChild()” but it still bugs out
  • I’ve added a functiion that waits for the player to fully load until the script plays
  • The distance between each spawns for it to break is roughly about 1’000 studs
3 Likes

Sorry, I don’t exactly understand what’s the problem with the yield. Your title talks about a part being too far but the text is about spawns being far away. Could you elaborate a bit more and maybe show a video of the bug if possible?

Are you using StreamingEnabled?

I was referring the part to the spawn locations.

Yes, found a solution by either expanding the range of it or just disabling, that’s a proper solution but could impact the player’s performance

Oh, don’t disable it then. You can just do Player:RequestStreamAroundAsync(MySpawn.Location) on the server.

Thanks a lot for the help, seems to be a better workaround