Change the trasnparency of a frame and its children

Hello Devs, I have a slight issue.

Currently I want several frames and its children to fade out while another frame fades in, now theres a simple solution, change each of the parts you want to fade out’s transparency, while yes this is an option its not a very efficient option and could reduce performance of the script, if anyone could help me that’d be great!

Im probably being really dumb rn and just can’t think of the correct solution.

try using CanvasGroup instance, pretty sure it would work.

Try to use this local script and put it into frame:

local Frame = script.Parent
function Transparency()
for i,v in pairs(Frame:GetDescendants()) do
      if v.Transparency ~= nil then
            Frame.Transparency = v.Transparency
      end
   end
end
Frame:GetPropertyChangedSignal("Transparency"):Connect(Transparency)

Sorry, i just noticed small error in this script. I just fixed it.

That still isnt the most efficient, but I will look into CanvasGroup Instance.

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