What does it mean when a guy tells a girl that he’s lonely?

Is he just saying that because I’m his friend or is he hitting on me?
What does it mean when a guy tells a girl that he’s lonely?
Post Opinion