I am working on a game with lots of billboard guis, and in an effort to stop lag, I want to delete every part in a folder that has a billboard gui out of range.
the range is 75.
every part in the folder has a surface gui
my question is, is there a way to tell if a billboard gui is visible or not from the server side?
If you’re worried about lag you should really be making all the billboardgui’s on the client from the start.
but at this point if you really want to know a method to detect if you have occlusion of a billboard gui would be to cast a ray from the camera to the billboardgui’s part and see if any parts are intersecting between them.
Although, I thought billboardgui had an property where you can enable occlusion on them.
A second method would be to load in the ui on the client when they get close to the area where’d they’d be rendered.
Roblox already does this for you, roblox uses something called streaming enabled which doesn’t render anything out of a certain distance to save RAM, so you don’t really have to worry about deleting these.
I think I know what you need, but let me make sure. The billboardGUI has a range of 75 and all you need is for the client to not render things within the same space, is that right? In other words, if a player is close they see those parts but if another player is simultaneously far they wouldn’t?