Skip to main content

LookReceiver

What Look.Receive returns: the latest camera rotation per player, and Eye, the function Watched and Perception.SeenByAnyone take.

Functions​

GetRotation​

LookReceiver.GetRotation(
self: LookReceiver,
player: Player
) → CFrame?--

The rotation of the player's last report, or nil when there is none or it is older than Timeout.

EyeOf​

LookReceiver.EyeOf(
self: LookReceiver,
root: BasePart--

A player's root, as a sense hands it out.

) → CFrame?--

The player's camera rotation placed at their head, or nil without a fresh report.

What Watched and Perception.SeenByAnyone take as Eye. Also available as the plain function receiver.Eye.

Destroy​

LookReceiver.Destroy(self: LookReceiver) → ()

Disconnects from the remote and forgets every report.

Show raw api
{
    "functions": [
        {
            "name": "GetRotation",
            "desc": "",
            "params": [
                {
                    "name": "self",
                    "desc": "",
                    "lua_type": "LookReceiver"
                },
                {
                    "name": "player",
                    "desc": "",
                    "lua_type": "Player"
                }
            ],
            "returns": [
                {
                    "desc": "The rotation of the player's last report, or `nil` when there is none or it is older than `Timeout`.",
                    "lua_type": "CFrame?"
                }
            ],
            "function_type": "static",
            "source": {
                "line": 182,
                "path": "lib/Sync/Look.luau"
            }
        },
        {
            "name": "EyeOf",
            "desc": "What [Watched] and [Perception.SeenByAnyone] take as `Eye`. Also available as the plain\nfunction `receiver.Eye`.",
            "params": [
                {
                    "name": "self",
                    "desc": "",
                    "lua_type": "LookReceiver"
                },
                {
                    "name": "root",
                    "desc": "A player's root, as a sense hands it out.",
                    "lua_type": "BasePart"
                }
            ],
            "returns": [
                {
                    "desc": "The player's camera rotation placed at their head, or `nil` without a fresh report.",
                    "lua_type": "CFrame?"
                }
            ],
            "function_type": "static",
            "source": {
                "line": 198,
                "path": "lib/Sync/Look.luau"
            }
        },
        {
            "name": "Destroy",
            "desc": "Disconnects from the remote and forgets every report.",
            "params": [
                {
                    "name": "self",
                    "desc": "",
                    "lua_type": "LookReceiver"
                }
            ],
            "returns": [],
            "function_type": "static",
            "source": {
                "line": 221,
                "path": "lib/Sync/Look.luau"
            }
        }
    ],
    "properties": [],
    "types": [],
    "name": "LookReceiver",
    "desc": "What [Look.Receive] returns: the latest camera rotation per player, and `Eye`, the function\n[Watched] and [Perception.SeenByAnyone] take.",
    "source": {
        "line": 176,
        "path": "lib/Sync/Look.luau"
    }
}