I have been trying to get an attachable to animate without adjusting any player files.
I have tried using the following script but get the error as shown:
world.afterEvents.itemUse.subscribe(({ itemStack, source }) => {
source.playSound("item.book.page_turn");
world.sendMessage("Test");
source.playAnimation("animation.humanoid.attack.rotations");
});```
```[Scripting][error]-TypeError: not a function at <anonymous> (main.js:7)```