how do i use teaming?

[im] kahoolawe
Joined 26/01/2018
Posts 9,004
02:49 AM 11/08/2019
i'm trying to get it so that specific people will get certain teams.


krieg
Joined 19/06/2019
Posts 176
02:49 AM 11/08/2019
krieg


[Simp] Woi
Joined 16/02/2019
Posts 20,097
02:49 AM 11/08/2019
Woi


[im] kahoolawe
Joined 26/01/2018
Posts 9,004
02:49 AM 11/08/2019
Quote from krieg , 02:49 AM 11/08/2019
krieg
please off yourself


[DN] Compass
Joined 20/03/2019
Posts 90,099
02:51 AM 11/08/2019
I'm a gamer not a builder, sorry.


[im] appliance
Joined 16/02/2019
Posts 23,156
02:51 AM 11/08/2019
ok


[PLUS] cheats
Joined 28/07/2019
Posts 692
04:06 PM 11/08/2019
const redTeam = new Team("Red team","#FF0000")
const blueTeam = new Team("Blue team", "#0000FF")

Game.on('playerJoin', player => {
if (player.userid === 1337) {
player.team = redTeam
} else {
player.team = blueTeam
}
})

this will make the player with the userid of 1337 join the red team and the others would join the blue team

1