Spectate Help!

When I die in my game, I stay looking at my body, or point of death where I died.
How would I make it so I can spectate people when we die? And where would I put it?