My variable is conflicting when changed

This is a simplified version of how you would handle this. The Rep-Notify here basically makes sure all players get the team variable automatically, then are told to update the colors whenever there is a team change, you can then call this whenever a team change occurs. This decouples your color setting logic from your team logic (mostly) and allows you to only ever focus on messing with the teams.


That said, this is a simple, extendable way to pull that off, but be warned, this is not quite best practices. We still don’t check to make sure it’s valid, we don’t make sure teams can be changed, we have no change team redundancy checking, and I didn’t make the widgets. I tried to keep it as close to your setup as possible so it wouldn’t be hard for you to integrate it. Let me know if you have any questions!