Rotating GuiObject (with script) breaks ClipsDescendants in ScrollingFrame

Hey everyone,

Does anyone know what could be causing this issue?

I have a ScrollingFrame with ClipsDescendants enabled. Everything works fine when the GuiObject is not rotating, but after I enable rotation, the object keeps rotating and parts of it become visible outside the scrolling frame when I scroll up or down.

The issue only happens while the rotation loop is active. If I stop updating the Rotation property, the clipping works correctly again.

My rotation function continuously updates the Rotation property using RenderStepped:

object.Rotation = newAngle

It looks like ClipsDescendants does not correctly handle a GuiObject that is being rotated continuously.

Has anyone experienced this behavior or found a workaround?

Without rotation loop:

1 Like

are you using the newly released clipping feature?
it lets rotated objects be clipped by their parent

if you are then this might be a bug :man_shrugging:

2 Likes

By default, ClipDescendants doesn’t work for rotated/rotating GuiObjects. If you wish to achieve such an effect. You can use CanvasGroups.

Simply place the rotating object inside of the CanvasGroup. Having the CanvasGroup be the same size as the object you want.

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