wait(5)
Humanoid = game.Players.LocalPlayer.Character.Humanoid
Humanoid.Health.Changed:connect(function(Val)
maxHealth = Humanoid.MaxHealth
script.Parent.Health.Text = ("" .. Val .. "/" .. maxHealth "")
end)
It isn't working and I can't exactly figure out why or how I can fix it.
I'm trying to make it so when a player's health is changed it displays their new health in the form of text on a GUI.
~egmen |