Won’t find child

local char = player:FindFirstChildWhichIsA(“Character”)

local hum = char:WaitForChild(“Humanoid”) 

The chat works, but the hum doesn’t work. The output says attempt to index nil with wait for child.

1 Like

What is the full script?


This seems weird to me, if player is a Player object, change it to

local char = player.Character

Change the char line to this

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

I’ve had this issue before, the character sometimes doesn’t load so add a wait

Player.CharacterAdded:Wait()

Oops, saw you said the same thing as me, apologies.

Thank you but if you look down in the code the place where it says JP += 1 doesn’t work.

@SOTR654
@w99fsproperty

What are you trying to do? blab alba blablablal

Never mind it’s already fixed.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.