Hey, how can I add a random sound picker to my script?
And why do I have to disable and enable it with a button before it plays a song?
I’m using a gui to mute and unmute the music.
The script I used:
local sound = true
script.Parent.MouseButton1Click:Connect(function()
if sound then
script.Parent.Text = “Music: Off”
sound = false
game.SoundService.Sound.Playing = false
elseif not sound then
script.Parent.Text = “Music: On”
sound = true
game.SoundService.Sound.Playing = true
end
end)
Please don’t blame me, I’m a total noob at scripting. I’ll appreciate every answer.
- IchbinFelix