Need help making my timer better

tbh what if it gets to the end? what now?

maybe put a while true do at the top and end at the bottom

hope this helps

Try a loop of some sort:

for i = 500, 1, -1 do
script.Parent.Text = i.." seconds remaining"
wait(1)
end

script.Parent.Text = "round started"

infact this should be the exact solution you need

thats a good point, i just added the while true do thing and i think that wil make it so it just retires if it messes up, right now it is a spinning rainbow wheel on my computer so the script is loading but i will let you know how it goes thx

1 Like

i help you chicken…

--[[
We would like to inform you that your account was correctly terminated for trying to access internal sites/information and it is not eligible for reopening.
]]--
for i=1,500 do
task.wait(1)
script.Parent.Text = i.." seconds remaining"
end

from your good friend stan

i dont this this would work because he wants it to say round started at the end and there is no way for the eloop to do that.

u need to call forprep or what is it called, i think forgeprep??

well he could just Textlabel = “round has started” and then it would work I think

I edited it, that should do the exact same thing in the original script

yeah but like textlabels are slow because of luau optimizations so i think you have to set it to something else, maybe game ?

i think he said that he also want s it to loop so my solution should be correct

also, you have an incomplete string (you’re missing a " at the beginning) so your script won’t work
you could fix this by changing 500 seconds remaining" to "500 seconds remaining"

while loop too slow, you need to make it fast!!! (as fast as the roblox slack channel #ride-but-not-exactly-work)

i mean it worked for me did u try updating your studio or turning it off and back on again

you’re right i should have tried that

i want it to count backwards please read the thread next time

  var i = 0, len = myArray.length;
    while (i < len) {
        // your code
        i++
    }

i think this should be faster i found it online hope this helps x

this is in assembly language which i did never learn

oh ok i thought it was lua I’m sorry :\ anyways I tried and I hope you have a good day

1 Like

you need to convert it by using assembly runner in lua

yeah i figuerd that out from stack exchange but thanks