How to kill a player, respawn back in the world

I fixed what i did wrong. I was calling the respawn after i already destroyed the actor. Now that i call respawn before i destroy the actor it works