How do I add a delay to each iteration of a foreachloop?

Made a custom macro that works perfectly for a “For Loop” if it’s helpful for anyone.