AutoColorCharacters (Property): Difference between revisions

From Legacy Roblox Wiki
Jump to navigationJump to search
>Camoy
No edit summary
Added the reason why this does nothing
 
(13 intermediate revisions by 4 users not shown)
Line 1: Line 1:
{{Property
<onlyinclude>{{Property
|name = AutoColorCharacters
|name = AutoColorCharacters
|property = [[Bool]] ''AutoColorCharacters''
|type = bool
|description = A value that sets whether players on the team wear the team colors automatically.
|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 = Team
|object = Team
}}
}}</onlyinclude>


{{clear floats}}
{{clear floats}}


{{Example|
{{Example|
This causes the players' character's colors to stay the same
This should leave the character colors unchanged:
<pre>
<syntaxhighlight lang="lua" line>
game:GetService( "Teams" ).Team.AutoColorCharacters = false
local Teams = game:GetService("Teams")
</pre>
Teams.Team.AutoColorCharacters = false
This causes the players' character's limbs to change to ''Black'', their Heads to change to ''Bright Yellow'', and their Torsoes to change to their TeamColor.
</syntaxhighlight>
<pre>
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:
game:GetService( "Teams" ).Team.AutoColorCharacters = true
<syntaxhighlight lang="lua" line>
</pre>
local Teams = game:GetService("Teams")
Teams.Team.AutoColorCharacters = true
</syntaxhighlight>
}}
}}


[[Category:Properties]]
[[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