Enter/Exit Vehicle System in Unity 3.5.6

There is a script I got:Vehicle Enter/Exit System for First/3rd Person
:

var car : Transform;
var player : Transform;
var exitPoint : Transform;
var doorTriggerLeft : Transform;
var PlayerCamera : Camera;
var CarCamera : Camera;
var isPlayerVisible : boolean;


function Update(){
    if (Input.GetButtonUp("Action")&& isPlayerVisible){
        // make player invisible and still standing
        player.gameObject.SetActiveRecursively(false);
        player.gameObject.active = false;
        // parent player to Exit Point
        player.parent = exitPoint.transform;
        player.transform.localPosition = Vector3(-1.5,0,0);
        // parent PlayerParent to car
        exitPoint.parent = car.transform;
        exitPoint.transform.localPosition = Vector3(-0.5,0,0);
        // Enable Car as controllabe object
        GameObject.Find("car").GetComponent("DrivingScript").enabled=true;
        PlayerCamera.enabled = false;
        CarCamera.enabled = true;
        }
        else
        {
    if (Input.GetKeyUp("r")){
        // make character visible again
        player.gameObject.SetActiveRecursively(true);
        player.gameObject.active = true;
        // unparent player from everything
        player.transform.parent = null;
        // parent Exit Point to door Trigger
        exitPoint.parent = doorTriggerLeft.transform;
        // disable car as controllable
        GameObject.Find("car").GetComponent("DrivingScript").enabled=false;
        PlayerCamera.enabled = true;
        CarCamera.enabled = false;

        }   
    }
}

function OnTriggerEnter(Player : Collider) {
    isPlayerVisible = true;
    }

function OnTriggerExit(Player : Collider) {
    isPlayerVisible  = false;
    }

But it cannot work on Unity 3.5.6.
Can anyone help me?I will be thankful for any of your advice…
:slight_smile: :slight_smile: :smiley: :slight_smile: :slight_smile:

Link for tutorial <------ Go to this link and follow the tutorial and your problem will be solved Cheers Have a HAPPY CODING…

Don’t forget to mark the answer if found useful…