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
Set UserId to 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.).
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.
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
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.