Skip to main content

HitboxManager

This item only works when running on the server. Server

Centralized controller for hitboxes. Generally pairs with DamageManager.

Functions​

Hitbox​

HitboxManager.Hitbox(
executor: Character,
origin: BasePart,
size: Vector3,
offset: CFrame,
damage: number,
additionalArgs: {any}?
) → {string}--

Returns the names of the hit characters.

Spawns a rectangular hitbox with a desired size.

Show raw api
{
    "functions": [
        {
            "name": "Hitbox",
            "desc": "Spawns a rectangular hitbox with a desired size.",
            "params": [
                {
                    "name": "executor",
                    "desc": "",
                    "lua_type": "Character"
                },
                {
                    "name": "origin",
                    "desc": "",
                    "lua_type": "BasePart"
                },
                {
                    "name": "size",
                    "desc": "",
                    "lua_type": "Vector3"
                },
                {
                    "name": "offset",
                    "desc": "",
                    "lua_type": "CFrame"
                },
                {
                    "name": "damage",
                    "desc": "",
                    "lua_type": "number"
                },
                {
                    "name": "additionalArgs",
                    "desc": "",
                    "lua_type": "{any}?"
                }
            ],
            "returns": [
                {
                    "desc": "Returns the names of the hit characters.",
                    "lua_type": "{string}"
                }
            ],
            "function_type": "static",
            "source": {
                "line": 40,
                "path": "global/ServerStorage/Scripts/Modules/HitboxManager.luau"
            }
        }
    ],
    "properties": [],
    "types": [],
    "name": "HitboxManager",
    "desc": "Centralized controller for hitboxes. Generally pairs with DamageManager.",
    "realm": [
        "Server"
    ],
    "source": {
        "line": 7,
        "path": "global/ServerStorage/Scripts/Modules/HitboxManager.luau"
    }
}