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

How to make an ImageLabel show the local player's avatar?

Asked by 10 years ago

I have a brick that has a SurfaceGui with an ImageLabel child..

How can I make the ImageLabel show the local player's avatar?

0
I already answered it, why you asking again? Tesouro 407 — 10y
0
Honestly, I haven't the slightest idea what to do.. DrCylonide 158 — 10y
1
First, learn about surface guis. Also, this thread will be helpful: http://www.roblox.com/Forum/ShowPost.aspx?PostID=111095643 Lacryma 548 — 10y
0
Ah, thank you. Also.. why was my question thumbs down? That seems inconsiderate. DrCylonide 158 — 10y
0
You shouldn't ask it twice. Tesouro 407 — 10y

1 answer

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

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

0
That worked, but how would I make the ImageLabel show the local player's avatar? DrCylonide 158 — 10y
Ad

Answer this question