Multiplayer TopDown Survival Kit

how can i savely remove the player when he is dead my ai still attacking the old player when i (player) respawned
when i use unposses i get black screen its not respawning again