Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

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

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.

4 comments

0

And yes, I did use WaitForChild, but I got an Infinite yield possible warning.

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

0

Does RightHand have a space? Such as Right Hand?

0

Right Hand does have a space, so make sure you add that

1 answer

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. ;)

This discussion is preserved as it was. New answers, comments, and votes are closed.