Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local userInput = ""
- local event = ""
- local stop = true
- while stop do
- event, userInput = os.pullEvent("char")
- userInput = string.upper(userInput)
- print(userInput)
- if userInput == "S" then
- stop=false
- print("Program is stopping.")
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement