i cant set teams on brick hill clients with nodehill

JakeTheBluePythonKai981
Joined 09/04/2020
Posts 30
04:44 PM 30/04/2023
when i give the command to set the team the teams are no players in it

my code:

Game.assignRandomTeam = false
const juggernaut = new Team("[Juggernaut]",'#ff0000')
const survivors = new Team("[Survivors]",'#ffffff')
const dead = new Team("[Dead]",'#ffffff')
Game.newTeam(juggernaut)
Game.newTeam(survivors)
Game.newTeam(dead)

Game.on('initialSpawn', (plr) => {
plr.setTeam(dead)
})