I'm making a game involving crater-type explosions on terrain. But when the round resets, I want the terrain to reset to the way it was before the explosion. Is it possible to do this, and if so, how?
workspace.Terrain:Clear()
1 | for _,i in pairs (game.Workspace:GetChildren()) do |
2 | if i:IsA( "Part" ) then |
3 | i:Destroy() |
4 | end |
5 | end |
You could use Clear() and FillBlock() or FillRegion() to reset and replace the terrain.
I’d give an example script but I have never used any of this, and it’s hard to make this on mobile. Just try experimenting and see if it works or not.