Getting player avatars for an image

so i attempted to get the players avatar image but it didnt work

script:

local player = game.Players.LocalPlayer
label = script.Parent

label.Image = player:GetUserThumbnailAsync()

error:

GetUserThumbnailAsync is not a valid member of Player "Players.woloexe"  -  Client  -  LocalScript:4
  Stack Begin  -  Studio
  Script 'Players.woloexe.PlayerGui.GameUI.ImageLabel.LocalScript', Line 4  -  Studio  -  LocalScript:4
  Stack End  -  Studio
1 Like

im likely using the GetUserThumbnailAsync() wrong but i want help with knowing how to use it

GetUserThumbnailAsync is a member of Players not Player

std::variant<std::string, NULL> RBX::Players::GetUserThumbnailAsync(RBX::Instance<RBX::Players> this, int64_t UserId, RBX::Enum<RBX::ThumbnailType> ThumbnailType, RBX::Enum<ThumbnailSize> ThumbnailSize)

ohh okay that makes a lot more sense now