Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

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

Asked by 6 years ago

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

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. seanzhu 1 — 6y
0
Have you tried an internal/external Vector3 value? MachoPiggies 526 — 6y
0
Could be possible but that would be heavy for the server User#20388 0 — 6y
0
Maybe save it in a table? User#20388 0 — 6y
View all comments (3 more)
0
Can you be more specific on what your request is? YaBoiToasterLord 80 — 6y
0
Record cframes into table, then use those cframes again later. cabbler 1942 — 6y
0
yes, exactly that. seanzhu 1 — 6y

1 answer

Log in to vote
0
Answered by 6 years ago

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.

Ad

Answer this question