Finding if a certain PlayerID is in the server

This should be a simple one, unless I’m completely wrong.

I want to find if a player with a certain PlayerID, for example, 105722421, is currently in the server. Is there a way to do this without using something like GetNameFromUserIdAsync and searching for a matching name in game.Players?

Use Players:GetPlayerByUserId(). It returns nil if the player isn’t in the server.

Works as intended now. Thanks!