You can do that by...using another global variable haha! But that is probably the easiest way. Create a variable called OnClicked. Set your other global to add 1 only if OnClicked = 0. Than when the player clicks on an object, set OnClicked = 1, that will stop your original variable from adding anymore.