tp @e[type=block_display,tag=main_menu] 62 -58 7 -180 0

kill @e[type=text_display,tag=text_speed]
kill @e[type=interaction,tag=text_speed]

execute if score .text_speed dialog matches 0 at @a run playsound minecraft:entity.cat.ambient master @a ~ ~ ~ 10 2
execute if score .text_speed dialog matches 0 run summon interaction ^-1 ^0.75 ^4 {width:3f,height:0.25f,response:1b,Tags:["button","setting","text_speed"],Passengers:[{id:"minecraft:text_display",teleport_duration:1,Rotation:[0F,0F],alignment:"center",Tags:["button","setting","text","text_speed"],transformation:{left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f],translation:[0f,-0.25f,1.5f],scale:[0.75f,0.75f,0.75f]},text:'[{"color":"yellow","text":"Text Speed: "},{"color":"green","text":"[Fast]","bold":true}]',background:7566195}]}

execute if score .text_speed dialog matches 0 run tellraw @a [{"bold":false,"color":"yellow","text":"[Text scroll will be "},{"bold":true,"color":"green","text":"DOUBLED"},{"bold":false,"color":"yellow","text":"]"}]

execute if score .text_speed dialog matches 1 at @a run playsound minecraft:entity.cat.ambient master @a ~ ~ ~ 10 1
execute if score .text_speed dialog matches 1 run summon interaction ^-1 ^0.75 ^4 {width:3f,height:0.25f,response:1b,Tags:["button","setting","text_speed"],Passengers:[{id:"minecraft:text_display",teleport_duration:1,Rotation:[0F,0F],alignment:"center",Tags:["button","setting","text","text_speed"],transformation:{left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f],translation:[0f,-0.25f,1.5f],scale:[0.75f,0.75f,0.75f]},text:'[{"color":"yellow","text":"Text Speed: "},{"color":"gold","text":"[Normal]","bold":true}]',background:7566195}]}

execute if score .text_speed dialog matches 1 run tellraw @a [{"bold":false,"color":"yellow","text":"[Text scroll is "},{"bold":true,"color":"gold","text":"NORMAL"},{"bold":false,"color":"yellow","text":"]"}]

execute if score .text_speed dialog matches 2 at @a run playsound minecraft:entity.cat.ambient master @a ~ ~ ~ 10 0.5
execute if score .text_speed dialog matches 2 run summon interaction ^-1 ^0.75 ^4 {width:3f,height:0.25f,response:1b,Tags:["button","setting","text_speed"],Passengers:[{id:"minecraft:text_display",teleport_duration:1,Rotation:[0F,0F],alignment:"center",Tags:["button","setting","text","text_speed"],transformation:{left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f],translation:[0f,-0.25f,1.5f],scale:[0.75f,0.75f,0.75f]},text:'[{"color":"yellow","text":"Text Speed: "},{"color":"red","text":"[Grandma]","bold":true}]',background:7566195}]}

execute if score .text_speed dialog matches 2 run tellraw @a [{"bold":false,"color":"yellow","text":"[Text scroll will be "},{"bold":true,"color":"red","text":"TWICE AS SLOW"},{"bold":false,"color":"yellow","text":"]"}]