print("Press [Enter] To Unlock!") event, key = os.pullEvent("key") while not key == 13 do -- 13 is the key ENTER os.sleep(0.1) until key == 13 then print("YAY") end
It gives an error at startup, about a 'too close 'while' at line ...' I cut this out of some code so the number would be pointless to give, but if possible please help or correct this code. Thanks.