Image Healthbar UI getting cropped on both sides

Trying to make a vertical health bar with ImageLabels, but when the image is resized, it just gets cropped on both sides.

image

image

I’m trying to make it so that the top of the GUI just only goes down or something, if you know what I mean.

I’ve looked into a lot of dev forums trying to find a solution, but none caters to my situation.

I’m still new to UI stuff and scripting, so if anyone knows a solution to this, please help out!

I recommend using a UIGradient or looking into the ScaleType property.

I’ve tried using a UIGradient, but for some reason, it just doesn’t work. I’m missing something, but I can’t see the problem.

The ScaleType is also already set to Crop. I don’t know what I’m doing wrong here.

Never mind, I figured it out. Thank you for the tip.

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.