local health = game.Players.LocalPlayer.Humanoid.Health local text = script.Parent.TextBox.Text while wait() do text = "Health : ".. health.. "" end
Console : Humanoid is not a valid member of Player What's the right way? I haven't scripted in forever so I forgot most of what I knew.
The humanoid is located in the character's head, not the player. Your script should look like this:
local health = game.Players.LocalPlayer.Character.Humanoid.Health local text = script.Parent.TextBox.Text while wait() do text = "Health : ".. health.. "" end