Problems with conditions

doesn’t work
all of the variables instead of the equipped doesn’t change

uis.InputBegan:Connect(function(input)
	if input.UserInputType == Enum.UserInputType.MouseButton2 and CommonVariables.equipped ~= false then
		if not CommonVariables.firing and not CommonVariables.reloading and not CommonVariables.aiming then
			CommonVariables.aiming = true
			humanoid.WalkSpeed = 9
		else
		--	print("InputBegan blocked: firing =", CommonVariables.firing, "reloading =", CommonVariables.reloading, "aiming =", CommonVariables.aiming)
		end
	else
		--print("InputBegan condition failed: MouseButton2 =", (input.UserInputType == Enum.UserInputType.MouseButton2), "equipped =", CommonVariables.equipped)
	end
end)

uis.InputEnded:Connect(function(input)
	if input.UserInputType == Enum.UserInputType.MouseButton2 and CommonVariables.equipped ~= false then
		if not CommonVariables.firing and not CommonVariables.reloading and CommonVariables.aiming then
			CommonVariables.aiming = false
			humanoid.WalkSpeed = 12
		else
	--		print("InputEnded blocked: firing =", CommonVariables.firing, "reloading =", CommonVariables.reloading, "aiming =", CommonVariables.aiming)
		end
	else
	--	print("InputEnded condition failed: MouseButton2 =", (input.UserInputType == Enum.UserInputType.MouseButton2), "equipped =", CommonVariables.equipped)
	end
end)