Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Why doesn't this GUI work?

Asked by 10 years ago

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;

01flag = game.Workspace.Flag.Flag
02B = script.Parent.Blue
03R = script.Parent.Red
04Total = false
05BValue = B.Text
06RValue = R.Text
07 
08while wait() do
09if Total == false then
10 
11    if flag.BrickColor == BrickColor.new("Bright blue") then
12        wait(1)
13        B.Text = 1 + B.Text
14    elseif flag.BrickColor == BrickColor.new("Bright red") then
15        wait(1)
View all 35 lines...

1 answer

Log in to vote
0
Answered by 10 years ago

Roblox has currently broken the coding for GUIs, so that may be why your GUI script isn't working. I'm so sorry. ;(

Ad

Answer this question