Like all the others, I'd say just be yourself. I know it seems like such outdated and lame advice, and I honestly cannot guarantee 100% success, but I can tell you right now. By acting who you are, you'll gain the friends that you need. It may sound unhelpful but I'd also tell you to relax. A lot of people feel this way; I do too. Be with the people you can connect with, as it'll be easier to be who you are. Don't be with people who make you feel like you have to prove yourself worthy of existing, otherwise you'll end up more alone than ever. Find people who like the same things as you do, but don't limit yourself to them. Think of all the hella rad potential bffs around you that you wouldn't have met just because they don't like the same things as you do. Put yourself out there, even if you feel scared. It's natural. Don't strain yourself too much, ok? Treat yo self.
Another thing that I'd tell you is that you don't have to surround yourself with people. It's perfectly acceptable to be alone and by yourself, as long as you're happy. That is literally the most important thing, to be happy.