I'm having this problem:
I have 2 players, when a player is dead, the collision layer/mask bit for colliding with other players is disabled. After some time, the player respawns and teleports to another place. But when a player is inside the dead player collision, it simply warps to the nearest point outside the collision.
Note: my code firstly teleports the player, them enable the collision bits.
position = get_parent().get_respawn_positions()[randi()%4].position
is_dead = false