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

How do you load a character's image?

Asked by 6 years ago
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

Log in to vote
0
Answered by
Scaii_0 145
6 years ago

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.

Ad

Answer this question