Semicolon problem melee.

I’ve watched a video talking about how to make the main player attack with a melee weapon, I copied the strings but at 3, 22 the console says that i must insert a semicolon and if i insert it, the console says that expressions in statements must only be executed for their side-effects. How can i fix this? Here’s my string (sorry if it’s copied and pasted but i dunno how to insert it).

#pragma strict

var TheDammage : int; - 50;
var Distance : float;

function Update ()
{
if (Input.GetButtonDown(“Fire1”))
{
var hit : RaycastHit;
if (Physics.Raycast (transform.position, transform.TransformDirection(Vector3.forward), hit))
{
Distance = hit.distance;
hit.transform.SendMessage(“ApplyDammage”, TheDammage, SendMessageOptions.DontRequireReceiver);
}
}
}

look like you hit - instead of =

var TheDammage : int = 50;

assuming it’s 50 and not -50 :wink: