I am making a GUI that's supposed to remove a Model when you click on it. It doesn't work right now, and another problem is I want it just to remove ONE Model when you click on it, not the whole set. (It's a Gui that's supposed to remove a Chair in the game. I have about 30 in the game, I just want it to remove one) :
` function checkspace() local g = game.Workspace:GetChildren() for i = 1,#g do local f = g[i]:FindFirstChild("FutureChair") f:remove()
end end
script.Parent.MouseButton1Down:connect(onButtonClicked)`

1 comment
Thank's, it works but, I want it to remove a Chair everytime you click on it. It just removed 1 Chair, and wouldn't remove any more when I clicked on it again.