Somehow a Frame still does not clip on a parented object while ClipDescendants is on

Can anybody help me out with this problem?

For some reason roblox studio keeps rendering the pupil outside of it’s parent even when ClipDescendants is turned on once the game starts to run, and it only works during editing.

In Game


Screenshot 2024-07-14 at 11.47.27 AM

In Editing

1 Like

ClipDescendants does not support rotation:

Note that GuiObject.Rotation isn’t supported by this property. If this or any ancestor GUI has a non-zero GuiObject.Rotation, this property is ignored and descendant GUI elements will be rendered regardless of this property’s value.

(Descendant elements with a nonzero rotation will also be rendered regardless of ancestor rotation.)

You could use a CanvasGroup, which clips children regardless of rotation, but it can be costly to resize them frequently as a new texture must be generated for each size.

1 Like

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