I made a mute button and used this script but it doesn't seem to work. Any ideas?
local sound = script.Parent.Parent.Sound local muted = false script.Parent.MouseButton1Click:Connect(function() if muted then sound.Volume = 0.3 muted = false script.Parent.Text = "Mute" else sound.Volume = 0 muted = true script.Parent.Text = "Muted" end end)