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

Is there a way to delete selected areas of terrain mid-game?

Asked by 4 years ago

According to the API listed on the roblox developer site, the Terrain object only has methods that allow you to clear all terrain, add terrain or edit the properties of terrain. Is there any way to clear selected areas of terrain dynamically in-game without clearing all of it and pasting what you want to keep?

1 answer

Log in to vote
2
Answered by
iuclds 720 Moderation Voter
4 years ago
Edited 4 years ago

function ClearTerrain(Cframe,Size) workspace.Terrain:FillRegion( Cframe, Size, Enum.Material.Air) end ClearTerrain(CFrame.new(0,0,0),Vector3.new(100,100,100))

It's simple, but next time at least do some research. I shouldn't have to search up "How to clear a specific region of terrain", and find out that its the first result. Cmon.

0
+1 for telling OP to do research programmerHere 371 — 4y
1
I did do research lol just enjoy your rep. I already mentioned that the api under the dev site wasn’t helpful and I had done some searches on my own that just explained how to use the clear all terrain method aquathorn321 858 — 4y
0
no u didn't or else you would know what to do programmerHere 371 — 4y
Ad

Answer this question