help with script

A little bit about how ill use it. my enemy car will be the target and if it gets hit 3-4 times by my player car, it’ll die.

the error i get is:

(5,52): BCE0044: expecting }, found ‘’.

(5,52): BCE0044: expecting }, found ‘’.

public var explosionPrefab : Transform;

function OnCollisionEnter(collidedObject : Collision) {
	if (collidedObject.gameObject.tag == "Finish") {
		Destroy(collidedObject.gameObject);

Your forgetting 2 end Brackets } in your code

public var explosionPrefab : Transform;

function OnCollisionEnter(collidedObject : Collision) { 
if (collidedObject.gameObject.tag == "Finish") { 
Destroy(collidedObject.gameObject); 
}
}

You needed to add two end-brackets. When you have one start-bracket you need one end-bracket