chance = 0.99 multiplier = 1.0102 baseDiv = 3900 base = balance/baseDiv nextbet = base function getmulti() local payout=(100-1)/chance return (payout/(payout-1)) end function dobet() if win then base = balance/baseDiv nextbet = base else nextbet = previousbet*getmulti() end end