how i could stop countdown timer when the player reach end of level ?

I tried with this function but it doesn’t work