endless runner question

so i’ve been making an endless runner following some tutorials on youtube and stuff, but i want to make it a little bit better, so my question is:
how do i spawn new type of tiles after x amount of pickup coins have been taken ? thanks in advance