local function selectAnimations()
for i, textButton in textButtons do
textButton.MouseButton1Click:Connect(function()
local enabled = textButton.Parent:GetAttribute("enabled")
print(enabled)
if enabled then
textButton.Parent:SetAttribute("enabled", false)
textButton.disableColor.Enabled = true
textButton.enableColor.Enabled = false
else
textButton.Parent:SetAttribute("enabled", true)
textButton.disableColor.Enabled = false
textButton.enableColor.Enabled = true
end
end)
end
end
It prints false and in the same frame it prints true ???