Basic Enemy Script

Is there a way to have a singular script that gives an enemy both a health bar and movement without having to shove a lot of different codes into one object/ragdoll.

You can write all your game code in a single script if you want to. It’s generally considered more maintainable to keep your scripts modular, but if you want to have “healthbar_and_movement.js”, go for it…