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

How would I get a player's picture for a GUI?

Hi, I'm making a custom health GUI and I would like to put a player's profile picture next to it, thing is, I don't know how to get a player's picture.

Thanks

1 answer

✓ Accepted answer

To get the profile picture of a user in a local script you would just do:

local player = game.Players.LocalPlayer

game.Players.PlayerAdded:connect(function()
script.Parent.Image= "http://www.roblox.com/Thumbs/Avatar.ashx?					 		x=100&y=100&Format=Png&username="..player.Name

end)

Put the local script inside the the image on studio.

1 comment

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