Pop out scares

hello, im making a hooror game and it has alot of halways, but i cant make the right script to make it when i walk though the hallway a zombie or somwthing fallsout or popsup, ive tried scripts but they dont work, please help!

You need to use Instantiate to create gameobjects from prefab.