Typically you don’t do this in a Widget. The Widget is just visualizing the score through binding.
You should rather find out where the score is updated and add your level change logic there. Probably this happens in the Hit event for the projectile. After the score has been updated, you can check with a Branch if it is > 5000 and, if it is, call Open Level with the next level to be played.