How Can I get a userid of a player from their username

How Can I get a userid of a player from their username? Basically I have a datastore called bans. And I was wondering how you can get a players userID from their username (Side note: This user isn’t in the admins server. So I cant get the UserId directly from the player)

Players:GetUserIdFromNameAsync()

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.