Kill cam, replay something

how can I make a kill cam system ?, something that replays what just happened