Can't get the player's image

Okay, so I’m trying to send a player’s image through a Discord webhook the problem I ran into is that when I try to get the image itself I get this error

HttpService is not allowed to access ROBLOX resources

Here’s my code for getting the player image:

local LINK = "http://thumbnails.roblox.com/v1/users/avatar-headshot?userIds="..player.UserId.."&size=420x420&format=Png&isCircular=false#"
	print(game:GetService("HttpService"):GetAsync(LINK))  --Error  HttpService is not allowed to access ROBLOX resources

I’m not sure is there any way to get the link of a player’s image in Roblox?

1 Like

I think found the problem, maybe do https:// instead, thumbnails.roblox.com is secured

I have tried switching them around but with no success

Did you allow HTTP requests in the game setting and the hashtag at the end of the link seems unnecessary?

HTTP, services are allowed and the hashtag doesn’t do anything.

Please use a proxy or

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.