for key, ply inipairs( player.GetAll() ) do-- Loop through all players on the serverlocal col =ply:GetColor() -- Gets the players color and assigns it to local variable colprint( "Printing "..ply:Nick() .."'s color!" ) -- Say we are printing the players name's colorPrintTable( col ) -- Pass col into PrintTable to print to contents of colend
Output: Loop through all players, and print their color.