Skip to main content

TrackCamera

Track a current part, whether it be a model or part

Properties

CameraState

This item is read only and cannot be modified. Read Only
TrackCamera.CameraState: CameraState

The current state.

FieldOfView

TrackCamera.FieldOfView: number

The current field of view.

CameraSubject

TrackCamera.CameraSubject: Instance

The current field of view.

Functions

new

TrackCamera.new(
cameraSubjectInstance?--

The CameraSubject to look at. A Roblox part of Roblox model

) → TrackCamera

Constructs a new TrackCamera

Show raw api
{
    "functions": [
        {
            "name": "new",
            "desc": "Constructs a new TrackCamera",
            "params": [
                {
                    "name": "cameraSubject",
                    "desc": "The CameraSubject to look at. A Roblox part of Roblox model",
                    "lua_type": "Instance?"
                }
            ],
            "returns": [
                {
                    "desc": "",
                    "lua_type": "TrackCamera"
                }
            ],
            "function_type": "static",
            "source": {
                "line": 21,
                "path": "src/camera/src/Client/Effects/TrackCamera.lua"
            }
        }
    ],
    "properties": [
        {
            "name": "CameraState",
            "desc": "The current state.",
            "lua_type": "CameraState",
            "readonly": true,
            "source": {
                "line": 53,
                "path": "src/camera/src/Client/Effects/TrackCamera.lua"
            }
        },
        {
            "name": "FieldOfView",
            "desc": "The current field of view.",
            "lua_type": "number",
            "source": {
                "line": 58,
                "path": "src/camera/src/Client/Effects/TrackCamera.lua"
            }
        },
        {
            "name": "CameraSubject",
            "desc": "The current field of view.",
            "lua_type": "Instance",
            "source": {
                "line": 63,
                "path": "src/camera/src/Client/Effects/TrackCamera.lua"
            }
        }
    ],
    "types": [],
    "name": "TrackCamera",
    "desc": "Track a current part, whether it be a model or part",
    "source": {
        "line": 5,
        "path": "src/camera/src/Client/Effects/TrackCamera.lua"
    }
}