How to record character transform then spawn actor and replay it

Am trying to make a record system so that I can Replay my character with a new actor here a video I found in YouTube