PcoWSkbVqDnWTu_dm2ix
We use cookies on this site to enhance your user experience
Collapse Sidebar

Zoom

The Camera|Camera’s zoom is defined as the distance in studs between the Camera/CFrame and it’s Camera/Focus.

This function was previously used by Roblox’s core scripts to zoom the Camera in and out. It cannot be accessed by developers.

Currently, the default camera scripts handle Camera zooming and do not use this function.

You can use Player/CameraMinZoomDistance and Player/CameraMaxZoomDistance properties to constrain the Camera|Camera’s zoom. StarterPlayer also includes these properties, allowing them to be set for all new Player|Players.

Parameters

Name Type Default Description

The distance in studs to zoom in by (negative when zooming out)

Returns

Return Type Summary