Learn to like yourself. Try not to be so hard on yourself. You might find that you are a great person with great potential. Friends will come, if there was a formula, I would tell you. Don't change because you think that yourself isn't good enough for others. I am sorry you are currently in this position and I know things will get better for you.