Move camera elsewhere, but still be able to rotate on all axis

Hi, I’m trying to make a camera system, but I don’t know how to be able to move the camera when it’s moved. A quick video of what I want to happen:

As you can see, the camera teleports, but I want to be able to move it like a regular first person camera. How do I do that?

There are many methods you can use to achieve your goal.
Here’s just one example:

UserInputService = game:GetService("UserInputService")
RunService = game:GetService("RunService")

Camera = workspace.CurrentCamera
CameraTurnSpeed = 2

RunService.Heartbeat:Connect(function()
	for i,k in pairs(UserInputService:GetKeysPressed()) do
		if k.KeyCode == Enum.KeyCode.A then
			-- Turn camera left.
			Camera.CFrame = Camera.CFrame * CFrame.Angles(0,math.rad(CameraTurnSpeed),0)
		elseif k.KeyCode == Enum.KeyCode.D then
			-- Turn camera right.
			Camera.CFrame = Camera.CFrame * CFrame.Angles(0,math.rad(-CameraTurnSpeed),0)
		end
	end
end)

thanks so much it works like a charm!

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.