Telling player what team they are onn

so i made this start/stop fucntion for my game and want players to pick their team by walking over a block only thing left is telling the player in chat or somewhere else what team they have joined i could do it the same way but than it will just spam the chat saying youve joined that team
Continue to help post