Players:GetPlayerByUserId local Players = game:GetService("Players") local player = Players:GetPlayerByUserId(1) if player then print("Player with userId 1 is in this server! Their name is: " .. player.Name) else print("Player with userId 1 is not in this server!") end...
3 placeId int64 The PlaceId of the server the user is in 4 instanceId string The JobId of the server the user is in If there is a problem during lookup, such as the user being offline, an error is thrown. It is recommended that you wrap calls to this function in pcall. Limitations...
Players:GetPlayerByUserId local Players = game:GetService("Players") local player = Players:GetPlayerByUserId(1) if player then print("Player with userId 1 is in this server! Their name is: " .. player.Name) else print("Player with userId 1 is not in this server!") end...