BodyColor (Property): Difference between revisions

From Legacy Roblox Wiki
Jump to navigationJump to search
>Mr Doom Bringer
I'm going to start adding in examples to these functions.
>Mr Doom Bringer
I'm going to start adding in examples to these functions.
(No difference)

Revision as of 13:57, 20 August 2007

link=<bodypart>Color (Property)[[<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