# Help on this pausable timer

I've successfully made the basics for a custom timer using the following script:

I have a LastUnpaused value that tracks the value that the global timer displayed when it was last unpaused. When the paused variable is set to true, this value is repeatedly updated to match the global timer.

How would I modify the math block in the block to take into account this value and make sure the timer continues from where it previously left off when the paused variable is switched to false?

Or is my method of pausing not a good one and should be swapped out for something else?

I wouldn't continually change the contents of your timer object, which means your timer needs continual maintenance. Instead, when you pause and unpause the timer, update the offset of your timer from the system timer.

There are a bunch of timer projects in the web site; the first one I found is here: