How to spawn an actor in place of an another actor at different transform and at different intervals?

hello, I am working working on a 2d endless runner but stuck at a point. I want to spawn a ledge which is at long distance instead of normal ledges at fixed intervals of time (say 30 sec) and at different place. I thought to use bool with timer which constantly switch between true and false to spawn actor but it is also not working.