I have tried to my best to try to fix this script. This is a mute script and I am trying to make it work. The mute part of the script works but when I try to press the text button again it doesn't do anything can you please help!
`m = workspace.Sound.Volume
function Sound()
workspace.Sound.Volume = 0
print'No music'
script.Parent.TextLabel.Visible = true
end
script.Parent.MouseButton1Down:connect(Sound)
function offSound()
workspace.Sound.Volume = 0.8
print'music'
script.Parent.TextLabel.Visible = false
end
script.Parent.MouseButton1Down:connect(Sound)
`

4 comments
Shouldn't line 18 be script.Parent.MouseButton1Down:connect(offSound)
are you trying to toggle on and off?
Yes i am trying to toggle it on and off
I did it was already on loop