problem: https://i.gyazo.com/f41e08efd30553ac79426e55374934be.gif
the health bar just acts really weird and i have no idea how to fix it
pls help
script:
local player = game.Players.LocalPlayer 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,291,0,22) end)