anyone know why I'm getting this error trying to call buttonSelect in my localscript
local selectColorUI = script.Parent
local selectFolder = selectColorUI:WaitForChild("Select")
local colorSelection = require(game.ReplicatedStorage.Framework.Client.Controllers.UIController.RoundUI.ColorSelection)
print(colorSelection)
local buttons = {}
for i, child in ipairs(selectFolder:GetDescendants()) do
print("iterating")
if child:IsA("ImageButton") then
buttons[i] = child
print("found button")
print(buttons[i])
end
end
for i, button in pairs(buttons) do
button.MouseButton1Click:Connect(function()
colorSelection:buttonSelect(button)
end)
end```
** You are now Level 1! **