Have a look at How to create the coding of closing and opening a door on repeat? - #2 by Nikolay for clues on how you might achieve what you’re wanting 
1 Like
Have a look at How to create the coding of closing and opening a door on repeat? - #2 by Nikolay for clues on how you might achieve what you’re wanting 