The 17th Amendment to the United States Constitution changed the way Senators are elected by establishing that Senators are now elected directly by the citizens through voting. Prior to the 17th Amendment, Senators were selected by state legislatures. So, the correct statement is:
"Senators used to be selected by state legislatures but are now elected directly by the citizens through voting."