Java script for unity 3d game player going into car?

i wanted to know if there is someone who can make a script which lets the player go into cars so it can drive it. i need a javascript

or maybe a script which lets the player hit the car and change the player to the car (only if the player comes i contact with the car)

No one will make a script for you. That's not what Unity Answers is for. How do you expect to make the rest of the game if you want people to write entire scripts for you...

As for your problem set up a control script for your car and also one for your player. Use a trigger to enable/disable each script so the control switches from the player to the car and vice-versa