See if this helps:
You’d use onMouseButtonDown, ofc. Note how mouse X translates into world Y.
onMouseButtonDown