I can't find what is wrong with script.

It just says error CS1002, and that I am missing ; at line 52.9783012--1403073--upload_2024-4-20_21-13-0.png

9783012–1403070–PlayerController.cs (1.8 KB)

1 Like

You are missing an if in line 52. Also, yeah, please use code tags and post in the correct sections.

2 Likes

Line 38 is incorrect too. Avoid extraneous parentheses. It can very quickly lead to mistakes.

if(Input.GetKeyDown((KeyCode.Space) && isOnGround))

Here’s the corrected line.

if(Input.GetKeyDown(KeyCode.Space) && isOnGround)

If you’re using a proper IDE these mistakes will be highlighted with red squiggly lines.

9783087--1403109--upload_2024-4-20_15-29-58.png