How could I make a system to check whether a specific player is in the game (game in general not server)

How would I go about making this

1 Like
function IsInGame(UserId)
	return game:GetService("TeleportService"):GetPlayerPlaceInstanceAsync(UserId)
end

print(IsInGame(123456789))
1 Like