Although what I want is for that when the player clicks one of the teams they cannot click any of the other teams.
Here is an image of it in the explorer.
Also, the X on the GUI is for when it gets clicked it makes the Job GUI invisible.
This is the script inside of the TextButton Named Red
function Click(mouse)
script.Parent.Parent.Parent.Parent.Parent.TeamColor = BrickColor.new("Really red")
end
script.Parent.MouseButton1Click:connect(Click)
It is the same script as the ones inside of Green and Blue just that those have a different color.
This might seem very simple but I don’t have much scripting knowledge. Also if possible could anyone explain how to make a GUI that opens the Job GUI.
Thanks.
You can make a bool value if they can join a team. It can be true when they can and false when they can’t. You can set it to false when they click on the gui button.
If you attempting to make it disappear once you click a button you could just do something like local frame = script.Parent.Parent script.Parent.MouseButton1Click:Connect(function() frame.Visible = false end)