CharacterAppearance (Property): Difference between revisions
From Legacy Roblox Wiki
Jump to navigationJump to search
m Text replacement - "</code>" to "</SyntaxHighlight>" |
m Text replacement - "<SyntaxHighlight code="lua">" to "<syntaxhighlight lang="lua">" |
||
(One intermediate revision by the same user not shown) | |||
Line 11: | Line 11: | ||
This property is automatically set by Roblox when player joins. | This property is automatically set by Roblox when player joins. | ||
{{Example|< | {{Example|<syntaxhighlight lang="lua"> | ||
function onPlayerAdded(player) | 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 | 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 | end | ||
game.Players.PlayerAdded:connect(onPlayerAdded) | game.Players.PlayerAdded:connect(onPlayerAdded) | ||
</ | </syntaxhighlight>}} | ||
[[Category:Properties]] | [[Category:Properties]] |
Latest revision as of 06:14, 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)