Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- print ("Menu-Click the Number")
- print ("1.Option 1")
- print ("2.Option 2")
- print ("3.Option 3")
- while true do
- local event, button, X, Y = os.pullEvent("mouse_click")
- XY = X..","..Y
- if XY == "1,2" and button == 1 then
- -- Do stuff for Option 1- Left Click
- break
- end
- if XY == "1,3" and button == 1 then
- -- Do stuff for Option 2- Left Click
- break
- end
- if XY == "1,4" and button == 1 then
- -- Do stuff for Option 3- Left Click
- break
- end
- if XY == "1,2" and button == 2 then
- -- Do stuff for Option 1- Right Click
- break
- end
- if XY == "1,3" and button == 2 then
- -- Do stuff for Option 2- Right Click
- break
- end
- if XY == "1,4" and button == 2 then
- -- Do stuff for Option 3- Right Click
- break
- end
- end
Add Comment
Please, Sign In to add comment