Hello programmers of ROBLOX, today I was wondering how do you make it so that when someone wants to switch his team, that person has to be in a certain group to view the Text Button to change teams?
Sorry if this sounds confusing, I can simplify it if needed.
Instead of putting the gui in StarterGui to begin with, you can put the gui into game.Players.someplayer.PlayerGui manually, and only that player can see it.
You can compare the player’s team using if-else statements on a local script
Like: if localplr.Team == game.Teams.blue then gui.Visible = true