Camera subject doesn't change after changing cameras cframe and focus?

Was working with cameras when I realized that if I were to change a camera’s cframe and focus, changing its subject wouldn’t do anything.

local camera = workspace.CurrentCamera
camera.CameraType = Enum.CameraType.Scriptable
wait(9)
print("step 1")
camera.CameraSubject = workspace.Part
wait(4)
print("step 2")
camera.CFrame = workspace.Part2.CFrame
camera.Focus = camera.CFrame * CFrame.new(10,10,10)
wait(4)
print("step 3")
camera.CameraSubject = workspace.Part	---doesn't work
1 Like

CameraSubject doesn’t work when CameraType is set to Scriptable.

You can read about it here

The camera will follow or attach to the CameraSubject in other CameraTypes like Custom, Follow, Orbital, Attached…
In scriptable mode, it’s pretty much useless unless if you used it yourself in your logic.
From what you wrote. i think you want to make a cutscene? if so you can check my channel CodesOtaku for an easy to use plugin designed specifically for that.
Or if you want to make yours from scratch. Check TweenService:

PS: If you find this response helpful please flag it as the solution so people knows that it’s solved.

2 Likes