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

How does CharacterAppearance work?

Asked by
DynamX1 -3
5 years ago

I want to know things like would you use it in local scripts or normal scripts or what are the boundaries of it and maybe give me an example script I can try out. Or, you could just send me to a site that explains it well.

1 answer

Log in to vote
0
Answered by 5 years ago
Edited 5 years ago

CharacterAppearance is deprecated so I do not suggest using it.

However, as an alternative you can use LoadCharacterAppearance.

game.Players.PlayerAdded:connect(function(player)
    local assetId = 0 -- assetId
    local assets = game:GetService("InsertService"):LoadAsset(assetId) -- asset storage
    for i,v in pairs(assets:GetChildren()) do
        player:LoadCharacterAppearance(v) -- load all the assets stored in asset storage onto the character
    end
end)

And this is the wiki for it.

0
Do not teach deprecated code. connect is deprecated, it is Connect. Either teach good and non-deprecated code or don't teach at all. User#19524 175 — 5y
0
Thank you for this very helpful DynamX1 -3 — 5y
Ad

Answer this question