Battle system

i need a bit of help. i have fixed a problem i posted in another thread. i would liek to thank the two that posted to help me = ]. now i need help with a smaller detail. I have a time bar. It fills up but when it reaches its peak it resets for no reason. could somboyd fix it so i can press it