I agree, I used to be much less confident in school, got made fun of all the time.
It takes time to build up confidence, just dont take shit and try to blend in, thats what I did and I hardly get shit anymore.
It takes time but you can do it step by step.
I used to be a litle shyish around girls but once you build your confidence, no problem.