On Collide script not working!

So I am making a game where you have to click buttons on the sides to move the cube in the middle from side to side to dodge the other cubes. The bad cubes and the ground are animated to make it move forward, and I have a script to on collide go to the next scene. Its not working and goes rght through the good cube. triggers are on and I attached the script to all of the cubes.

Here is the script:

var level : String;
function OnTriggerEnter( hit : Collider){
Application.LoadLevel(“FirstLevel”+level);
}

Thank you for the help!

Trigger events are only sent if one of the colliders also has a rigidbody attached. Attach rigidbody to your objet then try it will work.

Thanks