setTeamColor
Client-side
Server-side
Shared
This page is incomplete! Help wanted!
Please finish this page using the corresponding Old Wiki article.
Go to Contribution guidelines for more information.
This function is for setting the color of a specified team. This color is shown, for example, in the team players' nametags.
Syntax
setTeamColor ( )Code Examples
server
This example creates a new team then changes its name and color.
team = createTeam ( "RedTeam", 255, 0, 0 ) -- create the teamif ( team ) then -- if the team was created (a team with that name didn't already exist) setTeamName ( team, "BlueTeam" ) -- change the name setTeamColor ( team, 0, 0, 255 ) -- change the color to suit its new nameend