I want to remove everything but I want to keep just one model?
-They are all in workspace.
I want to remove everything but I want to keep just one model?
-They are all in workspace.
Easy peasy.
local stuff=workspace:GetChildren()
for i,v in pairs(stuff) do
if v.Name~="MegaBaseplate" then
game:GetService("Debris"):AddItem(v,.5)
end
end
for i, v in pairs(game.Workspace:GetChildren()) do
if v.Name ~= "MegaBaseplate" and v.Name ~= "Terrain" then
v:Remove()
end
end
This discussion is preserved as it was. New answers, comments, and votes are closed.