character controller+please help me

hello unity developer I have a question I wanna make a script that when my character enter a room start moving permanently without hit to another objects is anyone can help me?

I wanna make a game for children…I wanna when my character enter a room…start to walking permanently without to hits the object in the room actually I wanna find a script to order my character walk without pressing any keys
thank you