Please help...

Anna
So my now ex boyfriend finally broke up with me, and literally I am so happy to be moving out and going back home. I was so completely miserable. 
But a huge problem now is he says he's going to fight for my baby when s/he comes in January. Because he believe that I'm not a good fit to be a mom, and he doesn't trust me or any of my family to "proper" care for them. 
Even though he has never wanted to be a father, since day one he's he telling me get rid of it, get rid of it, and how I'm so selfish and immature because I believe that I can do this even though I am only 18. 
I've been told that I should get a restraining order on him... and tell the doctor that he is no longer involved and not allowed to know anything. 
But I don't wanna be selfish even though it's not just me I'm looking out for.. 
Help..?