Does getPlayerByUserId look through the whole game, or just the current server

I just wanted to know if getPlayerByUserId only looks for the player in the current server or the game as a whole. I could test this, but I would need someone to test with me. And I have no friends currently online.

2 Likes

GetPlayerByUserId only checks all the players in the server.

To check the whole game you would need to use something different.

It only works if the player is in the server or else it returns nil because no player in the server has that User Id

1 Like

thank you(just to make it 30 chars)