BodyColor (Property): Difference between revisions
From Legacy Roblox Wiki
Jump to navigationJump to search
>Daveleetow |
>Outofspace Removed spam / re-added example. |
||
Line 6: | Line 6: | ||
|}} | |}} | ||
==Example== | |||
<pre> | |||
colors = game.Players.LocalPlayer.Character.BodyColors | |||
if (colors ~= nil) then | |||
colors.HeadColor = BrickColor.new(1) | |||
colors.LeftArmColor = BrickColor.new(1) | |||
colors.RightArmColor = BrickColor.new(1) | |||
end | |||
</pre> |
Revision as of 19:32, 10 May 2008
[[<bodypart>Color (Property)|<bodypart>Color]] | |
Property | BrickColor Body part color |
Description | Set the color of the body part, such as HeadColor. |
Member of | [[RBX.lua.BodyColors (Object)|BodyColors]] |
Example
colors = game.Players.LocalPlayer.Character.BodyColors if (colors ~= nil) then colors.HeadColor = BrickColor.new(1) colors.LeftArmColor = BrickColor.new(1) colors.RightArmColor = BrickColor.new(1) end