Please use Code Tags when posting code on the forum, it’s literally the top pinned thread.
If you want to keep track of the last respawn place for a Prefab, just keep track of it on your Prefab, and have the RespawnPlayer()
method send them to their last known respawn location.