Issue with playing animation when reaching certain health

animation issue is already fixed and he is asking why health display script doesnt work

ohhh my bad, which health display?

i dont know he didnt show the code yet

Yeah I got 2 one i wanna rework on but the default Roblox one don’t show

well i guess yall mentioned the health.Changed Event already, thats the main thing to start with.

Ill just wait for more details

My own default health bar gui

local character = player.Character or player.CharacterAdded:Wait()
local humanoid = character.WaitForChild("Humanoid")

humanoid.HealthChanged:Connect(function(Damage)
	script.Parent.Size = UDim2.new(Damage / humanoid.MaxHealth, 0, 1, 0)
end)
script.Parent.Size = UDim2.new(Damage / humanoid.MaxHealth, 0, 1, 0)

Damage / humanoid.MaxHealth
that is the issue

Thank you the default Roblox one now shows I’m going to rework on my own one thanks!