The 'elseif' works btw. So basically it's in a childadded function and if the child is in the table 'ItemsNotToRemove' then it should return and not remove it at all, the problem is it just ignores all items added rather than removing them if they're not in the table
ItemsNotToRemove = {"Part"}
elseif ItemsNotToRemove ~= nil then --Make sure table isn't empty
for _, Child in ipairs(ItemsNotToRemove ) do
if Child then
return
end
end

2 comments
Give full script?
That's all that is needed