Hi! This is mainly a English speaking forum, so please write in that language Also, you can post your scripts in the forum by using Code tags .
-
You probably meant
OnMouseDown
instead ofOnMoudeDown
. You’re also missing a ) at the end there - it should beif (Input.GetMouseButtonDown(0))
. -
Camera.main.transparencySortAxis ScreenToWorldPoint(mousePos)
doesn’t work that way.
There are likely other issues with your script, but I’ll leave them to more skilled devs.