Why do my spawned characters fall through the map?

could you give me example code snippet?