The problem is you have a low self esteem it seems, possibly you feel inferior and you feel like you're doing things wrong all the time which makes you think your friends secretly hate you. Forgive me if I'm wrong about that, but low self esteem is a hard thing to get over, but a good way to give yourself a bit more confidence is to try and set out to do a goal or a project. Something where, at the end of the day, you'll feel like you've achieved something. It'd be better if this project was something practical, like maybe you want to build a computer, buy a telescope and see the stars, build a robot, help a charity, or do something that adds to your life in some way. But it doesn't necessarily have to be that, heck it could be beating a really hard level in a video game or just having a friend say he cares about you deeply, the aim of the game is to make it so you feel like you've achieved something, hopefully that'll increase your self-esteem a bit.
So ask yourself, how can you apply yourself, what can you achieve?