Right Arm is not valid member of Model (R6)

You can write your topic however you want, but you need to answer these questions:

  1. What do you want to achieve? Keep it simple and clear!
    when you click on clickable object, you will pick it up and it will stay in your hand
    (and yes i am following gnomecode tutorials)

  2. What is the issue? Include screenshots / videos if possible!
    Whenever I click on the key, it will not pick up and present an error named Right Arm is not valid member of model worksapce Playername (in this case, S_VInnie)
    Also Im using r6 for my game and noticed that Right Arm has a space in it, but I do not know how to figure this out, or how to specify the Right Arm so it could be a valid member and grab the key


    I did try local RightArm = character:FindFirstChild(“Right Arm”) and local RightArm = character:WaitForChild(“Right Arm”) and put it in the same script

but it still represented me with the same error

the script is also A normal script, not a local or module.

script.Parent.MouseClick:Connect(function(player)
	local character = player.Character
	local key = script.Parent.Parent
	
	key.Parent = character
	key.CFrame = character.RightArm.CFrame
	
	local weld = Instance.new("WeldConstraint")
	weld.Parent = key
	weld.Part0 = key
	weld.Part1 = character.RightArm
	
end)```

try this:

weld.Part1 = character["Right Arm"]

and

key.CFrame = character["Right Arm"].CFrame

If you are ever referring to something with a space in the name, always use [“name goes here”].

1 Like

Should be Character["Right Arm"] not Character.RightArm, the whitespace is necessary.

1 Like