Got some errors in this script, glad if anyone could help

The first post in this subforum is asking for using code tags . This makes code much easier to read.
And what else do you expect us to say what the error message does not tell you already? Lines 8 + 9 are missing a semicolon and I suppose you got your curly braces mixed up a bit but it’s hard to tell when you format code like this. When it’s properly intended you should compare the braces yourself to make sure all are in the right spot.