Variable will only sometimes set in HUD

Also, I did some more testing/debugging and it turns out that it is actually something related to the text box (the one that does its stuff in the last picture). I found that that text box actually sets itself to null and what ever it trying to set it. e.g. sets itself to null when ‘Hello World’ is trying to set it to ‘Hello World’, and sets the input to null. This I found was incredibly strange