This is a small UI tool used to freeze the game during a certain amount of time. It can be used for different purposes, such as improving the feedback of animations or either in the game logic itself.
Testig the script:
In the gif below we have an object constantly moving, once the freeze button is pressed the TimeScale turns into zero during the an amount of time. You can also define a delay until the time freezes.