Why HitBoxBeginCursorOver worked only when pressed button on mouse?

Have you tried naming your hit box and only changing your variable if the box with that name gets cursor over? Perhaps there are other hit boxes that also fire the event.