Hi. I’m not a scripter by any means, so this script is going to look very messy/poorly written. ha. Anyway - I’m trying to loop through a model, but want to exclude an instance if it is a certain class. No errors, it just won’t print anything. Any help is appreciated!
local exclusion = {"RemoteEvent"; "LocalScript"; "IntValue"}
for _, item in ipairs(container:GetChildren()) do
if not table.find(exclusion, item.ClassName) then
-- if the object's ClassName wasn't found in the array, then code between this line and the first end will run
print(item.ClassName, "wasn't found in the array")
end
end