I am making a GUI where you click on a TextButton inside a GUI, it clones all the chairs, but this Script will not work:

`local model = Workspace.Set

local function clearChairs(dir) for i,v in pairs(dir:GetChildren()) do if v.Name == "FutureChair" then v:Destroy() local modelcopy = Model:Clone() modelcopy.Parent = game.Workspace.Set

end clearChairs(v) end end

clearChairs(model)`