I am working on a game; in this game each team (3) will have a base made out of terrain, along with the main map which will be made of terrain which they can dig into etc.
When the game starts, I am attempting to save each terrain area separately. This way, when a round is over, I can simply call on the Module and regenerate the main map, and I can also regenerate the bases during the game.
The terrain clears, however, when the paste is running it doesn’t add any terrain. Am I doing something wrong?
local mapRegion = Region3int16.new(Vector3int16.new(1512, -249, -1513), Vector3int16.new(-1515, 157, 1511))
local mapTerrain = workspace.Terrain:CopyRegion(mapRegion) --min,max
function Functions:LoadMapTerrain()
--workspace.Terrain:PasteRegion(terrainRegion, corner, pasteEmptyRegion)
workspace.Terrain:Clear()
task.wait(5)
workspace.Terrain:PasteRegion(mapTerrain,mapRegion.Min,false)
end```