Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

Preloading profile icon problem?

So basically I knew that you can use PreloadAsset to preload an asset.

But how do you preload a profile icon gotten by GetUserThumbnailAsync() ?

Thanks in advance.

1 answer

i am not sure if i understand what you want i hope this is it

local Players = game:GetService("Players")
local player = Players.LocalPlayer

local userId = player.UserId
local Head = Enum.ThumbnailType.HeadShot
local Size = Enum.ThumbnailSize.Size420x420
local Image, isReady = Players:GetUserThumbnailAsync(userId, Head, Size)

local imageLabel = script.Parent
imageLabel.Image = Image
imageLabel.Size = UDim2.new(0, 420, 0, 420)

This discussion is preserved as it was. New answers, comments, and votes are closed.