Hello, I am trying change the text of a TextLabel dependant the Health of the humanoid.
I tried whith that script:
while true do local label = script.Parent local label.Text = script.Parent.Text local labelText == game.Players.LocalPlayer.Character.Humanoid.Health end
¿what's wrong?
local Players = game:GetService("Players") local LocalPlayer = Players.LocalPlayer local TextLabel = script.Parent while wait() do TextLabel.Text = LocalPlayer.Character.Humanoid.Health end
Your issue is that you're using incorrect variable naming. [Line 3]
I hope this fixes your issue.