Im making one of those tycoons where there are Multiple plots and you can build anywhere in that plot.
The issue im having is related to the way im saving the props that the player has built
As you can see in the video, even though i dont change the location of the prop i placed, the script saves its CFrame rotated by 90 degrees and in a different position, the loaded and saved CFrames printed in the output are also different.
What I did when i was creating plots before would be when a player is exiting I subtract the plots x and y. For example in code:
for i, model in ipairs(models:GetChildren()) do
local pivot = model:GetPivot()
local X,Y,Z = model:GetPivot():ToOrientation()
table.insert(data, {
model.Name,
pivot.Position.X - actualBase.Position.X,
pivot.Position.Y - actualBase.Position.Y,
pivot.Position.Z - actualBase.Position.Z,
math.deg(Y)
})
end