Hi
How do I make this a checkbox? I want it to turn on and off audio. This my localscript and it’s not working on the end half.
local audio = game.SoundService.Backgroundmusic
local checkbox = script.Parent
script.Parent.MouseButton1Click:Connect(function()
checkbox.Visible = not checkbox.Visible
if checkbox.Visible then
audio.Volume = 1
else
audio.Volume = 0
end
end)