Ive been trying to create a script that saves the cframe for the model. But I want to be able to change the plot the player is on. MainPart is the primaryPart of each model but for some reason there is something wrong here:
for i, v in pairs(worksp:GetChildren()) do
if v:FindFirstChild("MainPart") then -- key x y z itemname
table.insert(tabletosave, tostring(base.CFrame:ToObjectSpace(CFrame.new(v.MainPart.CFrame.p).X)).." "..tostring(base.CFrame:ToObjectSpace(CFrame.new(v.MainPart.CFrame.p).Y)).." "..tostring(base.CFrame:ToObjectSpace(CFrame.new(v.MainPart.CFrame.p).X)) .." "..v.Name.." "..tostring(v.MainPart.Orientation.X).." "..tostring(v.MainPart.Orientation.Y).." "..tostring(v.MainPart.Orientation.Z))
end
end