health:GetPropertyChangedSignal("Value"):Connect(function()
local currenttxt = "You have been hit! Use a bandage to restore health!"
local newHint = game.ReplicatedStorage.GUIs.HintLine:Clone()
newHint.Parent = player.PlayerGui.Main.Hint
for i = 1,#currenttxt do
newHint.Text = string.sub(currenttxt,1,i)
wait(0.05)
end
end)
How can I make this happen only if the player's health drops, and not increases?

1 comment
I have a bandage system in my game that increases the player's health, and this script only works if their health never increases.