Making a bar not go out the ui corner

Hello!

So basically i have a progress bar and theres one issue with it

image

The bar itself (the white part) is going out of the round ui corner. Is there any way i can stop it from doing that without making the bar round too?

1 Like

And it also does that when the bar is very little

image

1 Like

did you implemented the ui corner to the white box too? if no, probably that’s what causing it

if i do then the right part of the bar will also become round which i dont want

1 Like

what do you mean, i don’t get what you want to do, nvm i see, i don’t know… hmm

Perhaps you could script it so that when the value is below a certain number (the number when the bar creates the problem) it rounds the bar?

Make the bar round, then add a frame to it that has anchorpoint 1, 0 size 0.5, 0, 1, 0 and position 1, 0, 0, 0. This should square off the end.

I wish Roblox had stencil masks like Unity…