✓ Accepted answer
I have a similar script, where I want the camera to be in a fixed position:
local cam = workspace.CurrentCamera
cam.CameraType = "Scriptable"
cam.CFrame = CFrame.new(117.350388, 55.271347, 120.202576,
0.00612254534, -0.777157724, 0.629276335,
-2.32830644e-10, 0.629288197, 0.777172208,
-0.999981344, -0.00475827185, 0.0038528447)
Having the CameraType set to "Scriptable" means that you cannot do anything to it using the default options, and you would have to script your own functionality, or you can just leave it and have it not do anything
To get the large CFrame value I just aligned my camera where i wanted it to be in the Editor and printed the CFrame value in the command line:
print(workspace.CurrentCamera.CFrame)
I hope this helps you :)
1 comment
Set the CameraType to Enum.CameraType.Scriptable