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

How do I fix this?

Asked by 10 years ago
    local m = chooseDisaster():clone()

    function removeD()
        m:remove()
    end 

    function countdown(time)
    game.Workspace.CDHint.Value = string.format(disasterCountdown, tostring(time))
    while (time > 0) do
        wait(1)
        time = time - 1
        game.Workspace.CDHint.Value = string.format(disasterCountdown, tostring(time))
    end
    removeD()
    return true
    end

This is supposed to make it so that when the disaster comes it will countdown the seconds left until the disaster ends, the CDHint shows up, but when it does the disaster ends right away and the CDHint is still counting down. Help please?

0
Help me please someone! devColor 0 — 10y

Answer this question