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)
