i still feel horrible

i told him how i felt but he said he had to move on from me (i was going through some stuff and didn’t love myself enough to be in a relationship before) he has a girlfriend now and we’re friends but i am so in love with him i don’t know how to move on. i went a month without talking to him to see if it would help but it only made it worse. i don’t know what to do