Hello, I’m facing a problem concerning the GUI. I want to make a health bar by tweening an image label.
Problem is, when it tweens, it shrinks in the y axis, something that I don’t want.
Here is my script:
humanoid.HealthChanged:Connect(function(newHealth)
local currentHealth = newHealth/100
if currentHealth <= 0.2 then
HealthGradient.Color = ColorSequence.new(red)
HealthBar:TweenSize(UDim2.new(currentHealth, 0 , 0.235, 0))
isTweening = true
else
HealthGradient.Color = ColorSequence.new(green)
HealthBar:TweenSize(UDim2.new(currentHealth, 0 , 0.235, 0))
end
end)
Thank you