Problem with excluding classes from loop

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!

Script: local classes = {"Script","BoolValue","NumberValue","IntValue","Remote - Pastebin.com


  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

Where is your print()? I don’t even see it.

Thanks! 30 characters…