do script.Parent.Equipped:Connect(function()if player==nil then player=(game:GetService("\080\108\097\121\101\114\115")):GetPlayerFromCharacter(script.Parent.Parent)end if character==nil or character.Parent==nil then character=script.Parent.Parent humanoid=character.Humanoid isR15=humanoid.RigType==Enum.HumanoidRigType.R15 rightHand=isR15 and character:WaitForChild("\082\105\103\104\116\072\097\110\100")or character:WaitForChild("\082\105\103\104\116 \065\114\109")end local Q=rightHand:WaitForChild("\082\105\103\104\116\071\114\105\112")motor=Instance.new("\077\111\116\111\114\054\068")motor.Name=motorName motor.Part0=Q.Part0 motor.Part1=Q.Part1 Q:Destroy()motor.Parent=rightHand end)script.Parent.Unequipped:Connect(function()motor:Destroy()end)end

do
	script.Parent.Equipped:Connect(function()
		if player == nil then
			player = game:GetService("Players"):GetPlayerFromCharacter(script.Parent.Parent)
		end
		if character == nil or character.Parent == nil then
			character = script.Parent.Parent
			humanoid = character.Humanoid
				isR15 = humanoid.RigType == Enum.HumanoidRigType.R15
			rightHand = isR15 and character:WaitForChild("RightHand") or character:WaitForChild("Right Arm")
		end
		local getWeld = rightHand:WaitForChild("RightGrip")		
		motor = Instance.new("Motor6D")
		motor.Name = motorName
		motor.Part0 = getWeld.Part0
		motor.Part1 = getWeld.Part1
		--motor.C0 = getWeld.C0
		--motor.C1 = getWeld.C1
		
		getWeld:Destroy()
		motor.Parent = rightHand
	end)
	script.Parent.Unequipped:Connect(function()
		motor:Destroy()
	end)
end






