Parts getting randomly deleted and re-created in Workspace

While I was testing, I noticed that the game wouldn’t let me teleport to certain checkpoints. I thought this was a bug in the code, so I started debugging that for a while.

But as I was testing, I was looking in the explorer. And to my surprise, the checkpoints were actually getting deleted as I teleported around. And the scripts wouldn’t be able to find those parts when they were deleted. But the checkpoints were also getting re-created in the same session, and I could teleport to them again. Seemingly random.

And it wasn’t just the checkpoints, it was every other part in the workspace. And it seemed to happen to parts that were far away. So I’m guessing that the objects are getting “unloaded” once I get too far from them. That is weird, since it should be that the objects just don’t get rendered. Not actually getting deleted.

And this happens in-game too, not just in studio. Hope someone can help. I’m guessing it’s probably just one checkbox I need to change, so I’m hoping this post can help anyone else who has this problem.

How big is your map?
Do you have StreamingEnabled on? That’ll do precisely what you’re describing.

1 Like

Yes, disabling that has fixed it.

1 Like