I need help reducing cramping

I really should probably get this checked out by a doctor to make sure there’s nothing wrong, but every time I’m on my period my cramps are always painful. I understand that cramps are generally painful, but I mean I can’t get out of bed to go to school in the mornings. Painkillers have little to no effect unless I take a very large dose (which i would rather not do) but I’ve been taking about 2 Midol pills which help the pain enough for me to get ready and drive myself to school. However, the effect wears off 30-40 minutes after taking them.

So is there anything any of y’all would suggest that can help in reducing cramps?