So basically I had a script attached to an object that I put in a prefab, because I am calling on it later to spawn then get destroyed. Only problem is the Transform var that I put a target into is erased in the prefab. Is there a way to make it so that the prefab keeps the transform var that I put into it?
Do something like this.
var target : Transform;
function Start(){
target = gameObject.FindWithTag("WhateverTagYouWant");
}