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)
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)
This discussion is preserved as it was. New answers, comments, and votes are closed.
3 comments
Try using
hum.HealthChangedand change connect toConnectalso, you can just use game.Players.LocalPlayer for local scripts
Didn't work