identifier expected

I’m Making Crouch Script (Inside of fpscontroller script)
It’s Giving This Error;
Assets\SC_FPSController.cs(73,23): error CS1001: Identifier expected
The Code At 73. Line;

if(Input.GetKeyDown.(KeyCode.LeftControl)){
GameObject.FindGameObjectsWithTag("Player").transform.localscale = new Vector3(1f, 0.25f, 1f);
}else{
GameObject.FindGameObjectsWithTag("Player").transform.localscale = new Vector3(1f, 1f, 1f);
}

What’s Wrong?

Line 1, change to if(Input.GetKeyDown(KeyCode.LeftControl)){

1 Like

Okay Guys I Found The Error Also I Solved The Component Error So The Last Code Is This;

        Transform transform;
        if(Input.GetKeyDown(KeyCode.LeftControl)){
            GameObject.FindGameObjectsWithTag("Player").transform.localscale = new Vector3(1f, 0.25f, 1f);
        }else{
            GameObject.FindGameObjectsWithTag("Player").transform.localscale = new Vector3(1f, 1f, 1f);
        }