die on collision/respawn script (c#)

hi guys, here’s my script which i’m using in rollerball game. wall collision should kill/respawn player but can’t seem to get it working. after player death respawn doesn’t happens. help would be appreciated.

using UnityEngine;
using System.Collections;

public class WallScript : MonoBehaviour {
	public GameObject Player = GameObject.FindGameObjectWithTag("Player");

	void OnCollisionEnter(Collision collision)
	{
		if( collision.gameObject.tag == "Player" )
		{
			Destroy(collision.gameObject);
			GameObject PlayerClone = (GameObject)Instantiate(Player, new Vector3(0,1,0), Quaternion.identity);
		}
	}
}

With your code you are saying Destroy the player then in the next line you are saying find the player but it does not exsist

instead in the project screen make a an empty prefab called Player
and drag and drop the player object into it

now change your script GameObject Player to just

 public GameObject Player;

now in the Hierachy panal you can see an empty slot for Player
Drop the Player prefab into it.

using UnityEngine;
using System.Collections;

public class Respawn : MonoBehaviour {
	public GameObject Player;

	void Start(){
		Player = (GameObject)Resources.Load(Application.dataPath +  "/Resources/Player");
		Debug.Log(Application.dataPath +  "/Resources/Player");
	}

	IEnumerator OnCollisionEnter(Collision collision)
	{
		if (collision.gameObject.tag == "Player")
		{

			Destroy(collision.gameObject);
			
			yield return new WaitForSeconds(2);

			Instantiate(Resources.Load("Player"));
		}
	}
}