Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

how to display a players own avatar exclusively to them only?

How can I display someones own avatar to them ingame, like how work at a pizza place only uses the avatars of players in the server as customers, except only the user with that avatar can see their own avatar. Or, like in Retail Tycoon, where It shows an image of your avatar on your store sign, Or, lIke RoBeats, where your avatar is dancing to the music. I am sorry about the poor wording, I just don't know exactly how to word it correctly. Any and all answers or help you can provide is awesome! Thank you all.

1 answer

You can use ROBLOX's Web API page for reference, but here's one way.

local plr = game:GetService("Players").LocalPlayer
local gui = plr:WaitForChild("PlayerGui"):WaitForChild("ScreenGui").ImageLabel --or whatever
gui.Image = "https://www.roblox.com/Thumbs/Avatar.ashx?x=100&y=100&userId=" .. plr.UserId

This discussion is preserved as it was. New answers, comments, and votes are closed.