I am trying to make a login system for my PC that involves user-friendly looking windows and supports mouse clicks. However, a major security leak in my program causes, whenever someone tries to ctrl+T their way into my PC, raise an error message saying:
startup:65: attempt to compare nil with numberIt then terminates, allowing anyone to get in like any other poor-quality lock.
This is very likely due to my program using both
event, button, x, y = os.pullEvent("mouse_click")
to catch mouse clicks, as well asos.pullEvent = os.pullEventRawto stop the program from terminating.
I cant post the full code now, but I might be able to later today.
How can I stop the program from being force-terminated while retaining mouse support?












