Bed to crib transition

I need help! My baby is 10 months old and will not sleep a full night in his crib. We have coslept with him but not every single night. I’m pregnant with baby #2 and have to get him transitioned to sleeping in his own crib and then in his own room. Any advice? Suggestions?