How can I get the user ID from a username if the user is not in the life experience like the script?
BSP: A mod searches in this experience for a user who is not currently playing the experience or is not on the same server. The script then gets the user ID of the player the mod is looking for and outputs it, for example.
Ty
1 Like
Did you know about the Players:GetUserIdFromNameAsync("Misterx113")
function
4 Likes
Yea, but
- Does that work for users who aren’t in the server?
- I have no player instance, only a string, is that ok?
It works for any user, Any, even those that aren’t in the same server
The argument only supports string, so that is ok
1 Like
Ok, last question:
LocalScript
?
though It does work in local scripts despite what the assistant said, so it works in local scripts, Nevemind the Assistant’s response
2 Likes
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.