How can i show last distance traveled in an infinite runner

I have everything set up in my runner project besides the recorded last distance. How can i set that up

You could set up checkpoints similar to the Vehicle Game project available for free as a demo in marketplace. You could also get the starting location and the distance to ‘death’ location. Set the ‘Last Recorded Distance’ as either the amount of checkpoints crossed or the distance between the two points.