Debounce not working in NumberValue health system

  • The value is a NumberValue

  • I have basically the same debounce working on another part. However, it does not want to work on this one for some reason. Thought it might be because it’s a meshPart but tested it with another part as well as enabling CanCollide and still doesn’t work.

  • The NumberValue is set to 3

  • The script is set up for when a player touches the part to subtract 1 from the value. But, when I touch the part it doesn’t debounce and loops the HeartValue.Value = HeartValue.Value - 1 over and over until the player dies.

Any idea on how to fix this would be amazing, thank you so much!

Any chance something other than the player is touching it and causing it to fire? You don’t explicitly check whether the touching part is a player, so if it’s (for example) touching the ground then it’ll continue to fire even when the player isn’t touching it.