Period issues

I'm 12 about to be 13 and I still attend school and everything... I feel like it's always wet down there so I always feel like checking to make sure the blood isn't on my pants because I get heavy flow frequently and it makes me uncomfortable... But my teachers don't let me use the bathroom in class even if I say it's an emergency... What should I do?