How to do it?

Hello everyone, I recently started studying unreal 4 and ran into some problems:

  1. How do I make the right time counter to stop it at the moment of hitting an obstacle
  2. I have two widgets one works in real time, the other appears at the moment of hitting an obstacle and shows the player statistics (distance traveled and time) how do I get the values of the traveled path and time in the second widget
    Cast to(object referenc - get hud does not work)
  3. And how to make reset the values when you restart the game(distance traveled, time), I have restart function(the removal of the tunnels and spawn a new)
    The screenshots below make, Thank you.
    If there are good tutorials on the subject I’ll be happy)!