How to make a stackable object that gives income

hi guys, sorry if this is a dumb question but

I’ve trying to do a object that gives you income (in a global variable) but i’d like to increase the value of the income for every instance of the object, like: 3 objects in the scene = 3 money every second

this sounds very easy but i couldn’t find any help :frowning:

thank you

You can use the “SceneInstancesCount()” function to get the number of objects in the scene, and multiply that by the value of the income:

image

thank you!!!