Skip to main content

PlayerHumanoidBinder

Binder that will automatically bind to each player's humanoid

Functions

new

PlayerHumanoidBinder.new(
tagstring,
...any
) → PlayerHumanoidBinder<T>

Returns a new PlayerHumanoidBinder

Init

PlayerHumanoidBinder:Init(
serviceBagServiceBag,
...any
) → ()

Inits the binder. See Binder.Init. Should be done via a ServiceBag.

SetAutomaticTagging

PlayerHumanoidBinder:SetAutomaticTagging(shouldTagboolean) → ()

Sets whether tagging should be enabled

ObserveAutomaticTagging

PlayerHumanoidBinder:ObserveAutomaticTagging() → Observable<boolean>

ObserveAutomaticTaggingBrio

PlayerHumanoidBinder:ObserveAutomaticTaggingBrio(
predicatefunction--

Optional predicate

) → Observable<Brio<boolean>>

Start

PlayerHumanoidBinder:Start() → ()

Starts the binder. See Binder.Start. Should be done via a ServiceBag.

Show raw api
{
    "functions": [
        {
            "name": "new",
            "desc": "Returns a new PlayerHumanoidBinder",
            "params": [
                {
                    "name": "tag",
                    "desc": "",
                    "lua_type": "string"
                },
                {
                    "name": "class",
                    "desc": "",
                    "lua_type": "BinderContructor"
                },
                {
                    "name": "...",
                    "desc": "",
                    "lua_type": "any"
                }
            ],
            "returns": [
                {
                    "desc": "",
                    "lua_type": "PlayerHumanoidBinder<T>"
                }
            ],
            "function_type": "static",
            "source": {
                "line": 26,
                "path": "src/playerhumanoidbinder/src/Server/PlayerHumanoidBinder.lua"
            }
        },
        {
            "name": "Init",
            "desc": "Inits the binder. See [Binder.Init].\nShould be done via a [ServiceBag].",
            "params": [
                {
                    "name": "serviceBag",
                    "desc": "",
                    "lua_type": "ServiceBag"
                },
                {
                    "name": "...",
                    "desc": "",
                    "lua_type": "any"
                }
            ],
            "returns": [],
            "function_type": "method",
            "source": {
                "line": 39,
                "path": "src/playerhumanoidbinder/src/Server/PlayerHumanoidBinder.lua"
            }
        },
        {
            "name": "SetAutomaticTagging",
            "desc": "Sets whether tagging should be enabled",
            "params": [
                {
                    "name": "shouldTag",
                    "desc": "",
                    "lua_type": "boolean"
                }
            ],
            "returns": [],
            "function_type": "method",
            "source": {
                "line": 56,
                "path": "src/playerhumanoidbinder/src/Server/PlayerHumanoidBinder.lua"
            }
        },
        {
            "name": "ObserveAutomaticTagging",
            "desc": "",
            "params": [],
            "returns": [
                {
                    "desc": "",
                    "lua_type": "Observable<boolean>"
                }
            ],
            "function_type": "method",
            "source": {
                "line": 66,
                "path": "src/playerhumanoidbinder/src/Server/PlayerHumanoidBinder.lua"
            }
        },
        {
            "name": "ObserveAutomaticTaggingBrio",
            "desc": "",
            "params": [
                {
                    "name": "predicate",
                    "desc": "Optional predicate",
                    "lua_type": "function"
                }
            ],
            "returns": [
                {
                    "desc": "",
                    "lua_type": "Observable<Brio<boolean>>"
                }
            ],
            "function_type": "method",
            "source": {
                "line": 74,
                "path": "src/playerhumanoidbinder/src/Server/PlayerHumanoidBinder.lua"
            }
        },
        {
            "name": "Start",
            "desc": "Starts the binder. See [Binder.Start].\nShould be done via a [ServiceBag].",
            "params": [],
            "returns": [],
            "function_type": "method",
            "source": {
                "line": 82,
                "path": "src/playerhumanoidbinder/src/Server/PlayerHumanoidBinder.lua"
            }
        }
    ],
    "properties": [],
    "types": [],
    "name": "PlayerHumanoidBinder",
    "desc": "Binder that will automatically bind to each player's humanoid",
    "source": {
        "line": 5,
        "path": "src/playerhumanoidbinder/src/Server/PlayerHumanoidBinder.lua"
    }
}