Do that one before the sub loop.
I- , im dumb lmao. So where do I put it ?
Also the one you sent gave me an error. But I made one that I think works.
for k,v in pairs(ClassFrames:GetChildren()) do
--This loop iterates over each class
local elements = v:GetDescendants()
for i = 1, #elements do
--This loop interates over all the elements within the class.
if elements[i]:IsA("Frame") then
if(elements[i].BackgroundTransparency)then
local tif3 = TweenInfo.new(1,Enum.EasingStyle.Quad,Enum.EasingDirection.Out)
local twC = tweenservice:Create(elements[i], tif3, {BackgroundTransparency = 0})
twC:Play()
end
end
end
end
We’re still missing the main “Class1Frame” though.
for k,v in pairs(ClassFrames:GetChildren()) do
if(not(v:IsA("Frame")))then continue end --Skip if not a frame
--This loop iterates over each class
--Main class Tween HERE
local elements = v:GetDescendants()
for i = 1, #elements do
--This loop interates over all the elements within the class.
if(elements[i].BackgroundTransparency)then
local tif2 = TweenInfo.new(1,Enum.EasingStyle.Quad,Enum.EasingDirection.Out)
local twC = tweenservice:Create(elements[i], tif2, {BackgroundTransparency = 0})
twC:Play()
end
end
end
I think this might of worked. give me a moment.
Thank you for the help! And patience. I’m one hell of a dumb guy… hehe! Have a wonderful day/night!
Yw, glad you got her working.
Why this?
if(not(v:IsA("Frame")))then continue end --Skip if not a frame
When you can do this.
if v:IsA("Frame") then
Sometimes its cleaner looking to read since you don’t have to wrap the rest of the code in the code block.
if v:IsA("Frame") then
--Perhaps 50 lines of code wrapped in this block
--Pushing the "end" keyword so far away from the start
--That it can become confusing which if statement it ends...
end