Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local Players = game:GetService("Players")
- local player = Players.LocalPlayer
- -- Fetch the thumbnail
- local userId = player.UserId
- local thumbType = Enum.ThumbnailType.HeadShot
- local thumbSize = Enum.ThumbnailSize.Size420x420
- local content, isReady = Players:GetUserThumbnailAsync(userId, thumbType, thumbSize)
- -- Set the ImageLabel's content to the user thumbnail
- local imageLabel = script.Parent
- imageLabel.Image = content
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement