Im trying to make a level up script that increases to different numbers each time (problem is i suck at math)
these are the numbers i want
83, 174, 276, 388, 512, 650, 801, 969, 1154
local Atk = Instance.new("IntValue", stats)
Atk.Name = "AttackLevel"
Atk.Value = 1
local Atkexp = Instance.new("IntValue", stats)
Atkexp.Name = "AttackXP"
Atkexp.Value = 0
local Atkmaxexp = Instance.new("IntValue", stats)
Atkmaxexp.Name = "AttackMaxXP"
Atkmaxexp.Value = 83
Atkexp.Changed:connect(function()
if Atkexp.Value == Atkmaxexp.Value then
Atk.Value = Atk.Value + 1
if anybody can help me, im not asking for the full script, i just need help to figure out how to do the numbers like that (if possible)
how do i make it so it's 83 exp at level 1, 174 at level 2, 276 exp at level 3 and so on?
