execute @e[name=MurderTimeSec,type=armor_stand,score_MurderTime_min=1] ~ ~ ~ scoreboard players add @e[name=MurderTime,type=armor_stand] MurderTime 1
execute @e[name=MurderTime,score_MurderTime_min=20,type=armor_stand] ~ ~ ~ scoreboard players remove @e[name=MurderTimeSec,type=armor_stand] MurderTime 1
scoreboard players set @e[name=MurderTime,score_MurderTime_min=20] MurderTime 0
title @a[tag=Innocent] actionbar ["",{"text":"Role: ","color":"dark_aqua","bold":"true"},{"text":"Innocent","color":"green","bold":"true"},{"text":" - ","color":"dark_aqua","bold":"true"},{"text":"Stay alive for","color":"aqua","bold":"true"},{"text":" "},{"score":{"name":"@e[name=MurderTimeSec]","objective":"MurderTime"},"color":"dark_aqua","bold":"true"},{"text":" sec","color":"dark_aqua","bold":"true"},{"text":" "},{"text":"to win.","color":"aqua","bold":"true"}]
title @a[tag=Freezed] actionbar ["",{"text":"Role: ","color":"dark_aqua","bold":"true"},{"text":"Innocent","color":"green","bold":"true"},{"text":" - ","color":"dark_aqua","bold":"true"},{"text":"Don't die or be saved before","color":"aqua","bold":"true"},{"text":" "},{"score":{"name":"@e[name=MurderTimeSec]","objective":"MurderTime"},"color":"dark_aqua","bold":"true"},{"text":" sec","color":"dark_aqua","bold":"true"},{"text":" "},{"text":"to win.","color":"aqua","bold":"true"}]
title @a[tag=Murder] actionbar ["",{"text":"Role: ","color":"dark_aqua","bold":"true"},{"text":"Hunter","color":"red","bold":"true"},{"text":" - ","color":"dark_aqua","bold":"true"},{"text":"Kill all the Innocent before","color":"aqua","bold":"true"},{"text":" "},{"score":{"name":"@e[name=MurderTimeSec]","objective":"MurderTime"},"color":"dark_aqua","bold":"true"},{"text":" sec","color":"dark_aqua","bold":"true"},{"text":" "},{"text":"to win.","color":"aqua","bold":"true"}]
title @a[tag=Spectator] actionbar ["",{"text":"Time left: ","color":"aqua","bold":"true"},{"score":{"name":"@e[name=MurderTimeSec]","objective":"MurderTime"},"color":"dark_aqua","bold":"true"},{"text":" sec","color":"dark_aqua","bold":"true"},{"text":".","color":"aqua","bold":"true"}]

