Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

How would I remove water in a certain area?

I am trying to make a thing that removes water in a area when you say something in chat. I have found out how to make the water appear but I don't know how I could remove it.

Here is the code I have made to make it appear.

local region = Region3.new(Vector3.new(-30,0,-20), Vector3.new(50,5,50))
region = region:ExpandToGrid(4)
game.Workspace.Terrain:FillRegion(region, 4, Enum.Material.Water)

1 answer

✓ Accepted answer

Simply do the exact same thing but instead of filling it with water fill it with air

local region = Region3.new(Vector3.new(-30,0,-20), Vector3.new(50,5,50))
region = region:ExpandToGrid(4)
game.Workspace.Terrain:FillRegion(region, 4, Enum.Material.Air)

This discussion is preserved as it was. New answers, comments, and votes are closed.