I have a double health bar, for 2 different kinds of health, you can say :health me 50. How can I make a custom admin command and connect it, so I could say :shield me 50 perhaps to change the second health bar
COMMUNITY QUESTION
Health Bar and Custom Commands Question?
0 answers
No public answers were preserved for this question.
This discussion is preserved as it was. New answers, comments, and votes are closed.

5 comments
I you know how to change the first, why can't you change the second?
Because the health command is already built into the admin, I need a second command that is a different piece and is not connected to the first
Why don't you build the second one into the admin if you have the first built into the admin already?
Well, you could connect the second health bar to a dummy placed far away, and write a script that increases or decreases health of that dummy.
(in this case "char" should be defined) And also, make it so if char.Torso.OnTouched:connect(function(hit) and then make it so if hit then game.Workspace.(the assigned dummy).Humanoid.Health (I dont know how to decrease health so you try..)