local function DestroyAllWithWhitelist(Children,Table)
for i,v in pairs(Children) do
for k,d in pairs(Table) do
if v.Name ~= d then
v:Destroy()
end
end
end
end
DestroyAllWithWhitelist(game.ServerStorage:GetChildren(),{'Fire',"Part",})
it does not work for some reason does anyone know why?

3 comments
Hey not trying to be rude but, people has been answering your previous problems, wouldn't it be nice if you at least respond to them or give them an answer mark?
I wish so too.
are you trying to destroy something if it's name does not exist in the whitelist?