scoreboard players add #screamer_cutscene temp 1

execute if score #screamer_cutscene temp matches 1 as @a at @s run attribute @s movement_speed base set 0
execute if score #screamer_cutscene temp matches 1 as @a at @s run attribute @s jump_strength base set 0
execute if score #screamer_cutscene temp matches 1 run data merge entity @e[tag=quest2_rawr_ai,limit=1] {NoAI:1b}
execute if score #screamer_cutscene temp matches 1 run tag @e[tag=quest2_rawr_ai,limit=1,sort=nearest] add screamer
execute if score #screamer_cutscene temp matches 1 run schedule clear lbdm:quest2/rawr/follow_loop
execute if score #screamer_cutscene temp matches 1 run effect give @a invisibility 2 1 true
execute if score #screamer_cutscene temp matches 1 as @a run playsound lbdm:quest2.death master @s ~ ~ ~ 2 1
execute if score #screamer_cutscene temp matches 1 as @a run playsound lbdm:quest2.death master @s ~ ~ ~ 2 1
execute if score #screamer_cutscene temp matches 1 as @a run playsound lbdm:quest2.death master @s ~ ~ ~ 2 1
execute if score #screamer_cutscene temp matches 1 as @e[tag=aj.quest2_rawr.root] run function animated_java:quest2_rawr/animations/walk/stop
execute if score #screamer_cutscene temp matches 1 as @e[tag=aj.quest2_rawr.root] run function animated_java:quest2_rawr/animations/rawr/play
execute if score #screamer_cutscene temp matches 1..29 as @e[tag=aj.quest2_rawr.root] at @s run tp @a ^ ^ ^0.9 facing entity @s eyes
execute if score #screamer_cutscene temp matches 20 run title @a times 10 20 10
execute if score #screamer_cutscene temp matches 20 run title @a title {"text":"\uA000","font":"extra"}
execute if score #screamer_cutscene temp matches 20 run schedule function lbdm:quest2/start 1.5s
execute if score #screamer_cutscene temp matches 29 as @a at @s run attribute @s movement_speed base set 0.1
execute if score #screamer_cutscene temp matches 30 run scoreboard players set #screamer_cutscene temp 0

execute if score #screamer_cutscene temp matches 1..29 run schedule function lbdm:quest2/rawr/screamer 1t