Instantiate a Prefab Every 5 Seconds - Help!

Hello,

I know this is a newby question:

Is it possible to instantiate a prefab onto my scene every 5 seconds?

I have an empty in where I would like the prefab to spawn in a certain amount of seconds.

Thanks

Yes you can do this.

Put this script on an empty gameobject, then drag in the 'prefab' reference. The prefab will be instantiated at the empty gameobject's position.

var prefab : GameObject;
var timeDelay = 5;

function Start() {
    while (true) {
        yield WaitForSeconds(timeDelay);
        Instantiate( prefab, transform.position, Quaternion.identity );
    }
}