function onEvent(n,v1) if n=='Bopping HUD' then v1=v1 or 0 AE=v1 end end function onUpdate() pR=playbackRate end function onUpdatePost() end
function onBeatHit() onBop(curBeat%2==0 and AE*5 or AE*-5) end CB={'camGame','camHUD'} Tr='backOut'
function onBop(v) for i,CB in ipairs(CB) do Ang(CB,v) doTweenAngle('TBop'..CB,CB,0,crochet/500/pR,Tr) end end function Ang(n,a) setProperty(n..'.angle',a) end