Timer for an underwater game

In my cospaces world, i’m making an underwater type theme for my game. i’m having trouble with coding. i want a timer to that counts down from 30 and if the timer runs out you start at the beginning (drowning), also when the player reaches a certain object (bubbles) the timer resets (indicating that the player went to the air bubbles in time). do you know the coding for this?

Hi @hope7,

Please share your code as an image so we can see where you are up to. This is all possible, and it would be good to know the technique you’re currently using.

Many thanks,
Geoff @ TechLeap