Character's avatar thumbnail

What i need: I want to find a way to get a thumbnail of any model and then put it in the GUI.

  1. What’s the issue?: I can’t do it.

  2. What sollutions have you tried so far?: I tried to get something from ThumbnailCamera but idk.

so is there any function that can make that camera render only a certain model and put it in the ImageFrame. help?

thanks, if you can help

So, viewportframe?

You can put objects inside it, point the camera at it, copy the workspace camera inside it, set it as ‘currentCamera’ property and after that you’ll see how it works.

1 Like

yeah thanks i found it rn idk why i was struggling to find it before, now i will try to aprove ur message give me few minutes

1 Like

The simplest way to get a player’s avatar’s thumbnail is to use the “GetUserThumbnailAsync()” instance method which belongs to the player’s service.

Here’s a sample script which when parented to an ImageLabel/ImageButton instance sets the image of that instance to a thumbnail of the local player’s avatar.

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

local imageLabel = script.Parent

local success, result = pcall(function()
	return players:GetUserThumbnailAsync(player.UserId, Enum.ThumbnailType.AvatarThumbnail, Enum.ThumbnailSize.Size420x420)
end)

if success then
	if result then
		imageLabel.Image = result
	end
else
	warn(result)
end

image

https://developer.roblox.com/en-us/api-reference/function/Players/GetUserThumbnailAsync

2 Likes