New: Nitro Boost our Discord server and receive full donation perks here on the website! Join the Scripting Helpers Discord Server to learn more! You can also Support on Patreon as always.
Ad
Still have questions? Join our Discord server and get real time help.
Log in to vote
0

How do I get a players portrait onto a ImageLabel?

Asked by
Prioxis 682 Moderation Voter
3 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 — 3y

1 answer

Log in to vote
0
Answered by 3 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