I have several npcs of my friends and I, and several headshots in guis and such. How can I make it update the npcs and headshots when they change their avatar?
2 Likes
Players:GetUserThumbnailAsync()
-- Example use-case
local Success, Content = pcall(function()
return game.Players:GetUserThumbnailAsync(Player.UserId, Enum.ThumbnailType.HeadShot, Enum.ThumbnailSize.Size420x420)
end)
if Success and Content then
ImageLabel.Image = Content
end
2 Likes
I am pretty sure you can’t request updates for those like that. Each headshot is stored on Roblox’s database and is only updated so often. I recommend maybe using viewport frames, you could then apply their humanoid description on the NPC which is in that viewport frame. What @TalonMidnight said above works for getting the user’s thumbnail, however, as I said, those headshots are only updated so often, and can’t be updated upon request.
1 Like