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

How do you make a ImageLabel the player's profile image?

I have seen it done before in games where your player profile image is on a ImageLabel, how exactly do you do this? I researched it a bit and couldn't find any roblox wiki posts but I did find this:

----------------------------------------------------------------------------------------------------
--Insert VARIABLES Below
----------------------------------------------------------------------------------------------------
p = script.Parent.Parent.Parent.Parent.Parent
playerimage = script.Parent.PlayerProfile
----------------------------------------------------------------------------------------------------

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

I tried this in a script in a ScreenGui in the player's gui and it didn't work. Am I doing this wrong or is there a better/new way?

3 comments

1

Is PlayerProfile an ImageLabel? If so, it's Image, not Decal.

0

Yes it's an imagelabel

0

This worked, thanks

1 answer

Close.. But

playerimage.Image=('http://www.roblox.com/Thumbs/Avatar.ashx?x=100&y=100&Format=Png&username='..p.Name)

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