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

How to clear a certain area of terrain?

So I've searched everywhere on youtube,wiki,forums, but I can't find any solution.

The only thing it shows is

game.Workspace.Terrain:Clear()

of course this clears all of the terrain which isn't what I am trying to do. I only want a certain area of terrain to get cleared.

I also attempted to use

game.Workspace.Terrain:CopyRegion()

then pasting it back later. However I have been having trouble with it.

Sorry if this seems like a request, but I am not requesting a script. I just need help with how to get started with this. Thanks

1 comment

0

2 answers

✓ Accepted answer

As I said in comments you can use Fill Block.

I thought it would be best just to explain it a little.

A way you can use this is doing

workspace.Terrain(CFrame.new(0, 0, 0), Vector3.new(100, 100, 100), "Air")

The CFrame is the place you want to clear

The Vector3 is the size of the block you want to fill

and air is air (the material you want to fill with)

Hope this helps.

1 comment

0

Oml. I don't know how I didn't think of this. Thank you it works.

  1. Open up the terrain editor

  2. Use the "Subtract" tool

2 comments

0

There's not much explanation for this answer its simple easy and quick.

0

Sorry I mean via a script. I need to clear terrain while the game is running.

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