scoreboard players add @s generic_timer 1

execute store result storage pctf:rand input.x int 1 run random value -180..180
execute store result storage pctf:rand input.y int 1 run random value -90..90

function pctf:logic/items/scrolls/black_hole/after/fx with storage pctf:rand input

execute if score @s generic_timer matches 40.. run kill @s