I am making a kind of tycoon simulator game, where you have a model that drops cash. You upgrade this cash in the shop, and i want it so you can upgrade it multiple times at once. I have everything down except the cost. Does anyone know the equation to find the cost of any upgrade for x amount of upgrades? I want it to go up by 5 every upgrade, so upgrade one would be 5 then 10 then 15 and so on. Please don't mark this as a request!
Edit: I have tried this
math.floor(plr.Stats.Worth.Value * 5 + ((plr.Stats.Worth.Value + Amount.Value) * 5))