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
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.