error: Attempt to index up value 'timer' (a number value)

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…

You probably should not use the variable name “timer” since it’s a namespace/object that holds our timer.* API calls.

Rob

You probably should not use the variable name “timer” since it’s a namespace/object that holds our timer.* API calls.

Rob