AllowTeamChangeOnTouch (Property): Difference between revisions

From Legacy Roblox Wiki
Jump to navigationJump to search
>Samacado
No edit summary
m Text replacement - "</code>" to "</SyntaxHighlight>"
Line 27: Line 27:
   spawn.TeamColor = teams[ math.random( 1, #teams ) ]
   spawn.TeamColor = teams[ math.random( 1, #teams ) ]
   spawn.Touched:connect( function( otherPart ) change_AllowTeamChangeOnTouch( otherPart, spawn ) end )
   spawn.Touched:connect( function( otherPart ) change_AllowTeamChangeOnTouch( otherPart, spawn ) end )
end</code>}}
end</SyntaxHighlight>}}

Revision as of 03:57, 27 April 2023

AllowTeamChangeOnTouch
Property Bool AllowTeamChangeOnTouch
Description When enabled, allows the player that touched the object to join the object's team.
Member of SpawnLocation
Example
{{{1}}}