How to get "global" GetUserThumbnailAsync?

Hello, I am trying to get User Thumbnail just with userId, when a player, you want to have on gui, isn’t in your server.

Is this possible?
This would be really nice to have.

If you have additional time, can you send me whole line please? (I mean only a line where you use GetUserThumbnailAsync).

Thank you!

From the developer hub:

local userId = player.UserId
local thumbType = Enum.ThumbnailType.HeadShot
local thumbSize = Enum.ThumbnailSize.Size420x420
local content, isReady = Players:GetUserThumbnailAsync(userId, thumbType, thumbSize)
3 Likes

GetUserThumbnailAsync takes the UserId, not the Player instance. You have answered your own question.

2 Likes

Oh I thought that “player” variable only searches for players that are in your server. Will try that. Thank you!