Need Help For loading players plot

Hello, I am Azlum A roblox scripter. I am having a small problem when loading down the players plot. when a player leaves it saves fine and load but if the plot orientation is changed (180 degrees) it’s on the over side of the plot (i’m planning of having walls there so you cant see it) I am using EgoMoose placement system and ProfileStore by Loleris. I have tried multiple times to successfully change the position to make it look like it never moved but it always on the other side of the X or Z axis. Is there a method to make it look like it never moved, or code? please put your reply’s.

here is the current code i have for it now I don’t know if this will help

function Shared.UpdateStoreAndPosition(Player: Player, Canvas, Model)
	local Data = Local.GetData(Player)
	print(Data)

	if not Data then return end

	local Store = Canvas.Parent
	local LastStore = Data.Last_Store
	local LastStoreSplited = string.split(LastStore, "e")
	local StoreNum = tonumber(LastStoreSplited[2])

	local NewStoreSplited = string.split(Store.Name, "e")
	local NewStoreNum = tonumber(NewStoreSplited[2])

	local MiddlePart = Canvas.MiddlePart
	if not Model.PrimaryPart then
		warn("Model has no PrimaryPart set")
		return
	end

	local flip = (StoreNum <= 3 and NewStoreNum >= 3)
	print("Flip:", flip)

	local baseCFrame = MiddlePart.CFrame

	if flip then
		Model:PivotTo(Model.PrimaryPart.CFrame + Vector3.new(0,0,40))
	else
		Model:PivotTo(Model.PrimaryPart.CFrame + Vector3.new(0,0,40))

	end
	Data.Last_Store = Store.Name
end

if you need any pictures or other code like what function is calling this function please say!