Need help fixing bug in a Rhythm Game DDR type system

Hi! Its my first time trying to code a game for a friend and its kind of ambitious, but I wanted to create a classic rhythm game (like friday night funkin), and I found an old plugin, TimedAttacks by TamFey, which has a demo world. The demo world worked great, even when I tried to make my own event and pattern, but when I tried following the exact same steps in a new world, i got this error message;

1780646234194.png


I dont code, so im struggling to understand this error message. Any idea what the issue is? I'll attach the demo world i used as well but if anyones run into anything similar please let me know!! (sorry if this was placed in the wrong thread)

I found where the error is, but I'm not sure how to fix it.
1780652101775.png

After searching, I read it was because the ".targetActions" was undefined, so I was messing around and deleted everything that contained the ".targetActions" and that made the game work again, but im worried it might have an impact on any other function?
1780652939485.png


Any advice on how to fix this would really be appreciated!!

Original thread: https://forums.rpgmakerweb.com/threads/need-help-fixing-bug-in-a-rhythm-game-ddr-type-system.183921/