i'm making a health bar and after taking damage it moves but only the first time.
Here is my script
local human = game.Players.LocalPlayer.Character:WaitForChild('Humanoid')
local health = human.Health
local maxhealth = human.MaxHealth
local hp = health / maxhealth
human.Changed:Connect(function(child)
if child == "Health" then
script.Parent:TweenSize(UDim2.new(hp / 2.5,0,0,46),Enum.EasingDirection.In,Enum.EasingStyle.Linear,0.5)
wait()
end
end)
