Cookie Animation

Does anybody want to make a cookie that kind of shakes when you click it, and if you click it enough times, it starts to break? I want it for the game below

Ok, It’s kind of complicated, invite me and I can help you. (I’m working on a bounty so it might take a while)

K let me first save the code. here’s the link so you can look at the code to

Yes, I saw, I need you to invite me so I can edit it to help you.

whats your name in replit

K your Invited to the program