I want to simulate one of those -PRESS ENTER TO SEE NEXT LINE- by using a repeat until loop. However, in order to see if the user has pressed enter, I would have a io.read() to see if any input was detected. The script works fine whenever a io.read() is not introduced, but after its introduced, it breaks. Here’s the code if it helps.
repeat print("Welcome to the world of Battlemon (Patent Pending)!") wait(.5) print("-PRESS ENTER TO SEE NEXT LINE-") wait(.5) io.write(" 27(H 27(2J") io.read() until usefulVar == 1 print("done")
For context, I have a wait function