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