Studio Camera CFraming broken?

Hey there, maybe I’m going crazy but it seems as though CFraming the camera in the command bar in studio (not in play mode) no longer works? It’s setting position but ignoring rotation from what I can tell. Please let me know if this is just me, I swear this used to work. Able to reproduce this 100% of the time even on new project files:

--Running this in the command bar sets position but gives a somewhat random rotation?
workspace.CurrentCamera.CFrame = workspace.SpawnLocation.CFrame

EDIT:
Upon further inspection it seems as though the camera is storing its previous position and maintaining it after assignment as the point of rotation…

1 Like

This is still super broken sadly :frowning:

Here’s my reason for this:
Studio doesn’t support individual camera windows like other platforms do so I (used to) assign the camera to a parts CFrame to watch an animation or something from the perspective of the game. This was great for testing FPS rigs, now its just trial and error…

workspace[CurrentCamera].CFrame = game.Workspace.SpawnLocation.CFrame

That should work.

1 Like

It really should, but alas…
Try mode code from the original post if you get a chance, same deal.

Bumping this post because this became an issue for me. It’s hard to create nice camera angles when you can’t even see what it looks like until you test the game.

1 Like

Oh yeah, this is still super broken :slight_smile:

I hate to necropost, but after ages I finally found the issue:
You have to set the Camera’s CameraType to Scriptable. I cannot believe it took me this long to figure this out.
Putting this here just in case anyone finds this thread in the future.

1 Like

Wow yup I hate that :slight_smile:

This seems to be a reliable way to get it to snap without losing control of it in the process, thanks for the assist!

local target = workspace.SpawnLocation
local RunService = game:GetService("RunService")
local camera = workspace.CurrentCamera

camera.CameraType = Enum.CameraType.Scriptable
camera.CFrame = target.CFrame
RunService.Heartbeat:Wait()
camera.CameraType = Enum.CameraType.Fixed