BodyColor (Property): Difference between revisions

From Legacy Roblox Wiki
Jump to navigationJump to search
>Mindraker
m BodyColor moved to BodyColor (Property)
>Camoy
reconstruct
 
(6 intermediate revisions by 3 users not shown)
Line 1: Line 1:
{{CatUp|Properties}}
{{CatUp|Properties}}


{{Property|
<onlyinclude>{{Property
name = <bodypart>Color
|name = BodyColor
|property = [[BrickColor]] ''Body part color''
|property = [[BrickColor]] ''body part color''
|description = Set the color of the body part, such as HeadColor.
|description = Set the color of the body part.  There is ''HeadColor'', ''LeftArmColor'', ''LeftLegColor'', ''RightArmColor'', ''RightLegColor'', and ''TorsoColor''.
|object = [[BodyColors]]
|object = BodyColors
|}}
}}</onlyinclude>


==Example==
{{clear floats}}
<pre>  
 
colors = game.Players.LocalPlayer.Character.BodyColors
{{Example|Within a LocalScript.<pre>  
if (colors ~= nil) then
local colors = game.Players.LocalPlayer.Character.BodyColors
if colors then
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]]

Latest 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