BodyColor (Property): Difference between revisions
From Goodblox Wiki
Jump to navigationJump to search
Pizzaboxer (talk | contribs) (Created page with "{{CatUp|Properties}} <onlyinclude>{{Property |name = <bodypart>Color |property = BrickColor ''Body part color'' |description = Set the color of the body part, s...") |
mNo edit summary |
||
| (2 intermediate revisions by 2 users not shown) | |||
| Line 1: | Line 1: | ||
{{CatUp|Properties}} | {{CatUp|Properties}} | ||
<onlyinclude>{{Property | <onlyinclude>{{Property | ||
|name = | |name = (bodypart)Color | ||
|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, such as HeadColor. | ||
|object = [[GBX.lua.BodyColors (Object)|BodyColors]] | |||
|object = [[BodyColors]] | |||
}}</onlyinclude> | }}</onlyinclude> | ||
==Example== | ==Example== | ||
<pre> | <pre> | ||
local colors = game.Players.LocalPlayer.Character:FindFirstChild("BodyColors") | |||
colors = game.Players.LocalPlayer.Character | |||
if (colors ~= nil) then | if (colors ~= nil) 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 23:22, 23 September 2021
| Property | |
|---|---|
| Name | (bodypart)Color |
| Property | BrickColor Body part color |
| Description: | Set the color of the body part, such as HeadColor. |
| In Object: | BodyColors |
Example
local colors = game.Players.LocalPlayer.Character:FindFirstChild("BodyColors")
if (colors ~= nil) then
colors.HeadColor = BrickColor.new(1)
colors.LeftArmColor = BrickColor.new(1)
colors.RightArmColor = BrickColor.new(1)
end