How would i go about making a camera that switches sides

im currently attempting on how to make a camera system where, it starts on the right side and when the key “Q” is pressed it swiftly moves to the left side, and once its pressed again it moves to the right side. but horribly i dont know how to do that and this is literally all i got

local player = game.Players.LocalPlayer
local character = player.Character or player.CharacterAdded:Wait()
local camera = game.Workspace.CurrentCamera
local currentpart = 1
local uis = game:GetService("UserInputService")
camera.CameraType = Enum.CameraType.Scriptable
uis.InputBegan:Connect(function(input)
	if input.KeyCode == Enum.KeyCode.Q then
		if currentpart == 1 then

			camera.CFrame = character.HumanoidRootPart.CFrame * CFrame.new(-3,3,5)
			currentpart = 2
			return camera.CFrame
		else
			camera.CFrame = character.HumanoidRootPart.CFrame * CFrame.new(3,3,5)
			currentpart = 1
			return camera.CFrame
		end
	end
end)