How can I hide the HUD when a certain value is reached?

I would recommend the SetStamina option over using a Tick function, which will unnecessarily update the visibility. Your SetStamina function can either pass in the value to set or a value to adjust the stamina by.