Record movements and actions

Hi everyone! Could anyone tell me how to record a character then start a new lvl and see how my copy does what did. I record transforms, buttons pressed and movements into arrays but the issue is that there are offsets in time a little bit and if we take a moving platform as an example, my character , I recorded, some c time can jump off the platform cuz there are some ticks offset and etc. how to record exactly with 100%?