Advertisement
Guest User

Untitled

a guest
Apr 6th, 2020
252
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.28 KB | None | 0 0
  1. -- Note to self: Put this as a local script inside the screen GUI.
  2.  
  3. local music = game.Workspace.Music -- Name the sound "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