Get player thumbnail from an offline player

Hey,
I’m trying to get a offline player’s headshot thumbnail.
Since this player is offline, I’m assuming that I have to use an API/URL. (instead of using game.Players:GetUserThumbnailAsync since this only works for in-game players)
I’ve been reading lots of posts but this is the only result i get:

ss

I’m trying to get a headshot thumbnail including the avatar animation that some players have:

ss2

Does anyone know how could I do this?

Regards

1 Like

I am pretty sure you can use the in game function to do so, game.Players:GetUserThumbnailAsync()

here are the docs for Players

local plrID = userID
local thumbnail = game.Players:GetUserThumbnailAsync(userID,0,3)

Here is a demo:

game.Players:GetUserThumbnailAsync(1, Enum.ThumbnailType.HeadShot, Enum.ThumbnailSize.Size352x352)

(And yes it works with offline players AND animations)
image

Oh wow, for some reason I thought that the :GetUserThumbnailAsync only worked for in-game players haha. Thank you and sorry for the inconvenience :slight_smile:

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.