make a variable that holds how long the button has been pressed, INCrease it by one IF the BUTTON is pressed down, and set it to 0 if it's not. So, to be frank, I'm not giving you the exact code, and I'm making you use some effort. But asking for help is good, just don't overuse it or people will get annoyed and not reply.