User Activity

I want to send the numbers in order but it only sends the number 0 constantly. When I make the delay 100ms it only sends 0 and 1. When I remove the delay completely, it sends numbers from 1 to 30 in order.