Problem adding extra limb to character through script

I just want to add an animatable gun onto a players arm when a button is pressed, but for some reason the gun falls through the world?

Event.OnServerEvent:Connect(function(plr)
	
	local character = plr.Character
	local gunclone = GunMesh:Clone()
	
	local joint = Instance.new('Motor6D')
	joint.Parent = character:FindFirstChild('RightArm')
	
	joint.Part0 = character:FindFirstChild('RightArm')
	joint.Part1 = gunclone
	
	joint.MaxVelocity = math.huge
	
	joint.C0 = CFrame.new(Vector3.new(0, -0.5, -0.3), Vector3.new(0, 180, 180))
	
	joint.C1 = CFrame.new(Vector3.new(0, -0.3, 0.1), Vector3.new(0, 0, 0))

	gunclone.Parent = character

	joint.Enabled = true
	
end)

Am I missing something?
Or is this simply not possible?

oh
i forgot to put a space in “RightArm”
welp