Same thing here. Except this is happening when I set the CFrame. Been stressing out about this an entire day and couldn’t find anything on my end wrong.
I managed to fix the problem by keeping CameraType and not changing from “Scriptable” to “Custom”, I just simply kept it at custom.
Just to note there was a VehicleCamera module recently added so that could possibly be causing issues.
I require the Scriptable camera module though. There is no way around that.
I’ve debugged around with this, and this is definitely caused by the new vehicle camera update; the only step to reproduce it is to set your CameraType to Scriptable/update the CameraSubject.
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.
This is still happening, CameraType.Scriptable is completely broken. I have to use other camera types which screws up expected behavior.
Thanks for the report. Please expect a delay in progress due to holidays and we will get back to you as soon as we return.
I also got this error when trying to switch my camera to scriptable.
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
I’ve been having all sorts of problems in studio since last night, at least some traceable to something related to this. I originally posted here: Driving a better Vehicle Camera - #55 by Sir_Highness
This has been happening to me since the car camera update. This might have something to do with it.
I’ve still got this problem
Can confirm that I’m still experiencing the problem when CameraType.Scriptable is set, I can’t find any accurate solutions to fix this problem.
I’ve tested around with this for a while and I’ve noticed that if you add a wait()
at the beginning there’s no warning and the script works fine.
Script:
wait()
local Camera = game.Workspace.Camera
Camera.CameraType = Enum.CameraType.Scriptable
Camera.CFrame = CFrame.new(0, 0, 10)
You can do that or you just do this
Camera.CameraSubject = nil
That, or you can set it to something else. Either way it disables the warning.
This is still an issue if you do so within ReplicatedFirst (on startup).
Alright. When there is any sort of update for this bug i will pass that info on.
Another thing I’ve notice is that when the warning happens, alot of skinned meshes stop rendering all of a sudden.
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