I’ve created a Module that makes teams a bit easier to handle, instead of having to do many lines of code to put tools and things in the player’s backpack when they join that team, this module does that for you,
Here’s how the module looks:
As you can see, you can set if the team change should remove the backpack the player already has, or you could also set it so players won’t get tools from the team they’re about to join.
I’m planning to make a V2 in the future, so please give some feedback on how this could be improved in the future, have fun!
This module lacks functionality & is pretty poorly written.
:ClearAllChildren() exists, you don’t have to do a :GetChildren() loop to clear every child.
Could have at least separated the remove & add tools functionality. If you’re gonna add more to this module then doing the same thing you’re currently doing is gonna make it messy very quickly.
Why do Teams[Team] when you can literally just directly reference a Team and send it as a argument?
aka
local Team = game.Teams.Team1
TeamService:SetTeam(Player,Team)
_,x and a,b do not contribute to the module’s readability. At least make it more readable by doing _,Tool.
At least have a tools folder as an argument. Don’t make people put tools into places where they don’t belong without modifiying the module.
As mentioned earlier, this module lacks some needed functionality & is pretty insignificant. Improve by adding more functions like mass-teaming/unteaming.
And many many tycoon games that are sometimes on the front page use teams for easier things, for example look at 2 player tycoons, they depend on teams for it to work properly.
Viruses do exist yes, but not in the good free models, free models with viruses aren’t on top of the toolbox, they’re way down and can easily be rid of viruses if you know how to do so.