Advertisement
choco99

Get User Thumbnail Async roblox

Aug 17th, 2022
1,382
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.43 KB | None | 0 0
  1. local Players = game:GetService("Players")
  2.  
  3. local player = Players.LocalPlayer
  4.  
  5. -- Fetch the thumbnail
  6. local userId = player.UserId
  7. local thumbType = Enum.ThumbnailType.HeadShot
  8. local thumbSize = Enum.ThumbnailSize.Size420x420
  9. local content, isReady = Players:GetUserThumbnailAsync(userId, thumbType, thumbSize)
  10.  
  11. -- Set the ImageLabel's content to the user thumbnail
  12. local imageLabel = script.Parent
  13. imageLabel.Image = content
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement