Weird pains 40+ weeks

40+6 weeks and starting yesterday i have a pain like a pulled groin muscle. I know i didnt pull anything. It hurts so bad sitting and its even worse when i walk or stand up. I went to the bathroom and had a lot of discharge sorry tmi!! But what the heck is going on?! Im at ftm!