"To hit on somebody" means to make an initial attempt at conversation. The term is used in the context of a potential love interest. Example: I man sees an attractive girl. If he walks up to her and tells her "You have beautiful eyes", he has just "hit on her" in the hope that she will appreciate the compliment and return the favor by engaging in conversation.