What is wrong with this code?

Working on a day and night cycle, but I am stumped with these last few errors. I haven’t a clue how to fix this…

you really should post the script in code tags, not picture.

Anyways, why not take a look at this Tutorial link Here ?

You can only have one “function Update()”

Fixed.