throwing up or having to take a dump at school ??

So I sick and on my period so I use the bathroom a lot but when I feel sick to my stomach I eithe have to poop or throw up and I'm so nervous to poop or throw up at school because of either the smell or the sound how can I get over this fear ???