Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

How to Mute sound?

So my game plays music. I made a button and all to mute the Music but it wont work. Not only that, I kinda feel like this will mute the music in the server not only the one person. Little help please? Heres the code:

function onClicked(player) 
game.Workspace.Music.Music:pause()
end 
script.Parent.MouseButton1Click:connect(onClicked)

1 comment

0

Do you want it to mute for Everyone or the person who clicked?

1 answer

If you want to mute it for just one person you would have to create a new sound Instance for each person not have one sound Instance for everyone.

LocalScript:

local Sound = Instance.new("Sound", game.Lighting)
Sound.SoundId = "rbxassetid:\\1111"
Sound:Play()

2 comments

0

Please refrain from downvoting correct answers just to get kicks

0

I was not me.

This discussion is preserved as it was. New answers, comments, and votes are closed.