okay so I did this and it works for a split second but then the “Corona Error” states,
Runtime error
:0: attempt to perform arithmetic on a nil value
?: in function ‘performWithDelay’ – talking about the timeToNextWave timerSource (1st one)
function startTimer() if waveHares == waveTable[wave] then wave = wave + 1 print(tostring(wave)) print(waveText.text) waveText.text = tostring(wave) waveHares = 0 timerSource = timer.performWithDelay(timeToNextWave, startTimer) return end timerSource = timer.performWithDelay(timeToNextHare, startTimer) showHare() waveHares = waveHares + 1 timeToNextHare = math.max(timeToNextHare - 30, 600) end