HumanoidRootPart bug

Hi, I don’t understand why my character’s humanoidRootPart doesn’t identify for these two scripts. I put a ‘StarterCharacter’ and there is a HuamoidRootPart but it doesn’t work. I put the 2 scripts below.

Local Footstep.txt (1.2 KB)
Double Jump.txt (1.7 KB)

Thank you!

It says “Workspace.Players.BenGamerDHN” in the errors, when it should be reffering to Workspace.BenGamerDHN

2 Likes

So what should i do ? I didn’t really understand

1 Like

local hrp = char:WaitForChild(“HumanoidRootPart”)
local hum = char:WaitForChild(“Humanoid”)

ur issue probably happens because u set hrp to variable before it even exists, always use WaitForChild in these instances

1 Like

Is this in a local or server script?

1 Like

the script is probably trying to index the parts before the game loaded them
try using :WaitForChild()

1 Like

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