Unity2d Error BCE0043: Unexpected token

I’m a noob when it comes to Javascript, can anyone help?
I searched online for answers but nothing helped me out…

var speed; float;
function Start() {
    void {}
    { } rigidbody : velocity: transform.forward * speed;

Thank you!

Try converting that first semi-colon to a colon.

var speed : float;

Also, you don’t need the semi-colon after the end braces ( } ) - those close a function or section automatically, and don’t need to be closed / ended with a semi-colon.