I got an error: Attempt to index up value ‘timer’ (a number value) when I try to use timer in some condition after button pressed.
edit:
I am sorry… if possible please delete this topic…I found out the reason… idiot me make a “local timer = 0” on top…