What does it mean when a guy pays attention to you?

Some times it means he like you and wants to date you but other times it could mean he wants to be good friends.