while true do
wait(math.random(1, 4))
print("num1")
wait(math.random(1, 4))
print("num2")
wait(math.random(1, 4))
print("num3")
end
The script would wait the randomly given time and then it would print the "num1" and it would move on to num2 then after some time num3, but how do I make it so it prints all 3 numbers at the same time with the math.random function in one script?

1 comment
I'm not sure what you're asking. There's something called coroutines which will allow you to run multiple functions at once. (execute function1() function2() and function3() all simultaneously) which might be what you're asking but I'm not sure