CharacterAppearance (Property): Difference between revisions

From Legacy Roblox Wiki
Jump to navigationJump to search
>GoldenUrg
initial from memory
m Text replacement - "<SyntaxHighlight code="lua">" to "<syntaxhighlight lang="lua">"
 
(15 intermediate revisions by 3 users not shown)
Line 1: Line 1:
{{CatUp|Properties}}
<onlyinclude>{{Property
|name = CharacterAppearance
|property = [[Content]] ''characterAppearance''
|description = URI of the asset containing character's appearance, clothing, and gear.
|object = Player
}}</onlyinclude>


{|
{{clear floats}}
|<onlyinclude>{{Property|
name = CharacterAppearance
|property = [[String|Content]] ''CharacterAppearence''
|description = URL of asset containing character's appearence, clothing, and gear
|object = [[RBX.lua.Player (Object)|Player]]
|}}</onlyinclude>
|}


== Description ==
== Description ==
This property is automatically set by Roblox when player joins.
This property is automatically set by Roblox when player joins.


 
{{Example|<syntaxhighlight lang="lua">
 
function onPlayerAdded(player)
Example:
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
<pre>
function onPlayerAdded( player )
player.CharacterAppearance = "http://www.roblox.com/Asset/CharacterFetch.ashx?userId=261"
end
end
Game.Players.PlayerAdded:connect( onPlayerAdded )
game.Players.PlayerAdded:connect(onPlayerAdded)
</pre>
</syntaxhighlight>}}
 
== See Also ==
[[PlayerAdded (Event)|PlayerAdded]]


[[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)