object spawn on trigger

i have this script and im trying to work in a line that will generate a game object when the player passes through a trigger but in not sure what im doing wrong.

var sendToObject: GameObject; // Add in the step2
var correctObject: GameObject; //this is the only object we allow to trigger the event
var targetFunction : String; // the name of the function to call

function OnTriggerEnter (object : Collider) {
//print (object.name); // this is the name of the object triggered the event
if(object == correctObject.collider) ModelImporterGenerateMaterials: GameObject;
}

function OnTriggerExit (object : Collider) {
//print (object.name); // this is the name of the object triggered the event
if(object == correctObject.collider) sendToObject.SendMessage(“targetFunction”);
}

im positive my problems are steming from this line
if(object == correctObject.collider) ModelImporterGenerateMaterials: GameObject;
i just dont know what wording i need in order for it to spawn the gameobject

You want to use Object.Instantiate. More information can be found here Instantiating Prefabs.