I’ve also started to get this error within the past week or so… Whenever I set the CameraType to Scriptable in any local script this happens. The error killing my game’s performance. This problem immediately goes away as soon as I remove the lines below from all my scripts.
local camera = workspace.CurrentCamera
camera.CameraType = Enum.CameraType.Scriptable
I’m not sure if this is related here but when I play my game in Studio, the camera will focus on a part the second the player joins (as it is meant to do). However, when I play the game normally, my camera stays on my character’s head and never focuses on the part. I got that warning in the console.
EDIT: I found out what was happening for me, and it was my own stupidity not studio. I forgot I had a transparent GUI element covering the screen which was causing all the problems listed. Once I got rid of that, everything worked fine. /edit
Has there been any update on this? I’ve started getting this error as well, it happens when the camera is set to scriptable on join for me.
EDIT: If anyone is having the same issue as me, you can do this in the meantime until this bug is resolved:
local RunService = game:GetService("RunService")
if camera.CameraSubject == nil then
repeat RunService.RenderStepped:Wait() until camera.CameraSubject ~= nil
end
camera.CameraType = Enum.CameraType.Scriptable
I am pretty sure it is normal, It’s been happening for a while, usually just happens if you change the camera type before this even runs I believe. As shown in the camera creator in the roblox script, it just shows that since you set it to scriptable. On scriptable it would not have these types and therefore it should be printing that it did not select a module.