How to check if a player has clicked on an object?

Hello. Idk how to do this, so I asking you guys. You know what to do to make the script check if the player pressed the Lever object with the left mouse button and then made two animations? I need it so much.

There’s a Learn button up here, check out vids and mans, for instance this one Redirecting to latest version of com.unity.ugui