Skip to main content

AnimationModelModule_Server

This item only works when running on the server. Server

Functions

createFromInstance

AnimationModelModule_Server.createFromInstance(instanceInstance) → Result

Creates an AnimationModel from an Instance. Returns a Result.

  • Instance must have an Attribute named ModelType which must be a string!!

Valid ModelTypes

Name ClassName
Model CFramedModel
CFramedTrain CFramedTrainModel
Hinged HingedModel_Server
Show raw api
{
    "functions": [
        {
            "name": "createFromInstance",
            "desc": "Creates an AnimationModel from an Instance.\nReturns a Result.\n\n- Instance must have an Attribute named `ModelType` which must be a string!!\n\n#### Valid ModelTypes\n| Name | ClassName |\n| ---------- | -------- |\n| `Model` | CFramedModel |\n| `CFramedTrain` | CFramedTrainModel |\n| `Hinged` | HingedModel_Server |\n\n\t",
            "params": [
                {
                    "name": "instance",
                    "desc": "",
                    "lua_type": "Instance"
                }
            ],
            "returns": [
                {
                    "desc": "",
                    "lua_type": "Result"
                }
            ],
            "function_type": "static",
            "source": {
                "line": 54,
                "path": "src/server/animationModel/init.lua"
            }
        }
    ],
    "properties": [],
    "types": [],
    "name": "AnimationModelModule_Server",
    "desc": "\t",
    "realm": [
        "Server"
    ],
    "source": {
        "line": 21,
        "path": "src/server/animationModel/init.lua"
    }
}