Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Health Bar and Custom Commands Question?

Asked by 6 years ago

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

0
I you know how to change the first, why can't you change the second? theCJarmy7 1293 — 6y
0
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 camboo6 0 — 6y
0
Why don't you build the second one into the admin if you have the first built into the admin already? theCJarmy7 1293 — 6y
0
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. XionGamerHD 0 — 6y
0
(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..) XionGamerHD 0 — 6y

Answer this question