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

Basic Countdown doesn't always work?

Asked by
bloxxyz 274 Moderation Voter
10 years ago

Is there a way to reduce this, I have multiple countdowns in my minigame script and some of them don't work, I'm using a very basic script and I'm wondering if there was a way I could manipulate it to prevent crashing/bugging out. It can sometimes freeze the game when the countdowns get to one, here is an example of the one I'm using:

    for i = 30,1, -1 do 
    h.Text = "Intermission:" .. i 
    end

If you think you can help, or you see an error, please let me know. Thanks!

0
Add a wait(1) after h.Text Azarth 3141 — 10y
0
Oh, how did I forget that one...Thanks, I guess I just have to pay more attention.. bloxxyz 274 — 10y
0
Don't need to add (1) it just makes it longer, just do wait() with nothing in it... Vividex 162 — 10y

1 answer

Log in to vote
1
Answered by
Bubby4j 231 Moderation Voter
10 years ago

If you fix the wait, that should work, as long as the h object always exists.

Ad

Answer this question