script.Parent.MouseButton1Click:connect(function()
game.Workspace.Music.IntoTheForest.Volume = 0
if game.Workspace.Music.IntoTheForest.Volume>.1 then
game.Workspace.Music.IntoTheForest.Volume = 1
end
end)
So this is my script. I'm trying to make a button that will turn my song (IntoTheForest) on and off. I probably did something very wrong because I am a beginner and was experimenting with the use of if and then. It didn't work, and no errors appeared in the Output. What did I do wrong? Also, turning it off works, but it can't be turned back on. I need assistance with that part of the script.

2 comments
Hello. You do not have any syntax errors which is why you do not see any errors in the output, however you did not use audio correctly. Please refer to this wiki article on how to add audio into your game: http://wiki.roblox.com/index.php?title=Sounds#Add_with_Script . P.S.: Are you excited about school letting out?
thank you! & yes, I am excited