Help with team issues

Hello, I would like to know how I can refer to the leader of a team and the team members?

For example, I want the team leader to be able to see a specific gui button and the members cannot see this.

And what would be the best way to manage my team for this case?

1 Like

What exactly do you mean by team leader? Is it the person in the team with the highest score for example? Or is it a predefined user that your script chose?

1 Like

For example, have a red team, and a blue team, I want a red team to have 1 leader and the rest are team members and the same with blue.

I’m not sure how to do this to manage it correctly. :frowning:

Perhaps you could choose a random member from each team?
local members = redTeam:GetPlayers()
local redLeader = members[math.random(1,#members)]
The same could go with blue

I have no idea why the code didn’t format


But how can I create the team and the leader? not sure about that part :frowning:

Find Model on the top of studio. Press service. (Example)

Insert Teams (Example)
After that, you should see a folder named Teams in workspace. Right-click Teams and press insert object, then insert a team instance. From there, you can customize those properties.

He gave you a good code example. Use that and customize it.

1 Like

Thanks you brother! :smiley: :smiley:

1 Like