for _, element in ipairs(Descendants) do
local propertiesToTween = {}
if element:IsA("Frame") then
propertiesToTween.BackgroundTransparency = 1
elseif element:IsA("TextLabel") then
propertiesToTween.TextTransparency = 1
elseif element.Transparency ~= nil then
propertiesToTween.Transparency = 1
else
continue
end
game.TweenService:Create(element, TweenInfo.new(0.5), propertiesToTween):Play()
end
im trying to tween the transparency of a ui that has it