CharacterAppearance (Property): Difference between revisions

From Legacy Roblox Wiki
Jump to navigationJump to search
m Text replacement - "<code lua>" to "<SyntaxHighlight code="lua">"
m Text replacement - "</code>" to "</SyntaxHighlight>"
Line 16: Line 16:
end
end
game.Players.PlayerAdded:connect(onPlayerAdded)
game.Players.PlayerAdded:connect(onPlayerAdded)
</code>}}
</SyntaxHighlight>}}


[[Category:Properties]]
[[Category:Properties]]

Revision as of 04:00, 27 April 2023

CharacterAppearance
Property Content characterAppearance
Description URI of the asset containing character's appearance, clothing, and gear.
Member of Player


Description

This property is automatically set by Roblox when player joins.

Example
function onPlayerAdded(player)
player.CharacterAppearance = "http://www.roblox.com/Asset/CharacterFetch.ashx?userId=261" --the last numbers of the URI is the ID of the desired character look
end
game.Players.PlayerAdded:connect(onPlayerAdded)