Hey, I am wondering if I could check if a word is inside of a list. For example, I have:
local List = {"Red","Blue","Green"}
During part of my code, I need to check if a parts name is inside the list. I was wondering if there was a basic way of doing this?
I know I can use
i,v in pairs(List) do
if Part.Name == v then end
end
but is there any simpler way?

2 comments
This already is a very simple way and I don't think there is an easier way.
why use i,v in pairs?