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

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

Asked by
Bman8765 270 Moderation Voter
9 years ago

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?

1
Is PlayerProfile an ImageLabel? If so, it's Image, not Decal. Spongocardo 1991 — 9y
0
Yes it's an imagelabel Bman8765 270 — 9y
0
This worked, thanks Bman8765 270 — 9y

Locked by Spongocardo and Perci1

This question has been locked to preserve its current state and prevent spam and unwanted comments and answers.

Why was this question closed?

1 answer

Log in to vote
0
Answered by 9 years ago

Close.. But

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