I know there is a way to make a Team-only GUI because most clans have it that way. Anyways, how do you make a GUI for one team ONLY?
The easiest way, to my belief, to do this would be to use the PlayerAdded event and check the player's team before they join. You could store the GUI in ReplicatedStorage and put a script in the Workspace to check if the player belongs to a certain team.
01 | game.Players.PlayerAdded:connect( function (plr) |
02 |
03 | if plr.TeamColor = = BrickColor.new( "Bright red" ) then |
04 |
05 | local gui = game.ReplicatedStorage.GUIName |
06 |
07 | gui.Parent = plr.PlayerGui; |
08 |
09 | end |
10 |
11 | end |
if you wish to know how to make it only for a group here ya go
1 | game.Players.PlayerAdded:connect( function (p) |
2 | local GroupId = 372 -- Scripting Helpers Group Id |
3 |
4 | if (player:IsInGroup(GroupId)) then |
5 | local Group_Gui = game.ReplicatedStorage [ GuiName ] :Clone() |
6 | Group_Gui.Parent = p.PlayerGui |
7 | end |
8 | end ) |