[Showing Avatar on GUI]

I have a menu and on the home page, I wanted to add a image of the players avatar, how do I make that possible?

Script =
local Players = game:GetService(“Players”)

local player = Players.LocalPlayer

local userId = player.UserId
local thumbType = Enum.ThumbnailType.HeadShot
local thumbSize = Enum.ThumbnailSize.Size420x420
local content, isReady = Players:GetUserThumbnailAsync(userId, thumbType, thumbSize)

local imageLabel = script.Parent
imageLabel.Image = content
imageLabel.Size = UDim2.new(0, 229, 0, 202)

How do I get the full avatar?

1 Like

All you have to do is change the ThumbnailType to AvatarThumbnail :slight_smile:

You can find all the types here:

local thumbType = Enum.ThumbnailType.AvatarThumbnail

2 Likes

Ah, that was very easy… Thank you.

1 Like