Getting Player Icon As Actual Link

You can write your topic however you want, but you need to answer these questions:

  1. What do you want to achieve? Keep it simple and clear!

Able to send player icon trough webhook on discord server

  1. What is the issue? Include screenshots / videos if possible!

HttpService is not allowed to access ROBLOX resources

  1. What solutions have you tried so far? Did you look for solutions on the Developer Hub?

Yes. But i didnt find anything that could help me fix my problem

	local testlink="https://thumbnails.roblox.com/v1/users/avatar-headshot?userIds="..playerId.."&size=48x48&format=Png&isCircular=false"

	local dat = HttpService:RequestAsync({
		["Url"] = testlink,
		["Method"] = "GET",
		["Headers"] = {--not working. I tried many times
		}
	})

On the documented API of HTTPService, it appears, on purpose, Roblox denies requests to their website. What you can do is send discord the link and have them download the image, if that works.

rbxthumb://type=Avatar&id=1&w=720&h=420
You can use the ‘rbxthumb’ content type or the following method.
https://developer.roblox.com/en-us/api-reference/function/Players/GetUserThumbnailAsync

Not sure if this is what you’re looking for but:
Place a part on the workspace (make it look like a picture frame)
then add a Decal in it facing the way you can see it.

From StarterGui add this Localscript

local Player = game:GetService("Players").LocalPlayer
local userid = Player.UserId
local image = game.Players:GetUserThumbnailAsync(userid,Enum.ThumbnailType.HeadShot, Enum.ThumbnailSize.Size150x150)
workspace.Part.Decal.Texture = image

A raw script just showing how to grab the head shot, I hope it helps.

1 Like

Idk why but i cant send this type of link its just gives me error
HTTP 400 (Bad Request)
[basically i want make appeal system for my game. When someone sends appeal then their icon appears in embeded message]

The program I used that in has API turn on … not sure if that matter for the pic That should get you the head shot. It works fine for me. Unless you didn’t even try it. :cry:

In roblox it works fine. [Image labels and etc.]
But when i try send message to discord its just give me HTTP 400 (Bad Request)

I don’t know anything about Discord … I don’t play Roblox, I just make games. Maybe at some point I’ll get to that. GL