Left Arm is not a valid member of Model "Workspace.m_rylandcrabcakes"

  1. I want to destroy left arm, but when I do it says left arm is not a model I am using R6.

2.It says Left Arm is not a valid member of Model “Workspace.m_rylandcrabcakes”

char = script.Parent

function make(part)
	local a = Instance.new("Part",part)
	a.Size = part.Size 
	a.Transparency = 1


	local wa = Instance.new("Weld",a)
	wa.Part0 = a
	wa.Part1 = part
end

make( char["Left Arm"])
make( char["Right Arm"])


char["Left Arm"] = nil
char.Humanoid:TakeDamage(10)
wait(math.random(5,20))
char["Right Arm"] = nil
char.Humanoid:TakeDamage(10)

Maybe use :WaitForChild("Left Arm")?

1 Like

Try saying ‘LeftArm’ instead of ‘Left Arm’

Yep. All the player parts don’t have spaces in their names.

That is because “Left Arm” isn’t a property or anything like that, but a child. I also do wish people made more informed replies instead of just guessing, but oh well.

You might want to make variables for these arms since you’re repeating yourself unnecessarily

local char = script.Parent
local left_arm = char:WaitForChild("Left Arm") :: BasePart
local right_arm = char:WaitForChild("Right Arm") :: BasePart
local humanoid = char:WaitForChild("Humanoid")

-- you should already have the function defined 

make(left_arm)
make(right_arm)

left_arm:Destroy()
humanoid:TakeDamage(10)

task.wait(math.random(5,20))

right_arm:Destroy()
humanoid:TakeDamage(10)
3 Likes