How would I go about tweening the transparency of a frame?

Is that even possible? I’ve been searching it up, but all the answers are about Background Transparency (not what I’m looking for), so I thought I might as well post about it myself.

6 Likes

Yes, just tween the BackgroundTransparency property of Frames.

1 Like

I said background transparency is not what I’m looking for.

2 Likes

Well there is no other transparency, so not sure what you want.

2 Likes

I want to tween the overall transparency of the frame, including every UI element inside it.

2 Likes

for example? Like tweening the frame and its descendants?

3 Likes

Yes! I want them to fade in and out.

2 Likes

You will have to tween the background transparency of the frame and all its descendants manually.

for i,v in ipairs(Frame:GetDescendants()) do
   if v:IsA("Frame") then
     v.BackgroundTransparency = -- tween here
   end
end
2 Likes

I believe this can help you

3 Likes

That’s disappointing. I thought Studio would have a feature this simple.

1 Like

iterate through each descendant of the frame and tween their transparency properties.

1 Like

@Puwgen Showed something called CanvasGroup. I never knew about that. It might be what you are looking for!

3 Likes

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