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

How to make a GUI show a player's avatar?

3 answers

The Gui would be an ImageLabel and its Image property would be set by this:

"http://www.roblox.com/Thumbs/Avatar.ashx?x=150&y=150&Format=Png&username=" .. Player.Name

(the picture of the Player)

script.Parent.ImageLabel.Image = "http://www.roblox.com/Thumbs/Avatar.ashx?x=420&y=420&username="..Game.Players.LocalPlayer.Name

This script would make "script.Parent" show the avatar of the LocalPlayer.

3 comments

0

Would the script's parent be the part, the SurfaceGUI, or the ImageLabel? Also.. I have the SurfaceGUI in the part, and the ImageLabel in the SurfaceGUI. Is my setup correct?

0

Simply change "script.Parent.ImageLabel" to any path leading to the GUI.

0

delete ImageLabel in the beginning

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