AutoColorCharacters (Property): Difference between revisions

From Legacy Roblox Wiki
Jump to navigationJump to search
>Blocco
No edit summary
Added the reason why this does nothing
 
(28 intermediate revisions by 6 users not shown)
Line 1: Line 1:
{{Property
<onlyinclude>{{Property
|name=AutoColorCharacters
|name = AutoColorCharacters
|property=[[Boolean]]
|type = bool
|description=A value that sets whether players on the team wear the team colors.
|description = A value that sets whether players on the team wear the team colors automatically. This property has no effect because the Animate script (which colors the characters) does not check it.
|object=[[RBX.lua.Team (Object)|Team]]}}
|object = Team
}}</onlyinclude>
 
{{clear floats}}
 
{{Example|
This should leave the character colors unchanged:
<syntaxhighlight lang="lua" line>
local Teams = game:GetService("Teams")
Teams.Team.AutoColorCharacters = false
</syntaxhighlight>
This should cause the character limbs to change to ''Black'', their Heads to change to ''Bright yellow'', and their Torsos to change to their TeamColor:
<syntaxhighlight lang="lua" line>
local Teams = game:GetService("Teams")
Teams.Team.AutoColorCharacters = true
</syntaxhighlight>
}}
 
[[Category:Properties]]

Latest revision as of 21:41, 9 June 2024

AutoColorCharacters
Type bool
Description A value that sets whether players on the team wear the team colors automatically. This property has no effect because the Animate script (which colors the characters) does not check it.
Member of Team


Example

This should leave the character colors unchanged:

local Teams = game:GetService("Teams")
Teams.Team.AutoColorCharacters = false

This should cause the character limbs to change to Black, their Heads to change to Bright yellow, and their Torsos to change to their TeamColor:

local Teams = game:GetService("Teams")
Teams.Team.AutoColorCharacters = true