Hello, me and my friend have begun the process of migrating our code from using UserId to the new User standard
We recently encountered an issue where the GetNameFromUserIdAsync doesn’t return the player username even though the User data exists if that player isn’t currently on the server
I have two existing Users (mine and my friend’s, respectively). They also serve as keys for saving information to datastores, but that is not relevant to the problem
As you can see, I am trying to get a username using
GetNameFromUserIdAsync given the User when the user isn’t on the serverUltimately, It returns an “Unknown user” error. Also, this doesn’t work with the
User.Id. The issue occurs in the Studio console input, on the server, on the client, and in the regular Roblox player.Also, for some reason, an incorrect error message is being returned:
GetUserIdFromNameAsync instead of GetNameFromUserIdAsync
Expected behavior
GetNameFromUserIdAsync returns the player username based on their existing User, even if they aren’t currently on the server

