So I found this useful guide on how to respawn players in a multiplayer game. Unfortunately, the logic only works with dedicated servers, not listen servers. I tried to change it so that it spawns properly when the host gets killed but its spawning too many.
Does anyone know what I have to modify in the above link to get respawning to work with a listen server?