How can I make a replay of a racing game?

I want to make a replay of my game. There are couple of objects running in the race and when they cross the FINISH LINE I have to repeat the part of race when they crossed the FINISH LINE to create a clear and slow appearance of winners.
How can I do that…? Any help would be appreciated.
Thanks in advance,
Shraddha

You can do that with our Asset Store package EZ Replay Manager Unity Asset Store - The Best Assets for Game Making. Just start the recording when at least one car is near the finish.

What you shoul do is place a Trigger Collider before the finish line and start recording status of your rigidbodies, when one crosses the trigger.

void OnTriggerEnter(Collider coll)
    {
 if (alreadyRecording == true)
  return;
alreadyRecording = true;
    // trigger the "recording"
    }

Then after they crossed the finish line, reset all car bodies and other important variables to the first record, move the camera to the “replay” position, and make the cars repeat all actions from the record !