Need help making my timer better

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

would
while true do

for i = 500, -1 do --counts backwards
Textvalue = “Time left:”…i
task.wait(1)
end
end

work or no

I suggested that, he’s trying to use his code, so he’ll just use a while true do around his code I think

1 Like

Ohh ok, because he typed all that right. @twinkqle I don’t know if your code will cause lag, but you should just use a loop next time to save your fingers, improve readability, and in case you ever want to change the round time. Impressive you typed this for 2 hours though.

1 Like

use task.wait() instead of wait()

unfortunately task.wait is more laggy and more typing so i will use wait instead sorry but thanks for the tip