Problem with 3D platform tutorial

I just started working on this tutorial. I am just on the first step and I have a compiler error.

Here is the error:

Assets/Scripts/Camera/FadeoutLineOfSight.js(125,42): BCE0067: There is already a local variable with the name ‘newMaterial’.

I dont know the first thing about how to fix this.

What are my solutions?

I’m not familiar with the particular tutorial you’re referencing, but the error you mention is caused when a particular script attempts to create two variables with the same name in the same scope.

You might be able to rename the variable.

Ah, yeah. Shame those are just left in. Might be good blog fodder to write a few posts detailing all of the errors in those tutorial projects, with quick fixes.