Howdy,

I've been working on a pretty simple script that records the movements of the players via their CFrame using renderstepped.

Once I finished I decided I would go ahead and make it so you can save tracks and play them later, little did I know that a 10 second track is about 290,000 entries when I try to write to datastore which is way above the limit, and that's only for a singular player recording.

Does anyone have any ideas on how to compress these CFrames down so I could potentially make these save ?

Or have any other suggestions ?

Cheers,

Mateyz

3 comments

0

You definitely don't want to record that many positions so instead get them at some interval. Then you can easily Tween between these positions. I think a Phantom Forces dev talked about doing this on the DevForum. Then for datastores, you only need to get the position/rotational values of the CF since you can't save the datatype.

0

I don't suppose you have a link to that dev forum do you ?

0

only record their CFrame every 1/2 of a second. Then just lerp between them. You could also do more then 1/2 a second like maybe 1 second?