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