How would I go about finding the position of all players within the room


Hi there,

I'm attempting to find the nearest players distance to an enemy AI, however, it's only listening for the local player (the master client in this case), never the others.

Basically, no matter what I try to find if ANY of the players are close to the enemy AI, it only is listening if the local player is near rather than other players too. Is there any way for me to achieve this? Is it a simple foreach and grabbing the players in an array, or putting them in a list? How would I go about this?