What do you want to achieve? Keep it simple and clear!
I want it save players plot so they don’t have to replace builds.
What is the issue? Include screenshots / videos if possible!
I don’t seem to found a way.
What solutions have you tried so far? Did you look for solutions on the Developer Hub?
I searched devforum and youtube. On youtube, they were just one plot that I could do it. But I am doing 8 plot.
Can you show us some pictures/videos of what kind of builds/plots you have?
Depending on how constrained the building is, and whether it’s just placing premade assets will dictate the best method of saving. For example, if you can only place one item per grid cell and can only rotate 90 degrees then it’s easier than if the user has completely free reign over placement and rotation.
You need to store relative position and rotation, relative to some common point on each plot, e.g. the grey baseplate if it’s a common size and orientation relative to the plot.
You can save a table which contains all the data. Could look like this:
local plotData = {};
local plot = workspace.Plot;
for _, v in next, plot:GetChildren() do
if v:IsA("BasePart") then
table.insert(
plotData,
#plotData + 1, {
name = v.Name;
cframe = v.CFrame;
color = v.Color;
size = v.Size;
-- Continues
})
end
end;
-- Save the plotData table.