How do I make a button that mutes the game for the player who presses it?
You could mute all the sounds for the player by setting the sound’s volume to 0.
An example could be something like this:
local sound = Instance.new("Sound");
textButton.MouseButton1Click:Connect(function()
sound.Volume = 0;
end)
1 Like
Thank you really appreciated
I will test it out
1 Like
By the way “;” Thats c# But I will just remove it
Or if you wanted to mute more than just one sound you can make a for loop, which loops through the game, and mutes all of the audios.
1 Like
Also other than c# this could be JavaScript
1 Like
It’s not necessarily exclusive to C# but in Lua it is optional. I write it out of habit
2 Likes