Tweening bugging out scrolling frames

Not sure if this is a bug or not, But whenever i tween a scrolling frame (ClipDescendants is on) it completely disables it. Even if i enable it again it does absolutely nothing. Disabling the script however fixes it but i don’t see any problem in the script, here it is.

local tw = game:GetService("TweenService")
local open = false
script.Parent.MouseButton1Click:Connect(function()
	if open == false then
	local tweeninfo = TweenInfo.new(
		1,
		Enum.EasingStyle.Sine,
		Enum.EasingDirection.Out,
		0,
		false,
		0
	)
	local goal = {
		Rotation = 360,
		Position = UDim2.new(0.321, 0,0.158, 0)
	}
	local tweeno = tw:Create(script.Parent.Parent.ScrollingFrame,tweeninfo,goal)
	tweeno:Play()
	open = true
	elseif open == true then
	local tweeninfo = TweenInfo.new(
		1,
		Enum.EasingStyle.Sine,
		Enum.EasingDirection.Out,
		0,
		false,
		0
	)
	local goal = {
		Rotation = -360,
		Position = UDim2.new(1.2, 0,0.158, 0)
	}
	local tweeno = tw:Create(script.Parent.Parent.ScrollingFrame,tweeninfo,goal)
	tweeno:Play()
	open  = false
	end
end)

unknownu2

Remove the rotation properties from your tween goals and try again. If I recall correctly, ClipsDescendants does not work with rotated GuiObject members.

1 Like

if that is the case, if there is any way to bypass that aka rotate a frame while having it on?

No, there is no way to do so, unfortunately. You will have to forego any manipulations to rotation if you are looking to use a GuiObject with ClipsDescendants enabled.

At the very least, you could make the descendants invisible during rotations and re-enable them after, but that wouldn’t really look good. Any non-zero value applied to rotation will nullify the behaviour of ClipsDescendants.

What a bummer. Should probably suggest that. Anyhoo thanks for informing me!