I need help with Javascript

I am doing Raycast shooting scripts this is my script (java script):

#pragma strict

          var Range : float = 1000;
          
               var Force : float = 1000;

function Start () {

}

function Update () {

if(Input.GetKey(KeyCode.F))
RayShoot();

}

function RayShoot (){

    var Hit : RaycastHit;
    
            var DirectionRay = transform.TransformDirection(Vector3.forward);
            
            Debug.DrawRay(transform.position , DirectionRay * Range , Color.blue);
            if(Physics.Raycast (transform.position , DirectionRay , hit , Range))

It says as an error notice thing:

Assets/FPS Scripts/Java Scripts/RauShoot.js(40,1): BCE0043: Unexpected token: .

This was pretty simple, Where you see ‘hit’ put Force there instead, also you need to end that line with a ‘;’ then underneath the last line put a ‘}’ , basically the last line should look like this.

if(Physics.Raycast (transform.position , DirectionRay , Force, Range));
}

Hope this helps :slight_smile: