Object repeat player

Anybody have an idea how to make an object repeat what the player did? Example: I started the level, then later on i died. Now i respawn and there is a object that repeats what i did last time.

This may help