Hello! So I made a trading system that works fine, but, I want it to have peoples' profile pictures on the trade icon. How would I do that? Thanks in advance =)
What to do?
Hello, so basically you'd use something called Players:GetUserThumbnailAysync
this function stores data for players profile pictures.
What you need
You will need an:
image label
A local script
Image button
ScreenGui
Here's the script:
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 imageLabel.Size = UDim2.new(0, 420, 0, 420)
If you need any more assistance on how to use this, watch this
local Player = game.Players.LocalPlayer script.Parent.Image = game.Players:GetUserThumbnailAsync(Player.UserId, Enum.ThumbnailType.HeadShot, Enum.ThumbnailSize.Size420x420)
Locked by JesseSong, DarkDanny04, and Nguyenlegiahung
This question has been locked to preserve its current state and prevent spam and unwanted comments and answers.
Why was this question closed?