I'm trying to make a mute music button and am still quite new to scripting. I've got as far as making the remote event and two scripts needed, but when clicked it mutes the music for everyone rather than the person clicking, can anyone find a way around this?
Gui Button: (LocalScript)
script.Parent.MouseButton1Click:Connect(function()
game:GetService("ReplicatedStorage").RemoteEvents.MuteMusic:FireServer()
end)
Receiving Script: (Script)
game:GetService("ReplicatedStorage").RemoteEvents.MuteMusic.OnServerEvent:Connect(function(Player)
script.Parent.Volume = "0"
end)

1 comment
the code kinda cut off sorry