local hp = math.clamp(number / maxNumber, 0, 1)
local tweenInfo = TweenInfo.new(0.2, Enum.EasingStyle.Quad, Enum.EasingDirection.InOut, 0, false, 0)
local tween = TweenService:Create(bar, tweenInfo, {Size = UDim2.fromScale(hp, 1, 0, 0)})
tween:Play()
How would I make it tween like that?