Is it possible to only render objects that the player can see?

So I have this huge game, it’s a core game and the facility is massive. There is a massive lag issue however, because in certain regions, the client is rendering a lot more things than others, but other areas still stay loaded, which dramatically is decreasing FPS and increasing lag. Is there a way to make it so that the client will only render objects that it can see?

1 Like

You should look into StreamingEnabled. One thing you should be wary off is that some instances won’t be available when you reference them in a script. If there’s a possibility of them not being streamed/loaded for the player at the time then you should consider using :WaitForChild on such instances.

1 Like

So that seems to work fine, but if I have specific parts that need to be loaded throughout the workspace, for example, Part A is at 0,0,0 and Part B is 500 studs away, is there a way to constantly have certain objects rendered?

Nevermind, I found Player:RequestStreamAroundAsync()

1 Like