What should I do

I had a crush on this one guy for three years before I finally told my friend. She help me approach him and things were going well until he started ghosting me on text. He told all his friends he was just trying to be nice and he didn't like me like that. They then went together to formal I am so heart broken I feel like a loser for even opening up in the first place girls what should I do?