I’m trying to copy sections of my terrain region with the :CopyRegion method, but for some reason it’s not working as expected.
I want to copy this chunk of terrain between corners “A” and “B”
with this code:
local A_POS = workspace.A.CFrame.p
local B_POS = workspace.B.CFrame.p
local REGION = Region3int16.new(Vector3int16.new(B_POS.x, B_POS.y, B_POS.z), Vector3int16.new(A_POS.x, A_POS.y, A_POS.z))
local TERRAIN_REGION = workspace.Terrain:CopyRegion(REGION)
workspace.Terrain:Clear()
wait(2)
workspace.Terrain:PasteRegion(TERRAIN_REGION, Vector3int16.new(B_POS.x, B_POS.y, B_POS.z), true)
But this is the result:
https://i.gyazo.com/7ae4095aa222090c1fd483f85cc1f13c.gif
Am I not understanding how voxels and the terrain methods work in general…? Any help would be appreciated.
