I will take your advice!
To be honest I don't know how that bug happened but I will look in the code and see if I can fix it.
Thank you for the feedback!
Viewing post in Fabulous Waters jam comments
I think it is how GDevelop manages the variables this happened to my first game jam game when you pressed to mute the global volume and it would do the action two times, then I saw that if I put the wait 0.1 seconds, it solves the problem! It's probally the same in here too! When I played my game I didn't saw this bug and that's why I didn't put the wait 0.1 because this only happens rare for GDevelop to do this!
After the jam ends I will probally put a fixed version where the wait 0.01 seconds is in the button's code