execute @a[tag=OptionTime] ~ ~ ~ scoreboard players add @e[name=Time,type=armor_stand] Options 1
execute @a[tag=OptionTime] ~ ~ ~ execute @e[name=Time,score_Options_min=2] ~ ~ ~ scoreboard players set @s Options 0
execute @a[tag=OptionTime] ~ ~ ~ execute @e[name=Time,score_Options_min=0,score_Options=0] ~ ~ ~ blockdata 7 102 12 {Text1:"{\"text\":\"-==*O*==-\",\"clickEvent\":{\"action\":\"run_command\",\"value\":\"scoreboard players tag @p add OptionTime\"},\"color\":\"dark_gray\"}",Text2:"{\"text\":\"Time:\",\"color\":\"dark_aqua\"}",Text3:"{\"text\":\"Day\",\"bold\":true,\"color\":\"gold\"}",Text4:"{\"text\":\"-==*O*==-\",\"color\":\"dark_gray\"}"}
execute @a[tag=OptionTime] ~ ~ ~ execute @e[name=Time,score_Options_min=0,score_Options=0] ~ ~ ~ blockdata 499 102 524 {Text1:"{\"text\":\"-==*O*==-\",\"clickEvent\":{\"action\":\"run_command\",\"value\":\"scoreboard players tag @p add OptionTime\"},\"color\":\"dark_gray\"}",Text2:"{\"text\":\"Time:\",\"color\":\"dark_aqua\"}",Text3:"{\"text\":\"Day\",\"bold\":true,\"color\":\"gold\"}",Text4:"{\"text\":\"-==*O*==-\",\"color\":\"dark_gray\"}"}
execute @a[tag=OptionTime] ~ ~ ~ execute @e[name=Time,score_Options_min=1,score_Options=1] ~ ~ ~ blockdata 7 102 12 {Text1:"{\"text\":\"-==*O*==-\",\"clickEvent\":{\"action\":\"run_command\",\"value\":\"scoreboard players tag @p add OptionTime\"},\"color\":\"dark_gray\"}",Text2:"{\"text\":\"Time:\",\"color\":\"dark_aqua\"}",Text3:"{\"text\":\"Night\",\"bold\":true,\"color\":\"dark_purple\"}",Text4:"{\"text\":\"-==*O*==-\",\"color\":\"dark_gray\"}"}
execute @a[tag=OptionTime] ~ ~ ~ execute @e[name=Time,score_Options_min=1,score_Options=1] ~ ~ ~ blockdata 499 102 524 {Text1:"{\"text\":\"-==*O*==-\",\"clickEvent\":{\"action\":\"run_command\",\"value\":\"scoreboard players tag @p add OptionTime\"},\"color\":\"dark_gray\"}",Text2:"{\"text\":\"Time:\",\"color\":\"dark_aqua\"}",Text3:"{\"text\":\"Night\",\"bold\":true,\"color\":\"dark_purple\"}",Text4:"{\"text\":\"-==*O*==-\",\"color\":\"dark_gray\"}"}
execute @a[tag=OptionTime] ~ ~ ~ execute @e[name=Time,score_Options_min=0,score_Options=0] ~ ~ ~ time set 6000
execute @a[tag=OptionTime] ~ ~ ~ execute @e[name=Time,score_Options_min=0,score_Options=0] ~ ~ ~ kill @e[name=RandomTimerShootingstar,type=area_effect_cloud]
execute @a[tag=OptionTime] ~ ~ ~ execute @e[name=Time,score_Options_min=1,score_Options=1] ~ ~ ~ time set 18000
execute @a[tag=OptionTime] ~ ~ ~ execute @e[name=Time,score_Options_min=1,score_Options=1] ~ ~ ~ function main:lobby/nightsky/initcreateshootingstar

title @a[tag=OptionTime] times 0 50 10
title @a[tag=OptionTime] title {"text":""}
execute @e[name=Time,type=armor_stand,score_Options_min=0,score_Options=0] ~ ~ ~ title @a[tag=OptionTime] subtitle ["",{"text":"You selected: ","color":"aqua"},{"text":"Day","color":"gold","bold":"true"},{"text":".","color":"aqua"}]
execute @e[name=Time,type=armor_stand,score_Options_min=1,score_Options=1] ~ ~ ~ title @a[tag=OptionTime] subtitle ["",{"text":"You selected: ","color":"aqua"},{"text":"Night","color":"dark_purple","bold":"true"},{"text":".","color":"aqua"}]

execute @a[tag=OptionTime] ~ ~ ~ playsound minecraft:ui.button.click master @s ~ ~ ~
scoreboard players tag @a[tag=OptionTime] remove OptionTime