void OnCollisionEnter(Collider other){
if (other.gameObject.tag == “Player”) {
Destroy (other.gameObject);
}
}
here is my collision script I am making a fps multiplayer game and this is the script for destroying the other player when that player is hit
I have tagged the player