execute @e[name=MurderTimeSec,type=armor_stand,score_MurderTime_min=300,score_MurderTime=300] ~ ~ ~ execute @e[name=MurderTime,type=armor_stand,score_MurderTime=0] ~ ~ ~ title @a[tag=InGame] times 0 50 20
execute @e[name=MurderTimeSec,type=armor_stand,score_MurderTime_min=300,score_MurderTime=300] ~ ~ ~ execute @e[name=MurderTime,type=armor_stand,score_MurderTime=0] ~ ~ ~ title @a[tag=InGame] title ["",{"text":"5 ","color":"dark_aqua"},{"text":"minutes left!","color":"aqua"}]
execute @e[name=MurderTimeSec,type=armor_stand,score_MurderTime_min=300,score_MurderTime=300] ~ ~ ~ execute @e[name=MurderTime,type=armor_stand,score_MurderTime=0] ~ ~ ~ title @a[tag=Spectator] title ["",{"text":"5 ","color":"dark_aqua"},{"text":"minutes left!","color":"aqua"}]
execute @e[name=MurderTimeSec,type=armor_stand,score_MurderTime_min=240,score_MurderTime=240] ~ ~ ~ execute @e[name=MurderTime,type=armor_stand,score_MurderTime=0] ~ ~ ~ title @a[tag=InGame] times 0 50 20
execute @e[name=MurderTimeSec,type=armor_stand,score_MurderTime_min=240,score_MurderTime=240] ~ ~ ~ execute @e[name=MurderTime,type=armor_stand,score_MurderTime=0] ~ ~ ~ title @a[tag=InGame] title ["",{"text":"4 ","color":"dark_aqua"},{"text":"minutes left!","color":"aqua"}]
execute @e[name=MurderTimeSec,type=armor_stand,score_MurderTime_min=240,score_MurderTime=240] ~ ~ ~ execute @e[name=MurderTime,type=armor_stand,score_MurderTime=0] ~ ~ ~ title @a[tag=Spectator] title ["",{"text":"4 ","color":"dark_aqua"},{"text":"minutes left!","color":"aqua"}]
execute @e[name=MurderTimeSec,type=armor_stand,score_MurderTime_min=180,score_MurderTime=180] ~ ~ ~ execute @e[name=MurderTime,type=armor_stand,score_MurderTime=0] ~ ~ ~ title @a[tag=InGame] times 0 50 20
execute @e[name=MurderTimeSec,type=armor_stand,score_MurderTime_min=180,score_MurderTime=180] ~ ~ ~ execute @e[name=MurderTime,type=armor_stand,score_MurderTime=0] ~ ~ ~ title @a[tag=InGame] title ["",{"text":"3 ","color":"dark_aqua"},{"text":"minutes left!","color":"aqua"}]
execute @e[name=MurderTimeSec,type=armor_stand,score_MurderTime_min=180,score_MurderTime=180] ~ ~ ~ execute @e[name=MurderTime,type=armor_stand,score_MurderTime=0] ~ ~ ~ title @a[tag=Spectator] title ["",{"text":"3 ","color":"dark_aqua"},{"text":"minutes left!","color":"aqua"}]
execute @e[name=MurderTimeSec,type=armor_stand,score_MurderTime_min=120,score_MurderTime=120] ~ ~ ~ execute @e[name=MurderTime,type=armor_stand,score_MurderTime=0] ~ ~ ~ title @a[tag=InGame] times 0 50 20
execute @e[name=MurderTimeSec,type=armor_stand,score_MurderTime_min=120,score_MurderTime=120] ~ ~ ~ execute @e[name=MurderTime,type=armor_stand,score_MurderTime=0] ~ ~ ~ title @a[tag=InGame] title ["",{"text":"2 ","color":"dark_aqua"},{"text":"minutes left!","color":"aqua"}]
execute @e[name=MurderTimeSec,type=armor_stand,score_MurderTime_min=120,score_MurderTime=120] ~ ~ ~ execute @e[name=MurderTime,type=armor_stand,score_MurderTime=0] ~ ~ ~ title @a[tag=Spectator] title ["",{"text":"2 ","color":"dark_aqua"},{"text":"minutes left!","color":"aqua"}]
execute @e[name=MurderTimeSec,type=armor_stand,score_MurderTime_min=60,score_MurderTime=60] ~ ~ ~ execute @e[name=MurderTime,type=armor_stand,score_MurderTime=0] ~ ~ ~ title @a[tag=InGame] times 0 50 20
execute @e[name=MurderTimeSec,type=armor_stand,score_MurderTime_min=60,score_MurderTime=60] ~ ~ ~ execute @e[name=MurderTime,type=armor_stand,score_MurderTime=0] ~ ~ ~ title @a[tag=InGame] title ["",{"text":"1 ","color":"dark_aqua"},{"text":"minute left!","color":"aqua"}]
execute @e[name=MurderTimeSec,type=armor_stand,score_MurderTime_min=60,score_MurderTime=60] ~ ~ ~ execute @e[name=MurderTime,type=armor_stand,score_MurderTime=0] ~ ~ ~ title @a[tag=Spectator] title ["",{"text":"1 ","color":"dark_aqua"},{"text":"minute left!","color":"aqua"}]
execute @e[name=MurderTimeSec,type=armor_stand,score_MurderTime_min=30,score_MurderTime=30] ~ ~ ~ execute @e[name=MurderTime,type=armor_stand,score_MurderTime=0] ~ ~ ~ title @a[tag=InGame] times 0 50 20
execute @e[name=MurderTimeSec,type=armor_stand,score_MurderTime_min=30,score_MurderTime=30] ~ ~ ~ execute @e[name=MurderTime,type=armor_stand,score_MurderTime=0] ~ ~ ~ title @a[tag=InGame] title ["",{"text":"30 ","color":"dark_aqua"},{"text":"seconds left!","color":"aqua"}]
execute @e[name=MurderTimeSec,type=armor_stand,score_MurderTime_min=30,score_MurderTime=30] ~ ~ ~ execute @e[name=MurderTime,type=armor_stand,score_MurderTime=0] ~ ~ ~ title @a[tag=Spectator] title ["",{"text":"30 ","color":"dark_aqua"},{"text":"seconds left!","color":"aqua"}]
execute @e[name=MurderTimeSec,type=armor_stand,score_MurderTime_min=20,score_MurderTime=20] ~ ~ ~ execute @e[name=MurderTime,type=armor_stand,score_MurderTime=0] ~ ~ ~ title @a[tag=InGame] times 0 50 20
execute @e[name=MurderTimeSec,type=armor_stand,score_MurderTime_min=20,score_MurderTime=20] ~ ~ ~ execute @e[name=MurderTime,type=armor_stand,score_MurderTime=0] ~ ~ ~ title @a[tag=InGame] title ["",{"text":"20 ","color":"dark_aqua"},{"text":"seconds left!","color":"aqua"}]
execute @e[name=MurderTimeSec,type=armor_stand,score_MurderTime_min=20,score_MurderTime=20] ~ ~ ~ execute @e[name=MurderTime,type=armor_stand,score_MurderTime=0] ~ ~ ~ title @a[tag=Spectator] title ["",{"text":"20 ","color":"dark_aqua"},{"text":"seconds left!","color":"aqua"}]
execute @e[name=MurderTimeSec,type=armor_stand,score_MurderTime_min=10,score_MurderTime=10] ~ ~ ~ execute @e[name=MurderTime,type=armor_stand,score_MurderTime=0] ~ ~ ~ title @a[tag=InGame] times 0 50 20
execute @e[name=MurderTimeSec,type=armor_stand,score_MurderTime_min=10,score_MurderTime=10] ~ ~ ~ execute @e[name=MurderTime,type=armor_stand,score_MurderTime=0] ~ ~ ~ title @a[tag=InGame] title ["",{"text":"10 ","color":"dark_aqua"},{"text":"seconds left!","color":"aqua"}]
execute @e[name=MurderTimeSec,type=armor_stand,score_MurderTime_min=10,score_MurderTime=10] ~ ~ ~ execute @e[name=MurderTime,type=armor_stand,score_MurderTime=0] ~ ~ ~ title @a[tag=Spectator] title ["",{"text":"10 ","color":"dark_aqua"},{"text":"seconds left!","color":"aqua"}]