When an event starts, I ensure that the number I set with a float variable continues.

A detailed explanation of what you are trying to achieve (screenshots, code) would give you more specific feedback, as currently your question is too broad to answer.