script help

So i have a script for death when health is at 0 but it is an online game and i set it so when the player dies it goes to a different scene. But when you shoot another player until the player is dead all of the players go to the different scene even though only 1 player died. If anyone can help me with this it would be greatly appreciated thanks!

I havent tried any yet… i got the death script but i cant put it so everyone doesnt die. i can give you the death script though.

using UnityEngine;
using UnityEngine.Networking;

public class Player : NetworkBehaviour {

private int maxHealth = 100;

private int currentHealth;

void Awake ()

public void TakeDamage (int _amount)
	currentHealth -= _amount;
	Debug.Log( + " now has " + currentHealth + " health.");

public void SetDefaults ()
	currentHealth = maxHealth;
void Update () {
	if (currentHealth < 0)
		Application.LoadLevel ("Scne2");


thats it but i need it so it works on individual players that get spawned in.