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
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
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.
This discussion is preserved as it was. New answers, comments, and votes are closed.
1 comment
https://devforum.roblox.com/t/new-image-endpoints-that-can-be-used-in-game/28182