I'm making a blacklist script, that keeps the player off the leaderboard. The only problem with the script is this line:
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.

3 comments
Include your full script, there's nothing we can do with this if you won't give us anything regarding the context of this.
what is v, what is the error in your output, and what do you want it to do?
Are HTTP services enabled? GetUserIdFromNameAsync sends a query to the Roblox servers so that could be the problem. Also it is very recommended that you surround GetUserIdFromNameAsync with pcall.