How to make trigger removes script.

Hi,i want script removes when player is in trigger,but how? Here is my script,its unfinished,i dont know what to do next,so please help. :slight_smile:

function OnTriggerEnter (other : Collider) {
    if (other.tag == "Player"){
    GameObject.Find ("Wall").GetComponent("FixedJoint");
    
    
    }
    
  }

I don’t know what you want to remove, but you need to use the Destroy function, either on a component or a game object.