hello, I would like to know how to make a script that detects only when the life of the humanoid is decreasing and does another action when the life of the humanoid is increasing.
Example:
The humanoid got damaged by a weapon, and the FOV made an animation. The FOV applies only when the humanoid receives damage, not when it is healing.
Record the previous health of the humanoid and when the health changes, compare if the previous health is higher than current health to show it’s damaged, and compare if the previous health is lower than the current health to show it’s healing.