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

Would this be possible?

Asked by 9 years ago

Please make your question title relevant to your question content. It should be a one-sentence summary in question form.

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

1 answer

Log in to vote
0
Answered by
jakedies 315 Trusted Moderation Voter Administrator Community Moderator
9 years ago

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=#

0
You should probably explain the pattern you're using in `match` BlueTaslem 18071 — 9y
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. jakedies 315 — 9y
Ad

Answer this question