Im currently creating discord log system by webhooks and I want to get avatar url of player so I can use it in discord api. My main problem is that I cant get png file from using this way "https://roblox.com/Thumbs/Avatar.ashx?x=100&y=100&Format=Png&userid="..plr.UserId
I want to know if there is any way of creating this without any additional websites?
1 Like
do
game.Players:GetUserThumbnailAsync(UserId, Enum.ThumbnailType.HeadShot, Enum.ThumbnailSize.Size420x420)
change Userid to the players user id to get the image. That simple
1 Like
I need to get url to png file to use it outside of roblox.
not sure if this will work, but you can try this:
“https://www.roblox.com/Thumbs/Avatar.ashx?x=100&y=100&username=”…player.Name
make sure that its a string
The main problem is that its a link that sends you to png file, but I need png file link. I use discord api the only thing it accepts is url
that is a url. Im assuming you’re using a discrod webhook. And a webhook free model I found from a tutorial uses it to get the player’s image. So just give it a try.
1 Like