Enemy Raycasting Damage

I have a simple raycasting script here and i need some direction on how to have it so if the raycast collides with tag “Enemy” then enemy health is taken away. Thanks! :smiley: Here is my script. The comments next to the curly brackets are just for organization.

var hit : RaycastHit;
var gunshot : AudioClip;
function Update (){

		Physics.Raycast(transform.position, transform.forward);
					print("Raycast hit!");
	 	if(hit.collider.gameObject.tag == "Enemy")
	 			print("Enemy hit!");
			} //Physicsdotraycast
		} //fire1
	} //update

As what rednax20 said as a comment, you need to pass the hit variable into the Raycast function as the last parameter so that Raycast can populate it with data. Otherwise you will have an empty variable.