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

Custom health GUI won't update?

Asked by 5 years ago

I'm trying to make a health GUI with numbers but it isn't working.

wait(0.5)
local char = script.Parent.Parent.Parent.Character
hum = char.Humanoid
value = hum.Health
hum.Changed:connect(function()
    script.Parent.Text = value
end)


0
Try using `hum.HealthChanged` and change connect to `Connect` vBaRaAx02 1 — 5y
0
also, you can just use game.Players.LocalPlayer for local scripts theking48989987 2147 — 5y
0
Didn't work Jaska008 0 — 5y

Answer this question