How can I rotate Terrain -90 degrees with scripts

My scripting has its limits, this is one of them.
My first post evah was about rotating the workspace (wich I simplified using model:ToPivot())
Now I’ve added some nice terrain to my game and that rotating map script hasn’t aged so well.

What I need is some help with understanding on how would I get to rotate the whole Terrain or at least a region of it.

I’ve scavenged everywhere and I couldn’t find anything that could help me, so some help would be really appreciated. :slight_smile:

May I ask why you need to rotate the terrain? Maybe there is a better way to get what you’re trying to make?

Anyway, this might work:
The Terrain documentation says it inherited CFrame from basepart
So you might be able to do:

local terrain = game.Workspace.Terrain
terrain.CFrame = terrain.CFrame * CFrame.Angles(0, math.rad(-90), 0)

But I can’t test this right now, so I can’t be sure if it actually will work.

yk that fortnite event where the island just flips? Yeah it’s something like that.
I already made what’s posible to flip a map but now that I’ve recently replaced grass material parts with actual terrain I can’t just PivotTo it.

Thanks sm man! I’ll test rn