I made something like that for my project a while ago, it takes the current time and the transform and adds it to an array. I have no idea if there is a better way of doing it but for me, it works.
all you have to do is to add the module to your character and then use it as a reference and search for “Recording” this should give you a few custom events with which you can toggle, replay and save the recording. of course, you are free to make any changes to it.
DL:https://drive.google.com/open?id=1HR…JAldHe-wk7wGpg
preview: BotRecorder animated gif