InvalidCastException: Cannot cast from source type to destination type.

I have a shot script.

            var BulletPref : Rigidbody;
            var clone : Rigidbody;
            if (bloodPrefab) Instantiate(bloodPrefab, hit.point, rot); // make it bleed...
            clone = Network.Instantiate(BulletPref, BulletSpawn.position, BulletSpawn.rotation,0);
            clone.GetComponent(Bullet).Towards = hit.point;

There are many problems with your script, not just that particular error.

var BulletPref : GameObject;
var clone : GameObject;
var isInstantiated = Instantiate(bloodPrefab, hit.point, rot); // make it bleed...
if(isInstantiated != null)
   {
   clone = Network.Instantiate(BulletPref, BulletSpawn.position, BulletSpawn.rotation,0);
   clone.GetComponent(Bullet).Towards = hit.point;
   }

I don’t know what type “Towards” has, but I am assuming you cannot assign hit.point to it because of a type mismatch.

I changed the script to:

Instantiate(bloodPrefab, hit.point, rot); // make it bleed...
			
   			
   				Network.Instantiate(BulletPref, BulletSpawn.position, BulletSpawn.rotation,0);

and i added a script to the bullet to let it move