12 weeks pregnant spotting

Se

I have a history of miscarriage, I woke up this morning and when I wiped I had pink blood and cramping. Called my OBGYN and he told me to go to ER to check for heartbeat, I'm on my way there now. Has anyone had spotting and cramping and ended up okay? I'm trying my best to stay positive but I am freaking out