Check each player's tag

Options

I am currently working on a simple multiplayer game where there are players and spectators.

Each of these groups get a tag, either "Player" or "Spectator" based on what they are.

I am trying to implement a player count overlay, but I only want to count the players - excluding the spectators from the count.

How do I go about checking every player's tag on my gameplay manager script?


Thank you.

Answers