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)


3 comments

0

Try using hum.HealthChanged and change connect to Connect

0

also, you can just use game.Players.LocalPlayer for local scripts

0

Didn't work