[SOLVED] Event firing more than once

I had a button that on click it would tell a script to craft an Item, but I found out that it would fire more than once on one click? It’s really weird.

https://playcanvas.com/project/1195880/overview/ant-game-thing

The two scripts are craftFunc and itemsNcrafts

Af far I can see you have placed the code in the update function instead of the initialize function.

that did infact fix it