How to find a certain players thumbnail?
So I need for an image to show a certain players thumbnail. The players name that I need to show is the variable SeekerName.Value. Can anybody help me figure out how to tell the script to locate the player named SeekerName.Value and then get their thumbnail? Thanks!
01 | local Players = game:GetService( "Players" ) |
03 | local player = Players [ workspace.TimeFI.seeker.SeekerName.Value ] |
06 | local userId = player.UserId |
07 | local thumbType = Enum.ThumbnailType.HeadShot |
08 | local thumbSize = Enum.ThumbnailSize.Size 420 x 420 |
09 | local content, isReady = Players:GetUserThumbnailAsync(userId, thumbType, thumbSize) |
12 | local imageLabel = script.Parent |
13 | imageLabel.Image = content |
14 | imageLabel.Size = UDim 2. new( 0 , 420 , 0 , 420 ) |