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

How do I get a players portrait onto a ImageLabel?

Instead of having Example 1 I want something more like Example 2

if it's even possible I'm pretty sure I've seen somebody do it before I just don't know how

1 comment

0

I've done this before, but I don't recall. It's been over a year since I've used it.

1 answer

do this in a local script ..

local plr = game.Players.LocalPlayer
local name = plr.Name
local image = "http://www.roblox.com/Thumbs/Avatar.ashx?x=110&y=110&Format=Png&username=".. name

I also know that you wanted the portrait but sadly you cant. the reason behind this is because you cannot get the portrait, although roblox generates those with webapi problem is that it returns a JSON and you cannot set decal URL to the direct asset url

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