Teams not being synced when a new player joins the room

Options

I'm very new to networking in general, and I've been stuck on this issue for 2 hours now.

I have a very basic script in which players can choose a team when they press a UI button, which works. However, when a new client joins the room the teams seem empty, and only become populated once the original client joins a new team.

Is there some kind of method for syncing teams that I forgot to add or is this some kind of bug?

Answers

  • Ok so I did solve it but the solution is so stupid that I will probably be embarrassed if I find this post in a while. I literally just added some code that switched the player to the other team and then back when a new player joined.