Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How to clear a certain area of terrain?

Asked by 6 years ago

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

0
You can use fillblock and fill it with air https://wiki.roblox.com/index.php?title=API:Class/Terrain/FillBlock T1mes 230 — 6y

2 answers

Log in to vote
0
Answered by
T1mes 230 Moderation Voter
6 years ago
Edited 6 years ago

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.

0
Oml. I don't know how I didn't think of this. Thank you it works. iiDayzie_Dreams 32 — 6y
Ad
Log in to vote
0
Answered by 6 years ago
  1. Open up the terrain editor

  2. Use the "Subtract" tool

0
There's not much explanation for this answer its simple easy and quick. HypedNebula 28 — 6y
0
Sorry I mean via a script. I need to clear terrain while the game is running. iiDayzie_Dreams 32 — 6y

Answer this question