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

How could I implement a recording system?

1 answer

✓ Accepted answer

First you have to have a decent knowledge of lua, then take each part and its cframe and store it in a table. You can do

local data = {}

for i = 1, 200, 1 do
      for _, v in pairs(workspace.Parts:GetChildren()) do
      data[v.Name..i] = {}
      data[v.Name..i].CFrame = v.CFrame
      end
end

while (true) do
	for i,v in next, data do
   	 	for i , v in pairs(workspace.Parts:GetChildren()) do -- i == index and v == value i think
     	  	v.CFrame = data[v.Name..i].CFrame
    	  end
	end
	wait(1)
end

This was typed on mobile so it might not be accurate

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