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

Would this be possible?

Could you use the CharacterApperance property as a decal. Or ImageLabel. So I could display their image in the bottom left corner?

1 answer

Somewhat, you can display their character by setting the image of the ImageLabel to: http://www.roblox.com/Thumbs/Avatar.ashx?username= Or if you prefer by their userId, you can just replace the username key to userId and use the person's userId.

local userId = player.CharacterApperance:match("[userId]+%=%d+");
imageLabel.Image = "http://www.roblox.com/Thumbs/Avatar.ashx?" .. userId;

The userId variable I defined returns the part of the CharacterAppearence property where it says userId=#

2 comments

0

You should probably explain the pattern you're using in match

0

Yeah, just couldn't think of a good way to word it. Anyway the [userId]+ returns the string userId and the %= (there is no need for the percent there) gets the equal. So you're left with userId= and the %d+ returns all the digits after the equal.

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