Hide HUD after interaction

something like the below picture should work for what your looking to do. it may look complex but its actually rather simple. when the player overlaps the collision volume the variable near door is set to true (i used this to control if the input should be executed, a gate would also work) then a widget is created and added to the viewport. the do once and delay are just to make sure that duplicate widgets arent created which has been known to happen in a setup like this. on end overlap its basically the same. as for the processing of the input its very similar to your script but when the timeline is done it also activates the remove from parent. the door i made is also auto closing cuz you know why not.