Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

How do I remove everything but one model?

I want to remove everything but I want to keep just one model?

-They are all in workspace.

2 answers

✓ Accepted answer

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.