Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

How to have different roles for each team?

I have a simple game where there are two teams, and for each team, I want to have two roles: the healer and the protector (and a common weapon between both). I've tried doing nested teams but it didn't as the team must be a direct child of the team's service folder.

The thing I'm talking about looks very similar to 2 players tycoon, where they both belong to the same team but each one has different roles

I'm new to Roblox Studio and I'm not sure how to do it and I would really appreciate any help. Thanks in advance

7 comments

0

Do you mean, for example, when you enter a tycoon game and you see different teams?

0

@RuKreep Not exactly, you know when you enter a tycoon game and see heros team, and inside the heros team there is a spiderman, superman, batman, etc.. how did the add those roles to the team?

0

Nope. Could you link such game so I can see what you're talking about?

0

maybe this https://www.roblox.com/games/5063371659/2-Player-Superhero-Tycoon there are many teams, and in each team there are multiple roles and each role is unique than the other but still belong to the same team

0

you mean u want to have two teams, and in each teams have more teams?

0

Yes, and for now the workaround I did was adding an attribute to the team member and that role matches a folder name inside the specific team

1 answer

the thing I wanted was having nested teams, but after very long time I finally realized that this is impossible and instead I created "teams" folder inside replicatedStorage and then using folders instead of teams and setting them through roles player:SetRole('Team', game.ReplicatedStorage.Hero.Superman.Name)

well, I'm still struggling at displaying it to the leaderboard but I'm not that good in Guis anyway

This discussion is preserved as it was. New answers, comments, and votes are closed.