coin counter

Hello, I'm a beginner and I want to set up a coin counter but the code I found here in the forum it's not working I would like to know if someone has the elbow and ligaments to pass me :slight_smile:

Queres o código, ou queres partes mecânicas?