How do i force camera look at CFrame

You can write your topic however you want, but you need to answer these questions:

  1. What do you want to achieve? Keep it simple and clear!
    I want to make camera look at certain CFrame

  2. What is the issue? Include screenshots / videos if possible!
    it does NOT look at the CFrame

  3. What solutions have you tried so far? Did you look for solutions on the Developer Hub?
    CurrentCamera.Focus

To have a camera on a stuck position you can change the camera type to scriptable, and then change the CFrame. You could use lookat for the camera’s CFrame.

i see what u meant now but first of all i cant get it to work because it resets instantly and second i wanted to make it to look at the CFrame not set to it

Yes, I suppose you are doing this in a local script?

game.Workspace.CurrentCamera.CameraType = Enum.CameraType.Scriptable

Then just set the CFrame. If you want to have the camera look at a CFrame, use lookat, like I already mentioned.

so im gonna add some things because i might just not understand or its just not compatable with my code
i have lerp because im using runservice.renderstepped to smooth out the looking

local oldcamtype=workspace.CurrentCamera.CameraType
workspace.CurrentCamera.CameraType = Enum.CameraType.Scriptable
workspace.CurrentCamera.CFrame:Lerp(CFrame.new(Vector3.new(0,5,0)),0.005) -- vector.new(0,5,0) for test
workspace.CurrentCamera.CameraType = oldcamtype

It is changing it back to the old type immediately so it doesn’t stay where it’s you want it to be

nvm i found the solution.
thanks for the small help that did not help

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