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
✓ ANSWER ACCEPTED
how do i detect a team color? [Answered]
2 answers
✓ Accepted answer
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
5 comments
0
thanks :P
0
No problem dude
0
sadly it does not work.
0
its having trouble with the Player.
0
That's because you have to declare what the player is.
heres my script ~~~~~~~~~~~~~~~~~function clicked() if Player.TeamColor == game.Teams.wait.cork then print("Team Found!") end end script.Parent.ClickDetector.MouseClick:Connect(clicked)
This discussion is preserved as it was. New answers, comments, and votes are closed.

2 comments
Mind telling us how much teams you have?
Three