Hey I have noticed that in many games they have a setting that can turn all sounds on or off and now I am wondering how they do it. Is there any roblox function out there? Or do they loop through every sound in the game and turn it off?
Its actually very simple.
Music = script.Parent.Parent.Parent.Sound
hidden = 1
function RunGui()
if hidden == 1 then
hidden = 2
script.Parent.Text = "Unmute Music"
Music.Volume = 0
else
hidden = 1
script.Parent.Text = "Mute Music"
Music.Volume = 0.4
end
end
script.Parent.MouseButton1Down:connect(RunGui)
but you need somethings in the explorer
well yes I am aware of the Volume property, but I thought, there is a better solution to this