# Progress Bar Not Stopping

**URL:** <https://forums.unrealengine.com/t/progress-bar-not-stopping/1254149>\
**Category:** Blueprint\
**Tags:** ue4-editor, unreal-engine, editor, question, Blueprint\
**Created:** [August 8, 2023, 3:18am UTC](https://forums.unrealengine.com/t/progress-bar-not-stopping/1254149 "2023-08-08T03:18:36Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![GrandmasterPanch](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@GrandmasterPanch](https://forums.unrealengine.com/u/GrandmasterPanch)\
**Post date:** [August 8, 2023, 3:18am UTC](https://forums.unrealengine.com/t/progress-bar-not-stopping/1254149/1 "2023-08-08T03:18:36Z")

</div>

Hi! I’m working on an oxygen progress bar that starts depleting at the start of the game and when it reaches 0, the character dies. The logic with the bar works perfectly, but when the character dies, and the game starts again I keep getting an error in the widget’s function, specifically with the “Get _float variable_” and return node.  
Is there a way of restarting that logic or to stop trying to get the float variable when the character dies? I think the problem is with the Clear and Invalidate Timer by Handler node, because I was thinking of using it just before entering the death animation, but it didn’t work.  
This is the Character Logic of losing oxygen:

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/3/c/9/3c9eb364669e97802234a4e79477a4115406ca9d.png)

The problem is here, because the Function is trying to obtain the Oxygen float variable, but it can’t when my character dies.

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/3/b/4/3b4e4c4a01057bc906606bb3c8ea3e553222d99e.png)

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/a/8/3/a8300525407669da74ae331a7dc2087bad39668d.png)

---

<div class="post-metadata">

**Author:** ![Quetzalcodename](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Quetzalcodename](https://forums.unrealengine.com/u/Quetzalcodename)\
**Post date:** [August 11, 2023, 10:34am UTC](https://forums.unrealengine.com/t/progress-bar-not-stopping/1254149/2 "2023-08-11T10:34:30Z")

</div>

Hey @GrandmasterPanch!

If your widget logic is still running “on death”, have you tried clearing and removing your widget when you die. You already recreate it on “game start”, so removing then recreating it when you restart the level may be a possible solution.

---

<div class="post-metadata">

**Author:** ![GrandmasterPanch](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@GrandmasterPanch](https://forums.unrealengine.com/u/GrandmasterPanch)\
**Post date:** [August 11, 2023, 3:52pm UTC](https://forums.unrealengine.com/t/progress-bar-not-stopping/1254149/3 "2023-08-11T15:52:31Z")

</div>

Hi! Thanks for answering!  
Just tried what you said and it worked!  
Is there a node or a function to remove a specific widget? Cuz I have a “You’re Dead” widget when the character dies and it gets removed with the Remove All Widgets node.  
I mean, it’s not a big deal. Maybe I can use another way of displaying the game over message, but if there’s a node for removing a widget it could come in handy.

---

<div class="post-metadata">

**Author:** ![system](https://d3kjluh73b9h9o.cloudfront.net/original/4X/7/1/3/713c9d3f58553f0de89543d76a8a3a2779dc9fa4.png) [@system](https://forums.unrealengine.com/u/system)\
**Post date:** [September 10, 2023, 3:53pm UTC](https://forums.unrealengine.com/t/progress-bar-not-stopping/1254149/4 "2023-09-10T15:53:23Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
