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

Why does it error and say a part is nonexistant when it is clearly there?

Asked by 6 years ago

I get an error that says "RightHand is not a valid member of Model" when I write damage.Parent = char["RightHand"]. Why does this happen? When I go in the game and open the explorer it is clearly there.

0
And yes, I did use WaitForChild, but I got an Infinite yield possible warning. starwars5251977 48 — 6y
0
WaitForChild has an optional arguement, the time it has to wait for game.Workspace:WaitForChild("ChildThatWillNeverExist",87) will wait for that child of workspace for 87 seconds theCJarmy7 1293 — 6y
0
Does `RightHand` have a space? Such as `Right Hand`? TheeDeathCaster 2368 — 6y
0
Right Hand does have a space, so make sure you add that XionGamerHD 0 — 6y

1 answer

Log in to vote
0
Answered by 6 years ago

I found the issue. And no, it is not that "RightHand" has a space, because it doesn't. I just had a clone of myself in the game that was a R6 model and it was trying to find "RightHand" in that, but since R6 does not have a part called "RightHand", it errored. Thank you guys for the help on the discord btw. ;)

Ad

Answer this question