scoreboard players remove @s ambientTime1 1

execute if entity @s[scores={ambientTime1=..0}] run scoreboard players add @s ambientCycle1 1
execute if entity @s[scores={ambientTime1=..0,ambientCycle1=5..}] run scoreboard players set @s ambientCycle1 1

execute if entity @s[scores={ambientTime1=..0,ambientCycle1=1}] run playsound minecraft:do_sfx/street_ambience ambient @s ~ ~10 ~ 1 1
execute if entity @s[scores={ambientTime1=..0,ambientCycle1=2}] run playsound minecraft:do_sfx/street_ambience ambient @s ~ ~10 ~ 1 .9
execute if entity @s[scores={ambientTime1=..0,ambientCycle1=3}] run playsound minecraft:do_sfx/street_ambience ambient @s ~ ~10 ~ 1 1
execute if entity @s[scores={ambientTime1=..0,ambientCycle1=4}] run playsound minecraft:do_sfx/street_ambience ambient @s ~ ~10 ~ 1 1.1

execute if entity @s[scores={ambientTime1=..0}] run scoreboard players set @s ambientTime1 987



scoreboard players remove @s ambientTime2 1

execute if entity @s[scores={ambientTime2=..0}] run scoreboard players add @s ambientCycle2 1
execute if entity @s[scores={ambientTime2=..0,ambientCycle2=9..}] run scoreboard players set @s ambientCycle2 1

execute if entity @s[scores={ambientTime2=..0,ambientCycle2=1}] run playsound minecraft:do_sfx/street_ambience_2 ambient @s ~ ~10 ~ 1 1
execute if entity @s[scores={ambientTime2=..0,ambientCycle2=8}] run playsound minecraft:do_sfx/street_ambience_3 ambient @s ~ ~10 ~ 1 1
execute if entity @s[scores={ambientTime2=..0,ambientCycle2=3}] run playsound minecraft:do_sfx/street_ambience_2 ambient @s ~ ~10 ~ 1 1.1
execute if entity @s[scores={ambientTime2=..0,ambientCycle2=4}] run playsound minecraft:do_sfx/street_ambience_3 ambient @s ~ ~10 ~ 1 1.1
execute if entity @s[scores={ambientTime2=..0,ambientCycle2=5}] run playsound minecraft:do_sfx/street_ambience_2 ambient @s ~ ~10 ~ 1 1
execute if entity @s[scores={ambientTime2=..0,ambientCycle2=6}] run playsound minecraft:do_sfx/street_ambience_3 ambient @s ~ ~10 ~ 1 1
execute if entity @s[scores={ambientTime2=..0,ambientCycle2=7}] run playsound minecraft:do_sfx/street_ambience_2 ambient @s ~ ~10 ~ 1 .9
execute if entity @s[scores={ambientTime2=..0,ambientCycle2=2}] run playsound minecraft:do_sfx/street_ambience_3 ambient @s ~ ~10 ~ 1 .9

execute if entity @s[scores={ambientTime2=..0,ambientCycle2=1}] run scoreboard players set @s ambientTime2 500
execute if entity @s[scores={ambientTime2=..0,ambientCycle2=2}] run scoreboard players set @s ambientTime2 450
execute if entity @s[scores={ambientTime2=..0,ambientCycle2=3}] run scoreboard players set @s ambientTime2 667
execute if entity @s[scores={ambientTime2=..0,ambientCycle2=4}] run scoreboard players set @s ambientTime2 800
execute if entity @s[scores={ambientTime2=..0,ambientCycle2=5}] run scoreboard players set @s ambientTime2 250
execute if entity @s[scores={ambientTime2=..0,ambientCycle2=6}] run scoreboard players set @s ambientTime2 576
execute if entity @s[scores={ambientTime2=..0,ambientCycle2=7}] run scoreboard players set @s ambientTime2 601
execute if entity @s[scores={ambientTime2=..0,ambientCycle2=8}] run scoreboard players set @s ambientTime2 377