You can’t do that inside one block with that method—you have to use a property/counter.
Gimkit will run block code as fast as it can, without delay. This makes the only way to add delay inside a block leaving the block to trigger a trigger with delay, which after the delay is over will trigger either the same or maybe a different block.
Since you have to leave the block and come back, the block essentially forgets what it’s done since the last time it ran, so your method of just using a number will never work. However, properties will allow you to transfer information between blocks.
Right now, you’re misunderstanding because the way you are doing it won’t work. You have to use an entirely different system from the setup you have.
If you’re willing to use another way, I’ll give you a response.