strange compiler error. Default scripts unable to load

I just downloaded unity today and im following an online tutorial to get me started. I was following a series of instructions step by step in the video. I made a terrain in which my first person camera walks on. with an added light source above. simple stuff. However for some reason everytime i try to run it i get a compiler error and i noticed the default scripts associated with my first person camera say they failed to load. i tried reimporting that did nothing. no matter how basic or default i make it, i get a compiler error. Some help would be appreciated. ever since i got my first gameboy i always wanted to design and program a game and now im getting frustrated hahaha. I dont know if this problem could be related to my laptops hardware or something but i assume not considering it seems a bit irrelevant to me. Thank you

Hey there!
The console shows you exactly where things go wrong (up to the line and character in code it receives an error in the format line:charactier, i.e. 32:4 means line32, 4th character), i dare bet it’s in one of your firstpersoncontroller scripts.
in the script, somewhere a “Pipeline” is used ( literally a | ), you need to replace the | where the error is given with || and then the script should compile fine. (That’s a problem i often ran into, sadly for now i managed to replace the “default” script with the fixed one though -.- )

A small explanation about the error you’re likely witnessing;
this Pipeline is used in the code there in an “If-statement,”
if a || Is used in an If-statement, it is basically used as an “OR”
i.e.

If (health < 25 || stamina < 25)
{ DoThis()}

means If health is below 25, OR stamina is below 25 then perform “DoThis()”

in the code though only a single | is used, which didnt throw errors in older versions of unity, but it does now.
so in some other default scripts you might run into this problem again.

If you keep having issues, please also include the exact error Unity throws at you, it makes the difference to us between taking random guesses what may be wrong and actually having a direction to look for the cause of your problem :wink: