scared toddler

My son is 3 1/2  and still sleeps in our bed😩 how do you get a kid into there own room?!?!?!