Sorry for posting so many threads here, I’m just getting used to this language
This is a small snippet of my code, I’m trying to cancel the timer from running after the destroy function is called, any help?
function destroy(object) timer.cancel(timeFunction) end function onCollision(event) if (event.phase == "began") then destroy() end end local timeFunction = timer.performWithDelay(1000,startCount,0)
All help is appreciated, thanks!