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

How do I get a players portrait onto a ImageLabel?

Asked by
Prioxis 673 Moderation Voter
8 years ago

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

0
I've done this before, but I don't recall. It's been over a year since I've used it. RedCombee 585 — 8y

1 answer

Log in to vote
0
Answered by 8 years ago

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

Ad

Answer this question