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

How could you add a countdown GUI to this script(and does it work)?

Asked by 7 years ago
Edited 7 years ago
numberB =1
while true do

Timer = 200
numberA = 1

while true do
wait(1)
Timer - 1

if numberA == 5 then
    break
if numberB == 5 then
    break

end
end

2 answers

Log in to vote
0
Answered by
Galicate 106
7 years ago
numberB = 1
Timer = 200
numberA = 1

while true do
wait(1)
Timer = Timer - 1 -- what i did was instead of timer - 1 i did timer = timer - 1

if numberA == 5 then
    break
if numberB == 5 then
    break

end
end

0
this wont fix it but it will help, i could completley fix it but im working right now. Galicate 106 — 7y
0
Ok! ProgrammableGami 23 — 7y
Ad
Log in to vote
0
Answered by 7 years ago
Edited 7 years ago
numberB = 1
Timer = 200
numberA = 1

for i = 1, 200 do
    wait(1)
    Timer == Timer - 1
    if numberA = 5 then
        break()
    end
    if numberB == 5 then
        break()
    end
end

0
So this make two loops (With timer) ProgrammableGami 23 — 7y

Answer this question