Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

attempt to index nil with 'FindFirstChild', what does this error mean?

Asked by 3 years ago

I'm trying to use the FindFirstChild on the player in the workspace.

local h = PhysicalPlayer:FindFirstChild("Humanoid")

However, I get the error: local h = PhysicalPlayer:FindFirstChild("Humanoid"), which makes no sense to me.

Please explain.

0
Can you show us the rest of the code? (What physical player is) and what type of script is this? (local or server script) mixgingengerina10 223 — 3y

1 answer

Log in to vote
0
Answered by 3 years ago
Edited 3 years ago

Maybe do character:WaitForChild('Humanoid', 5) as the character may be taking too long to load?

0
or it might be the character dat not loaded, not the humanoid so uh wait for character? BulletproofVast 1033 — 3y
Ad

Answer this question