local MyTable = {hi, hello, sup} -- your table you are refrencing for key, value in pairs(MyTable) do -- Look for key inside entire table if key == "hello" then -- Your desired key you want to refrence -- Run event end end