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
Curscs
(Curse)
July 21, 2024, 2:02am
#4
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
Storche
(Storche)
July 21, 2024, 2:49am
#5
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
system
(system)
Closed
August 4, 2024, 9:30am
#7
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.