Any thoughts on how to create balanced teams?

I store wins for each team on every gamemode type. Here’s an example:

ModeWins = {
		Survival = {
			SurvivorWins = 1,
			KillerWins = 1
		},
		Juggernaut = {
			SurvivorWins  = 1,
			KillerWins = 1
		},
		Rescue = {
			SurvivorWins = 1,
			KillerWins = 1
		},
}

My current solution is to loop through all players, divide their survivor wins by killer wins and then get the average of all those dividends. After that, I would have half of the advanced players and half of the newer players on one team and the rest be on the other team. This way both teams would get a mix of ‘good’ and ‘bad’ players.

Is there anything I might be missing?

maybe make a datastore for wins / loss precentage and div it up like that? I think your current system is good.