How do I create a random team chooser for Minecraft? answers helped me out a lot with my KitPVP Teams map but I have one more thing I need to do. I have to make the teams spawn in different areas. In more detail, I need command blocks to tp you to your team's spawn point when you join the team. I've tried having two command blocks set to impulse unconditional AlwaysActive that have the command:
/tp @a[team=(team name)] (xyz)
This isn't working and I can't think of anything else that would work. Changing it to repeat would make you frozen in the spawn point. Can anyone help with this?