
scoreboard players add @e[name=c] introtick 1
execute as @e[name=c,scores={introtick=2}] run tp @a -184 5 40 facing -180 5 40
execute as @e[name=c,scores={introtick=2}] run gamemode a @a
execute as @e[name=c,scores={introtick=3}] run time set midnight
execute as @e[name=c,scores={introtick=3}] run tag @a remove lobbytp
execute as @e[name=c,scores={introtick=3}] run tag @a remove schooltp
execute as @e[name=c,scores={introtick=3}] run tag @a remove partytp
execute as @e[name=c,scores={introtick=3}] run tag @a remove pooltp
execute as @e[name=c,scores={introtick=3}] run tag @a remove final
execute as @e[name=c,scores={introtick=3}] run tag @a remove restart
execute as @e[name=c,scores={introtick=2}] run title @a title 
execute as @e[name=c,scores={introtick=3}] run playsound br.party_clown @a
execute as @e[name=c,scores={introtick=8}] run tellraw @a {"rawtext":[{"text":"§eThe school bell rings, it's time for you to get to class."}]}
execute as @e[name=c,scores={introtick=8}] run spawnpoint @a -201 5 -31
execute as @e[name=c,scores={introtick=8}] run setworldspawn -188 5 13
execute as @e[name=c,scores={introtick=8}] run playsound br.school_bell @a

execute as @e[name=c,scores={introtick=8}] run title @a title 
execute as @e[name=c,scores={introtick=9..}] run titleraw @a actionbar {"rawtext":[{"text":"§6Enter the classroom."}]}

execute as @e[name=c,scores={introtick=9..}] run particle bf:path -179 5 40
execute as @e[name=c,scores={introtick=9..}] run particle bf:path -173 5 40


execute as @e[name=c,scores={introtick=1..}] positioned as @a[x=-173,y=5,z=40,r=4] run scoreboard players set @s enterbackrooms 1
execute as @e[name=c,scores={introtick=1..}] positioned as @a[x=-173,y=5,z=40,r=4] run scoreboard players set @s startmap 0
execute as @e[name=c,scores={introtick=1..}] positioned as @a[x=-173,y=5,z=40,r=4] run scoreboard players set @s introtick 1