I know this question been asking a lot of times but i have been the most issues, i tried every solution in here, but some of them caused my “bar” to go offscreen and be more stretched.
Here is the result i wanna look for:
A smooth tween that slowly “decreases” or goes back.
Like this:
local maxhealth = humanoid.MaxHealth
local health = humanoid.Health
tween = tweenserv:Create(bar, TweenInfo.new(0.5, Enum.EasingStyle.Quad, Enum.EasingDirection.Out), {
Size = UDim2.new(0,-health / maxhealth, 1, 0),
BackgroundColor3 = bg
})