Attempt to Index nil with 'FindFirstChild'?

What is the problem?

local plr = game.Players.LocalPlayer
local char = plr.Character
local hum = char:FindFirstChild("Humanoid")



while true do
	wait(1)
	hum.HeadScale = hum.HeadScale + 0.1
end

When the script initializes, the LocalPlayer’s character sometimes isn’t loading.

In LocalScripts, you should get character with

local char = plr.Character or plr.CharacterAdded:Wait()

But now it makes this error?

Attempt to Index nil with ‘WaitForChild’

local plr = game.Players.LocalPlayer
local char = plr.CharacterAdded:Wait()
local hum = char:FindFirstChild("Humanoid")
local headscale = hum:WaitForChild("HeadScale")


while true do
	wait(1)
	headscale.Value = headscale.Value + 0.1
end

The same problem is will the humanoid.

local plr = game.Players.LocalPlayer
local char = plr.Character or plr.CharacterAdded:Wait()
local hum = char:WaitForChild("Humanoid")