I need to make it so when a player joins they get a message telling them they need to pick a team(if they dont they get turned into a ghost) their two choices are “Red” and “Blue” and they have to say one of those 2 colors in order to join a team.
I also need a script to make it when you do say blue or red your player changes into a different costume thing.So like if i say “Red” i change into a red player.
To make the message telling them when they join, simply add a ‘send chat message to player’ action to an existing ‘player joins’ script or a script with ‘when player joins the game’ trigger:
Then, make another script with ‘when player sends chat message’ trigger. Check if the message is ‘Red’ or ‘Blue’ and change the unit owned by the triggering player accordingly. You may also want to add a player variable to keep track of whether or not a player has already chosen their team.