ActivateCameraController did not select a module - only fixable with wait()?

So I’m trying to set the camera to a part’s CFrame but this warning pops up all the time:
ActivateCameraController did not select a module

Here is my script:

function CameraHandler.Init()
    print("Camera")
    currentCamera.CameraType = Enum.CameraType.Scriptable
    currentCamera.CFrame = camera.CFrame
end

This does print “Camera” but then gives that warning.
When I put a wait(1) before or after the print, it works fine, but I don’t think that’s a good solution.
Is there anything else I could do?

Even after I’ve waited for the character, it still gives that warning (local char = player.Character or player.CharacterAdded:Wait())

Thanks!

1 Like

I’ve been making an experience that uses camera, like you

it prints out that warning too, but for somehow it still works fine

so I sort of let it go

1 Like

For me it doesn’t set the camera’s CFrame to that cameraPart’s CFrame.

I actually do something like:

currentCamera.CFrame = CFrame.new(camera.Position, camera.Orientation)

a different way

1 Like

That’s just the way you give the CFrame though, I use the part’s CFrame, you are creating it.

I tried that too though, doesn’t work.

(Btw, as far as I know using CFrame.new with 2 arguments is deprecated, you can replace it with CFrame.lookAt)