UnequipTool() gives me error

hello! I am currently making a tool where if the player is jumping or free falling, the tool will be unequipped. however for some reason, the code does not work. even if I remove the if statements.
can someone help me?

	local state = script.Parent.Parent.Humanoid:GetState()
		if state == Enum.HumanoidStateType.Freefall then
			script.Parent.Parent.Humanoid:UnequipTools()
		end

and yes, I do have the equipped function.
error - “Something unexpectedly tried to set the parent of Tool to Backpack while trying to set the parent of Tool. Current parent is Rescripted_Developer.”

Nevermind! It turns out I need to put a wait before making the silly guitar becomes equipped.