Set health bar not working in custom event

Thanks so much for replying everynone!
yes I simplified it even more it refuses to set the text
with both the setText function and the Set of the variable with the target of health num
could it have something to do with where the text is in the widget?