I cant fill a gui properly

Hi. Currently I’m trying to make a curved rectangle be filled by another frame inside of it whilst clipsdescendants is true.
image
However, when I add the frame and turn clipsdescendants to true, it fills the entire gui instead of the part that is showing
image
Is there a way to overcome this? I’ve tried the same method with gradient but I want the filling gui to look curved like the gui it’s filling

Any help is appreciated.

Try messing with the UI corner, that could fix it

https://developer.roblox.com/en-us/api-reference/class/UICorner

1 Like

UIcorner is a part of the gui thats being filled. It’s just transparent because UIstroke is the thing thats visible (border)

image
Are you trying to do something like this?

Yes.
thirty30charrracterrrsss…

image

I am not sure what your UI looks like, but I just inserted a frame into the bar with UI corner and I made it the same size as the bar so it looks filled, you can drag it back and forth, if this doesn’t solve what you’re trying to do then I’m not sure if I can help, but I tried

image

1 Like

image
you see those two overlapping corners on the top and the bottom? Every time I make the filling gui smaller it shows those and i’m trying to patch them but clipsdescendants wont work so I’m at a state of bewilderment on what I should do. If you cannot help me I understand.

Have you added UI corner to the actual progress bar, and if you have did you set it to the same corner radius as your ‘outer frame’

image
Yes.

image
Yes as well.

Try changing both properties of the CornerRadius in the UICorner. See if that works.

1 Like

Have you tried setting it to the highest value (corner radius) as the curve shown on your loading bar is very round whereas a corner radius of 1 is going to make a small curve.

do you mean offset? the corner radius (1) in question is scale so it curves completely.

Not too sure on the issue then, apologies for my mistake before. I’m guessing it works fine when you stretch it forwards but apart from that I genuinely have no clue how to solve it.

My only idea would be touching upon 9-slice scaling but i would research since i haven’t really used it