How to detect if the game object was clicked

i used some way but the y dont work at all so how can i detect if game object is clicked

You may need britzl/defold-input
In this library, there’s cursor that will help you on detecting game object clicked
defold-input/in/cursor.md at master · britzl/defold-input (github.com)

or you can simply check if point in aabb (or aabb in aabb)