How do i make a object not render?

Im not sure if this is the right catagory but ill go with it.
So i wanna make a object (in my case a tree) appear out of render when your in another area or when your to far away because i have alot of trees in my game does anyone know how to make it so when the player is to far away the trees will not appear?

1 Like

Add fog, I think.
(30 letters)

1 Like

That would work but what i want to do is make it (like in minecraft) when you go out of a certain distance the object disapears.

Using StreamingEnabled might seem like what you want. The dev hub wiki documentation can be found here

1 Like

Are you trying to recreate the chunk system in Minecraft or just how objects disappear after you go far away enough?

1 Like

I would do that but one this is a sci fi ga- i mean experience and two i have no idea how to script.

Ok, so using StreamingEnabled is probably good for what you want to do then, because it doesn’t require any scripting to set up.

1 Like

Atmosphere Effects (roblox.com)

You may be interested in the “Ghosting” effect mentioned under “Atmosphere” > “Offset”, haven’t expiremented too much with it and it doesn’t disable rendering but rather makes the object transparent at a distance. Requires making zero code and is more of a bandaid fix for aesthetics rather than unloading the object.

2 Likes