Get a front view picture of a players character in game

so this is for my boxing game im making and whenever u use the infocard tool it shows up ur stats and stuff and i ran into a problem which is showing there ingame character on the grey sqaure in the top left. i know there is a function similar to this which is GetUserThumbnailAsync but thats not what im looking for what shall i do

You would use something like this:

local thumbType = Enum.ThumbnailType.HeadShot
local thumbSize = Enum.ThumbnailSize.Size48x48
local content, isReady = game.Players:GetUserThumbnailAsync(Player.UserId,thumbType,thumbSize)
Gui.Image = content

You can change the size/quality of the icon by changing the Thumbnail size, and you can change what kind of picture you want using Enum.ThumbnailType.

If you’re looking to get the players current avatar in-game (say you add a vest or something to their character), you’d wanna use viewports. Otherwise, see the reply above mine.

o yea i already got it i used viewprot frame