If you click on mute it wont work it just mute server music not for one player but for all players I hope you can help me
Music Script
game.Players.PlayerAdded:connect(function (newPlayer) while true do wait(0) script.Sound:Play() wait(5200) script.Sound:Stop() wait (1) end end)
Mute script
game.Players.PlayerAdded:connect(function (newPlayer) stopped = false sound = game.Workspace.MusicScript.Sound script.Parent.Text = "Mute Music" script.Parent.MouseButton1Down:connect(function() 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)
Use a local script. Local scripts only affect only one person (which is the person who wants to mute the music) rather than the whole server unlike regular scripts.