Im having some trouble with a script
There's a pice in it that gives the user a [Y/N] prompt,
but after the prompt it still types the character that's chosen.
local event,key = os.pullEvent("key")
if key == 21 then
somescript()
elseif key == 49 then
-- some code --
end
Function somescript()
write("id: ")
id = read() -- This is where the character shows up
-- some more code --
Is there some way to prevent the char-event from firing, or to prevent the character showing up when i use read?
Thanks in advance!