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

Terrain copy and pasting script is not working at all?

Asked by
iRexBot 147
6 years ago

I want to copy and paste a terrain region but when I run the game it doesn't work and doesn't paste the region I copied to the chosen spot.

local terrainMaps = {}
terrainMaps.LavaMap = game.Workspace.Terrain:CopyRegion(  Region3int16.new(  Vector3int16.new(-602.603, 174.982, 2589.291),  Vector3int16.new(-78.504, -2.718, 2046.792)  )  )
game.Workspace.Terrain:PasteRegion(terrainMaps.LavaMap,  Vector3int16.new(17.5, 849.59, -98.9)  , true)

Answer this question