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

How do I make an ImageLabel show the player's current in-game character?

Asked by 5 years ago

I managed to figure out how to set someone's avatar as the image in an ImageLabel, but how do I do the same thing, but with their current in-game character rather than their avatar? Because my game will eventually have a character customization system, and I want it to show the character that they actually play with.

Here's what I've got so far:

-- Player Stuff
local player = game.Players.LocalPlayer
local char = player.Character

local charAppearance = 'http://www.roblox.com/Thumbs/Avatar.ashx?x=352&y=352&format=png&userid=%d'

-- Gui
local frame = script.Parent

while wait(1) do
    frame.Image = charAppearance:format(player.UserId)
end

By the way, this is a local script inside of the ImageLabel I want to change.

Any help is appreciated!

0
Seems fine to me. What's the issue? User#6546 35 — 5y
0
Oh. Their in-game character. You can't do it the same way. You'll have to construct the image yourself out of prefabs. User#6546 35 — 5y

1 answer

Log in to vote
1
Answered by
DanzLua 2879 Moderation Voter Community Moderator
5 years ago
Edited 5 years ago

boatbomber has a great solution to this in this post

0
Thanks! I'll check it out. Knineteen19 307 — 5y
Ad

Answer this question