this is the script
the title says all
local muted = false script.Parent.MouseButton1Click:Connect(function() if muted == false then for i,player in pairs(game.Players:GetChildren()) do if player.Character.Head:FindFirstChild("Sound") ~= nil then if player ~= game.Players.LocalPlayer then player.Character.Head:FindFirstChild("Sound").Volume = 0 end end end muted = true else for i,player in pairs(game.Players:GetChildren()) do if player.Character.Head:FindFirstChild("Sound") ~= nil then if player ~= game.Players.LocalPlayer then player.Character.Head:FindFirstChild("Sound").Volume = 25 end end end muted = false end end)
You could try modifying the script so it works for only one player (LocalPlayer) or doing something like putting it in a Local Script
Or
You could use Filtering Enabled
Closed as Non-Descriptive by hiimgoodpack, lukeb50, and abnotaddable
This question has been closed because its title or content does not adequately describe the problem you are trying to solve.
Please ensure that your question pertains to your actual problem, rather than your attempted solution. That is, you were trying to solve problem X, and you thought solution Y would work, but instead of asking about X when you ran into trouble, you asked about Y.
Why was this question closed?