im new to lua but ive tried to code in plots done that assigned them and when i try copy my button from my example plot to the assigned plot the button from the example plot dissapears im using a model from the toolbox instead of a part.
code:
local TemplateButtons = TemplatePlot.Buttons:clone()
for _, Button in TemplateButtons:GetChildren() do
--get the position of the button
--how far away is the button from the centre
local RelativeCFrame = TemplatePlot.CFrame:ToObjectSpace(Button:GetPivot())
Button:PivotTo(plot:GetPivot(RelativeCFrame))
end
TemplateButtons.Parent = plot
** You are now Level 1! **
