Attempt to Index nil with 'Left Arm'

  1. I am trying to make it so arms fall off when this function is called.

  2. Everytime the function is called, it says that it is attempting to index nil with ‘Left Arm’

function make(part)
	char = script.Parent
	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.Torso["Left Shoulder"].Part1 = nil
char.Humanoid:TakeDamage(10)
wait(math.random(5,20))
char.Torso["Right Shoulder"].Part1 = nil
char.Humanoid:TakeDamage(10)

You are defining char in the function so it never gets defined before being used, move it out of the make function

Is your character R6 or R15?
Call FindFirstChild on character and check if the “left arm” exists.

It is R6, now it is saying could not find Left Arm