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

Health bar removing script and new health bar. How?

Asked by 10 years ago

How do I make a script where I can make my own custom health bar actually work and how can I make a script that will remove the original health bar? Please list these scripts for me as an answer because I don't know this kind of scripting and I don't know what to search on the wiki to get information on how to.

2 answers

Log in to vote
0
Answered by 10 years ago

I'm sorry but this is not a request site but since it's pretty much easy i'll give you an example how to call the health and record it to a Gui

Health = Humanoid.Health -- Define it

script.Parent.HealthBar:TweenSize(UDim2.new(Health.Value/100 * math.sin(math.pi / 2), 0, 1, 0), "Out", "Sine", 0.8, true) -- I understand the UDim2 is advanced and it's like that for a reason of my style of coding. Also It's a tweensize for added functionality. This was actually taken from something I coded
0
I know this is not a request site but I've tried the script already and it didn't work. flamenathan327 20 — 10y
Ad
Log in to vote
0
Answered by
Tesouro 407 Moderation Voter
10 years ago

You should look the health bar script to see how it works, just run solo mode in studio and check look for it in your character. If you want to remove it, it's placed in the playergui, or you can use this methoiid.

Answer this question