Help pregnancy emergency

I am on my way to the doctors. But I need some help. I am around 3 months pregnant and I got cramps so bad it woke me up from sleeping and I went to get up to get a glass of water and it hurt so bad I just about had to crawl also I'm bleeding like a peroid. Please tell me it's going to be ok