i am a beginner developer, and i am scripting a title shop. however, the “color” button script wont seem to run more than once. ive tried to make another for loop that loops through this loop a certain amount of times, but it didnt work. im a beginner scripter, so i probably didnt even do it right. this is a local script. here is the script:
local titleScroll = player:WaitForChild("PlayerGui"):WaitForChild("TitlesGui"):WaitForChild("TitlesFrame"):WaitForChild("TitlesScroll")
local colorGui = player:WaitForChild("PlayerGui"):WaitForChild("ColorGui")
local colorButton = titleScroll:GetDescendants()
for _, descendant in pairs(colorButton) do
if descendant:IsA("TextButton") and descendant.Name == "ColorButton" then
descendant.MouseButton1Click:Connect(function()
if true then
titleScroll.Parent.Parent.Enabled = false
colorGui.Enabled = true
end
end)
end
end
please help