When I have the player join the game, I have them click a button that lets them go to Red Team if they click it. When they click it from a local script, it sends the players team they selected, and I get an error in the console when I tried using a print function when I was diagnosing the problem.
Player.TeamColor is saved with BrickColor most of the time. Rewrite the script a bit to adjust to replace Player.TeamColor = playerToTeam to something along the lines of Player.TeamColor = BrickColor.new("What ever your color is") I’m assuming that you’re NOT changing to a .RGB value, based off the error.
I send over the team color from the local script with the remote event, because it will be handling all 4 other teams when someone presses it. I don’t want to have it with 5 different scripts. I was able to get the team name with the print function, so the remote event is fine.
What value are you even sending. There’s a lack of too much context. For instance, there isn’t even a parent assigned to “redTeamButton”, so I can’t really figure out what the parent even is.