Unexpected Token

I get “Unexpected token: PlayerState” error with this script.

The problem is with the 7nth line.

try changing line six to a { instead of a (

Could the compiler be expecting something else that a PlayerState?

Nevermind just remade all of the code and it worked,I don’t know why ._.