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

Health script won't work in FE what can i do?

Asked by 5 years ago
Edited 5 years ago
local heart1 = lPlayerChar.Head.healthStatus.main.h1
local heart2 = lPlayerChar.Head.healthStatus.main.h2
local heart3 = lPlayerChar.Head.healthStatus.main.h3
     if lPlayerHealth >= 75 then
        heart1.Visible = true
        heart2.Visible = true
        heart3.Visible = true
      elseif lPlayerHealth >= 50 then
         heart3.Visible = false
          heart2.Visible = true
           heart1.Visible = true
      elseif lPlayerHealth <= 25 then
                heart1.Visible = true
                  heart2.Visible = false
                   heart3.Visible = false
      elseif lPlayerHealth == 0 then
                      heart1.Visible = false
                        heart2.Visible = false
                           heart3.Visible = false
         end
0
Use code blocks which are ~ so we can read your script correctly, dang it! mixgingengerina10 223 — 5y
0
^^^ lunatic5 409 — 5y
0
You may have to change the tabbing so that we can actually read the code. User#21908 42 — 5y
0
Doesn't it say View Source for you guys? MercenaryUs 0 — 5y
0
thats not what they are talking about, they can see it just fine, what they are saying... is... WHO IN THE WORLD INDENTS THEIR CODE LIKE THAT, avoid making that cool curve effect when indenting your code, it freaks people out :/ fanofpixels 718 — 5y

1 answer

Log in to vote
-1
Answered by 5 years ago

Use the event, "HealthChanged" in Humanoid.

Ad

Answer this question