How do I get the camera position and direction in ROBLOX Studio to change?

I’ve been working on games that involve auto-generated thumbnails, but I don’t want to lose the camera’s position and direction that it’s on/facing whenever I move around in the workspace. How would I get the coordinates in ROBLOX Studio and make it so it goes back to the view it was at before?

place a part for the position of the camera, then through cmd bar set the cameras cframe to that part

1 Like

I’m not working with parts, I just want to copy the camera’s position and viewing point so I can change where the studio camera is for auto-generated thumbnails without having to revert place versions to make an auto-generated thumbnail in the position before.

why not
Camera.CFrame
or
Camera.Position
For direction maybe try

Camera.CFrame.LookAt

1 Like

yeah, I know. did you read what my post said? you want to keep the camera in one place and whenever you decide to move it you want to somehow get the camera back into the place correct?

1 Like

That’s correct, but I don’t know how to do that with the output bar. I just figured out how to get the camera’s position and LookVector, but I don’t know how to apply them.

oh so just type this in: workspace.Camera.CFrame = workspace.yourpartname.CFrame

1 Like

You can enter this in your command bar to save your cameras position and rotation:

local a = Instance.new("Part", workspace) a.Name = "CameraAnchor" a.Parent = game.Workspace a.CFrame = game.Workspace.CurrentCamera.CFrame

And move back to that position entering this in the command bar:

local c = game.Workspace.CurrentCamera local a = game.Workspace.CameraAnchor c.CameraType = Enum.CameraType.Scriptable c.CFrame = a.CFrame c.CameraType = Enum.CameraType.Custom a:Destroy()
2 Likes