i have this script, but it works on a older version of unity, anyone know how to fix it?`public var bulletPrefab : Transform;
public var BulletSpeed : float = 1000;
public var bulletPrefab : Transform;
public var BulletSpeed : float = 1000;
function Update() {
if (Input.GetButtonDown("Fire1")) {
if (!BulletSpeed || bulletPrefab) {
Debug.Log("Shoot Values undefined");
} else {
var Shot = Instantiate(BulletPrefab, GameObject.find("Spawn Point").transform.position, Quaternion.identity);
Shot.rigidbody.AddForce(UnityEngine.Transform * BulletSpeed);
}
}
}