And im getting this errorAssets/Script/damageTowers/turret.cs(70,17): error CS0266: Cannot implicitly convert type `UnityEngine.Object' to `UnityEngine.Transform'. An explicit conversion exists (are you missing a cast?)
You need to cast the result of instantiate to GameObject, and then reference its transform.
Also, I’d suggest using a List instead of an array, unless you’ve set it up somewhere that the array length represents the maximum number of current bullets.
Like so:
List<Transform> currentBullets = new List<Transform>();
void CreateBullet() {
var bulletInstance = Instantiate(bulletPrefab, muzzle.position, muzzle.rotation) as GameObject;
currentBullets.Add(bulletInstance.transform);
}