AutoColorCharacters (Property): Difference between revisions
From Legacy Roblox Wiki
Jump to navigationJump to search
m Text replacement - "</SyntaxHighlight>" to "</syntaxhighlight>" Tags: mobile web edit mobile edit |
Added the reason why this does nothing |
||
Line 2: | Line 2: | ||
|name = AutoColorCharacters | |name = AutoColorCharacters | ||
|type = bool | |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> | }}</onlyinclude> | ||
Line 9: | Line 9: | ||
{{Example| | {{Example| | ||
This | This should leave the character colors unchanged: | ||
<syntaxhighlight lang="lua"> | <syntaxhighlight lang="lua" line> | ||
game:GetService( | local Teams = game:GetService("Teams") | ||
Teams.Team.AutoColorCharacters = false | |||
</syntaxhighlight> | </syntaxhighlight> | ||
This | 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"> | <syntaxhighlight lang="lua" line> | ||
game:GetService( | local Teams = game:GetService("Teams") | ||
Teams.Team.AutoColorCharacters = true | |||
</syntaxhighlight> | </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