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

How Would I Correctly Load A Character's Appearance Onto An Image Label?

Asked by 8 years ago

I made an image label that, with a local script, would replace the image label with the character appearance. I tried to make one, however, the code didn't break it just infinite yield on character appearance. Here's what I had in the code.

local Player = game:GetService('Players').LocalPlayer
local PlayerInt = script.Parent

PlayerInt:WaitForChild("Avatar").Image = "http://www.roblox.com/Thumbs/Avatar.ashx?x=100&y=100&username=" .. Player.Name

So, is there any other way to load the avatar appearance or not? Thanks.

2 answers

Log in to vote
0
Answered by 8 years ago

There are 2 ways to get the whole body image of a person. You can use either the one you have, "http://www.roblox.com/Thumbs/Avatar.ashx?x=100&y=100&username=" or you can use "http://www.roblox.com/Thumbs/Avatar.ashx?x=100&y=100&userId=" and input the user's ID instead. I use this in order to get any thumbnails I may need.

If I have helped answer your question, please mark my answer as correct, otherwise comment on how I could have done better to help you! :)

Ad
Log in to vote
0
Answered by 8 years ago

I think using http://www.roblox.com/Thumbs/Avatar.ashx?x=100&y=100&Format=Png&username= is the only way to do it, unless i'm mistaken.

Answer this question