Thumbnail Problem

My Gui Thumbnail is Acting Up!
its not supposed to be this big and yes i have tried changing thumbnail size
what could be going wrong!

local ImageLabel = script.Parent
local Players =game:GetService(“Players”)
local Player = Players.LocalPlayer
local UserId = Player.UserId
local HeadShot = Enum.ThumbnailType.HeadShot
local Bust = Enum.ThumbnailType.AvatarBust
local AvatarThumb = Enum.ThumbnailType.AvatarThumbnail
local Size = Enum.ThumbnailSize.Size100x100
local Content, isReady = Players:GetUserThumbnailAsync(UserId,HeadShot,Size)
ImageLabel.Image = Content
ImageLabel.Size = UDim2.new(0, 420, 0, 420)

This is a Local Script inside the ImageLabel

image

Here you put the size in pixels, I think that this may be the problem.
You need to write the size that is scaled from the parent

For example:

ImageLabel.Size = UDim2.new(0.5,0, 0.8, 0)

The size of the image label will be half the size of the parent in X and 0.8 in Y

Thanks! Really Helped!
image

1 Like