to give you a sense of what im triyng to do -- once you press play - the audio goes down and it's soundid is set to blank, once you press a music selection, it loads up the soundid and plays it-- however it is now working correctly-
The audio enabled script
function Click()
script.Parent.BackgroundTransparency = 0.5
wait(0.01)
script.Parent.BackgroundTransparency = 1
game.Workspace.Sound.Volume = 0
wait(0.4)
game.Workspace.Sound.Volume = 0.1
wait(0.4)
game.Workspace.Sound.Volume = 0.2
wait(0.4)
game.Workspace.Sound.Volume = 0.3
wait(0.4)
game.Workspace.Sound.Volume = 0.4
wait(0.4)
game.Workspace.Sound.Volume = 0.5
wait(0.4)
game.Workspace.Sound.Volume = 0.6
wait(0.4)
game.Workspace.Sound.Volume = 0.7
wait(0.4)
game.Workspace.Sound.Volume = 0.8
wait(0.4)
game.Workspace.Sound.Volume = 0.9
wait(0.4)
game.Workspace.Sound.Volume = 4
wait(0.4)
game.Workspace.Sound:Play()
wait(0.4)
end
script.Parent.MouseButton1Down:connect(Click)
Selection button -
function Click()
script.Parent.BackgroundTransparency = 0.5
wait(0.01)
script.Parent.BackgroundTransparency = 1
game.Workspace.Sound.Volume = 4
game.Workspace.Sound.SoundId = "158762696"
game.Workspace.Sound:Play()
end
script.Parent.MouseButton1Down:connect(Click)
Output : Sound Workspace.Sound Failed to load 27697743

2 comments
Thanks. I really appreciate it!
Could you accept their answer? It's the best way to show appreciation and let others know that it's the right answer. :)