Anyway to get avatar

Hi,

Is there anyway to get the head of the avatar and only the head, just like the avatars on devforum accounts.

A function of Players service is to get a player’s avatar photo.

You can choose between different photo types which can be found on the page. Since you need the head of a player, you will use the Enum.ThumbnailType.Headshot

3 Likes

You can use GetUserThumbnailAsync and for the Thumbnail type parameter, you’d have to pass Enum.ThumbnailType.HeadShot:

local image, ready = player:GetUserThumbnailAsync(player.UserId, Enum.ThumbnailType.HeadShot, Enum.ThumbnailSize.Size420x420)
1 Like