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

How do you load a character's image?

section.Picture.Image = "http://www.roblox.com/Thumbs/Avatar.ashx?x=200&y=200&Format=Png&username="..usersName

How would I make the image load other than appearing with a white default ROBLOX icon?

1 answer

local Player = game:service('Players').LocalPlayer

local characterImageFormat='http://www.roblox.com/Thumbs/Avatar.ashxx=352&y=352&format=png&userid=%d';

-- repeat wait() until plr --// No point

while wait(1) do script.Parent.Image = characterImageFormat:format(Player.userId); end

I'm pretty sure this should work. Also it might just be that the image hasn't loaded fully YET so maybe next time you activate it it will. Because as you see even in hit games sometimes the first time the character image doesn't load.

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