Problems with making a function

You seem to be trying to create a function inside another function - that is not allowed.

When you put the semi-colon at the end of the function line it just becomes a call to the function - which is allowed inside another function. But then, of course, there will be no function called TURN_ON_CAMERA()

Please modify your post and use the code button </> so your code looks like this and is easy to copy to a text editor. See How to use the Forum Your code is too long to study quickly without copying to a text editor.

...R