Use pain killers specifically for period pain and also them heat pads that athletes use for your back.
That usually works for me along with a hot water bottle on my belly and legs. And I have them bad; I've been at the hospital a few nights over the years for injections to ease the pain it's been that bad.