I am working on a story game and i need a random players headshot and put it on an ImageLabel.
--// Variables
local players = game.Players:GetChildren()
local randomplayerid = players[math.random(1,#players)].PlayerId
local thumbSize = Enum.ThumbnailSize.Size420x420
local thumbType = Enum.ThumbnailType.HeadShot
local imageLabel = script.Parent
--// making the headshot of the player
local content, isReady = players:GetUserThumbnailAsync(randomplayerid, thumbType, thumbSize)
--// adding the headshot image on the ImageLabel
imageLabel.Image = content
