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

Is there a way to reset Terrain?

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?

3 answers

workspace.Terrain:Clear()

1 comment

1

His intentio is not to actually clear the terrain but to revert it to a certain point.

for _,i in pairs(game.Workspace:GetChildren()) do
	if i:IsA("Part") then
		i:Destroy()
	end
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.

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