Hello. (THIS ISN'T ABOUT 1 speific GIRL but just GIRLS AS GIRLS)

So I am 2nd year of high school after summer and i have a lot of friends, girls. So i noticed a wierd behavior from some girls at the last party i went to. Girls that would talk harsh to me ALL year would go over and hug me. So this one girl she shouted at me and said i shoulndt touch her ( held her shoulder under a discussion) when i was leaving the party she hugged me for a 30 secounds and she wouldn't stop....

But, later i discovered i got friendzoned as she has a other "boy" friend. I am also very close with a group of girls in school and they all like me as friend. But i know for a fact im friendzoned. I am friendzonded at most likely every single girl I talk to. Idk, am i that ugly? I was told im a 7/10 guy. No one looks at me attracted.

What is a technqiue to avoid, this kind of freindzone?