Help with Custom Health Gui

https://gyazo.com/b60ee7223ac228920bd3cbbd9818bf99

This is what happen, How to fix this?

Decrease the Zindex of the gui one or two lower.

If i decrease Zindex when i decrease size it will still out of frame and blur so i think it not help

Hey, instead of changing the position, change the size. Set the anchorpoint to 0,0.5 and then customize. Add this script:

healthBar.Size = UDim2.new(player.Character.Humanoid.Health/100,0,1,0)

yes this is a change the size but it will be like this https://gyazo.com/d28cc6463296abace2204cdaf1b1cdbf

Try to change zindex to lower on health bar frame and enable ClipsDescendants other frame.

I’ll let the image speak for itself:
image
image

yes i fixed that but it be like this https://gyazo.com/d28cc6463296abace2204cdaf1b1cdbf

this is how i would like to be
https://gyazo.com/05b00d442fc7d700e81b2d4e27c9e5b2

1 Like

simple, add a layer on top of the health bar that extends and covers it whenever you take damage.

i have try this i used frame but when i change a frame size it change image size too

don’t cover it with a frame, use an image label.

health bar size should be offset or scale? i try to use offset and it worked but i think in others platform the size maybe strange if i not use scale(i used image label but it same happen)

i used that but it same as frame
https://gyazo.com/f01468748ab45006a6dd0174fb2a95dd
this maybe help you understand when i decrease frame size it decrease healthbar size too

this is what i want
https://gyazo.com/c925364b624fe8a64223a4550fc7a325
(but this i use offset not scale so it will not equal in other resolution)

Don’t put it inside the same parent.

oh, so if not same parent how to clipdescendant on it

Use UDim2.new() for the size instead of the position