Skip to main content

MoonExport

Exports a loaded replay as a Moon Animator 2 save. The player is stepped through every tick in edit mode and each proxy is sampled: its pivot becomes a CFrame track and every Motor6D becomes a rig joint track (Moon stores joint keys as C1 values, so Transform is folded into C1). Recorded property changes (effects, sounds, appearance) become property tracks on items for the instances they touched, with constant eases. Moon items cannot enter or leave the scene, so an entity that spawns or despawns mid-replay has every part's Transparency toggled instead. An entity whose snapshot is linked to a prefab (Snapshot.links) uses that prefab as its Moon item; anything else is copied into Workspace so Moon can resolve the item path. The save lands in ServerStorage.MoonAnimator2Saves where Moon's File > Open lists it.

Functions​

export​

MoonExport.export(
player: Player.Player,
name: string
) → StringValue

Steps player from its first tick to its last and writes the save. Only meaningful in edit mode, where the player advances animators itself. Returns the save StringValue.

Show raw api
{
    "functions": [
        {
            "name": "export",
            "desc": "Steps `player` from its first tick to its last and writes the save. Only\nmeaningful in edit mode, where the player advances animators itself.\nReturns the save StringValue.",
            "params": [
                {
                    "name": "player",
                    "desc": "",
                    "lua_type": "Player.Player"
                },
                {
                    "name": "name",
                    "desc": "",
                    "lua_type": "string"
                }
            ],
            "returns": [
                {
                    "desc": "",
                    "lua_type": "StringValue\n"
                }
            ],
            "function_type": "static",
            "source": {
                "line": 293,
                "path": "src/Flashback/MoonExport.luau"
            }
        }
    ],
    "properties": [],
    "types": [],
    "name": "MoonExport",
    "desc": "Exports a loaded replay as a Moon Animator 2 save. The player is stepped\nthrough every tick in edit mode and each proxy is sampled: its pivot\nbecomes a CFrame track and every Motor6D becomes a rig joint track\n(Moon stores joint keys as C1 values, so Transform is folded into C1).\nRecorded property changes (effects, sounds, appearance) become property\ntracks on items for the instances they touched, with constant eases.\nMoon items cannot enter or leave the scene, so an entity that spawns or\ndespawns mid-replay has every part's Transparency toggled instead. An\nentity whose snapshot is linked to a prefab (`Snapshot.links`) uses that\nprefab as its Moon item; anything else is copied into Workspace so Moon\ncan resolve the item path. The save lands in\nServerStorage.MoonAnimator2Saves where Moon's File > Open lists it.",
    "source": {
        "line": 17,
        "path": "src/Flashback/MoonExport.luau"
    }
}