To do the "while true do" 4 times

what I want is that I do the “while true do” 4 times so that then I load the script of day


There’s two ways you could do this. You could either find a way to make this all into one loop, or you could use coroutines. Coroutines allow multiple threads of your script to run basically in parallel. You’d just wrap each loop in a function, and then make coroutines using those functions.


Your post is sort of vague, but if what you want to do is run the code inside the while true do block only four times, then you could just replace that line with for i = 1, 4 do
And remove the ) from after the end. It doesn’t close anything.