Replies: 1 comment
-
So the easiest thing to do here is use the parallel API to pull the local running = true
parallel.waitForAll(function()
while running do
-- ...
end
end, function()
while true do
local event, key = os.pullEvent("key")
if key == keys.k then running = false end
end
end) |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have a whyle loop. I want to do something when the person presses "k", then once then press k it will pause the whyle loop, and open a menu where they can imput in things. But when k is not pressed i still want it to run the entire whyle loop.
So i need:
Beta Was this translation helpful? Give feedback.
All reactions