Subcurrency problem

Hello, I’m decent at coding however I seem to have gotten stuck, I wanted two achieve two things, one a bar that when it reach 1 it generates 1 spacial dust, and two defining “s” or spacial dust as a sub currency inside of Cosmic Dust. First I tried defining S by putting it on its own like so

s: {
name: ect…
}
However it still lists S as undefined, I also need help making a bar that generates one spacial dust upon completetion

1 Like