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))

5 comments

0

You should at least post an attempt you've made

0

^

0

well even if u don't have the code what you could do is put Number Values in the gui parts that get upgraded and check the values and multiply it by 5 that's what I would do

0

I hate when people say its not a request but it is.

0

If you want it to go up by five every upgrade, just do cost = (upgradeLevel + 1)*5. I'm assuming upgradeLevel is 0 by default.