set a timer to the object you want to spawn. On start of layout = start timer. if (timer) => system.spawn object.
But I'm not quite sure if u can set a timer when the object has not been created yet.
Otherwise try it with system.wait(3) on layout start!