I am trying to create a project where you have to wind a music box (it’s a fnaf clone) and when the player right clicks on the music box, it tells the music box to wind. For this to work, I use this.app.fire(), but it never does what I want. It always gives me this error:
Then when the music box unwinds all the way, it is supposed to use this.app.fire() to “kill” the player, but it gives me his error:
I have searched for people who had the same error, but I could only find people using this.fire(). I tried using this.fire() and it gave me the same error, even with the “fixed” code.
Can someone help?