I assume its looking for the humanoid in the character before the character has loaded into the game yet despite what I try, it always comes up nil. How would I go about waiting for the character to load before accessing it? I tried WaitForChild that says infinite yield for Character, which I didn't think was a problem yet no other error comes up and it does not work.
local p = game.Players.LocalPlayer
local gui = script.Parent.Stats.Health
local c = p.Character
local h = c.Humanoid
while true do
wait()
gui.Text = "Health " .. h.Health .. "/100"
end
Error is on the third like saying it's nil. Any help is appreciated :)

6 comments
What an absolutely "poor" answer. I don't think you understand what FE does.
Yes, you're right, I don't. I included "I'm pretty sure" because I'm just a beginner scripter. I just have an intention to help.
Understand something before trying to teach it.
I removed my downvote because I understand how harsh people this this site can be, including me. This answer was wrong though, and that was why I thought it deserved a downvote. My sugestion would be to not answer questions you don't understand.
Alright. I try not to, which is why I leave a LOT of questions alone, but this one, I just thought I knew. My bad.
My ego is very high.