The title describes my issue pretty well. I’m trying to retrieve an avatar headshot PNG from a player’s userId using the new API at thumbnails.roblox.com and then decode the JSON data; however, it’s returning nil. My code can be found below, any help is much appreciated!
local success, errormessage = pcall(function()
jsonData = HttpService:GetAsync("https://thumbnails.roblox.com/v1/users/avatar-headshot?userIds="..tostring(plr.userId).."&size=420x420&format=Png&isCircular=false")
end)
local data = HttpService:JSONDecode(jsonData)