execute @a[tag=OptionNameTag] ~ ~ ~ scoreboard players add @e[name=NameTag,type=armor_stand] Options 1
execute @a[tag=OptionNameTag] ~ ~ ~ execute @e[name=NameTag,score_Options_min=2] ~ ~ ~ scoreboard players set @s Options 0
execute @a[tag=OptionNameTag] ~ ~ ~ execute @e[name=NameTag,score_Options_min=0,score_Options=0] ~ ~ ~ blockdata 8 101 12 {Text1:"{\"text\":\"-==*O*==-\",\"clickEvent\":{\"action\":\"run_command\",\"value\":\"scoreboard players tag @p add OptionNameTag\"},\"color\":\"dark_gray\"}",Text2:"{\"text\":\"Player name:\",\"color\":\"dark_aqua\"}",Text3:"{\"text\":\"Show\",\"bold\":true,\"color\":\"green\"}",Text4:"{\"text\":\"-==*O*==-\",\"color\":\"dark_gray\"}"}
execute @a[tag=OptionNameTag] ~ ~ ~ execute @e[name=NameTag,score_Options_min=0,score_Options=0] ~ ~ ~ blockdata 500 101 524 {Text1:"{\"text\":\"-==*O*==-\",\"clickEvent\":{\"action\":\"run_command\",\"value\":\"scoreboard players tag @p add OptionNameTag\"},\"color\":\"dark_gray\"}",Text2:"{\"text\":\"Player name:\",\"color\":\"dark_aqua\"}",Text3:"{\"text\":\"Show\",\"bold\":true,\"color\":\"green\"}",Text4:"{\"text\":\"-==*O*==-\",\"color\":\"dark_gray\"}"}
execute @a[tag=OptionNameTag] ~ ~ ~ execute @e[name=NameTag,score_Options_min=1,score_Options=1] ~ ~ ~ blockdata 8 101 12 {Text1:"{\"text\":\"-==*O*==-\",\"clickEvent\":{\"action\":\"run_command\",\"value\":\"scoreboard players tag @p add OptionNameTag\"},\"color\":\"dark_gray\"}",Text2:"{\"text\":\"Player name:\",\"color\":\"dark_aqua\"}",Text3:"{\"text\":\"Hide\",\"bold\":true,\"color\":\"red\"}",Text4:"{\"text\":\"-==*O*==-\",\"color\":\"dark_gray\"}"}
execute @a[tag=OptionNameTag] ~ ~ ~ execute @e[name=NameTag,score_Options_min=1,score_Options=1] ~ ~ ~ blockdata 500 101 524 {Text1:"{\"text\":\"-==*O*==-\",\"clickEvent\":{\"action\":\"run_command\",\"value\":\"scoreboard players tag @p add OptionNameTag\"},\"color\":\"dark_gray\"}",Text2:"{\"text\":\"Player name:\",\"color\":\"dark_aqua\"}",Text3:"{\"text\":\"Hide\",\"bold\":true,\"color\":\"red\"}",Text4:"{\"text\":\"-==*O*==-\",\"color\":\"dark_gray\"}"}
execute @a[tag=OptionNameTag] ~ ~ ~ execute @e[name=NameTag,score_Options_min=0,score_Options=0] ~ ~ ~ scoreboard teams option Innocent nametagVisibility always
execute @a[tag=OptionNameTag] ~ ~ ~ execute @e[name=NameTag,score_Options_min=0,score_Options=0] ~ ~ ~ scoreboard teams option MurderAI nametagVisibility always
execute @a[tag=OptionNameTag] ~ ~ ~ execute @e[name=NameTag,score_Options_min=1,score_Options=1] ~ ~ ~ scoreboard teams option MurderAI nametagVisibility never
execute @a[tag=OptionNameTag] ~ ~ ~ execute @e[name=NameTag,score_Options_min=1,score_Options=1] ~ ~ ~ scoreboard teams option Innocent nametagVisibility never

title @a[tag=OptionNameTag] times 0 50 10
title @a[tag=OptionNameTag] title {"text":""}
execute @e[name=NameTag,type=armor_stand,score_Options_min=0,score_Options=0] ~ ~ ~ title @a[tag=OptionNameTag] subtitle ["",{"text":"The player names will be:","color":"aqua"},{"text":" Shown","color":"dark_aqua","bold":"true"},{"text":".","color":"aqua"}]
execute @e[name=NameTag,type=armor_stand,score_Options_min=1,score_Options=1] ~ ~ ~ title @a[tag=OptionNameTag] subtitle ["",{"text":"The player names will be:","color":"aqua"},{"text":" Hidden","color":"dark_aqua","bold":"true"},{"text":".","color":"aqua"}]

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