Whats the problem to my code?

Code1Better


Human S defualt is set to false. When pressing the SelectBox, it’ll run and make Human S change to true through a custom event. When I press the ResultButton, it reads Human S as false. Used a Debug Key to find out it was reading Human S as both true and false in that order. I made the Human S defualt to true and its Set to make it false. The branch on ResultButton now reads it as true and the Debug Key reads it as false and true in that order

Are all of those blueprints in the same Actor?
Check if you are setting and reading the same Human S variable in all cases.

Are you changing Human S in any other place?
Check to see if you have Set nodes anywhere else.

ResultButton, DebugKey and Save are in the same widget
SelectBox is in a different widget
There arent any other Human S in the blueprints other than the ones in the pictures

theyre different variables, you need to get a reference to the owner of HumanS and set it there, assuming its your player you can GetPlayerPawn → Cast to your pawn

Dont have a pawn
HumanS comes from a widget called CreateCharacter as shown in the 3rd picture

that was just an example, the point was

your create character is different from your result button you need to find a way to communicate between them