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)
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()