Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

How to make a custom health?

I need to know how to make your own custom health

1 comment

0

Custom health bar?

1 answer

✓ Accepted answer

Please don't make requests on this site, your "question" sounds too much like a request.

In order to make a custom health bar you will need to have created the gui first before you can script it. Once you have that, you can have a script similar to the following to resize it to make it act like a health bar. You will need to change the path to the gui of course. This will be a localscript.

player = game.Players.LocalPlayer
hum = player.Character.Humanoid

hum.HealthChanged:connect(function()
	YOURBAR.Size = UDim2.new(0, math.ceil((hum.Health / hum.MaxHealth) * 100), 0, 20) -- replace 20 with the height of your gui bar that is to be resized and also change the path to make it work
end

This discussion is preserved as it was. New answers, comments, and votes are closed.