Can't use devices after the OnBegin

But with creative 1.0 from what I’ve seen you can use a button and it will always trigger, I have to teleport players to a map (that will be random) after a countdown and don’t know what other methods could I use. Do you have any ideas?