So I'm making an ignoreList by making a table and I'm trying to make my script more efficient. Im trying to get the code to ignore everything on 'ignoreList' table. I don't really know how tables work but here's what I got:
local ignoreList = {"Part","Base","BasePlate"}
local a = ignoreList
if spot.ClassName == "Part" and spot.Name ~= ignoreList[#a] then
-- code
end
I basically want the code to be more effecient. Since I don't want to write this:
if spot.ClassName == "Part" and spot.Name ~= "etc" or spot.Name ~= "etc" or spot.Name ~= "etc" then
--code
end

1 comment
Thank you!