Hi! I have a game that has alot of leaderboards, and a big problem with them is that whenever a new player score loads, it needs to get the players username from their id using GetNameFromUserIdAsync() (which has a rate limit that often gets hit), I have a cache for names that have already been loaded but leaderboards fail to load pretty often when a server is first created and none of those names are cached yet
Is there a better way to get these usernames without getting rate limited? Thx!
Hi! Can’t you just get their username with Player.Name
or Player.DisplayName
instead of using id?
Or Maybe get the player by id first and then get their name with the player?
This is a leaderboard, I doubt that’s possible if they’re not in the server.
To not get rate limited, I found you can add a simple task.wait()
statement between requests. it’s worked for me about 95% of the time, but even then, it’s just a leaderboard and it doesn’t matter so much if it fails. I don’t think there’s another way, though…
no cuz it’ll be for players not in the game server.
Ah yea, that seems like the best thing id be able to do for this, Thanks!
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.