What is wrong with my King of the Hill script?
I believe the error is at line 6, where it defines the hint's text. The hint's text shows up, but the timer blue and red variables don't go down (they may, but the text on the hint does not change.)
01 | local h = Instance.new( "Hint" , game.Workspace) |
07 | h.Text = "Blue Timer: " ..TimerBlue .. " | " .. "Red Timer: " ..TimerRed |
11 | while game.Workspace.AbandonedSkyMill.Point.Light.BrickColor = = BrickColor.new( "Bright blue" ) do |
13 | TimerBlue = TimerBlue - 1 |
14 | if TimerBlue = = 0 then break end |
17 | while game.Workspace.AbandonedSkyMill.Point.Light.BrickColor = = BrickColor.new( "Bright red" ) do |
19 | TimerRed = TimerRed - 1 |
20 | if TimerRed = = 0 then break end |
23 | if TimerBlue = = 0 and game.Workspace.AbandonedSkyMill.Point.Light.BrickColor = = BrickColor.new( "Bright blue" ) then |
24 | game.Workspace.VictoryDefeat.Value = true |
27 | if TimerRed = = 0 and game.Workspace.AbandonedSkyMill.Point.Light.BrickColor = = BrickColor.new( "Bright red" ) then |
28 | game.Workspace.VictoryDefeat.Value = false |
29 | game.Workspace.Red.Value = true |