How can this player controller client function get the gamemode?

Huh… well that’s… weird. Guess there’s something else wrong with my project. Thanks!