So i want to do a code that when its left clicked it would mute the music and when right clicked it would unmute music, and the button would be a GUI screen button.
function leftClick()
game.SoundService.vibing.Playing = false
function rightClick()
game.SoundService.vibing.Playing = true
end
script.Parent.MouseButton1Click:Connect(leftClick)
script.Parent.MouseButton2Click:Connect(rightClick)

1 comment
did ya figure it out?