How can I set all players team fifty fifty at once?
Asked by
6 years ago Edited 6 years ago
This question has been solved by the original poster.
Hi. I am trying to make a code. When It's executed, It makes half of the players in red team, other half of the players in blue team. How can I do it?
Here is an example.
(It's example only. It isn't working)
02 | local firstHalf = someCode |
03 | local secondHalf = someOtherCode |
04 | for i, v in pairs (firstHalf) do |
05 | v.TeamColor = BrickColor.new( 'Bright red' ) |
08 | for i, v in pairs (secondHalf) do |
09 | v.TeamColor = BrickColor.new( 'Bright blue' ) |
As I said, It's just an example. It isn't working.
How can I do it?