Question about Variables

I want to use a variable that is inside a pawn class blueprint.

I want use it in a widget blueprint. It is for my HUD in my TBS game

how would I do it?

In your widget BP Get Player Pawn > Cast To yourplayerpawn > Get the variable.

Also don’t forget to set that variable to public if you don’t have any function to get that variable.