My code only plays Song1
I want it to play Song2 as well for the night time.
script.LocalBackgroundMusic.Parent = game.StarterPlayer.StarterPlayerScripts
game.StarterPlayer.StarterPlayerScripts.LocalBackgroundMusic.Disabled = false
repeat
if game.Lighting.TimeOfDay == "06:00:00" then
script.Song1:Resume()
script.Song2:Stop()
wait()
elseif game.Lighting.TimeOfDay == "20:00:00" then
script.Song1:Stop()
script.Song2:Resume()
wait()
else
wait()
end
until script.EqualTrue.Value == false
script:remove()
Also it needs to stay in correspondance to the mute music clip
local enabled = true
script.Parent.Visible = true
function onClick()
if enabled == false then
script.Parent.Parent.Parent.Parent.PlayerScripts.LocalBackgroundMusic.Sound.Volume = 0.5
enabled = true
script.Parent.Text = "Music: ON"
else
script.Parent.Parent.Parent.Parent.PlayerScripts.LocalBackgroundMusic.Sound.Volume = 0
enabled = false
script.Parent.Text = "Music: OFF"
end
end
script.Parent.MouseButton1Click:connect(onClick)
.

2 comments
Added headings for readability
Thank you so much! I am new to coding and I try to learn on my own to code by youtube videos and everytime I seem to get somewhere with coding, the code is depreciated but I already learned it and Roblox takes it still so it makes things difficult for me when it comes to coding. Thanks AGAIN