Unable to change value of a variable from one blueprint in another

how would i set it as the HUD class?
i am using the widget blueprint for the HUD