Why does my first player get sent back to the lobby when my second player executes loadscene?

I have been making a game with the photon engine plugin, however, when player A dies, they execute the loadscene(“lobby_scene”); function. But player B is the one being sent back to the lobby, not player A. Any help?

Here’s my code

if(hp <= 0)
{
scenemanager.loadscene(“lobby”);
PhotonNetwork.Destory(gameObject);
}

Solved

Please note for the future, this isn’t a post for the 2D forum. If you have a scripting or multiplayer question then please use one of those dedicated forums.

Thanks.