I've been trying to find a way to script a button that mutes all the sound for only the local player and when they press it again they unmute all sounds and they return to there original volume so basically making all the music's volume 0 and when unmuting the volume it returns back to the original volume.
Is this possible?
A little code I've tried to work with for workspace below.
for i, object in pairs(game.Workspace:GetDescendants()) do
if object:IsA("Sound") then
object:Volume
end
end
