Instantiate

Any obvious reasons why this doesnt work? the problem is the Instantiate player line11,12,13. I cant figure out how the brackets are supposed to work. This script destroys a car and instantiates a fps prefab.Thanks in advance yo

var voice: GameObject; 
var car: GameObject; 
var camera1: GameObject; 
var camera2: GameObject; 
var Player : GameObject; 
function OnTriggerEnter () {
	 Destroy(car);
  Destroy(camera1);
  Destroy(camera2);
    Instantiate(Player
     transform.position = transform.position + Vector3(0,10,0) ,transform.rotation = Quaternion.identity); 
    
    Instantiate(voice, transform.position, transform.rotation);
Destroy (gameObject);
}

AC

Hey man, I don’t have time to help you properly, but at a quick glance I see you need a . after Player in the instatiate function: Player.transform.position

Also you put this in for the rotation var of the instantiate function:

transform.rotation = Quaternion.identity

You just put a rotation value there not an assignment operator (=).

Sorry I can’t look at your code more tonight,

-Jeremy