However it will not work.
Please ignore the "she" function I was going to parallel with shell after it worked but It wouldn't work.
Remember most the code was me trying to debug it.
I would really love if you guys could explain the best way to do it.
local mouse = {
[1] = {buttonX = 1, buttonY = 2, command = "print('Hi')"}
}
local function she()
shell.run("shell")
end
local function getMouse()
while true do
event, p1, p2, p3 = os.pullEvent()
if event == "click" then
for k, v in ipairs(mouse) do
if mouse[k].buttonX == p1 and mouse[k].buttonY == p2 then
print("hi")
end
end
end
end
end
getMouse()












