I need help with this error, and I don't understand it

So I am trying to make a function and I got an error

Script:
image
Error:
image
I closed the function with a “)” but I am still getting this.

The end on line 27 is an extra end.
Delete the line and add the parentheses to the line above next to end in line 26.

2 Likes