Hey guys!
I wanted to show the health of a player, in a gui. I can't seem to access it.
text = script.Parent text.Text = game.Players.LocalPlayer.Health
The result is an error. Any ideas?
The issue is that you are looking for the health inside the player. To easily access the character from the local player quite simple! Just do this
text = script.Parent text.Text = game.Players.LocalPlayer.Character.Humanoid.Health