try this mate
Var time=0
use a array and every 1 second add 1 to time
(payback rate any second) update the player x,y position in the array.At(time)
var time>10 set to 0
and when die you call all 10 x,y position from the array at every 1 second
it is easy to just think about how a camera work and code it the same
Store the position and the call them back at x second mean play back rate