local groups = {12345, 67890} for _, gid in pairs(groups) do local r = player:GetRankInGroup(gid) if rankPermissions[r] then ... end end