【Open-Source】 Team Switching GUI

Users can switch teams by clicking button, if you are in that group, you can join that team, it turns red if you are unable to join the team. Supports team switching according to Roblox groups and group ranks, it can be run on any device.

Team Switching GUI : https://create.roblox.com/marketplace/asset/15963573805
More Open-Sourced Items Here : Pro-Studio - Free Products




4 Likes

Hello! I’ve used your model and I’ve noticed a few issues with it and your website.

One, your website contains a section that says “How to get free robux” which makes your model seem suspicious due to free robux being literally impossible, which also made me skeptical of the model.

Two, your model uses ‘Local Scripts’ to function, meaning your model with not load the player’s character using the player:LoadCharacter() function due to not loading in the back-end server. Which can be fixed if the code is being used within a script and not a local script or tying an event with both scripts by firing the event on the server via the local script within the UI itself and then using a normal script to connect a function when the event is fired on the server.

7 Likes

Fixed, moved to server side.


3 Likes

Would it not be a bit more efficient to have only one remote event and just pass over the team or team name as an argument?

function onServerEvent(plr, teamName)
    plr.Team = game.Teams[teamName];
    plr:LoadCharacter();
end
5 Likes

Hi! Some friendly suggestions for your code, to make it more portable to other games with the click of a button!

  • Instead of having to rename code or such like that, use i, v in pairs to loop thru the game.Teams area and get the names of the teams, and automatically create stuff like the buttons for them. Rename the button to the teams name (see suggestion 2 for why)
  • Scrap the remote events and potentially server base the team buttons, and instead, on click set the players team to the name of the button.

Remote spam is never pretty, and configurability without touching scripts always is better than either manually coding or manually reconfiguring it!

3 Likes

That is feature when you switch to the gui Of about the system the team when you open It’s too much you will get a problem script

4 Likes