is there a better way than this to alternate a transition on an object?
local reverse = 0 local tim1, t1 local testButton = \<\<your object\>\> local function wobbleButton (event) if reverse == 0 then reverse = 1 t1 = transition.to( testButton, { rotation = -30, time=100 } ) else reverse = 0 t1 = transition.to( testButton, { rotation = 30, time=100 } ) end tim1 = timer.performWithDelay( 100, wobbleButton) end tim1 = timer.performWithDelay( 10, wobbleButton) if t1 then transition.cancel(t1) end if tim1 then timer.cancel(tim1) end