Most Helpful Guy
Don't EVER listen to your friends! They aren't you. You liked him, that's all that matters, not if your friends do. When they become annoying by telling you "you can do better", tell them you don't want to hear it anymore and to stop! Now, if they have GOOD reasons for saying this, listen to what they have to say (like he's a cheater for example), but still it's your decision and yours alone. Again, it's their opinion and that's it. Doesn't mean it's right for you.
Having said that lol, just go up and start talking to him. If he's friendly and receptive, then just be honest and explain this all. You miss him and would like to get back together. You made a mistake listening to your friends "advice" and you're sorry. No guarantees he'll take you back (be prepared if he doesn't), but chances are fairly good he still likes you and wants you back probably. If nothing else, he'll appreciate your honesty and coming to him and explaining why you broke up.
Most Helpful Girl
Omggg you should totally message him and tell him how you feel. There is no guarantee that he'll take you back, but the way you've asked this question, it makes it seem like you're really sorry. Tell him that you are, how you really feel about him, where you went wrong. He probably still does like you. I've been in a similar situation, I messed up real bad with my friends and I changed into someone I didn't like. Doesn't really relate but I still miss him and now I don't know if he likes me. I hope he takes you back. Good luck :) hope this helps 😊