Currently with a project I’m working on, there are a lot of buttons and I was wondering if I’m able to animate them all at the same time by their Class instead of having them animated individually.
This is my current setup right now:
local holder = script.Parent
local MainUI = holder.Holder
local Blur = holder.Blur
local CommandHolder = MainUI.Commands
local InputHolder = MainUI.Inputs
local Buttons = CommandHolder:GetChildren()
local Inputs = InputHolder:GetChildren()
(Under Commands are TextButtons and under Inputs are TextBoxes)
local function tweenUi(v)
-- what ever you want to do to ui
end
for _, v in pairs(frame:GetChildren()) do
if v:IsA("WhatClassYouWant") then
tweenUi(v)
end
end