Weird Scripting Error

Hi there folks!

I’m working on a game but I get some weird errors in my script!
I’ve tried to fix the problems that the errors say but it doesn’t work!

Pictures;
Script:


Errors:

All help is needed!
Thanks for helping and reading! :smile:

You didn’t close the PlayerStateController function. Add a “}” in line 34 to solve it. And this belongs to the scripting forum, not the gossip