So, I want to get an image label which is a head shot of the player, I have done this in a local script before but when I tried to move over the code and made some changes would make sense, it doesn't work and still shows a blank picture. I have done everything with creating the imageLabel etc, but there is one line of code which doesn't seem to be working the way I expected it to.
Code:
--there is some code before this, but it is unneeded.
local UserId = player.UserId
local thumbType = Enum.ThumbnailType.HeadShot
local thumbSize = Enum.ThumbnailSize.Size100x100
game.Players.PlayerAdded:Connect(function(players)
local content, isReady = players:GetUserThumbnailAsync(UserId, thumbType, thumbSize) -- this is where the problem is, this is what I can't figure out is the players should come from.
newImage.Image = content
end)
end
remoteEventLocalPhoto.OnServerEvent:Connect(playerPhoto)

1 comment
cheers, glad you got your answe