Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

My custom gui settings button does not turn to Enable after I click Disable?

Asked by 4 years ago

So, I have this settings gui, and once i click "Disable lines" it stays on disable lines and I cant get it to say "Enable lines" after clicking "Disable lines"

Heres the script

local Sound = script.Parent.Parent.Parent.ButtonSound
local Sound2 = script.Parent.Parent.Parent.ButtonClick
local Music3 = script.Parent.Parent.Parent.SettingsMusic

script.Parent.MouseButton1Click:Connect(function()
    script.Parent.Parent.Parent.Parent.Lines.ImageLabel.Visible = false
    script.Parent.Text = "Enable Lines"
end)

script.Parent.MouseEnter:Connect(function()
    Sound:Play()
    script.Parent.BorderSizePixel = 3
end)

script.Parent.MouseLeave:Connect(function()
    Sound.Playing = false
    script.Parent.BorderSizePixel = 0
end)

script.Parent.MouseButton1Click:Connect(function()
    Sound2:Play()
    script.Parent.Parent.Parent.Parent.Lines.ImageLabel.Visible = true
    script.Parent.Text = "Disable Lines"
end)

Answer this question