Help with setting Camera position

So I need help trying to correctly set my camera position. The camera position is set a little far away from the character.

currentCamera.CFrame = cameraPart.CFrame + Vector3.new(characterRoot.CFrame.Position.X,0,0)

Can you show the code that sets the cameraParts position.

local player = game.Players.LocalPlayer

local cameraPart = workspace:WaitForChild("CameraPart")

local RunService = game:GetService("RunService")

local currentCamera = workspace.CurrentCamera
repeat task.wait(0.1)
	currentCamera.CameraType = Enum.CameraType.Scriptable
until currentCamera.CameraType == Enum.CameraType.Scriptable
currentCamera.CameraSubject = cameraPart

local function onRenderStep()
	local character = player.Character or player.CharacterAdded:Wait()
	if character then
		local characterRoot = character.PrimaryPart
		if characterRoot ~= nil then
			currentCamera.CFrame = cameraPart.CFrame + Vector3.new(characterRoot.CFrame.Position.X,0,0)
		end
	end
end

RunService:BindToRenderStep("Camera", Enum.RenderPriority.Camera.Value, onRenderStep)

I don’t understand what is your problem.

I’m trying to fix the camera positioning a little too far away from the character.

you can use field of view (FOV)

Just move your camera part nearer ground
.

This would add a zoom effect which isn’t wanted

I want my camera to be high up.

I didn’t say on the groud, I said nearer.

just add like +0.5 to your camera position

1 Like

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