what did I do wrong

I was trying top write a simple level switch code and it wont work even when i add the scenes to the build

`var levelToLoad : String;

function OnTriggerEnter(other : Collider){

Note: Trigger events are only sent if one of the colliders also has a rigidbody attached