How can I get the location of an object and spawn player/character at that location with f key or any other key

Hay there I am working on a project and I got stuck at a point that the first the player is distroyed and the camaraderie changes to object and I want to spawn the player to the location of the object

Use “get world location” of the object and “spawn actor from class” and use the object location as the location value in the transform pin for the spawn node.