Not working?

So i tried to create my first 2d program . I learn from this tutorial :

But at 4:35 , that code is not working for me… For some reasons Unity keep saying i have errors.
I’m 100% sure i selected Javascript from the dropdown menu of the script.

What else could it be?

FIXED

First of all, what you should do this time:
-Write down the errors too
What you should do next time:
-Give the topic a name that actually says something

I came across this bug too, i fixed it by defining a new Input and using that instead of keycodes, if you don’t know how that works, just ask

Can you help me to do that?

post the code you have, if we cannot see what you have done we can’t help point out where it’s going wrong. Showing us the tutorial you are following doesn’t help if you’ve put a “.” or “;” in the wrong place…

use [code ][/code ] tags when pasting code into the forums, there is a sticky on them at the top of the scripting forum.

I’m not stupid. i can follow the code line by line. I typed exactly like in the video.

Well obviously you didn’t because it would be working if you did.

nobody called you stupid, maybe i dont want to watch video or dont have time
you are being rude

Stupid is not really offensive. I mean like i know other languages too. I will add a line of the code as an example right now :wink:

well i cant see your face to tell emotions but text seems as douche

ok, so a missing “;” error… it might not be on the line it’s complaining about, the compiler might have “run on” past the missing “;” thinking it’s all one line and complained when it got to the “end”.

quite seriously, post the code you have, then we can see the full picture.

Uhm, by any chance, isn’t your code compiled in C#?

No. Is in javascript for sure.

CODE FIXED. I don’t even know how is that possible but today all errors are gone… No changes. I just open my project and no errors anymore. weird. anyway thank you guys.