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

Terrain won't copy/paste (CopyRegion,PasteRegion)?

Asked by 6 years ago
local terrainRegion = workspace.Terrain:CopyRegion(Region3int16.new(Vector3int16.new(-1755.56, 143.739, 457.646),Vector3int16.new(-795.289, -14.17, -451.93)))
workspace.Terrain:Clear()
wait(5)
workspace.Terrain:PasteRegion(terrainRegion, Vector3int16.new(-1755.56, 143.739, 457.646), false)

So not quite sure what is going on, no error in the output, it successfully clears all terrain but then it won't paste it back.

I tried using MaxExtents and it worked, so I have no idea why my vectors won't work.

0
Are you sure that the region specified is correct and contains terrain? ChiefWildin 295 — 6y
0
I'm pretty sure they are, what would be the best way to double check? iiDayzie_Dreams 32 — 6y
0
Make two bricks at the coordinates that you define here in your script. Think of them as the top left and bottom right corners of a box. The space between them is what is referenced. That should help you visualize what is contained in your Region3int16. ChiefWildin 295 — 6y
0
Yes, I have done that, terrain is inside of it. iiDayzie_Dreams 32 — 6y
0
So it seems to be all messed up, the "box" is different from the terrain that pops up??? iiDayzie_Dreams 32 — 6y

Answer this question