I keep getting an error to insert a semi colon

I keep getting an error to insert a semi colon at the code line with int and float22267-capture.png

My code will be used for an RTS style camera scroll, and im also a begginer

You are mixing C# and Javascript syntax. The line should be:

var scrollSpeed = 5;

or

var scrollSpeed : int = 5;

Note I’d make scrollSpeed a float rather than an int. Also it is better to put your code directly into the question, select the code and use the 101/010 button to format rather than pasting a picture.