advice plz?

okay first off,thank you so much if you read this and give me advice.lemme tell you about tyler,me and him talked on and off since last year in october when i met him when i was with my friend stephanie.the day i met him,i added him on snap because honestly he looked pretty cute.he added me back blah blah.he soon started calling me cute and a week or two later he said he liked me?!then the next day i told stephanie that and i guess she told him i told her.so what’s the guy do?he unadded me without any explanation.then about a month later,i thought it’d be a good idea adding him back because he began talking to me at school like normal again.he added me back but this time it only took 3 or 4 days for him to unadd me this time.then skip forward to the beginning of december.one day during lunch my friend stephanie was sending pictures of me to him on snapchat(not inappropriate ones so don’t get bad ideas lols) anyways i flipped the camera off and he said “when and where” jokingly i said “tn @ the church when we hang out like we used to “ long story,short we actually ended up hanging out which seriously made me so happy because in that single night me and him was able to fix that bond that was broken.so l8er when i got home i added him on snap and he immediately added me back!(yeah i sound dorky but i rlly liked this guy for some dumb reason)anyways the next week was xmas break and finals week,so me & him hung out all that week.he said we was talking.we never did anything like kiss or anything.we just rode around in his truck & the ranger on the trails,played basketball,and watched footloose and just goofed off at his house.to summarize the next week,he was always flirting with me and calling me names like babe,bbg etc.its crazy how someone can make ya that happy.anyways ab 2 weeks later,we hung out again except with emma and sarah this time since i was spending the weekend with them.however,tyler started acting g weird,he started ditching me and ignoring me which sucked butt because no joke had heavy feelings for him.but guess the reason why he acted weird?he fucked my best friend!so yeah i was done being friends with her for sure because she acted like she did nothing wrong like wth?!a month later me and him started being friends again due to the fact me and him never lost our streak so we talked occasionally.okay skip forward a month,one night in early february after a basketball game in cc,me and my friend emma practically stayed all weekend with tyler from friday night to sunday night besides saturday morning for a couple of hours when he had to work.emma knew damn well i still had feelings for him because they knew ever go away for some reason🙄.anyways they was all over each other and being hella flirty right in front of me.it really pissed me off.tell me it’s wrong to get mad when you see your best friend flirting with a guy you’ve been on and off with for more than half a year.?skip forwards to when the weekend was over ,about a week later i ended the friendship with emma because she was pushing me in the wrong path of life because she was such a bad influence to me.then a few days later,emma got with tyler like wth?also,she got several ppl,including some of my “friends” ,to post “Sorry Hun,you’re not as good looking as us @madison pratt” i didn’t see the point of them posting that because it only started more drama.so i blocked them to try to get away from the drama.but no what do they do?they made fake accounts to talk to me and pretend to be me and send fake nudes around acting like me!(no worries tho my family is full of cops so the twins got what they deserved lols) so we went ab a month without talking or anything .then emma posted “sorry hun he don’t like your ugly ass” so sarah screenshotted that and said @madisonpratt. . so i tried dming her to end the drama and grow up.instead she said things such as “i forgot you even existed until you texted me”, “you’re so irrelevant”, “me and my boyfriend’s life has been great without you so don’t come back(she’s talking about tyler by the way)”. <>then sarah posted on her story where i dm’d emma and said “someone come get they dawg😂☠️” wtf tho i was seriously being nice and not being a brat even when emma was.now they’re trying to fight me?it’d be great if anyone would share some advice and sorry for such the long post.