try if(collider.gameObject.tag == "NextLevel") or if(collider.tag == "NextLevel") please reply if it works