local Players = game:GetService("Players") local GetPlayers = game.Players:GetPlayers() local localPlayer = GetPlayers[math.random(1, #GetPlayers)] local UserId = localPlayer.UserId local ThumbnailSize = Enum.ThumbnailSize.Size420x420 local ThumbnailType = Enum.ThumbnailType.HeadShot local content = Players:GetUserThumbnailAsync(UserId, ThumbnailSize, ThumbnailType) local Image = script.Parent Image.Image = content
GetUserThumbnailAsync() takes ThumbnailType as its second argument and ThumbnailSize as its third. You have them switched.