I want to have this check if the name of the item is not Hat, and if it is, then it will end but if it isn't it will continue (I plan on adding more names to the array)
safe = {Hat} if b.className=="Hat" and not b.name==#safe then b:Destroy() end end
THANKS!!!
keepHats={"name","name"} do local keepHat=false for _,v in next,keepHats do if v==b.Name then keepHat=true end end if keepHat==false then b:Destroy() end end