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)

2 comments
can i ask what ,291,0,22 this part is for?
try this. UDim2.new(0,(char:WaitForChild("Humanoid").Health / char:WaitForChild("Humanoid").MaxHealth * 200),1,0)