Skip to main content

RbxAssetUtils

Functions

toRbxAssetId

RbxAssetUtils.toRbxAssetId(idstring | number) → string?

Converts a string or number to a string for playback.

isConvertableToRbxAsset

RbxAssetUtils.isConvertableToRbxAsset(idstring | number) → boolean

Returns if it's convertable to a RBXAssetId

Show raw api
{
    "functions": [
        {
            "name": "toRbxAssetId",
            "desc": "Converts a string or number to a string for playback.",
            "params": [
                {
                    "name": "id",
                    "desc": "",
                    "lua_type": "string | number"
                }
            ],
            "returns": [
                {
                    "desc": "",
                    "lua_type": "string?"
                }
            ],
            "function_type": "static",
            "source": {
                "line": 14,
                "path": "packages/rbxassetutils/src/RbxAssetUtils.luau"
            }
        },
        {
            "name": "isConvertableToRbxAsset",
            "desc": "Returns if it's convertable to a RBXAssetId",
            "params": [
                {
                    "name": "id",
                    "desc": "",
                    "lua_type": "string | number"
                }
            ],
            "returns": [
                {
                    "desc": "",
                    "lua_type": "boolean"
                }
            ],
            "function_type": "static",
            "source": {
                "line": 27,
                "path": "packages/rbxassetutils/src/RbxAssetUtils.luau"
            }
        }
    ],
    "properties": [],
    "types": [],
    "name": "RbxAssetUtils",
    "desc": "",
    "source": {
        "line": 4,
        "path": "packages/rbxassetutils/src/RbxAssetUtils.luau"
    }
}