Customizing the Camera
Customizing the Camera
Roblox offers several built-in options for configuring the game’s camera, along with the ability to script a more
/articles/Camera manipulation|customized camera system.
Common camera settings can be configured directly within Roblox Studio:
- In the Explorer window, select the StarterPlayer object.
- In the Properties window, scroll down to locate the Camera section. Using these options, you can easily configure your game’s camera.
Together, CameraMaxZoomDistance and CameraMinZoomDistance set the span in which players can zoom the camera in respect to their player character. Setting a very high maximum like 500 will let players zoom the camera far out in space.
The CameraMode property sets the overall behavior of the camera:
|Classic||The classic Roblox camera which allows players to zoom in and out (unless zoom is locked) and rotate the camera around the player.|
|LockFirstPerson||Locks the camera to first-person mode. When in this mode, all parts/elements of the player's character are invisible to them, except for equipped
The DevCameraOcclusionMode property controls camera behavior when the player cannot see their character:
|Zoom||If the player's character moves behind an object with
|Invisicam||If the character moves behind an object (opaque or transparent), the camera remains in position but the object becomes semi-transparent so that the character can be seen. Once the character moves back into a viewable position, the object returns to its normal opacity.|
The DevComputerCameraMovementMode (computer) and DevTouchCameraMovementMode (phone/tablet) determine how the player can move the camera around.
|Classic||The camera remains at its zoom distance between the player's view and their character, tracking the character as it moves around the world. The camera can also be pitched up/down and rotated in an orbit around the character.|
|Follow||Similar to "Classic" but the camera will rotate to face the player's character if it's moving in any direction that isn't parallel to the direction the camera is facing.|
|Orbital||The camera remains at its zoom distance and tracks the character as it moves around the world. It can be rotated in an orbit around the character, but it can not be pitched up/down.|
|UserChoice||Allows players to choose their desired camera movement mode from the in-game Settings menu. Note that "Orbital" is not an option through the menu.|
If you prefer to script your own camera system, see the related articles below for guidance.