I builded up a script but i wont work I want when player clicks on mute button the music will mute but not for everyone in the server just that player. Can you help me? Thanks.
game.Players:connect(function(p) stopped = false sound = game.Workspace.MusicScript.Sound script.Parent.Text = "Mute Music" script.Parent.MouseButton1Down:connect(function(p) if stopped == true then sound:Play() stopped = false script.Parent.Text = "Mute Music" else sound:Pause() stopped = true script.Parent.Text = "Unmute Music" end end)
Put the music in the Player's PlayerGui and insert a script inside the sound that checks a value in workspace. Once that changes to true then it will play unless it is muted. When it changes to false then it will stop. What I do to mute the song is
sound.Volume = 0
so that way it won't interfere with the mutescript.
I won't make the scripts for you.