How Do Allow the player to move camera Freely while Camera.CFrame Is being Changed

Today, I have been trying to make a lock on the script. but I want the player to still move the camera freely, but the camera CFrame is being changed by RenderStepped. Is This possible to allow the player to move the camera freely while camera.CFrame is still applying?.

The answer is always yes, but that’s not really a complete answer without knowing how you want the lock-on CFrame and the player to interact.

e.g. you could have a player CFrame that you can apply to the camera’s final CFrame:

local playerCFrame = CFrame.new()

-- connect some events for changing playerCFrame

RunService.RenderStepped:Connect(function()
    camera.CFrame = ... * playerCFrame
end)
1 Like