heyo so I'm making a game where you click a button and if your team's color is Cork then it opens a gui. (i have the gui) I don't really know where to start. thx
Detecting team colours is pretty simple. Inside a Player, there is a value called "TeamColor". Then you would need to access that team colour by checking the team colours in the teams folder. A basic example of detecting a team colour with a print script would be as follows.
if Player.TeamColor = game.Teams.Team.TeamColor then print("Team Found!") end
heres my script ~~~~~~~~~~~~~~~~~function clicked() if Player.TeamColor == game.Teams.wait.cork then print("Team Found!") end end script.Parent.ClickDetector.MouseClick:Connect(clicked)
~~~~~~~~~~~~~~~~~