For some reason my script is not working to teleport to a new level. I changed it from teleporting to a new level to just destroying the player and it works that way. But when I try to teleport instead of killing the player it won’t work. It does not do anything. I did add the scene and the level 2 scene in the building settings. Can someone help me please.
void OnCollisionEnter(Collision hit){
if (hit.gameObject.tag == "Teleporter") {
Application.LoadLevel ("FirstGameLvl 2");
}
}