local httpService = game:GetService("HttpService")
local URL = "https://thumbnails.roproxy.com/v1/users/avatar-headshot?userIds=%s&size=150x150&format=Png&isCircular=false"
local userID = 0000
local response
local data
local success, err = pcall(function()
response = httpService:GetAsync(URL:format(userID))
end)
if not success then
print(err)
else
data = httpService:JSONDecode(response).data[1].imageUrl
print(data)
end
This is a script using the RoProxy service.
The data
variable is the image link so if this used for a Discord webhook, the data
variable can be used as the avatar.