Hi,
I currently have a problem with the camera system.
I explain, I need to change the camera position.
I changed the camera subject to another part. It works fine, but I can’t change the default orientation.
So, I changed the camera’s CFrame. This time, the orientation works, but I can’t rotate the camera manually. I tried every camera type, but nothing worked.
How can I change the camera orientation with a script & allow the user to rotate it?
1 Like
So this is most likely due to the CameraType property set to something other than Custom. Now yes, the camera can move around in other modes, however it needs to be scripted to do so. Custom lets it uses the default behavior, but if your character is inverted, it stays aligned with the world so it may not be ideal. Here are some resources that may help from the documentation for camera:
Camera | Roblox Creator Documentation
CameraType | Roblox Creator Documentation
1 Like
I tried with the custom cameraType, but it doesn’t work.
This is a part of my script when I use CFrame to watch in a specified direction:
local Camera = workspace.CurrentCamera;
local CameraPart = workspace:WaitForChild("CameraPart");
Camera.CameraType = "Custom";
Camera.CameraSubject = CameraPart;
Camera.CFrame = CFrame.new(CameraPart.CFrame.Position, Vector3.new(90, 0, 0));
It works, but I can’t rotate the camera.
This other script works, but I can’t choose in what direction the user should look first:
local Camera = workspace.CurrentCamera;
local CameraPart = workspace:WaitForChild("CameraPart");
Camera.CameraType = "Custom";
Camera.CameraSubject = CameraPart;
-- I just removed the last line
I don’t have any errors in the console.
1 Like
No one knows how to solve this problem ? 
1 Like