BodyColor (Property): Difference between revisions
From Legacy Roblox Wiki
Jump to navigationJump to search
>Blocco No edit summary |
>Camoy reconstruct |
||
Line 1: | Line 1: | ||
{{CatUp|Properties}} | {{CatUp|Properties}} | ||
<onlyinclude>{{Property | |||
|name = BodyColor | |||
name = BodyColor | |property = [[BrickColor]] ''body part color'' | ||
|property = [[BrickColor]] '' | |description = Set the color of the body part. There is ''HeadColor'', ''LeftArmColor'', ''LeftLegColor'', ''RightArmColor'', ''RightLegColor'', and ''TorsoColor''. | ||
|description = Set the color of the body part, | |object = BodyColors | ||
|object = | }}</onlyinclude> | ||
{{clear floats}} | |||
{{Example|Within a LocalScript.<pre> | |||
<pre> | local colors = game.Players.LocalPlayer.Character.BodyColors | ||
colors = game.Players.LocalPlayer.Character.BodyColors | if colors then | ||
if | |||
colors.HeadColor = BrickColor.new(1) | colors.HeadColor = BrickColor.new(1) | ||
colors.LeftArmColor = BrickColor.new(1) | colors.LeftArmColor = BrickColor.new(1) | ||
colors.RightArmColor = BrickColor.new(1) | colors.RightArmColor = BrickColor.new(1) | ||
end | end | ||
</pre> | </pre>}} | ||
[[Category:Properties]] | [[Category:Properties]] |
Revision as of 17:29, 27 December 2010
BodyColor | |
Property | BrickColor body part color |
Description | Set the color of the body part. There is HeadColor, LeftArmColor, LeftLegColor, RightArmColor, RightLegColor, and TorsoColor. |
Member of | BodyColors |
Example
Within a LocalScript.local colors = game.Players.LocalPlayer.Character.BodyColors if colors then colors.HeadColor = BrickColor.new(1) colors.LeftArmColor = BrickColor.new(1) colors.RightArmColor = BrickColor.new(1) end