Why doesn't this GUI work?
What I am trying to do is when a flag gets captured by a team, count up points for that team. I have points counting up, however, I want the team who has 10 points to win. I have 3 GUIs; 2 GUIs telling which team has what points and another GUI that tells who has won. For some reason, this script does not A) Stop the points from increasing B) Reset the points and C) Change the GUI to the name of the team that wins.
If you can help, please give me an example of what I need to change. Thank you :D
Heres the code;
01 | flag = game.Workspace.Flag.Flag |
11 | if flag.BrickColor = = BrickColor.new( "Bright blue" ) then |
14 | elseif flag.BrickColor = = BrickColor.new( "Bright red" ) then |
22 | if BValue.Text = = 10 then |
24 | TextLabel.Text = "Blue has won!" |
28 | elseif RValue = = 10 then |
30 | TextLabel.Text = "Blue has won!" |