UCE0001: ';' expected. Insert a semicolon at the end.

Hello, looking for help. Keeps telling me its the first line with " var DamageAmount : int 15; "

var DamageAmount : int 15;
var Range : float;
var Falloff : float = 15;

function Update () {
if(Input.GetButtonDown(“Fire1”)) {

	var Impact : RaycastHit;
		if (Physics.Raycast (transform.position, transform.TransformDirection(Vector3.forward), Impact)) {
			Range = Impact.distance;
				if (Range < Falloff) {
					Impact.transform.SendMessage("Down", DamageAmount);
						}
							}
								}
									}

Keeps telling me its the first line with " var DamageAmount : int 15; "

Did you perhaps mean…

var DamageAmount : int = 15;

?

UnityScript is a bit different to JS when declaring variables.

Have a read of this

Your code will work if you change the declarations like this:

var DamageAmount = 15;
var Range : float; 
var Falloff = 15;

Maybe consider moving to C# :slight_smile: