i need some help to make this script work please :confused:

#pragma strict

var falldoor : GameObject;

function OnTriggerEnter(other: Collider)

if(col.gameObject.tag) == (“Player”);
{

falldoor.animation[“falldoor”].speed = 1.0;
falldoor.animation.Play();

}

function OnTriggerExit(other: Collider)

if(col.gameObject.tag) == (“Player”);
{

falldoor.animation[“falldoor”].speed = -1.0;
falldoor.animation.Play();

}

You have to learn programming syntax. I found 3 error and this only in your if statement !!

var falldoor: GameObject;

function OnTriggerEnter(other: Collider){
  if(other.tag == "Player"){
     falldoor.animation["falldoor"].speed = 1.0;
     falldoor.animation.Play();
  }
}

function OnTriggerExit(other : Collider){
   if(other.tag == "Player"){
     falldoor.animation["falldoor"].speed = -1.0;
     falldoor.animation.Play(); 
}

}