UCE0001 semicolon expected

Since I’m relatively new to coding, this may seem like a trivial issue to you all. It says that on line 15 a semicolon is expected. I already have a semicolon so I think it’s an issue with the rest of the code. Can someone help, please?

#pragma strict
var rotationSpeed = 75;

var jumpHeight = 10.5;
function Update () 

//first lines!

{var rotation : float = Input.GetAxis ("Horizontal")*rotationSpeed;

rotation *= Time.deltaTime;

GetComponent.<Rigidbody>().AddRelativeTorque (Vector3.forward*rotation);

if (Input.GetKeyDown(KeyCode.W)) IsFalling = false;
{

GetComponent.<Rigidbody>()velocity.y = jumpHeight;

IsFalling = true;
 }

}

function OnCollisionEnter()
{
{IsFalling=false;
 }

}

You’ll see the IOIOIOI button, it allows you to enter that as code, so we all can read it correctly. Please Edit that

I’m not familiar with javaScript, but does that period belong after GetComponent? And shouldn’t still, jumpHeight be declared first? jumpHeight = GetComponent??

You’re missing a dot after you get the Rigidbody component.

GetComponent.<Rigidbody>()velocity.y = jumpHeight;

this line should be:

GetComponent.<Rigidbody>().velocity.y = jumpHeight;

Note the dot between “()” and “velocity”.

You really shoud format your code in a consistent way. i.e.:

#pragma strict
var rotationSpeed = 75;
var jumpHeight = 10.5;

function Update () 
{
    var rotation : float = Input.GetAxis ("Horizontal")*rotationSpeed;
    rotation *= Time.deltaTime;
    GetComponent.<Rigidbody>().AddRelativeTorque (Vector3.forward*rotation);
    
    if (Input.GetKeyDown(KeyCode.W))
        IsFalling = false;
    GetComponent.<Rigidbody>().velocity.y = jumpHeight;
    IsFalling = true;
}

function OnCollisionEnter()
{
    IsFalling=false;
}

This is what your code looks like when formatted properly. However the whole GetKeyDown thing seems to be non-sense. It’s not clear what you wanted to do here.