Im just really lonley and i lost all my friends

I just joined this school last april, and had a hard time at first, i sat alone in the bathroom and had no friends, but then after summer break i came back and became really close with this girl, we’ll call her N and N was great. but we were lonley, it was just the two of us. so i made the inititave after tons and tons of effort i talked some friends of letting me into a friendgroup,but when i asked for her, they hesitated at first but i convinced them, when were in the group, me and N got into a bunch of fights and All the other people in the group were always on my side. and it was always bad for her. but we stopped fighting after a while and decided that we were gonna just be okay with each other. then something happend. i kissed a dude and its okay, but i was freaking out about it to N and D, D is my friend who i got really close to in the group over the break, but anyway. N and D left the call and started calling eachother privately. and they came back and i asked them ‘hello im freaking out here why would you leave and call eachother probably ■■■■ talking me’ and they send im self centered and manipulatve. and after ignoring me for 2 days straight D apologised and me and N didnt fix stuff but were still okay. Then it was L’s birthday party, (another friend) N and some other girls and I decided to have a sleepover, but N pulled aside one of thes girls and said that i cant come, so they kicked me out. AND THEN N told L that i went through her closet so i had to sort that out. so i did, and the next week, all of them started ignorning me and N especially. and N blocked me off everywhere and started hanging out with the popular girls and basically kicking me out of the friend group I GOT HER IN. And now im lonley. i have no one to eat lunch with and spend my lunchtime in the office. its rather embarrasing. Im thinking of changing schools.

friendships are trial and error and there will never be a right or wrong way to do things as all sorts of things will happen cuz we are humans. im open to chat w