I am using this script to parent the player to an object on collision, so the object can be used as an elevator. The script has no compile errors. any ideas about what is wrong?
var Player : Transform;
var Elevator : Transform;
function OnCollisionEnter(collision : Collision) {
if (collision.rigidbody);
Player.parent = Elevator;
}