February 1, 2022, 12:39pm
Im making a donation board system and i want it to have the display name anyways i define the UserID and i test play the game and it says
I feel like it doesnt read the userid? but when i print it it prints the userId so its very confusing and im losing my mind
The error mentions type so try printing the type as well.
February 1, 2022, 12:59pm
it keeps saying this even when i try another way or either its saying this
UserService: invalid userId(s) given. Please make sure they are of number type
February 1, 2022, 1:13pm
tonumber(data.key) and make sure the id is real(a fake id will have a number less than 1, which is a Roblox studio test account such as Player1, Player2 etc.).
February 1, 2022, 1:28pm
Instead of doing this
I just did this instead and it printed out the displayname
thanks for the help though
February 1, 2022, 1:31pm
GetUserInfosByUserIdsAsync works on players that are in the server
February 1, 2022, 1:36pm
According to documentation
the function enables developers to request information about users outside of the current Datamodel, also I was able to use the function directly inside Roblox studio(for another id), therefore I assume your claim is incorrect.
February 1, 2022, 1:37pm
Well I some people say that its only for those people who are inside the Datamodel
February 1, 2022, 1:39pm
yeah your claim is incorrect because i just hopped onto an alt to check if the display name was still on the leaderboard and it was correct so this is false
February 2, 2022, 7:26am
You may be getting confused with this, this does require the player to be present (exist within the DataModel hierarchy of an active server session) in order for the player instance to be fetched from their user ID.