How to Respawn a player in the same place they died(With CFrame)

I’d like to respawn a player where they died(Locally) looking in the same direction, but they keep respawning at the spawn points I have placed.
I looked around on the Dev forum and found a few scripts but none of them worked in my situation. Any Ideas?

If you are going to handle the respawning yourself, then you need to turn off the respawn. Then when the player dies, a Humanoid.Died event is fired. In that event, you can take a copy of the player’s CFrame of their root part, add 3 to the Y-coordinate, respawn the player, then copy the CFrame back into the player’s root part.

This is a basic outline.

i think its not possible to make it locally, serversided is possible because you can add playeradded into it.