Motor6d error or with rightgrip

I try to make fps system in roblox
but i have problem when take the tool and change motor6d part0 from original character hand to fps hand ill send script
in tool requireshandle not work

-- this function works in while when i need to check and change from character motor6d part0 to fps instance
function taketheitemgrip(istake)
-- istake - bool
--fps - fps arms model
	local toparent = nil
	if istake then
		toparent = fps["Right Arm"]
	else
		toparent = rightarm
	end
	if not toparent then
		return
	end
	local motorarm = rightarm:FindFirstChild("ItemGrip")
	local griparm = rightarm:FindFirstChild("RightGrip")
	if griparm then
		if motorarm then 
			griparm.Enabled = false
		else 
			griparm.Enabled = true
			griparm.Part0 = toparent.Parent[griparm.Part0.Name]
		end
	end
	if motorarm then
		motorarm.Part0 = toparent.Parent[motorarm.Part0.Name]
	end
end

(Nvm, I didn’t see the rest of the video)

make sure a Motor6D is also created on the client to prevent latency caused by ping

did you disable “CanCollide” on the arms and the tool model?

cancollide, cantouch, canquery are disabled on arms by fps script