Hiding Terrain/Water

Hi guys, I have a script and I want to hide all terrain/water with some code. How would I go about this?

1 Like

I want to set the visibility of it based on a certain function.

What function does the player or game have to do before it can be set?

1 Like

What do you mean? I just want to hide the terrain when a button is pressed. I was thinking maybe Roblox had something like game.Terrain.Visible.

1 Like

There is no way to just hide the terrain.

1 Like

You would have to do some sort of trick, such as erasing the terrain with the terrain api, and then re-create it (this would have to be done from the client, unless you want terrain removed for everyone)

2 Likes

You could create a part covering the terrain area you want to hide and when they click a button it either sets the terrain in the region of the part to “Air” or nothing, or it sets it to your terrain like “Grass”. Idk, hope this helps somehow.

1 Like

A hacky trick is creating the terrain with water, saving it as a terrain region, then creating a second version without the water and also saving that as a terrain region using this plugin.

I don’t think you can load terrain regions from the client though.

1 Like

I’m not sure if you’re a programmer or not but that’s not how it works, that was just an example of what I thought Roblox might have.

This seemed to be most effective, thank you!

Lol, I’m not a programmer XD I’m just tryna guess to see if it helps. :joy: