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

"Right arm is not a valid member of Quest1" Why the error?

The localscript in the TextButton

local Right_Arm = game.Workspace.Quest1["Right Arm"]
local Button = script.Parent
Button.MouseButton1Click:Connect(function()
	wait(0.1)
	workspace.Dummy["Right_Arm"].Position = ("39.4, 3.512, -30.763")
	wait(0.1)
	workspace.Handgun.GripForward = ("-0.002, -0, 1")
	wait(0.1)
	workspace.Handgun.GripPos = ("0, -0.35, -0.1")
	wait(0.1)
	workspace.Handgun.GripRight = ("-0.998, 0.055, -0.002")
	wait(0.1)
	workspace.Handgun.GripUp = ("0.055, 0.998, 0")
end)

3 comments

0

@OFF_S4LE please tell us what line is broken

0

Line 1, lmao.

0

Is the Rig R6 or R15

2 answers

It's probably because Right Arm doesn't exist inside the Quest1.

If it does exist, It's probably because it hasn't loaded yet, try local Right_Arm = game.Workspace.Quest1:WaitForChild("Right Arm")

By the way, make sure you check if you added a capital when it's supposed to be lower case.

Also, on this line: workspace.Dummy["Right_Arm"].Position = ("39.4, 3.512, -30.763") Change it to: workspace.Dummy["Right Arm"].Position = ("39.4, 3.512, -30.763")

1 comment

0

I like how you didn't comment on the fact that he's using Vector3 incorrectly lol

try doing game.Workspace["Quest1"]:WaitForChild("Right Arm")

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