Yak Heist help!

Why does this not work?

it won’t say anything for some reason. Help plz?

Idk why, but for some reason hero.findEnemies(), hero.findFriends(), and hero.findByType() all don’t work and when trying to use them it gives the bug “attempted to invoke bookmark for [Function]”
Screenshot from 2023-12-22 12-42-44
Only some levels have this problem though, including Yak Heist and Mad Maxer.