Advertisement
AydenBlue

Roblox Music Mute button Local Script.

Apr 7th, 2020
4,385
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.30 KB | None | 0 0
  1. -- Code made by Aydenbluewells. Put in the ScreenGUI text button and make it a local script.
  2.  
  3. local music = game.Workspace.Music -- Name the song "Music"
  4.  
  5. script.Parent.MouseButton1Click:Connect(function()
  6.  
  7. if music.Volume == 0 then
  8.  
  9.  music.Volume = 1
  10.  
  11.  else
  12.  
  13.   music.Volume = 0
  14.  
  15. end
  16. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement