i would recommend trying to be as nice as possible to people. this means being accepting and not starting arguments left and right.
i was like this for all middle school and early high school, and everyone hated me. i mellowed out and tried to befriend people, now i have tons of friends.