On collision enter next scene

I am new to unity and need a simple script that I can copy/paste into a new script that enters the next scene when the player (Tagged “player”) collides with a cube.

void OnCollisionEnter(Collision myCollision)
{
if(myCollision.gameObject.tag == “Player”)
{
Application.LoadLevel(“Scene Name”);
}
}

I need to know if you attach it to the Player or something else.