Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How to have different roles for each team?

Asked by 3 years ago
Edited 3 years ago

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

0
Do you mean, for example, when you enter a tycoon game and you see different teams? Rukreep 15 — 3y
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? zeyadtota3 7 — 3y
0
Nope. Could you link such game so I can see what you're talking about? Rukreep 15 — 3y
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 zeyadtota3 7 — 3y
View all comments (3 more)
0
you mean u want to have two teams, and in each teams have more teams? daokhiethy 25 — 3y
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 zeyadtota3 7 — 3y

1 answer

Log in to vote
0
Answered by 3 years ago

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

Ad

Answer this question