So, why can't you simply set the CameraType?
Currently I am working on a roblox game which requires some camera manipulations.
The problem starts whenever I try to set camera type to scriptable:
1 | local camera = workspace.CurrentCamera |
2 | camera.CameraType = Enum.CameraType.Scriptable |
The above would run without any errors while when looking in workspace camera type property would somehow change back to Custom (I imagine it has something to do with roblox's core camera script). It is also proven by the fact that the camera zoom functionality still works as where it shouldn't.
I know that certain camera types, e.g. watch, require proper cameraSubject, otherwise they won't work at all, but it shouldn't be the case with scriptable now should it.
So, the final question is: why can't I simply set the cameraType to scriptable and it actually stay as scriptable?
Additional question would be: which camera types support camera.CFrame, because I'm trying to make camera be in set position while the type being watchable which doesn't really work:
1 | camera.CameraSubject = game.Players.localPlayer.character.Humanoid |
2 | camera.CameraType = Enum.CameraType.Watch |
3 | camera.CFrame = CFrame.new( { custom position } ) |
..the camera is set as watch but is not located in the custom position.