So I have made code that continuously sets the camera type to scriptable until well it gets set to scriptable.
For some reason after it is set it is set back, and no I dont have any scripts that could change it(Its the only script I have in the file)
So uh why is this happening?
-- camera
local camera = workspace.CurrentCamera
repeat
task.wait(0.1)
camera.CameraType = Enum.CameraType.Scriptable
until camera.CameraType == Enum.CameraType.Scriptable
-- setup camera
warn('go') -- this does get warned
i had this too, i believe its the PlayerModule resetting the camera type each frame.
the way i fixed it is by spamming camera.CameraType = Enum.CameraType.Scriptable
a bunch of times every other line in .RenderStepped and left it at that
This is just a guess but the camera may get reset when the character loads in. Thus, the initial camera change is for the previous camera. Maybe add a wait until the character loads in?