I have a brick that has a SurfaceGui with an ImageLabel child..
How can I make the ImageLabel show the local player's avatar?
I have a brick that has a SurfaceGui with an ImageLabel child..
How can I make the ImageLabel show the local player's avatar?
Here: http://wiki.roblox.com/index.php?title=Content#rbxhttp Just put the name of the player there.
[EDIT]
To make it assign the local player, put this in a local script:
player = game.Players.LocalPlayer
ImageLabel.Image = "http://www.roblox.com/Thumbs/Avatar.ashx?x=420&y=420&username=" .. player.Name
http://wiki.roblox.com/index.php?title=String#Combining_strings
That worked, but how would I make the ImageLabel show the local player's avatar?
This discussion is preserved as it was. New answers, comments, and votes are closed.
5 comments
I already answered it, why you asking again?
Honestly, I haven't the slightest idea what to do..
First, learn about surface guis. Also, this thread will be helpful: http://www.roblox.com/Forum/ShowPost.aspx?PostID=111095643
Ah, thank you. Also.. why was my question thumbs down? That seems inconsiderate.
You shouldn't ask it twice.