For some reason it is only changing the Z-Value of my Camera not the X-Value that I am trying to change.
local increment = 0
local Camera = workspace.CurrentCamera
local focusPoint = workspace.Part
-- This is inside a function
Camera.CFrame = CFrame.new(focusPoint.Position + Vector3.new(increment, 0, 0))
increment = (increment + 12.5)

9 comments
I'm new at this as well but try Camera.CFrame = CFrame.new(focusPoint.CFrame.lookVector*1 + Vector3.new(increment, 0, 0))
The Z value in your camera would be 'zoom in and zoom out'
Use
Camera.CameraType = Enum.CameraType.Scriptableand see what happens. And put the LocalScript in StarterCharacterScriptsThe changing to Enum really doesn't change anything but make it more stable. I need my camera to move to the right when I access this function
Did you try what I asked..?
Yeah bro it didn't work man it does the same thing
Can you explain exactly what you're trying to accomplish?
Well it's a local script and there's a gui button that you click and it brings the camera to the right aka the next item in a shop, so only the x-position of the camera is supposed to move but it zooms out only. Basically doing the camera system for the shop that Mining Simulator and other games have.
Ok I understand posting answer