Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Checking Players RAP from username?

Asked by 6 years ago

Does anyone know how to / if it's possible to get the players RAP in a script when they are not in the game. Basically looking at the profile name to find the RAP? Like this script i have can check if a player username exists or not.

local Http = game:GetService("HttpService")
local PastebinRaw = "PASTEBIN LINK HERE"

if PastebinRaw == "" then return end

local List = Http:GetAsync(PastebinRaw)

for i in string.gmatch(List,"[^\n^]+") do
    i = i:gsub("\n","")
    local Suc = pcall(function()
        game.Players:GetUserIdFromNameAsync(i:sub(1,#i-1))
    end)
    if Suc then
        print(""..i:gsub("\n",""))
    end
    wait()
end

The script checks if player username is valid or not valid. Can you do this with RAP?

Answer this question