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.
Same for me. Out of nowhere these spam error messages keep popping up and lagging my whole entire game. I think what I should do is Do a Disabled = true or Destroy() script for this.
@iamtryingtofindname@Aeventy Unless your camera script is in ReplicatedFirst, these are pointless suggestions. game:IsLoaded() is true when your localscripts outside of ReplicatedFirst run. Read the devhub article on this.
Also @iamtryingtofindname your solution is similarly bad to wait(), you are still yielding once on Heartbeat for no apparent reason. There should be no reason to yield there.
PS: this doesn’t seem related to the bug report at all, let’s stay on topic please and not derail the thread further.
What I did was set the camera to scriptable and then to custom. Weirdly it does nothing else but stop the output spam. I can share the code later today.
The error seemed to appear for me if I tried to set the CameraType to scriptable before the CameraSubject was chosen.
The following code got rid of the error for me:
local RunService = game:GetService("RunService")
if camera.CameraSubject == nil then
repeat RunService.RenderStepped:Wait() until camera.CameraSubject ~= nil
end