Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

Is there a way to save and record a part's CFrame and then later have it played back onto a script?

Is there a way to save and record a part's CFrame and then later have it played back onto a script?

7 comments

0

Let's say I wanted to record all physical things and movements I do to a part, how would I record all those changes of it? Then afterwards, play it back via a script. This would be really useful for animations.

0

Have you tried an internal/external Vector3 value?

0

Could be possible but that would be heavy for the server

0

Maybe save it in a table?

0

Can you be more specific on what your request is?

0

Record cframes into table, then use those cframes again later.

0

yes, exactly that.

1 answer

✓ Accepted answer

Firstly, to store the CFrames, I recommend using a table, or maybe even make a model in ServerStorage and create a CFrameValue each time you want to save the part's CFrame, setting the value of that CFrameValue to the CFrame of the part.

Then, in terms of loading, you could just loop through that table or get a table through :GetChildren() (If you are using the model route), and then set the part's CFrame for each iteration.

This discussion is preserved as it was. New answers, comments, and votes are closed.