i guess distinguishing a pattern in you're past experiences in how you tried to make friends.
perhaps you were too pushy, overwhelmed them, came off way too strong. acknowledge these things and better yourself in preparing for future conversations as an initiator.
put yourself in someone elses shoes, how would you want someone to approach you and talk to you? what do you think is wise to say and isnt, etc.
be critical of yourself. Only then will you learn and grow from your past interactions; otherwise its gonna be a reoccuring cycle of failing interactions.
step out of ur comfort zone, put yourself in situations where your forced to meet and talk to people. whether it be events at school, volunteer work, retail jobs, etc.
Hope this helps, and hope things work out for you.