Image Label Health bar doesn't size properly

What is the issue?


it’s goes downards and to the left??

What solutions have you tried so far?

searching on dev forum but nothing helps

the script (local script)

local player = game.Players.LocalPlayer
repeat wait() until player.Character
local character = player.Character

while true do
	script.Parent.Size = UDim2.new(character.Humanoid.Health/character.Humanoid.MaxHealth,0,0.803,0)
	wait(0.2)
end

by the way, the ImageLabel’s scale type is Crop

Shouldn’t UDIM2.Scale.Y be 1 instead of .803?

If that doesn’t work, can you show us the size of the Health bar before and after you remove your health?

before

after (at zero health)

after (at five health)


and the reason that it’s .803 is because that is the height of the image label

Sorry, I meant show us the size property of the health bar.

Okay I made small mistake, the size of the health bar was actually {1, 0},{1, 0} and i’ve already fixed that up, but I think i’ve found the issue, the image’s size is messed up because it’s like this

1 Like