So why me

I'm soooo upset and I can't think right now. I went to work today and I think I overwhelm my self . Went to the bath room cause I had pain . So I went to check and I saw spotting and now I don't no what to think. Am I ok or is this a miscarriage or is it my period that just came some one help me