Need to add a delay at start of level

Hello all I am trying to get a delay to go in here at the start of my spawner but I cannot figure this out.

I thought it was:

timer.performWithDelay( Seconds, function, 1) but have had no luck here is the “is game active” portion…
function gameLoop(event)
if gameIsActive == true then
–Increase the int until it spawns an enemy…
spawnInt = spawnInt + 1]
if spawnInt == 50 and spawned ~= spawnedMax then
spawnEnemy()
spawnInt = 0 then
spawned = spawned + 1
if spawned == spawnedMax then print(“All Units Spawned”) end
end
How can I add in a delay here before this runs the “Spawning Portion”?

Thanks! [import]uid: 235664 topic_id: 36901 reply_id: 336901[/import]