Upgrade in clicker game like golden cookie

Hello,

I need help, because I did not find an answer.

I want to add temporary powerup to my clicker game, like golden cookie in cookie clicker.

I have my object that will spawn and move around screen.
And when I click it, it will disappear.

After that, I want to automaticaly activate that power up: clicks per second will increase x10 for 30 sec.

What can I do, so it will activate and deactivate after 30sec?

I created everything like in tutorial from youtube.

Please help.

You’ll need to use a boolean variable to indicate whether the power-up is activated. And a scene timer to keep track of how long the power-up has been active.