I'm making a blacklist script, that keeps the player off the leaderboard. The only problem with the script is this line:
1 | if plr.UserId = = game.Players:GetUserIdFromNameAsync(v) then |
I'm not what to replace it with, as that line only checks the player in-game. As "plr" is the playeradded function.
Please help me out if you can.
You don't really need to, but you can use HttpService with a proxy.
1 | local url = "http://rprxy.xyz/users/get-by-username?username=" ..v |
2 |
3 | local HS = game:GetService( "HttpService" ) |
4 | local JsonTable = HS:JSONDecode(HS:GetAsync(url)) |
5 |
6 | if UserId = = JsonTable.Id then |
7 | print ( "True" ) |
8 | end |