You need another variable, such as a global variable boolean (true/false). By default the bool would be set to false. Then when you click the button you set it to true. Under the gold every 3 seconds condition, you add 'if bool = true'. This means it will only start adding gold when the button is clicked, right now it does it all the time.