That means that either x or y is nil. If you share some previous code, I might be more helpful. :)/>
Sorry for the horribly delayed reply, here you go.
while(true) do
if settings.getVariable("os/settings.0","username") == "autoLogin" and settings.getVariable("os/settings.0","password") == "kernelSpecified-AutomaticLogin" then
parallel.waitForAny(main_gui,clock)
term.setBackgroundColor(colors.black)
shell.run("clear")
edge.render(16,7,34,12,colors.white,colors.cyan,"",colors.black,true)
--edge.render(17,8,34,8,colors.white,colors.cyan,"Welcome to AXIOM!",colors.black,false)
edge.render(17,9,34,9,colors.white,colors.cyan," (!) Fatal error",colors.red,false)
edge.render(16,10,34,10,colors.white,colors.cyan,"CODE: AXGUI-RUNTIME",colors.red,false)
tasks.kernel = false
tasks.permngr = false
tasks.clock = false
end
local event, button, x, y = os.pullEvent("mouse_click")
if event == "terminate" then
end
if x == 18 and y == 7 then
os.shutdown()
end
if x >= 20 and x <= 30 and y == 9 then --#Error
edge.render(20,9,30,9,colors.lightGray,colors.cyan,"",colors.gray)
term.setCursorPos(20,9)
term.setTextColor(colors.black)
term.setBackgroundColor(colors.lightGray)
usr = io.read()
end