So basically, what the title says. I have 5 buttons that when clicked, I want them to change their TextColor3 property but when I click on another button, the button I clicked before restores itself to it’s original greyed out state.
This is the current behavior of those buttons.
I’m getting those TextButtons
in a numeric loop because adding one by one is a no-go:
-- // vars //
local PresetNames = script.Parent.Background.Presets:GetChildren()
-- // functions//
for i = 1, #PresetNames do
local Preset = PresetNames[i]
if Preset:isA("TextButton") then
Preset.MouseButton1Click:Connect(function()
-- code here
end)
end
end
However, I’ve tried adding a BoolValue to each button with absolutely no idea how to make this work.
Any kind of help would be appreciated.