Camera script bug

Recently, I have been encountering an error that goes along the lines of:

  18:33:02.360 - ActivateCameraController did not select a module.

I have no idea what to do about this. I have verified that this is not one of my scripts (it is a core script), and this happens on both the Roblox client and in Studio. The error is triggered when I try to change the camera’s CFrame, like so:

local camera = workspace.CurrentCamera
camera.CFrame = newCFrame

I have printed the camera’s type before the line is run as well, and it prints the following:

Enum.CameraType.Scriptable

I am honestly stumped as to what solutions I can use at this point. Everything seems to be working fine, and while I could file this as a bug, I don’t have the permission level to post there.

If this is the wrong category, please let me know instead of reporting this post.

Any help is appreciated.

Is this to set it to a part; or something else?

Yes, the CFrame is set to a part CFrame.

Does the error not contain a stack trace to where you could find the issue? I’d look at the lines at which the error occurred in your scripts and then go from there.

Also: just in case here’s code that should work, assuming it runs in a localscript

local camera = workspace.CurrentCamera
camera.CameraType = Enum.CameraType.Scriptable
local function changeCFrame(newCFrame)
    camera.CFrame = newCFrame
end

. . .

changeCFrame(someRandomlyCalculatedCFrame)
1 Like

I believe this issue says it all:

2 Likes