Is this a pcall or something else?

local function getPlayerImage(player_id)
	local content, isReady = game:GetService("Players"):GetUserThumbnailAsync(player_id,Enum.ThumbnailType.HeadShot,Enum.ThumbnailSize.Size420x420) 
	return content
end

The part I don’t understand is how they are using it, (local content, isready = …). If they just want to return content then why do they need “Isready”? What do each of those variables represent?

https://create.roblox.com/docs/reference/engine/classes/Players#GetUserThumbnailAsync

pcalls are called using the pcall global; this is just a function that returns the user’s avatar image

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