I have made a bossbar UI but I don't know how to code it. The bosses I want are models that have a animate script and a humanoid in them, the bosses have other stuff too.
I want the script to work like this, when a boss from the path (ServerStorage.NPCs) spawns in workspace, a UI appears on the players screen showing the health of the humanoid which is in the bosses.
image of the bossbar health ui: https://imgur.com/a/JthsEnx
image of the path: https://imgur.com/a/2mSt9be
The path of the bosses are below. (mind that NPCs is a folder)
ServerStorage.NPCs --any boss in there that spawns in workspace should enable the bossbar health
Could you also make a script that makes certain bosses not have the healthbar please?
made my own