Skip to main content

ResetService

This item only works when running on the server. Server

Handles reset requests since Roblox's reset system doesn't handle ragdolls correctly

Functions

Init

ResetService:Init() → ()

Initializes the reset service. Should be done via a ServiceBag.

PushResetProvider

ResetService:PushResetProvider(
promiseResetfunction--

Reset provider

) → MaidTask

Pushes a reset provider onto the reset service

Show raw api
{
    "functions": [
        {
            "name": "Init",
            "desc": "Initializes the reset service. Should be done via a [ServiceBag].",
            "params": [],
            "returns": [],
            "function_type": "method",
            "source": {
                "line": 23,
                "path": "src/resetservice/src/Server/ResetService.lua"
            }
        },
        {
            "name": "PushResetProvider",
            "desc": "Pushes a reset provider onto the reset service",
            "params": [
                {
                    "name": "promiseReset",
                    "desc": "Reset provider",
                    "lua_type": "function"
                }
            ],
            "returns": [
                {
                    "desc": "",
                    "lua_type": "MaidTask"
                }
            ],
            "function_type": "method",
            "source": {
                "line": 44,
                "path": "src/resetservice/src/Server/ResetService.lua"
            }
        }
    ],
    "properties": [],
    "types": [],
    "name": "ResetService",
    "desc": "Handles reset requests since Roblox's reset system doesn't handle ragdolls correctly",
    "realm": [
        "Server"
    ],
    "source": {
        "line": 6,
        "path": "src/resetservice/src/Server/ResetService.lua"
    }
}