Thanks for the comment! Indeed i got the inspiration from Corridor Digital's video.
It's really simple, you just gotta wrap your head around the mechanic. Preety much you have a script on the player that "Lists" (kind of like arrays but endless) stuff like the player's position, and when he shoots.
I store all of that data in a "loop" container, and when the game is "reset" i.e when you run out of time, i spawn "puppets" that use the lists in their corresponding loop to mimick the player's actions.