Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
-1

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

Asked by 10 years ago

I have a brick that I would like to have a surfaceGUI on it to show a player's avatar, but I am new to GUI's and am not sure how to do that..

Help?

3 answers

Log in to vote
-1
Answered by
Tesouro 407 Moderation Voter
10 years ago

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)

Ad
Log in to vote
-1
Answered by 10 years ago
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.

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? DrCylonide 158 — 10y
0
Simply change "script.Parent.ImageLabel" to any path leading to the GUI. Articulating 1335 — 10y
0
delete ImageLabel in the beginning HappyTimIsHim 652 — 5y
Log in to vote
-5
Answered by 10 years ago

I'm not sure.

You can use userID.

0
Don't answer if you don't know the answer. DrCylonide 158 — 10y
0
umg, Fine. Bossy. Roboy5857 20 — 10y
0
that works too tantec 305 — 5y

Answer this question