Click twice to change direction

You can write your topic however you want, but you need to answer these questions:

  1. I want it so I don’t have to click twice for it to turn different directions.

  2. when I go forward and then try to go back it takes two clicks.

  3. I am not too sure what to try?

clothingFrame.nextButton.MouseButton1Click:Connect(function()
	local camera = game.Workspace.CurrentCamera
	camera.CameraType = Enum.CameraType.Scriptable
	warn(itemNumber)
	if itemNumber <= 6 then
		local tweeningPart = cams:WaitForChild("cam"..itemNumber)
		local about = tweeningPart:WaitForChild("abt")
		local amount = tweeningPart:WaitForChild("amount")
		clothingFrame.name.Text = about.Value
		clothingFrame.currencyAmt.Text = "Cost: "..amount.Value
		local tweeningInfo = TweenInfo.new(1,Enum.EasingStyle.Linear,Enum.EasingDirection.Out,0)
		local partProp = {CFrame = tweeningPart.CFrame}
		local tween = ts:Create(camera,tweeningInfo,partProp)
		tween:Play()
		itemNumber = itemNumber + 1
	end		
end)		

clothingFrame.backButton.MouseButton1Click:Connect(function()
	local camera = game.Workspace.CurrentCamera
	camera.CameraType = Enum.CameraType.Scriptable
	warn(itemNumber)
	if itemNumber == 2 or itemNumber == 3 or itemNumber == 4 or itemNumber == 5 or itemNumber == 6 then
		itemNumber = itemNumber - 1
		local tweeningPart = cams:WaitForChild("cam"..itemNumber)
		local about = tweeningPart:WaitForChild("abt")
		local amount = tweeningPart:WaitForChild("amount")
		clothingFrame.name.Text = about.Value
		clothingFrame.currencyAmt.Text = "Cost: "..amount.Value
		local tweeningInfo = TweenInfo.new(1,Enum.EasingStyle.Linear,Enum.EasingDirection.Out,0)
		local partProp = {CFrame = tweeningPart.CFrame}
		local tween = ts:Create(camera,tweeningInfo,partProp)
		tween:Play()		
	end		
end)

thas not the whole thing but its the most important.
Thank you

Your script looks fine to me. Do you have any videos, GIFs, or anything? It’s really weird that you have to click it twice for me.