Script giving Errors

I am trying to finish up the Arachnadrone fight for my game, but for some reason, whenever I try to spawn in a new entity with the boss battle script or try to change the costume of the entity the script is attached to(after Arachnadrone stabilizes after they’re defeated), it gives me errors, and for some reason 2 of them cause the defeated animation to stop working, and the last one gives 2-6 errors each time you try to spawn the acid spit attack, but it manages to spawn one.

the bigger problem is I just made it out of a lack of motivation state, and now I want to feel more unmotivated because I cannot figure this out

Link to the script: PlayCanvas | HTML5 Game Engine

the parts that need fixing are under the comments: “attack with acid” for the acid attack problem, and “Spawn Helmet when the helmet breaks off” for the helmet spawning and the sprite animation errors

One of the issues is that you have this script attached to an entity and not filled the attributes. Is the script meant to be attached to this entity (Last New Entity)?

You will need to provide steps on how to reduce the errors you are seeing and what the errors are (what’s the error message) for anyone to meaningfully help you

ah. thanks, I struggled so much, and I forgot that I did that, thank you

that was supposed to disappear once you beat Arachnadrone